function show(id){
  o=document.getElementById(id);
  v=document.getElementById('viewport');
  if(v){
    v.innerHTML=o.innerHTML;
    
    linkassoc=['desc','news','shots'];
    mgl=document.getElementById('maingamelinks');
    links=mgl.getElementsByTagName('A');
    items=mgl.getElementsByTagName('SPAN');
    for(i=0;i<3;i++){
      if( linkassoc[i]==id ){
        links[i].className=items[i].className="active";
      }else{
        links[i].className=items[i].className="";
      }
    }
    
    //for firefox... ;(
    if(!document.all){
      w=window.outerWidth;
      h=window.outerHeight;
      if(w>=screen.width){
        window.moveTo(0,0);
        window.resizeTo(screen.width,screen.height-29);
        window.resizeTo(screen.width+1,screen.height-30);
      } else {    
        window.resizeTo(w-1,h-1);
        window.resizeTo(w,h);
      }
    }
  }  
}

//copyright 2005 Dennis Hall, agilous.com
var timer=null;
function stop(){clearTimeout(timer)}

function start(){
t='desc';
l=window.location.toString();
z=l.indexOf('=')
if(z!=-1)t=l.substr( z+1 );
show(t);
clock();
}

function clock(){
var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
var d=new Date();
var day=d.getDate();
var mth=months[d.getMonth()];
var h=d.getHours();
var i=d.getMinutes();
var s=d.getSeconds();
if(i<10)i="0"+i;
if(s<10)s="0"+s;
document.getElementById('timestamp').innerHTML=mth+" "+day+", "+h+":"+i+":"+s;
timer=setTimeout("clock()",1000);
}
