var stat=new Array();
function hide(el) 
{
  document.getElementById(el).style.display = "none";
} 
function show(el)
{
  document.getElementById(el).style.display = "block";
}
function clickstat(el)
{
if(stat[el]==2)
{
stat[el]=1;
  hide(el);
}
else
{
stat[el]=2;
  show(el);
}
}

function change()
{
t['status']=1;
}

function box(el)
{
if(el!=3)
{
if(el==2)
{
document.write("<div id=\"box1\"><div class=\"box\" align=\"center\"><a target=\"1\" onclick=\"javascript:show(1);hide('box1');show('box2')\" title=\"Stats Lookup\">Stats Lookup</a></div></div><div id=\"box2\"><div class=\"box\" align=\"center\"><a target=\"1\" onclick=\"javascript:hide(1);show('box1');hide('box2')\" title=\"Stats Lookup\">Stats Lookup</a></div></div><div id=\"1\"><iframe width=\"100%\" height=\"620\" frameborder=0 width=0 height=0 name=\"1\" id=\"1\" src=\"statslookup.php\">Your browser is too old!</iframe></div>");
hide('box2');
hide('1');
}
if(el==1)
{
document.write("<div id=\"box1\"><div class=\"box\" align=\"center\"><a target=\"1\" onclick=\"javascript:show(1);hide('box1');show('box2')\" title=\"Stats Lookup\">Stats Lookup</a></div></div><div id=\"box2\"><div class=\"box\" align=\"center\"><a target=\"1\" onclick=\"javascript:hide(1);show('box1');hide('box2')\" title=\"Stats Lookup\">Stats Lookup</a></div></div><div id=\"1\"><iframe width=\"100%\" height=\"620\" frameborder=0 width=0 height=0 name=\"1\" id=\"1\" src=\"statslookup.php\">Your browser is too old!</iframe></div>");
hide('box1');
}
}
}

function boxlast(el)
{
if(el!=3)
{
if(el==2)
{
document.write("<div id=\"box21\"><div class=\"box\" align=\"center\"><a target=\"2\" onclick=\"javascript:show(2);hide('box21');show('box22')\" title=\"Last 5 lookups\">Last 5 lookups</a></div></div><div id=\"box22\"><div class=\"box\" align=\"center\"><a target=\"2\" onclick=\"javascript:hide(2);show('box21');hide('box22')\" title=\"Last 5 lookups\">Last 5 lookups</a></div></div><div id=\"2\"><iframe width=\"100%\" height=\"145\" frameborder=0 width=0 height=0 name=\"2\" id=\"2\" src=\"lastlookup.php\">Your browser is too old!</iframe></div>");
hide(2);
hide('box22');
}
if(el==1)
{
document.write("<div id=\"box21\"><div class=\"box\" align=\"center\"><a href=\"lastlookup.php\" target=\"2\" onclick=\"javascript:show(2);hide('box21');show('box22')\" title=\"Last 5 lookups\">Last 5 lookups</a></div></div><div id=\"box22\"><div class=\"box\" align=\"center\"><a target=\"2\" onclick=\"javascript:hide(2);show('box21');hide('box22')\" title=\"Last 5 lookups\">Last 5 lookups</a></div></div><div id=\"2\"><iframe width=\"100%\" height=\"145\" frameborder=0 width=0 height=0 name=\"2\" id=\"2\" src=\"lastlookup.php\">Your browser is too old!</iframe></div>");
hide('box21');
}
}
}

function boxtog(el)
{
if(el!=3)
{
if(el==2)
{
document.write("<div id=\"box31\"><div class=\"box\" align=\"center\"><a target=\"3\" onclick=\"javascript:show(3);hide('box31');show('box32')\" title=\"Your tears of guthix timer\">Tears Timer</a></div></div><div id=\"box32\"><div class=\"box\" align=\"center\"><a target=\"3\" onclick=\"javascript:hide(3);show('box31');hide('box32')\" title=\"Your tears of guthix timer\">Tears Timer</a></div></div><div id=\"3\"><iframe width=\"100%\" height=\"150\" frameborder=0 width=0 height=0 name=\"3\" id=\"3\" src=\"tog.php\">Your browser is too old!</iframe></div>");
hide(3);
hide('box32');
}
if(el==1)
{
document.write("<div id=\"box31\"><div class=\"box\" align=\"center\"><a target=\"3\" onclick=\"javascript:show(3);hide('box31');show('box32')\" title=\"Your tears of guthix timer\">Tears Timer</a></div></div><div id=\"box32\"><div class=\"box\" align=\"center\"><a target=\"3\" onclick=\"javascript:hide(3);show('box31');hide('box32')\" title=\"Your tears of guthix timer\">Tears Timer</a></div></div><div id=\"3\"><iframe width=\"100%\" height=\"150\" frameborder=0 width=0 height=0 name=\"3\" id=\"3\" src=\"tog.php\">Your browser is too old!</iframe></div>");
hide('box31');
}
}
}

