/*
************************
TOP STATIC Modified by Maxmori.com
************************
*/


/**********by max *********/
var myWidth = 0, myHeight = 0; 
function Size() {
  
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
 
 //window.alert( 'Width = ' + myWidth  + ' &  Height = ' + myHeight + ' x_offset = '+ (myWidth-1024)/2);
 
}
/*************************/

//configure below variable for menu width, position on page
var menuwidth=1053
var offsetleft=155
var offsettop=0
var offsettop2=49

var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0

function makeStatic() {
if (ie4) {object1.style.pixelTop=document.body.scrollTop+offsettop;
//by max
object1.style.pixelLeft=(myWidth-1036)/2;
object2.style.pixelTop=document.body.scrollTop+offsettop2;
//by max
object2.style.pixelLeft=(myWidth-1015)/2;

}
else if (ns6) {document.getElementById("object1").style.top=window.pageYOffset+offsettop;
//by max
document.getElementById("object1").style.left= (myWidth-1056)/2; 
document.getElementById("object2").style.top=window.pageYOffset+offsettop2;
//by max
document.getElementById("object2").style.left= (myWidth-1020)/2;

}
else if (ns4) {eval(document.object1.top=eval(window.pageYOffset+offsettop));
//by max
eval(document.object1.left=eval((myWidth-1042)/2));
eval(document.object2.top=eval(window.pageYOffset+offsettop2));
//by max
eval(document.object2.left=eval((myWidth-1030)/2));
}

setTimeout("makeStatic()",0);
}




if (ie4||ns6) {document.write('<span  ID="object1" STYLE="Position:absolute; Top:0; Left:'+offsetleft+'; Z-Index:5;"><TABLE BORDER="0" width="'+menuwidth+'" CELLPADDING="0" CELLSPACING="0" >')}

else if (ns4){ document.write('<LAYER top="0" name="object1" left="'+offsetleft+'" ><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="'+menuwidth+'">')}