
	function onHome() {
		document.location.href='index.php';
	}
	
	function onComprar() {
		document.location.href='cliente_cadastro.php?redir=oDeZI7rqtjan&quero=comprar';
	}
	
	function onVender() {
		document.location.href='cliente_cadastro.php?redir=mjueH6UdtS2jO6EgZD6pOQ%3D%3D&quero=vender';
	}
	
	function onBlog() {
		window.open("blog/","_blank");
	}
	
	function onTV() {
		window.open('http://www.youtube.com/tvninui','_blank');
	}
	
	function onSpain() {
		alert('En Breve');
	}
	
	function onUSA() {
		alert('Coming Soon');
	}
	
	function onCadastrese() {
		document.location.href='cliente_cadastro.php';
	}
	
	function onEsqueciMinhaSenha() {
		document.getElementById('FLogin').action='lembrar_senha.php';
		document.getElementById('FLogin').submit();
	}
	
	function onFeitoAMao() {
		document.location.href='prodList.php?sId=1';
	}
	
	function onBrechot() {
		document.location.href='prodList.php?sId=2';
	}
		
	function onLogin() {
		document.location.href='cliente.php';
	}
	
	function onQuemSomos() {
		document.location.href='aempresa.php';
	}
	
	function onComunidades() {
		document.location.href='comunidades.php';
	}
	
	function onFavoritos(idProd) {
		if (idProd==null) {
			document.location.href='favoritos.php';
		} else {
			document.location.href='favoritos.php?pId='+idProd;
		}
	}
	
	function onTermosDeUso() {
		document.location.href='termosdeuso.php';
	}
	
	function onFaleConosco() {
		document.location.href='faleconosco.php';
	}
	
	function onNewsletter() {
		document.location.href='newsletter.php';
	}

	function onFAQ() {
		document.location.href='faq.php';
	}
	
	function onPopupBanner() {
		showDiv('popupBanner');
		showButtons();
	}
	
	function offPopupBanner() {
		hideDiv('popupBanner');
		hideButtons();
	}
	
	function onCarrinho(idPag,idProduto) {
		if (idProduto == 0) {
			document.location.href='basketList.php?pagId='+idPag;
		} else {
			document.location.href='basketAdd.php?pagId='+idPag+'&pId='+idProduto;
		}
	}
	
	function selDiv(secao,tipo,id) {
		elem = document.getElementById(id);
		if (secao=='FeitoAMao') {
			if (tipo=='on') {
				elem.style.backgroundColor='#b0ded3';
				elem.style.color='#626367';
			} else if (tipo=='out') {
				elem.style.backgroundColor='';
				elem.style.color='#b0ded3';
			}
		} else if (secao=='Brechot') {
			if (tipo=='on') {
				elem.style.backgroundColor='#f79e5c';
				elem.style.color='#626367';
			} else if (tipo=='out') {
				elem.style.backgroundColor='';
				elem.style.color='#f79e5c';
			}
		} else if (secao=='Link') {
			if (tipo=='on') {
				elem.style.backgroundColor='#909495';
				elem.style.color='#505155';
			} else if (tipo=='out') {
				elem.style.backgroundColor='';
				elem.style.color='#909495';
			}
		}
	}
	
	function showDiv(id) {
		document.getElementById(id).style.visibility='visible';
	}
	
	function hideDiv(id) {
		document.getElementById(id).style.visibility='hidden';
	}
	
	function onOpenImg(raizImg,idProd,idImg) {
		zoomContent  = '<img src="'+raizImg;
		zoomContent += idProd+'_'+idImg+'_big.jpg" border="0" ';
		zoomContent += 'id="'+raizImg+'blank.jpg"';
		zoomContent += 'onError=this.src=this.id>';
		document.getElementById('zoom_content').innerHTML=zoomContent;
		document.getElementById('image_zoom').style.visibility='visible';
	}
	
	function onOpenContent(content) {
		document.getElementById('zoom_content').innerHTML=content;
		document.getElementById('image_zoom').style.visibility='visible';
	}
	
	function onFecharDetalhe() {
		document.getElementById('zoom_content').innerHTML='';
		document.getElementById('image_zoom').style.visibility='hidden';
	}
	
	function onSelectBanner(cd_loja,cd) {
		params  = '?img='+cd;
		if (cd_loja>0) params += '&id='+cd_loja;
		window.frames['uploadImage'].location.href='upload_image_loja.php'+params;
		offPopupBanner();
	}
	
	function onSaibaMais() {
		document.getElementById('saibaMaisOverlay').style.display='block';
		document.getElementById('divSaibaMais').style.display='block';
	}
	
	function escondeSaibaMais() {
		document.getElementById('saibaMaisOverlay').style.display='none';
		document.getElementById('divSaibaMais').style.display='none';
	}
