var browserType;

if (document.layers) {browserType = "nn4"}
if (document.all) {browserType = "ie"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {
 browserType= "gecko"
}

function hide0() {
	if (browserType == "gecko" )
	{
		document.poppedLayer = eval('document.getElementById("invisible-slider")');
		document.poppedLayer1 = eval('document.getElementById("invisible-gallery")');
	}
	else if (browserType == "ie")
	{
		document.poppedLayer = eval('document.getElementById("invisible-slider")');
		document.poppedLayer1 = eval('document.getElementById("invisible-gallery")');
	}
	else
	{
		document.poppedLayer = eval('document.layers["invisible-slider"]');
		document.poppedLayer1 = eval('document.layers["invisible-gallery"]');
	}
	
	document.poppedLayer.style.display = "none";
	document.poppedLayer1.style.display = "inline";
}

function hide00() {
	if (browserType == "gecko" )
	{
		document.poppedLayer = eval('document.getElementById("invisible-slider")');
		document.poppedLayer1 = eval('document.getElementById("invisible-gallery0")');
	}
	else if (browserType == "ie")
	{
		document.poppedLayer = eval('document.getElementById("invisible-slider")');
		document.poppedLayer1 = eval('document.getElementById("invisible-gallery0")');
	}
	else
	{
		document.poppedLayer = eval('document.layers["invisible-slider"]');
		document.poppedLayer1 = eval('document.layers["invisible-gallery0"]');
	}
	
	document.poppedLayer.style.display = "none";
	document.poppedLayer1.style.display = "inline";
}

function show0() {
	if (browserType == "gecko" )
	{
		document.poppedLayer = eval('document.getElementById("invisible-slider")');
		document.poppedLayer1 = eval('document.getElementById("invisible-gallery")');
		document.poppedLayer2 = eval('document.getElementById("invisible-gallery0")');
	}
	else if (browserType == "ie")
	{
		document.poppedLayer = eval('document.getElementById("invisible-slider")');
		document.poppedLayer1 = eval('document.getElementById("invisible-gallery")');
		document.poppedLayer2 = eval('document.getElementById("invisible-gallery0")');
	}
	else
	{
		document.poppedLayer = eval('document.layers["invisible-slider"]');
		document.poppedLayer1 = eval('document.layers["invisible-gallery"]');
		document.poppedLayer2 = eval('document.layers["invisible-gallery0"]');
	}
	
	document.poppedLayer.style.display = "inline";
	document.poppedLayer1.style.display = "none";
	document.poppedLayer2.style.display = "none";
	
}

jQuery(document).ready(function($){

	//zjecie 15
	$('#popup-menu15').bind('mouseenter', function(){

			  $('#bottomDivMenuLine15')
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'100px'},400);
				
			  $('#popup-list15')
				.stop(true)
				.animate({
				'width':'200px',
				'height':'200px',
				'left':'0px',
				'top':'200px'				
				 },400,'easeOutBack');
		}).bind('mouseleave', function(){

				$('#popup-list15')			
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'100px'},400, function() {

				  $('#bottomDivMenuLine15')
					.stop(true)
					.animate({
					'width':'200px',
					'height':'200px',
					'left':'100px'
					 },500);	
			})
		});			

	//zjecie 14
	$('#popup-menu14').bind('mouseenter', function(){

			  $('#bottomDivMenuLine14')
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'300px'},400);
				
			  $('#popup-list14')
				.stop(true)
				.animate({
				'width':'200px',
				'height':'200px',
				'left':'200px',
				'top':'200px'				
				 },400,'easeOutBack');
		}).bind('mouseleave', function(){

				$('#popup-list14')			
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'300px'},400, function() {

				  $('#bottomDivMenuLine14')
					.stop(true)
					.animate({
					'width':'200px',
					'height':'200px',
					'left':'300px'
					 },500);	
			})
		});
		
	//zjecie 10
	$('#popup-menu13').bind('mouseenter', function(){

			  $('#bottomDivMenuLine13')
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'500px'},400);
				
			  $('#popup-list13')
				.stop(true)
				.animate({
				'width':'200px',
				'height':'200px',
				'left':'400px',
				'top':'200px'				
				 },400,'easeOutBack');
		}).bind('mouseleave', function(){

				$('#popup-list13')			
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'500px'},400, function() {

				  $('#bottomDivMenuLine13')
					.stop(true)
					.animate({
					'width':'200px',
					'height':'200px',
					'left':'500px'
					 },500);	
			})
		});			

	//zjecie 12
	$('#popup-menu12').bind('mouseenter', function(){

			  $('#bottomDivMenuLine12')
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'100px'},400);
				
			  $('#popup-list12')
				.stop(true)
				.animate({
				'width':'200px',
				'height':'200px',
				'left':'0px',
				'top':'200px'				
				 },400,'easeOutBack');
		}).bind('mouseleave', function(){

				$('#popup-list12')			
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'100px'},400, function() {

				  $('#bottomDivMenuLine12')
					.stop(true)
					.animate({
					'width':'200px',
					'height':'200px',
					'left':'100px'
					 },500);	
			})
		});			

	//zjecie 11
	$('#popup-menu11').bind('mouseenter', function(){

			  $('#bottomDivMenuLine11')
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'300px'},400);
				
			  $('#popup-list11')
				.stop(true)
				.animate({
				'width':'200px',
				'height':'200px',
				'left':'200px',
				'top':'200px'				
				 },400,'easeOutBack');
		}).bind('mouseleave', function(){

				$('#popup-list11')			
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'300px'},400, function() {

				  $('#bottomDivMenuLine11')
					.stop(true)
					.animate({
					'width':'200px',
					'height':'200px',
					'left':'300px'
					 },500);	
			})
		});
		
	//zjecie 10
	$('#popup-menu10').bind('mouseenter', function(){

			  $('#bottomDivMenuLine10')
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'500px'},400);
				
			  $('#popup-list10')
				.stop(true)
				.animate({
				'width':'200px',
				'height':'200px',
				'left':'400px',
				'top':'200px'				
				 },400,'easeOutBack');
		}).bind('mouseleave', function(){

				$('#popup-list10')			
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'500px'},400, function() {

				  $('#bottomDivMenuLine10')
					.stop(true)
					.animate({
					'width':'200px',
					'height':'200px',
					'left':'500px'
					 },500);	
			})
		});

	//zjecie 9
	$('#popup-menu9').bind('mouseenter', function(){

			  $('#bottomDivMenuLine9')
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'100px'},400);
				
			  $('#popup-list9')
				.stop(true)
				.animate({
				'width':'200px',
				'height':'200px',
				'left':'0px',
				'top':'200px'				
				 },400,'easeOutBack');
		}).bind('mouseleave', function(){

				$('#popup-list9')			
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'100px'},400, function() {

				  $('#bottomDivMenuLine9')
					.stop(true)
					.animate({
					'width':'200px',
					'height':'200px',
					'left':'100px'
					 },500);	
			})
		});			

	//zjecie 8
	$('#popup-menu8').bind('mouseenter', function(){

			  $('#bottomDivMenuLine8')
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'300px'},400);
				
			  $('#popup-list8')
				.stop(true)
				.animate({
				'width':'200px',
				'height':'200px',
				'left':'200px',
				'top':'200px'				
				 },400,'easeOutBack');
		}).bind('mouseleave', function(){

				$('#popup-list8')			
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'300px'},400, function() {

				  $('#bottomDivMenuLine8')
					.stop(true)
					.animate({
					'width':'200px',
					'height':'200px',
					'left':'300px'
					 },500);	
			})
		});
		
	//zjecie 7
	$('#popup-menu7').bind('mouseenter', function(){

			  $('#bottomDivMenuLine7')
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'500px'},400);
				
			  $('#popup-list7')
				.stop(true)
				.animate({
				'width':'200px',
				'height':'200px',
				'left':'400px',
				'top':'200px'				
				 },400,'easeOutBack');
		}).bind('mouseleave', function(){

				$('#popup-list7')			
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'500px'},400, function() {

				  $('#bottomDivMenuLine7')
					.stop(true)
					.animate({
					'width':'200px',
					'height':'200px',
					'left':'500px'
					 },500);	
			})
		});	
		
	//zjecie 6
	$('#popup-menu6').bind('mouseenter', function(){

			  $('#bottomDivMenuLine6')
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'100px'},0);
				
			  $('#popup-list6')
				.stop(true)
				.animate({
				'width':'200px',
				'height':'200px',
				'left':'0px',
				'top':'200px'				
				 },400,'easeOutBack');
		}).bind('mouseleave', function(){

				$('#popup-list6')			
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'100px'},400, function() {

				  $('#bottomDivMenuLine6')
					.stop(true)
					.animate({
					'width':'200px',
					'height':'200px',
					'left':'100px'
					 },500);	
			})
		});
		
	//zjecie 5
	$('#popup-menu5').bind('mouseenter', function(){

			  $('#bottomDivMenuLine5')
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'300px'},400);
				
			  $('#popup-list5')
				.stop(true)
				.animate({
				'width':'200px',
				'height':'200px',
				'left':'200px',
				'top':'200px'				
				 },400,'easeOutBack');
		}).bind('mouseleave', function(){

				$('#popup-list5')			
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'300px'},400, function() {

				  $('#bottomDivMenuLine5')
					.stop(true)
					.animate({
					'width':'200px',
					'height':'200px',
					'left':'300px'
					 },500);	
			})
		});
		
	//zjecie 4
	$('#popup-menu4').bind('mouseenter', function(){

			  $('#bottomDivMenuLine4')
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'500px'},0);
				
			  $('#popup-list4')
				.stop(true)
				.animate({
				'width':'200px',
				'height':'200px',
				'left':'400px',
				'top':'200px'				
				 },400,'easeOutBack');
		}).bind('mouseleave', function(){

				$('#popup-list4')			
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'500px'},400, function() {

				  $('#bottomDivMenuLine4')
					.stop(true)
					.animate({
					'width':'200px',
					'height':'200px',
					'left':'500px'
					 },500);	
			})
		});
		
	//zjecie 3
	$('#popup-menu3').bind('mouseenter', function(){

			  $('#bottomDivMenuLine3')
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'100px'},400);
				
			  $('#popup-list3')
				.stop(true)
				.animate({
				'width':'200px',
				'height':'200px',
				'left':'0px',
				'top':'200px'				
				 },400,'easeOutBack');
		}).bind('mouseleave', function(){

				$('#popup-list3')			
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'100px'},400, function() {

				  $('#bottomDivMenuLine3')
					.stop(true)
					.animate({
					'width':'200px',
					'height':'200px',
					'left':'100px'
					 },500);	
			})
		});	
		
	//zjecie 2
	$('#popup-menu2').bind('mouseenter', function(){

			  $('#bottomDivMenuLine2')
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'300px'},400);
				
			  $('#popup-list2')
				.stop(true)
				.animate({
				'width':'200px',
				'height':'200px',
				'left':'200px',
				'top':'200px'				
				 },400,'easeOutBack');
		}).bind('mouseleave', function(){

				$('#popup-list2')			
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'300px'},400, function() {

				  $('#bottomDivMenuLine2')
					.stop(true)
					.animate({
					'width':'200px',
					'height':'200px',
					'left':'300px'
					 },500);	
			})
		});		
		
	//zjecie 1
	$('#popup-menu1').bind('mouseenter', function(){

			  $('#bottomDivMenuLine1')
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'500px'},400);
				
			  $('#popup-list1')
				.stop(true)
				.animate({
				'width':'200px',
				'height':'200px',
				'left':'400px',
				'top':'200px'				
				 },400,'easeOutBack');
		}).bind('mouseleave', function(){

				$('#popup-list1')			
				.stop(true)
				.animate({
				'width':'0px',
				'height':'0px',
				'left':'500px'},400, function() {

				  $('#bottomDivMenuLine1')
					.stop(true)
					.animate({
					'width':'200px',
					'height':'200px',
					'left':'500px'
					 },500);	
			})
		});										

        $("a.leftMenu").hover(function () {
		$("div#centerDivMenuFadeOut").stop().animate({"opacity": "0"}, "fast");
		$("div#centerDivMenuFadeIn").stop().animate({"opacity": "1"}, "slow");
        },function() {
		$("div#centerDivMenuFadeOut").stop().animate({"opacity": "1"}, "fast");
		$("div#centerDivMenuFadeIn").stop().animate({"opacity": "0"}, "fast");
	});


	$("img#aa").hover(function() {
		$(this).stop().animate({"opacity": "1", "filter": ""}, "slow");

	}, function() {
		$(this).stop().animate({"opacity": "0", "filter": "0"}, "slow");
	});

	$("img#ba").hover(function() {
		$(this).stop().animate({"opacity": "1"}, "slow");

	}, function() {
		$(this).stop().animate({"opacity": "0"}, "slow");
	});

});


