$(document).ready(function()
{
	speed=1000;
	$("#big_foto").height($("#content2").height()-30);
	
	$(".preimage").mouseover(function()
	{
		$(this).addClass("preimage_hover");

	});
	
	$(".preimage").mouseout(function()
	{
		$(this).removeClass("preimage_hover");
	});
	
	$("#clip1").click(function()
	{
		$("#klip2").hide();
		//$("#content1").height("100%");
		$("#scroll_menu").hide();
		
		$("#big_foto").show(speed, function()
		{
			$("#klip1, #close").show();
		});
	});
	
	$("#clip2").click(function()
	{
		$("#klip1").hide();
		//$("#content1").height("100%");
		$("#scroll_menu").hide();
				
		$("#big_foto").show(speed, function()
		{
			$("#klip2, #close").show();
		});
	});	
	
	$("#close").click(function()
	{
		$("#klip1, #klip2, #close").hide();
		$("#big_foto").hide(speed);
		$("#scroll_menu").show();
	});
		
	$(window).resize(function()
	{
		$("#big_foto").height($("#content2").height()-30);
	});
});
