if (Dominio==null)
	var Dominio = "http://www.autocecilia.com.br";

btOn = new Image();
btOn.src = Dominio + "img/faq/set_baixo.gif";
btOff = new Image();
btOff.src = Dominio + "img/faq/set_cima.gif";

function ShowHideTarja(p1, p2, p3, p4, p5, p6)
{
var objConteudo = document.getElementById(p1);
var objTabela =  document.getElementById(p2);
var objCor1 =  document.getElementById(p3);
var objCor2 =  document.getElementById(p4);
var objTitulo =  document.getElementById(p5);
var objBotao =  document.getElementById(p6);
	    if(objConteudo.style.display == 'none')
	    {
		    objConteudo.style.display = 'inline';
		    objTabela.className ='On';
		    if (objTabela.className == 'On') 
		    {
			    objCor1.className = 'TarjaCor1On';
			    objCor2.className = 'TarjaCor2On';
			    objTitulo.className = 'TarjaTituloOn';
			    objBotao.className = 'TarjabotaoOn';
		    }
	    }
	    else
	    {
		    objConteudo.style.display = 'none';
		    objTabela.className = 'Off';
		    if (objTabela.className != 'On') 
		    {
			    objCor1.className = 'TarjaCor1';
			    objCor2.className = 'TarjaCor2';
			    objTitulo.className = 'TarjaTitulo';
			    objBotao.className = 'Tarjabotao';
		    }
	    }
}
 
function ShowHideOp(x)	{
	if (document.getElementById(x).style.display == "" || document.getElementById(x).style.display == "inline" ){
		eval("document.getElementById('"+ x +"').style.display = 'none'");
		eval("document.getElementById('"+ x +"Mais').style.display = 'inline'");
		eval("document.getElementById('"+ x +"Menos').style.display = 'none'");
	}else{
		eval("document.getElementById('"+ x +"').style.display = 'inline'");
		eval("document.getElementById('"+ x +"Mais').style.display = 'none'");
		eval("document.getElementById('"+ x +"Menos').style.display = 'inline'");
	}
}

function ShowHide2(x) {
	if (document.getElementById(x).style.display == "" || document.getElementById(x).style.display == "inline" ){
		eval("document.getElementById('"+ x +"').style.display = 'none'");
		eval("document.getElementById('"+ x +"Mais').style.display = 'inline'");
		eval("document.getElementById('"+ x +"Menos').style.display = 'none'");
	}else{
		eval("document.getElementById('"+ x +"').style.display = 'inline'");
		eval("document.getElementById('"+ x +"Mais').style.display = 'none'");
		eval("document.getElementById('"+ x +"Menos').style.display = 'inline'");
	}
}

function showSubmenu(objLocal, objNumero, objSubAcao){
	var idReal = objLocal;
	if(objLocal.match(/_/))
	{
		idReal = objLocal.split("_")[1];
	}
		
	document.getElementById(objLocal + "_" + objNumero).className = idReal + objSubAcao;
}

function gotourl() {
	var i, args=gotourl.arguments; document.tv1_returnValue = false;
	for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function ShowHideVWS(x) {
	if (document.getElementById('tr' + x).style.display == "" || document.getElementById('tr' + x).style.display == "inline" ){
		eval("document.getElementById('tr"+ x +"').style.display = 'none'");
		eval("document.getElementById('span"+ x +"').style.fontWeight = 'normal'");
		eval("document.getElementById('img"+ x +"').src = '/Util/img/pecasacessorios/vwservice/bullet_content_off.gif'");
		
	}else{
		eval("document.getElementById('tr"+ x +"').style.display = 'inline'");
		eval("document.getElementById('span"+ x +"').style.fontWeight = 'bold'");
		eval("document.getElementById('img"+ x +"').src = '/Util/img/pecasacessorios/vwservice/bullet_content_on.gif'");
	}
}

function OverMenuTD(x){
var objTD = x;
if (objTD.className == "item"){
objTD.className = "itemOver";
}else{
objTD.className = "item";
}
}

var menuIntervalo = "";
var menuOver =  "";

function fechaMenu(objMenu){
    var fechaMenu = "fecharMenu('"+objMenu+"')";
    menuIntervalo = window.setInterval(fechaMenu,1000);
}


function abreMenu(objMenu){
	document.getElementById("mnVolksbr").style.display = 'none'
    document.getElementById("mnPecas").style.display = 'none'
    document.getElementById("mnVendas").style.display = 'none'
    document.getElementById("mnPlaneta").style.display = 'none'
    document.getElementById(objMenu).style.display = 'inline'
    window.clearInterval(menuIntervalo);
}

function fecharMenu(objMenu){
    document.getElementById(objMenu).style.display = 'none'
}

function ProximoCampo(p_campo, p_campo2)
{
    if (document.getElementById(p_campo))   
    {
	    if(document.getElementById(p_campo).value.length==document.getElementById(p_campo).maxLength)
	        document.getElementById(p_campo2).focus();
    }    
}

function OverImagem(x,y)
{ 
	//alert (eval(y));
	try
	{
		document.getElementById(x).src = eval(y).src;
	}
	catch(e)
	{
		
	}
}

function AbrirJanela(p_nome, p_url, p_largura, p_altura, p_topo, p_esquerda)
{
	window.open(p_url, p_nome, 'width=' + p_largura + ', height=' + p_altura + ', top=' + p_topo +',left=' + p_esquerda + '');
}



