// JavaScript Document
function getSize() {
  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;
  }
  return [ myWidth, myHeight ];
}

function placeFlash() {
	var sz = getSize();
	var left = (sz[0] - 859)/2;
	if( navigator.userAgent.indexOf("Opera")>-1 ) { 
		//document.getElementById('flash').style.left = left + 23 + 'px';
		document.getElementById('layer').style.left = left + 23 + 'px';
		
			} else {
			
				if( typeof( window.innerWidth ) == 'number' ) {
				//document.getElementById('flash').style.left = left + 22 + 'px';
				document.getElementById('layer').style.left = left + 22 + 'px';

			} else {
						//document.getElementById('flash').style.left = left + 31 + 'px';
						document.getElementById('layer').style.left = left + 31 + 'px';
					}
			}	
}