
//END FLASH SCRIPT
//Flash Tag Writer
function FlashObj(swf,width,height,background,version,id,vars){
	if(background == "" || background == null) background = document.bgColor;
	if(version == "" || version == null) version = "6";
	if(id == "" || id == null) id = "DOL";
	if(vars == "" || vars == null) vars = "test=true"
	this.swf = swf;
	this.version = version;
	this.width = width;
	this.height = height;
	this.id = id;
	this.render = WriteFlash;
	this.background = background;
	this.flash_var = vars;
	

}
function WriteFlash(arg,ob_override){
	if(arg) isSecure = true;
	else isSecure = false;
	flashAr = new Array()
	if(hasActiveX == true){
		if(!ob_override)ob_pram = "<PARAM NAME='wmode' VALUE='Opaque'>";
		else ob_pram = "";
		if(isSecure){
			flashAr[0] = "<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+ this.version + ",0,0,0'";
		}
		else{
			flashAr[0] = "<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'";
		}	
	
		flashAr[1] ="WIDTH='" + this.width + "' HEIGHT='" + this.height + "' id='" + this.id + "' ALIGN=''>";
		flashAr[2] = "<PARAM NAME=movie VALUE= '"+this.swf+"'> <PARAM NAME=quality VALUE=high><PARAM NAME = menu VALUE=false> <PARAM NAME=bgcolor VALUE=" + this.background + ">";
		flashAr[3] = "<PARAM NAME =FlashVars VALUE="+this.flash_var+">"+ob_pram+" </OBJECT>";
	}
	else{
		// netscape
		flashAr[0] = "<EMBED src='" + this.swf + "' quality=high bgcolor=" + this.background;
		flashAr[1] = " WIDTH=' " + this.width + "' HEIGHT='" + this.height + "' NAME='" + this.id + "' ALIGN=''menu=false FlashVars="+this.flash_var;
		flashAr[2] = " TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED>";
	}
	for(i=0;i<flashAr.length;i++){
		document.write(flashAr[i])
	}
}


function GetActiveX(){
	hasActiveX=(this.d_appName.indexOf("Microsoft") != -1 && this.d_platForm.indexOf("Win") != -1)?true:false;

}
d_appName = navigator.appName;
d_appVersion = navigator.appVersion
d_platForm = navigator.platform
GetActiveX()
