// writes flash object to page
//
// arguments:
//
// url - relative url of SWF from directory that the page calling the SWF is in
// height - height of movie
// width - width of movie
// transparency - set to 1 to allow flash to layer over/under other page elements, set to 0
// to turn layering off

function createFlash(url, width, height, transparency){

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width +'" height="'+ height +'"><param name="movie" value="'+ url +'" /><param name="quality" value="high" />');

if(transparency == 1){
document.write('<param name="WMODE" value="transparent" />');
}

document.write('<embed src="'+ url +'" quality="high"');

if(transparency == 1){
document.write('wmode="transparent"');
}

document.write('pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ width +'" height="'+ height +'"></embed></object>');
} 
