<!-- Hide from old browsers

/*
var y = 120;

function MoveLayerTo(Speed){
	var Direction;
	var Destination = getTop();
	if (Destination < 120){
		Destination = 120;
	}
	if ((Destination % Speed) != 0){
		//alert("(Destination % 3)=" + (Destination % 3));
		Destination = Destination - (Destination % Speed);
	}
	//alert(parseFloat(document.getElementById('main_menu').style.top));
    if (Destination > parseFloat(document.getElementById('main_menu').style.top)){
    	Direction = Speed;
    }
    else if (Destination < parseFloat(document.getElementById('main_menu').style.top)){
    	Direction = (-1 * Speed);
    }
    else{
    	Direction = 0;
    }
    y = y + Direction;
    
    document.getElementById('main_menu').style.top = y;
    
    if (y != Destination){
    	setTimeout("MoveLayerTo(" + Speed + ")",1)
    	//MoveLayerTo(Speed);
	}
}
*/
function Reposition(){
	//MoveLayerTo(8);
	if (((GetWindowWidth() - 770) / 2) < 0) {
			document.getElementById('main_menu').style.left = (2)
		}
		else{
				document.getElementById('main_menu').style.left = (GetWindowWidth() - 770) / 2;
			}

}

function getTop(){
  return document.documentElement.scrollTop
}

function GetWindowWidth() {
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth - 20;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }
  return myWidth
}

//window.onscroll=Reposition
// -->