function boxnotebook(el)
{
if(el!=3)
{
if(el==2)
{
document.write("<div id=\"box41\"><div class=\"box\" align=\"center\"><a target=\"4\" onclick=\"javascript:show(4);hide('box41');show('box42')\" title=\"Your notebook\">Notebook</a></div></div><div id=\"box42\"><div class=\"box\" align=\"center\"><a target=\"4\" onclick=\"javascript:hide(4);show('box41');hide('box42')\" title=\"Your notebook\">Notebook</a></div></div><div id=\"4\"><iframe width=\"100%\" height=\"150\" frameborder=0 width=0 height=0 name=\"4\" id=\"4\" src=\"notebook.php\">Your browser is too old!</iframe></div>");
hide(4);
hide('box42');
}
if(el==1)
{
document.write("<div id=\"box41\"><div class=\"box\" align=\"center\"><a target=\"4\" onclick=\"javascript:show(4);hide('box41');show('box42')\" title=\"Your notebook\">Notebook</a></div></div><div id=\"box42\"><div class=\"box\" align=\"center\"><a target=\"4\" onclick=\"javascript:hide(4);show('box41');hide('box42')\" title=\"Your notebook\">Notebook</a></div></div><div id=\"4\"><iframe width=\"100%\" height=\"150\" frameborder=0 width=0 height=0 name=\"4\" id=\"4\" src=\"notebook.php\">Your browser is too old!</iframe></div>");
hide('box41');
}
}
}

function boxlinks(el)
{
if(el!=3)
{
if(el==2)
{
document.write("<div id=\"box51\"><div class=\"box\" align=\"center\"><a target=\"5\" onclick=\"javascript:show(5);hide('box51');show('box52')\" title=\"Helpful links\">Links</a></div></div><div id=\"box52\"><div class=\"box\" align=\"center\"><a target=\"5\" onclick=\"javascript:hide(5);show('box51');hide('box52')\" title=\"Helpful links\">Links</a></div></div><div id=\"5\"><iframe width=\"100%\" height=\"150\" frameborder=0 width=0 height=0 name=\"5\" id=\"5\" src=\"links.php\">Your browser is too old!</iframe></div>");
hide(5);
hide('box52');
}
if(el==1)
{
document.write("<div id=\"box51\"><div class=\"box\" align=\"center\"><a target=\"5\" onclick=\"javascript:show(5);hide('box51');show('box52')\" title=\"Helpful links\">Links</a></div></div><div id=\"box52\"><div class=\"box\" align=\"center\"><a target=\"5\" onclick=\"javascript:hide(5);show('box51');hide('box52')\" title=\"Helpful links\">Links</a></div></div><div id=\"5\"><iframe width=\"100%\" height=\"150\" frameborder=0 width=0 height=0 name=\"5\" id=\"5\" src=\"links.php\">Your browser is too old!</iframe></div>");
hide('box51');
}
}
}

