/*
  flash_write function added by rsw 10/23/2006
*/


function FlashPost(adid, dest){
  var f = document.frmFlash;
  f.action = dest;
  f.addataid.value = adid;
  f.submit();
}

function writeFlashForm(){
  // the "action" of this form is blank
  // the function FlashPost() above currently REQUIRES a destination for the action
  // the action *could* always be clickthrough.asp, I believe...
  // because the http_referer is always passed through
  
  var txt = '<form name="frmFlash" method="post" action="">';
  txt += '<input type="hidden" name="addataid" value="">';
  txt += '</form>';
  //alert(txt);
  document.write(txt);
}

function flash_write(file, width, height) {
var txt = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ' +
               'width="'+width+'" ' +
               'height="'+height+'" ' +
               'id="movie" >' +
               '<param name="movie" value="'+file+'" />' +
               '<param name="wrmode" value="transparent" />' +
               '<param name="menu" value="false" />' +
               '<!--[if !IE]>' +
               '  <--> ' +
               '  <object type="application/x-shockwave-flash" data="'+file+'" width="'+width+'" height="'+height+'"></object>' +
               '  <!--> ' +
               '<![endif]-->' +
               '</object>';
//alert(txt);
document.write(txt);
}

writeFlashForm();

