//Chaos Theory Flash Contruction System
//Written: 4/13/03
//Updated: 6/11/04
//Michael Callari - Amadeus Creative Solutions

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.altFile = null;
	this.redirect = null;
	this.LiveConnect = "false";
	this.menu = "false"
	this.scale = "showall";
	this.ID = "Chaos Theory";
	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+'"><PARAM NAME="quality" VALUE="'+this.quality+'"\>';
    display+='<PARAM NAME="bgcolor" VALUE="'+this.bgcolor+'"\><PARAM NAME="menu" VALUE="'+this.menu+'"\>';
	display+='<EMBED src="'+this.flashFile+'" 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='<img src=' + this.altFile + ' usemap=#mastMap border="0">';
        display+='<map name="mastMap">';
        display+='<area shape="rect" coords="273,24,360,42" href="profile.asp" alt="profile">';
        display+='<area shape="rect" coords="371,26,458,41" href="shows.asp" alt="shows">';
        display+='<area shape="rect" coords="465,26,556,41" href="music.asp" alt="music">';
        display+='<area shape="rect" coords="561,26,651,41" href="booking.asp" alt="booking">';
        display+='<area shape="rect" coords="655,27,744,41" href="gear.asp" alt="gear">';
        display+='<area shape="poly" coords="108,111,36,85,39,50,99,31,167,52,152,96" href="index.asp" alt="home">';
        display+='<area shape="rect" coords="4,143,194,275" href=' + this.downLoadLink + 'alt="download flash" target="_blank">';
        display+='</map>';
		} else {
            display=location.href=this.redirect;
            }
return display;
}


  
  
  
  
  
  