function boxset(el)
{
if(el!=3)
{
if(el==2)
{
document.write("<div id=\"box61\"><div class=\"box\" align=\"center\"><a target=\"6\" onclick=\"javascript:show(6);hide('box61');show('box62')\" title=\"Sidebar settings\">Settings</a></div></div><div id=\"box62\"><div class=\"box\" align=\"center\"><a target=\"6\" onclick=\"javascript:hide(6);show('box61');hide('box62')\" title=\"Sidebar settings\">Settings</a></div></div><div id=\"6\"><iframe width=\"100%\" height=\"160\" frameborder=0 width=0 height=0 name=\"6\" id=\"6\" src=\"settings.php\">Your browser is too old!</iframe></div>");
hide(6);
hide('box62');
}
if(el==1)
{
document.write("<div id=\"box61\"><div class=\"box\" align=\"center\"><a target=\"6\" onclick=\"javascript:show(6);hide('box61');show('box62')\" title=\"Sidebar settings\">Settings</a></div></div><div id=\"box62\"><div class=\"box\" align=\"center\"><a target=\"6\" onclick=\"javascript:hide(6);show('box61');hide('box62')\" title=\"Sidebar settings\">Settings</a></div></div><div id=\"6\"><iframe width=\"100%\" height=\"160\" frameborder=0 width=0 height=0 name=\"6\" id=\"6\" src=\"settings.php\">Your browser is too old!</iframe></div>");
hide('box61');
}
}
}

function boxradio(el)
{
if(el!=3)
{
if(el==2)
{
document.write("<div id=\"box71\"><div class=\"box\" align=\"center\"><a target=\"7\" onclick=\"javascript:show(7);hide('box71');show('box72')\" title=\"Radio\">Radio</a></div></div><div id=\"box72\"><div class=\"box\" align=\"center\"><a target=\"7\" onclick=\"javascript:hide(7);show('box71');hide('box72')\" title=\"Radio\">Radio</a></div></div><div id=\"7\"><iframe width=\"100%\" height=\"170\" frameborder=0 width=0 height=0 name=\"7\" id=\"7\" src=\"radio-player.php\">Your browser is too old!</iframe></div>");
hide(7);
hide('box72');
}
if(el==1)
{
document.write("<div id=\"box71\"><div class=\"box\" align=\"center\"><a target=\"7\" onclick=\"javascript:show(7);hide('box71');show('box72')\" title=\"Radio\">Radio</a></div></div><div id=\"box72\"><div class=\"box\" align=\"center\"><a target=\"7\" onclick=\"javascript:hide(7);show('box71');hide('box72')\" title=\"Radio\">Radio</a></div></div><div id=\"7\"><iframe width=\"100%\" height=\"170\" frameborder=0 width=0 height=0 name=\"7\" id=\"7\" src=\"radio-player.php\">Your browser is too old!</iframe></div>");
hide('box71');
}
}
}

function boxitem(el)
{
if(el!=3)
{
if(el==2)
{
document.write("<div id=\"box81\"><div class=\"box\" align=\"center\"><a target=\"8\" onclick=\"javascript:show(8);hide('box81');show('box82')\" title=\"Price Guide\">Price Guide</a></div></div><div id=\"box82\"><div class=\"box\" align=\"center\"><a target=\"8\" onclick=\"javascript:hide(8);show('box81');hide('box82')\" title=\"Price Guide\">Price Guide</a></div></div><div id=\"8\"><iframe width=\"100%\" height=\"180\" frameborder=0 width=0 height=0 name=\"8\" id=\"8\" src=\"priceguide.php\">Your browser is too old!</iframe></div>");
hide(8);
hide('box82');
}
if(el==1)
{
document.write("<div id=\"box81\"><div class=\"box\" align=\"center\"><a target=\"8\" onclick=\"javascript:show(8);hide('box81');show('box82')\" title=\"Price Guide\">Price Guide</a></div></div><div id=\"box82\"><div class=\"box\" align=\"center\"><a target=\"8\" onclick=\"javascript:hide(8);show('box81');hide('box82')\" title=\"Price Guide\">Price Guide</a></div></div><div id=\"8\"><iframe width=\"100%\" height=\"180\" frameborder=0 width=0 height=0 name=\"8\" id=\"8\" src=\"priceguide.php\">Your browser is too old!</iframe></div>");
hide('box81');
}
}
}


function statshow(el,lvl,xp,skill,rank)
{
document.write("<div class=\"lvl\" align=\"center\" onmouseout=\"javascript:clickstat(" + el + ")\" onmouseover=\"javascript:clickstat(" + el + ")\"><a>" + skill + " " + lvl + "</a></div><br><div class=\"stats\" id=\"" + el + "\"><b>" + skill + "</b> (" + lvl + ")<br>Exp: " + xp + "<br>Rank: " + rank + "</div>");
hide(el);
}
