var name = "#sliding_menu";  
var menuYloc = null;  
var height_box = 500;

$(document).ready(function(){
						   
		$("ul#menu a").html("<span></span>");
		// set opacity to nill on page load
		$("ul#menu span").css("opacity","0");
		// on mouse over
		$("ul#menu span").hover(function () {
			// animate opacity to full
			$(this).stop().animate({
				opacity: 1
			}, "fast");
		},
		// on mouse out
		function () {
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 0
			}, "slow");
		});
	
	//Sliding Menu
	menuYloc = parseInt($(name).css("top").substring(0,$(name).css("top").indexOf("px")))  
	$(window).scroll(function () {   
		var offset = menuYloc+$(document).scrollTop()+"px";  
		$(name).animate({top:offset},{duration:500,queue:false});  
	 }); 
	
	var cookie_options = { expires: 30, path: '/'};
	$.cookie('palonda_s_size', $(window).height(),cookie_options);
	
	$(window).resize(function () { 
		$.cookie('palonda_s_size', $(window).height(),cookie_options);						   
	}); 
	
	if ($(window).height() >= 720)
	{
		height_box	= 710;
	}

	$(".thickbox").fancybox({
		'padding' : 0,
		'margin' : 0,
		'width'				: 700,
		'height'			: height_box,
        'autoScale'     	: false,
		'titleShow'			: false,
		'swf':  	{wmode: 'transparent'},
		'type'				: 'iframe'
	});

});