//Flash Contruction System
//Written: 7/13/05
// Digicity Web Design Inc.- www.digicitywebdesign.com

var MM_contentVersion = 6;
var flashPlugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( flashPlugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i]))) //Checks if there is a number
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}

function flashMovie() {
	this.flashFile = "filename.swf";
	this.height = "500";
	this.width = "300";
	this.align = "left";
	this.quality = "high";
	this.bgcolor = "#FFFFFF";
	this.redirect = "http://www.macromedia.com/go/getflashplayer/";
	this.altFile = null;
	// alternate code to display if pluc-in is not installed
	this.altCode = null;
	// alternate code to display if pluc-in is not installed
    this.wMode = "opaque";
	this.LiveConnect = "false";
	this.menu = "false"
	this.scale = "showall";
	this.ID = "Digicity Web Design Inc.";
	this.quality = "high";
	this.deviceFont = "false";
	this.classID = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";
	this.downLoadLink = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
	this.create = writeFlashMovie;
	this.base = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0";
}


function writeFlashMovie(){
 if ( MM_FlashCanPlay ){
 
	display ='<OBJECT classid="' + this.classID+'" codebase="'+this.base+ '" ';
	display+='ID="'+this.ID+'" WIDTH="'+this.width+'" HEIGHT="'+this.height+'" ALIGN="'+this.align+'"\>';
	display+='<PARAM NAME="movie" VALUE="'+this.flashFile+'">';
	display+='<PARAM NAME="quality" VALUE="'+this.quality+'"\>';
    display+='<PARAM NAME="bgcolor" VALUE="'+this.bgcolor+'"\><PARAM NAME="menu" VALUE="'+this.menu+'"\>';
    display+='<PARAM NAME="wmode" VALUE="'+this.wMode+'">';
    display+='<PARAM NAME="bgcolor" VALUE="'+this.bgcolor+'"\><PARAM NAME="menu" VALUE="'+this.menu+'"\>';
	display+='<EMBED src="'+this.flashFile+'"';
	display+=' quality="'+this.quality+'" bgcolor="'+this.bgcolor;
	display+='" swLiveConnect="'+this.LiveConnect+'" WIDTH="'+this.width+'" HEIGHT="'+this.height+'" ALIGN="'+this.align;
	display+='" TYPE="application/x-shockwave-flash" PLUGINSPAGE="'+this.downLoadLink+'"\>';
	display+='</EMBED>';
	display+='</OBJECT>';
	
 }else {
 
  if ( !this.altFile ){
   display=this.altCode;
   
  }else {
    //display='<a href=' + this.downLoadLink + ' target="_blank"><img src=' + this.altFile + ' border="0"></a>';
	display='<img src=' + this.altFile + '>';
   //display=location.href= this.redirect;
  }
 }
return display;
}

