//Centring functions
var IE = FF = false

if( document.all ) 
  IE = true

else if( document.getElementById ) 
  FF = true


function initialise() {
	
	// First, max browser
   self.moveTo(0,0)
   self.resizeTo(screen.availWidth,screen.availHeight)
   
   myObj=document.getElementById("vert").style

   // Then, test for IE5/mac, since it gives problems
   var agt = navigator.userAgent.toLowerCase()
   var appVer = navigator.appVersion.toLowerCase() 
   
   var is_mac = ( agt.indexOf("mac")!=-1 )
   var is_ie = ( appVer.indexOf("msie")!=-1 )
   if( !is_mac || !is_ie )
   {
     // Centre content
      
      rePos()
      setTimeout('vis()',0)
   }
   else
      vis()
} 

var h=850
var w=800

function rePos() {
   // compute center coordinate
   if(IE) {
     if( document.body.clientHeight == 850 ) {
     // IE 6
       yc = Math.round((document.documentElement.clientHeight/2)-(h/2))
       xc = Math.round((document.documentElement.clientWidth/2)-(w/2))
     }
     
     else {
     // IE 5
      yc = Math.round((document.body.clientHeight/2)-(h/2))
      xc = Math.round((document.body.clientWidth/2)-(w/2))
    }
  }

   else if(FF) {
      yc = Math.round((window.innerHeight/2)-(h/2))
      xc = Math.round((window.innerWidth/2)-(w/2))
  }

   if( xc < 0 )
      xc = 0;
 
   if( yc < 0 )
      yc = 0;


   // reposition div
   myObj.top = yc + "px"
   //myObj.left = xc + "px"

}

function vis()
{
   myObj.visibility = 'visible'

}