function includeFlashFD200(frameFile,elPath,movie,version,showMenu,w,h,bgColor,showDiv,altImgPath){
	var thisCloseButtPath= elPath+"/images/closeDiv.gif";
	var thisDiv = window.document.getElementById(showDiv);
	var popframeName = "popframe_"+showDiv;
	var movieFolderPath = movie.slice(0,movie.lastIndexOf("/")+1);
	var aHtml = elPath+"/flashDynamicShow.cfm?thisFullMoviePath="+movie;
	if(frameFile != '')
		aHtml = frameFile;
	thisDiv.style.display='';
	if(getFlashDetectVersion()== true){
		//get the FlashVariables and write m into a String
		if(window['jsArray'+showDiv][0].myname != ""){
			myFlashparams = '';
			for (i in window['jsArray'+showDiv]){
			 	if(window['jsArray'+showDiv][i].myname != ""){
				 	if(i > 0){
				 		myFlashparams = myFlashparams + "&";
			 		}
			 		//add param if not undefined
			 		if(window['jsArray'+showDiv][i].myname){
						myFlashparams = myFlashparams + window['jsArray'+showDiv][i].myname+ "=" + window['jsArray'+showDiv][i].myvalue;
					}
				}
	   	}
		 movie = movie + "?"+myFlashparams;
		 //document.write(movie);
		}
		//
		thisDiv.innerHTML="<iframe style=\"background-color:#"+bgColor+";\" frameborder=\"0\" scrolling=\"No\" hspace=\"0\" vspace=\"0\" align=\"left\" onLoad=\"javascript:writeMeFD200('"+popframeName+"','"+movie+"','"+version+"','"+showMenu+"','"+w+"','"+h+"','"+bgColor+"');\" id="+"\""+popframeName+"\" name="+"\""+popframeName+"\" src="+"\""+aHtml+"\" width="+w+"\" height="+h+"\"></iframe>";
		thisDiv.style.width = w;
		thisH = parseInt(h);
		thisDiv.style.height = thisH;
	}else{
		myNewHTML = "<div style=\"width:"+w+"px;height:16px;text-align:right;padding:0px 0px 0px 0px;background-color:"+bgColor+";\"><!---<a href=\"javascript:void(0);dropMe('"+showDiv+"');\"><img  src="+thisCloseButtPath+" alt=\"close me\" name=\"closer\" id=\"closer\" border=\"0\" align=\"middle\"\/></a>---></div>";
		myNewHTML += "<img  src="+altImgPath+" alt=\"Get FlashPlayer\" name=\"flashalt\" id=\"flashalt\" border=\"0\" align=\"middle\" />";
		thisDiv.innerHTML= myNewHTML;
		thisDiv.style.textAlign="center";	
		thisDiv.style.backgroundColor=bgColor;
	}
}
//
function writeMeFD200(popframeName,movie,version,showMenu,w,h,bgColor){
	var thisFrame= window.document.getElementById(popframeName);
	// thisFrame.contentWindow.document.body.innerHTML="<div id=\"img\" style=\"position: relativ; background-color:#"+bgColor+"; left:200px;  top:200px;\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version="+version+"\" width="+w+"\" height="+h+"\"><param name=\"menu\" value="+showMenu+"><param name=\"wmode\" value=\"transparent\" /><param name=\"movie\" value="+"\""+movie+"\"><param name=\"quality\" value=\"high\"><param name=\"bgcolor\" value=#"+bgColor+"\" /><embed src="+"\""+movie+"\" menu="+showMenu+" quality=\"high\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" type=\"application\/x-shockwave-flash\" wmode=\"transparent\" bgcolor=#"+bgColor+"\" width="+w+"\" height="+h+"\"><\/embed><\/object><\/div>";
	thisFrame.contentWindow.document.getElementById('flashDiv').innerHTML="<div id=\"img\" style=\"position: relativ; background-color:#"+bgColor+"; left:200px;  top:200px;\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version="+version+"\" width="+w+"\" height="+h+"\"><param name=\"menu\" value="+showMenu+"><param name=\"wmode\" value=\"transparent\" /><param name=\"movie\" value="+"\""+movie+"\"><param name=\"quality\" value=\"high\"><param name=\"bgcolor\" value=#"+bgColor+"\" /><embed src="+"\""+movie+"\" menu="+showMenu+" quality=\"high\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" type=\"application\/x-shockwave-flash\" wmode=\"transparent\" bgcolor=#"+bgColor+"\" width="+w+"\" height="+h+"\"><\/embed><\/object><\/div>";
}
//
function alertMe(){
	alert("I am here :-)");
}
//
function getFlashDetectVersion(){
  var FlashDetectPlayerVersion = new makeFlashDetectVersion(0,0,0);
	if(navigator.plugins && navigator.mimeTypes.length){
		var x = navigator.plugins["Shockwave Flash"];
		if(x && x.description) {
			FlashDetectPlayerVersion = new makeFlashDetectVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
			//alert(FlashDetectPlayerVersion);
		}
	}else if (window.ActiveXObject){
	   try {
   	   var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
   		FlashDetectPlayerVersion = new makeFlashDetectVersion(axo.GetVariable("$version").split(" ")[1].split(","));
	   } catch (e) {}
	}
	//
	if(FlashDetectPlayerVersion["major"]==0){
		return false;
	}else{
		return true;
	}
}
//
makeFlashDetectVersion = function(arrVersion){
	this.major = parseInt(arrVersion[0]) || 0;
	this.minor = parseInt(arrVersion[1]) || 0;
	this.rev = parseInt(arrVersion[2]) || 0;
}