/* dottedloop.js Copyright (c) 2006 Dotted Loop Designs */

objects = document.getElementsByTagName("object");

for (var i = 0; i < objects.length; i++) {
	objects[i].outerHTML = objects[i].outerHTML;
	}
	
var FL_check = 0;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
	if (navigator.plugins && navigator.plugins["Shockwave Flash"]){
		FL_check = 1;
		}
	}
else if (navigator.userAgent && (navigator.userAgent.indexOf("MSIE")>=0)){
	if((navigator.userAgent.indexOf("Windows 95") != -1) || (navigator.userAgent.indexOf("Windows 98") != -1) || (navigator.userAgent.indexOf("Windows NT") != -1)) {
		with(document){
			writeln('<SCRIPT LANGUAGE=VBScript\>');
			writeln('on error resume next');
			writeln('FL_check = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash")))');
			writeln('<\/SCRIPT\>');
			}
		}
	else if((navigator.userAgent.indexOf("Mac") != -1) && (parseFloat(navigator.appVersion) >= 4)){
		FL_check = 1;
		}
	}

function FL_show(src, width, height, bg, wmode){
	document.writeln('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash/cabs/swflash.cab#version=5,0,0,0" ID=movie WIDTH='+width+' HEIGHT='+height+' ALIGN=top>');
	document.writeln('<PARAM NAME=movie VALUE="'+ src +'">');
	document.writeln('<PARAM NAME=loop VALUE=true>');
	document.writeln('<PARAM NAME=quality VALUE=high>');
	document.writeln('<PARAM NAME=menu VALUE=false>');
	if (wmode) document.writeln('<PARAM NAME=wmode value=transparent>');
	document.writeln('<PARAM NAME=bgcolor VALUE=#'+bg+'>');
	document.writeln('<EMBED SRC='+ src);
	document.writeln(' swLiveConnect=false ID=movie');
	document.writeln(' WIDTH='+ width +' HEIGHT='+ height +' ALIGN=top');
	document.writeln(' LOOP=true QUALITY=high MENU=false BGCOLOR=#'+bg);
	if (wmode) document.writeln(' WMODE=transparent');
	document.writeln(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
	document.writeln('</EMBED></OBJECT>');	
	}	
