/**************************************************** 
*    Center All: 
*        by Chris Poole 
*        http://chrispoole.com
* 
*        Keep this notice intact to use it :-) 
****************************************************/ 

var objID = new Array(); 
objID[0] = "parent"; 
function centerAll() { 
  var myWidth = 0, myHeight = 0;
  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;
  }
var pageX = myWidth-15;
var pageY = myHeight; 
var objRef = document.getElementById(objID[0]); 
var objW = objRef.offsetWidth; 
var objH = objRef.offsetHeight; 
objRef.style.margin = ((pageY/2)-(objH/2)-10)+"px 0 0 "+((pageX/2)-(objW/2))+"px"; 
} 
window.onresize=centerAll; 
