// JavaScript Document
/**
 * Joao Leme menu version 1.0
 *
 *
 * We grants you a royalty free license to use or modify this
 * software provided that this copyright notice appears on all copies.
 * This software is provided "AS IS," without a warranty of any kind.
 */
function adjustmenu() {
document.topmenubar.src = menuname;
}

function showmenu(x,y) {
	document.topmenubar.src = y;
	document.getElementById("mproTab").style.display = 'none';
	document.getElementById("mserTab").style.display = 'none';
	document.getElementById("maboTab").style.display = 'none';
	document.getElementById("mwhyTab").style.display = 'none';
	document.getElementById("m"+(x)).style.display = 'block';
}

function HideItens() {
document.getElementById("mproTab").style.display = 'none';
document.getElementById("mserTab").style.display = 'none';
document.getElementById("maboTab").style.display = 'none';
document.getElementById("mwhyTab").style.display = 'none';
document.topmenubar.src = menuname;
}

function ShowItens(x)
{
if (document.getElementById("pergunta"+eval(x)).style.display == 'none') {
document.getElementById("pergunta"+eval(x)).style.display = 'block';
}else{
document.getElementById("pergunta"+eval(x)).style.display = 'none';
}
}
function ChangeBack(x)
{
document.getElementById("l"+eval(x)).style.backgroundColor = "#3C58D2";
document.getElementById("l"+eval(x)).style.color = "#ffffff";
document.getElementById("ll"+eval(x)).style.color = "#ffffff";
}
function ChangeBack2(x)
{
document.getElementById("l"+eval(x)).style.backgroundColor = "";
document.getElementById("l"+eval(x)).style.color = "#001A9B";
document.getElementById("ll"+eval(x)).style.color = "#001A9B";
}

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 site2()
{
 window.open( "oldsite/rentals.html", "", "width=800,height=600,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no" );
}
function openchat()
{
 window.open( "http://GoJumper.com/chat", "", "width=326,height=448,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no" );
}