window.onload = function(){
	if(!NiftyCheck()) return;
	
	Rounded("div#divPrincipal","all","#cccccc","#efefef","smooth");
	Rounded("div.botao1","all","#cccccc","transparent","smooth small border #ffffff");
	Rounded("div.botao2","all","#cccccc","#ffe400","smooth small border #999999");
	Rounded("div.titulo1","all","#efefef","#ffe400","smooth small border #999999");
	Rounded("div.conteudo1","bottom","#efefef","#ffffff","smooth small border #cccccc");
	
	
	Rounded("div.cinzat","top","#efefef","#cccccc","smooth");
	Rounded("div.cinzab","bottom","#efefef","#cccccc","smooth");
	
	Rounded("div.topcinza","top","#efefef","#fbfbfb","smooth");
	Rounded("div.bottomcinza","bottom","#efefef","#fbfbfb","smooth");
	
	Rounded("div.topbranco","top","#efefef","#ffffff","smooth");
	Rounded("div.bottombranco","bottom","#efefef","#ffffff","smooth");
	
	/*
	$("a#link1").mouseover(function() { $("#flecha1").animate({ marginRight: "6" }, 100 ); });
	$("a#link1").mouseout(function() { $("#flecha1").animate({ marginRight: "0" }, 100 ); });
	$("a#link2").mouseover(function() { $("#flecha2").animate({ marginRight: "6" }, 100 ); });
	$("a#link2").mouseout(function() { $("#flecha2").animate({ marginRight: "0" }, 100 ); });
	$("a#link3").mouseover(function() { $("#flecha3").animate({ marginRight: "6" }, 100 ); });
	$("a#link3").mouseout(function() { $("#flecha3").animate({ marginRight: "0" }, 100 ); });
	*/
	$("td.linktop1 img").mouseover(function() { $(this).animate({ marginTop: "12" }, 100 ); });
	$("td.linktop1 img").mouseout(function() { $(this).animate({ marginTop: "0" }, 100 ); });
	
	
	$("img.imgthumb").mouseover(function() { $(this).opacity = 0.8; });
	$("img.imgthumb").mouseout(function() { $(this).opacity = 1; });
}

function mdid(alt,id)
{
	$("div#desc_foto").html(alt);
	$("img#imggrande")[0].src = id;
}

function abreprod(idProduto)
{
	$("#conteudoProduto").load("../pag/desc_produto.php?idProduto="+idProduto+"&m="+Math.random());
}
function abreimg(img,w,h)
{
	window.open('../pag/img.php?img='+img,'','width='+w+',height='+h);
}
function MudaImagem(src,src2)
{
	document.getElementById('ImagemPrincipal').src = "imagens/prod/"+src;
  
	if(document.getElementById('link1')) document.getElementById('link1').href = "imagens/prod/" + src2;
}
