var inMenu = false;

$(document).ready(function(){
  
  
 $(".over").hover(	
		function()
		{
			$(".bread-cr-menu-root ul").css('display', 'block'); 
		}
	)

$(".enter-link").click(	
		function()
		{   if (!inMenu)
			{inMenu = true;
			$(".enter-block").css('display', 'block'); 
			$(".account-menu-enter").css('background', '#8BC53F');
			$(".account-menu-enter .enter-link").css('color', '#fff');}
		
		else
		    {inMenu = false;
			$(".enter-block").css('display', ''); 
			$(".account-menu-enter").css('background', '');
			$(".account-menu-enter .enter-link").css('color', '');}
        return false;}
	)

  

 
   $(".slider-block-1").addClass("corner-on");
   $("#slider-img1").css('zIndex', 1);

   $(".question-answer dt a").click(	
		function()	
		{
			var el = $(this).parent().parent().children("dd");
			
			var cur = el.css('display');
			if (cur == 'block') el.css('display', 'none');
			else el.css('display', 'block');
		}
    ) 
  });
  
/*function fixLayout()
{
	var cw = document.getElementById("main").offsetHeight;
	if ( document.documentElement.clientHeight < cw )
	{
		document.getElementById("footer").style.position = "static";
		document.body.style.position = "static";
		document.getElementById("footer-space").style.height = "20px";
		
	}
	else
	{
		document.body.style.position ="relative";
		document.getElementById("footer").style.position = "absolute";
		document.getElementById("footer-space").style.height = "254px";
	}
}

if ( ($.browser.msie && parseInt($.browser.version, 10) == 6) || $.browser.opera) 
{
if (window.addEventListener){
	window.addEventListener("load", fixLayout, false);
	window.addEventListener("resize", fixLayout, false);
}
else if (window.attachEvent){
	window.attachEvent("onload", fixLayout);
	window.attachEvent("onresize", fixLayout);
}	  
  

}*/

