﻿function addFlash(flashFile, width, height, isSecure) {
	var protocol = "http://";
	if (isSecure) {
	    protocol = "https://";
	}
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="' +protocol +'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="' +width +'" height="' +height +'">\n');
    document.write('<param name=movie value="' +flashFile +'">\n');
    document.write('<param name=quality value=high />\n');
    document.write('<param name=wmode value=transparent />\n');
    document.write('<embed src="' +flashFile +'" quality=high pluginspage="' +protocol +'www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' +width +'" height="' +height +'">\n');
    document.write('</embed>\n');
    document.write('</object>\n');
}