var Choice=1;
var oldChoice=1;

var Info=new Array(3);
Info[0]="mainpage";
Info[1]="whatsnew";
Info[2]="comingsoon";

function tabChoice(tab)
{

Choice=tab;

hideChoice();

switch (oldChoice)
           {
             case 0:
                         document.getElementById("mainpageOn").style.display="none";
                         document.getElementById("mainpageOff").style.display="block";
                         break;
             case 1:
                         document.getElementById("whatsnewOn").style.display="none";
                         document.getElementById("whatsnewOff").style.display="block";
                         break;
             case 2:
                         document.getElementById("comingsoonOn").style.display="none";
                         document.getElementById("comingsoonOff").style.display="block";
                         break;
}

switch (Choice)
           {
             case 0:
                         document.getElementById("mainpageOn").style.display="block";
                         document.getElementById("mainpageOff").style.display="none";
                         break;
             case 1:
                         document.getElementById("whatsnewOn").style.display="block";
                         document.getElementById("whatsnewOff").style.display="none";
                         break;
             case 2:
                         document.getElementById("comingsoonOn").style.display="block";
                         document.getElementById("comingsoonOff").style.display="none";
                         break;
}

showChoice();

oldChoice=Choice;

return;
}

function hideChoice()
{
document.getElementById(Info[oldChoice]).style.display="none";
return;
}


function showChoice(tab)
{
document.getElementById(Info[Choice]).style.display="block";
return;
}




