/*
$(document).ready(function()
{
	//slides the element with class "menu_body" when paragraph with class "menu_head" is clicked 
	$("#firstpane p.menu_head").click(function()
    {
		$(this).css({backgroundColor:"#40a8f9", color : "#ffffff"}).next().next("div.menu_body").slideToggle(200).siblings("div.menu_body").slideUp("slow");
       	$(this).siblings("p").css({backgroundColor:"transparent", color : "#40a8f9"});
	});
	
});

function selMenuProd (id){
	var cod = "#firstpane p.menu_head:eq("+id+")";
	$(document).ready(function()
	{
		$(cod).css({backgroundColor:"#40a8f9", color : "#ffffff"}).next().next("div.menu_body").slideToggle(200).siblings("div.menu_body").slideUp("slow");
	});
}
*/
function posicao(){
	
	if( typeof( window.innerWidth ) == 'number' ) {
    	//Non-IE
		myWidth = window.innerWidth;
	    myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	    //IE 6+ in 'standards compliant mode'
	    myWidth = document.documentElement.clientWidth;
	    myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	    //IE 4 compatible
	    myWidth = document.body.clientWidth;
	    myHeight = document.body.clientHeight;
	}

/*	if($('fd_produto_gd')){
		$('fd_produto_gd').style.left = ((myWidth / 2) - 485) + "px";
		$('produto_gd').style.left = ((myWidth / 2) - 485) + "px";
	}*/
	
}

function displayProdutoGD(){
	posicao();
	$('fd_produto_gd').appear({ duration: 0.2, from:0, to:1.0 });
	$('produto_gd').appear({ duration: 0.2, from:0, to:1 });

	document.body.scrollTop;
	document.documentElement.scrollTop;
	window.scroll(100,325);
	window.scrollTo(100,325); 
}

function hideProdutoGD(){
	$('fd_produto_gd').fade({ duration: 0.2});
	$('produto_gd').fade({ duration: 0.2});
}
