<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->


<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->



function verificaOrcamentoCarrinho()
{
	if(document.formPedido.nrQuantidade.value == '')
	{
		alert('Informe a Quantidade!');
		document.formPedido.nrQuantidade.focus();
		return false;
	}
}


function verificaOrcamento()
{
	if(document.formOrcamento.dsNome.value == '')
	{
		alert('Informe o Nome!');
		document.formOrcamento.dsNome.focus();
		return false;
	}
	
	if(document.formOrcamento.dsEmail.value == '')
	{
		alert('Informe o E-mail!');
		document.formOrcamento.dsEmail.focus();
		return false;
	}
	
	if(document.formOrcamento.dsFone.value == '')
	{
		alert('Informe o Fone!');
		document.formOrcamento.dsFone.focus();
		return false;
	}
	
	if(document.formOrcamento.dsCidade.value == '')
	{
		alert('Informe a Cidade!');
		document.formOrcamento.dsCidade.focus();
		return false;
	}
}


function verificaOrcamento2()
{
	if(document.formOrcamento2.dsNome.value == '')
	{
		alert('Informe o Nome!');
		document.formOrcamento2.dsNome.focus();
		return false;
	}
	
	if(document.formOrcamento2.dsEmail.value == '')
	{
		alert('Informe o E-mail!');
		document.formOrcamento2.dsEmail.focus();
		return false;
	}
	
	if(document.formOrcamento2.dsFone.value == '')
	{
		alert('Informe o Fone!');
		document.formOrcamento2.dsFone.focus();
		return false;
	}
	
	if(document.formOrcamento2.dsCidade.value == '')
	{
		alert('Informe a Cidade!');
		document.formOrcamento2.dsCidade.focus();
		return false;
	}
}


function verificaContato()
{
	if(document.formContato.dsNome.value == '')
	{
		alert('Preencha o campo Nome!');
		document.formContato.dsNome.focus();
		return false;
	}

	if(document.formContato.dsEmail.value == '')
	{
		alert('Preencha o campo E-mail!');
		document.formContato.dsEmail.focus();
		return false;
	}
	else
	{
		if (/^([\w\.\-])+\@(([\w\-])+\.)+([\w ]{2,4})$/.test(document.formContato.dsEmail.value) == false)   
		{ 
			alert("E-mail Inválido!");
			document.formContato.dsEmail.select();
			document.formContato.dsEmail.focus();
			return false;
		}
	}

	if(document.formContato.dsCidade.value == '')
	{
		alert('Preencha o campo Cidade!');
		document.formContato.dsCidade.focus();
		return false;
	}

	if(document.formContato.dsAssunto.value == '')
	{
		alert('Preencha o campo Assunto!');
		document.formContato.dsAssunto.focus();
		return false;
	}
	
	if(document.formContato.dsMensagem.value == '')
	{
		alert('Preencha o campo Mensagem!');
		document.formContato.dsMensagem.focus();
		return false;
	}
}


function imagem(value)
{
	if (value == 'abrir')
		document.getElementById('imagem').style.display = '';
	
	if (value == 'fechar')
		document.getElementById('imagem').style.display = 'none';
}


function tela()

{

	w_width		= screen.width;

	w_height	= screen.height;	

	

/*    if(navigator.appName != 'Microsoft Internet Explorer')

	{

 		document.getElementById('menur').style.width = '90%';

    }*/

	

	

	if (w_width <= '800')

	{

		document.getElementById('esquerdo').style.width = '35%';

		document.getElementById('direiro').style.width = '65%';

		

/*		<?

		if ($idTela != 1)

		{

			?>

			document.getElementById('width_menu1').style.width = '13%';

			<?

		}

		?>

		document.getElementById('width_menu2').style.width = '13%';

		document.getElementById('width_menu3').style.width = '13%';

		document.getElementById('width_menu4').style.width = '13%';

		document.getElementById('width_menu5').style.width = '13%';

		document.getElementById('width_menu6').style.width = '13%';

		document.getElementById('width_menu7').style.width = '13%';

		document.getElementById('width_menu8').style.width = '13%';*/

		

		//document.getElementById('width_cntd1').style.width = '13%';

		//document.getElementById('width_cntd2').style.width = '13%';

	}

	

	if (w_width > '800' && w_width >= '1024')

	{

		document.getElementById('esquerdo').style.width = '38%';

		document.getElementById('direiro').style.width = '62%';

		

/*		<?

		if ($idTela != 1)

		{

			?>

			document.getElementById('width_menu1').style.width = '40%';

			<?

		}

		?>

		document.getElementById('width_menu2').style.width = '40%';

		document.getElementById('width_menu3').style.width = '40%';

		document.getElementById('width_menu4').style.width = '40%';

		document.getElementById('width_menu5').style.width = '40%';

		document.getElementById('width_menu6').style.width = '40%';

		document.getElementById('width_menu7').style.width = '40%';

		document.getElementById('width_menu8').style.width = '40%';*/

		

		//document.getElementById('width_cntd1').style.width = '40%';

		//document.getElementById('width_cntd2').style.width = '40%';

	}

	

	if (w_width > '1024' && w_width >= '1280')

	{

		document.getElementById('esquerdo').style.width = '41%';

		document.getElementById('direiro').style.width = '59%';

		

/*		<?

		if ($idTela != 1)

		{

			?>

			document.getElementById('width_menu1').style.width = '56%';

			<?

		}

		?>

		document.getElementById('width_menu2').style.width = '56%';

		document.getElementById('width_menu3').style.width = '56%';

		document.getElementById('width_menu4').style.width = '56%';

		document.getElementById('width_menu5').style.width = '56%';

		document.getElementById('width_menu6').style.width = '56%';

		document.getElementById('width_menu7').style.width = '56%';

		document.getElementById('width_menu8').style.width = '56%';*/

		

		//document.getElementById('width_cntd1').style.width = '56%';

		//document.getElementById('width_cntd2').style.width = '56%';

	}

	

	if (w_width > '1280')

	{

		document.getElementById('esquerdo').style.width = '44%';

		document.getElementById('direiro').style.width = '56%';

		

/*		<?

		if ($idTela != 1)

		{

			?>

			document.getElementById('width_menu1').style.width = '56%';

			<?

		}

		?>

		document.getElementById('width_menu2').style.width = '56%';

		document.getElementById('width_menu3').style.width = '56%';

		document.getElementById('width_menu4').style.width = '56%';

		document.getElementById('width_menu5').style.width = '56%';

		document.getElementById('width_menu6').style.width = '56%';

		document.getElementById('width_menu7').style.width = '56%';

		document.getElementById('width_menu8').style.width = '56%';*/

		

		//document.getElementById('width_cntd1').style.width = '56%';

		//document.getElementById('width_cntd2').style.width = '56%';

	}

}



function produtos()
{
	if (document.getElementById('submenu_produto').style.display == 'none')
		document.getElementById('submenu_produto').style.display = '';
	else
		document.getElementById('submenu_produto').style.display = 'none';
}

function empresa()
{
	if (document.getElementById('submenu_empresa').style.display == 'none')
		document.getElementById('submenu_empresa').style.display = '';
	else
		document.getElementById('submenu_empresa').style.display = 'none';
}
