No3 = (parseInt(navigator.appVersion) > 3) ? 1:0;

layer = (document.all && No3) ? "document.all['L'+menu].style" : (document.layers && No3) ? "document.layers['L'+menu]" : 0;
var timer;
var sMicrosoftIE;

sBrowser = navigator.appName.toLowerCase();
sMicrosoftIE = false;
if (sBrowser.substr(0,9) == "microsoft"){sMicrosoftIE = true;}

hovercolor   = "";	// color name/code
bgcolor      = "";			// color name/code
background   = "";			// picture url
	
menu_border  = "";			// IE only
border_color = "";	// IE only
	
function Show() { 
	if(layer) 
	{
		if(timer) clearTimeout(timer);
		
		for(menu=0; menu<Layer.length; menu++)
		{ 
			if(Layer[menu])
			{ 
				eval(layer).visibility = "hidden"; 
			} 
		}
		for(i=0; i<arguments.length; i++)
		{ 
			menu=arguments[i]; 
			eval(layer).visibility = "visible"; 
		}
	} 
}

function Hide() { 
	timer = setTimeout("Show()", 500); 
}

function Estilo( sWidth){
	sEstilo = ""
	if (sMicrosoftIE){
		sEstilo = " style='width=" + sWidth + ";cursor:default;' "}
	return sEstilo
}

function LayerSpecs(Left,Top,Width) { if(No3) 
{
	if(document.all) { 
		Top+=7; Left+=2; Width-=6; }
		this.left  = Left;
		this.top   = Top;
		this.info  = "";
		T=0;
		for(i=3; i<arguments.length; i++) {
			if(document.all) { 
				this.info += "<TR><TD WIDTH=" + Width + " onMouseOver='this.bgColor=\"" + hovercolor + "\"' onMouseOut='this.bgColor=\"\"'>" + arguments[i]+"</TD></TR>"; 
			}
			else { 
				this.info += "<LAYER onMouseOver='this.bgColor=\"" + hovercolor + "\"' onMouseOut='this.bgColor=\"" + bgcolor + "\"' WIDTH=" + Width + " POSITION=RELATIVE TOP=" + T + ">&nbsp;" + arguments[i] + "</LAYER>"; 
			}
			T+=20;
		}
	} 
}

Layer = new Array();


if (sMicrosoftIE){
	nLeftBase = 595
	nTopBase = 145 
	nWidthBase = 200 }
else{
	nLeftBase = 605
	nTopBase = 155 
	nWidthBase = 200
}

Layer[1] =	new LayerSpecs(nLeftBase, nTopBase+260, nWidthBase, '<FONT style="FONT-SIZE: 9PT"><B>Veículos:</B></FONT><FONT style="FONT-SIZE: 8PT"><BR>Você pode adquirir veiculos em todos os modelos e marcas.</FONT>');

Layer[2] =	new LayerSpecs(nLeftBase, nTopBase+260, nWidthBase, '<FONT style="FONT-SIZE: 9PT"><B>Imóveis:</B></FONT><FONT style="FONT-SIZE: 8PT"><BR>Você pode adquirir imóveis em <BR>todo o Brasil.</FONT>');

Layer[3] =	new LayerSpecs(nLeftBase, nTopBase+260, nWidthBase, '<FONT style="FONT-SIZE: 9PT"><B>Materiais:</B></FONT><FONT style="FONT-SIZE: 8PT"><BR>Você pode todo tipo de material.</FONT>');

Layer[4] =	new LayerSpecs(nLeftBase, nTopBase+260, nWidthBase, '<FONT style="FONT-SIZE: 9PT"><B>Artes:</B></FONT><FONT style="FONT-SIZE: 8PT"><BR>Você pode adquirir todo tipo de objeto de arte.</FONT>');

j = (Layer[0]) ? 0:1;

for(i=j; i<Layer.length; i++) {
	if(document.all && No3) { 
		document.write("<SPAN onMouseOver='clearTimeout(timer)' onMouseOut='Hide("+i+")' ID='L" +i+ "' STYLE='position:absolute; visibility:hidden; background:"+ background + "; top:" + Layer[i].top+ "; left:"+Layer[i].left+";'><TABLE STYLE=' " + menu_border + " " + border_color + "'>" + Layer[i].info + "</TABLE></SPAN>"); 
	}
	else if (document.layers && No3) { 
		document.write("<LAYER onMouseOver='clearTimeout(timer)' onMouseOut='Hide("+i+")' ID='L"+i+"' POSITION=ABSOLUTE VISIBILITY=HIDDEN BGCOLOR='"+bgcolor+"' BACKGROUND='" + background + "' TOP="+Layer[i].top+" LEFT="+Layer[i].left+">"+Layer[i].info+"</LAYER>"); 
	}
}

//if(document.all) { 
if (sMicrosoftIE){
	document.all["popup"].style.visibility = "visible"; 
}
else { 
	document.layers["popup"].visibility = "visible"; 
}

