//this script places a flash file in the middle of the screen with a possible offset from
// the middle
function showBanner(flash_url,flash_width,flash_height,x_offset,y_offset) {
 var myWidth = 0;
 var 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;
  }
 //width of flash
 x = myWidth/2-flash_width/2+x_offset;
 y = myHeight/2-flash_height/2+y_offset;
 document.write('<div id="myflash" style="position:absolute;top:'+y+'px;left:'+x+'px;z-index:5000;width:'+flash_width+'px;height:'+flash_height+'px;"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
         +' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH="'+flash_width+'" HEIGHT="'+flash_height+'">'
         +' <PARAM NAME="movie" VALUE="'+flash_url+'"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#ffffff">  '
         +' <param NAME="wmode" Value=Transparent>'
         +' <EMBED src="'+flash_url+'" quality="high" bgcolor="#ffffff" wmode="transparent" WIDTH="'+flash_width+'" HEIGHT="'+flash_height+'" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT></div>'); 
         
}