$(document).ready( function(){

	/*
	swfobject.embedSWF('template/flash/main.swf', "lo", "100%", "100%", "8.0.0", "expressInstall.swf",	
			{  }, // FLASHVARS
			{ swliveconnect: true, wmode: "transparent", scale: "noScale" }, // PARAMS
			{ id: "main", name: "main" } //ATTRIBUTES
	);
	*/

	
	$(".product_block").hover(
		function(){
			$(this).css('background-color', '#F9FBCC' );
		},
		function(){
			$(this).css('background-color', '#FFFFFF' );
		});
	

	$(".bestseller_element").hover(
		function(){
			$(this).css('background-color', '#F9FBCC' );
			$(this).css('color', '#FF3100' );
		},
		function(){
			$(this).css('background-color', '#FFFFFF' );
			$(this).css('color', 'black' );
		});

	
	$(".bestseller_element").wTooltip({
					style: {
						border: "1px solid #293b4f",
						background: "white",
						maxWidth: "150px",
						maxHeight: "150px"
					}
				});	
				
	$("[class^=smps]").mouseenter(
        function(){
            $('#'+$(this).attr("class")).slideDown('slow');
        }
    );
    
    $("[class^=smps]").mouseleave(
        function(){
            $('#'+$(this).attr("class")).slideUp('slow');
        }
    );
	

});





function TopMenu() {
/*	
	$('#menu').mouseenter(function(){

		if ($('#menu ul ul').height() + 60 < 178) {

			$('#menu').css({
				'height' : '178px',
				'background-image' : 'url("template/img/gwib_do_menu.png")'
			});
		
		} else {
			
			$('#menu').css({
				'height' : $('#menu ul ul').height() + 60,
				'background-image' : 'url("template/img/gwib_do_menu.png")'
			});
			
		}

	});


	$('#menu').mouseleave(function(){
		$('#menu').css({
			'height' : '40px',
			'background-image' : 'none'
		});
	});
*/
	// IE Hack :]

	$('div#menu > ul > li').mouseenter(function(){
		$(this).css({'background':'#263c4d'});		
		$(this).children('a').css({'color':'white'});
		$(this).find('ul').css({'display':'block'});
		out = false;
	});

	$('div#menu > ul > li').mouseleave(function(){
		$(this).css({'background':'white'});
		$(this).children('a').css({'color':'black'});
		$(this).find('ul').css({'display':'none'});
		out = true;
	});
}


