function detectflash(){
	var flash = false;
	noautoinstall = ""

	if(navigator.appName == "Microsoft Internet Explorer" && 
		(navigator.appVersion.indexOf("Mac") != -1 || 
		 navigator.appVersion.indexOf("3.1") != -1)){
			noautoinstall = "true";
	}

	if (navigator.appName == "Microsoft Internet Explorer" &&
		 noautoinstall != "true"){
			flash = true;
	}
	else if(navigator.plugins){
		if(navigator.plugins["Shockwave Flash"]){
			flash = true;
		}
	}
	return flash;
}


function writeFlash(strFlashSource, intWidth, intHeight, strBgcolor, strAlternativePic, strAlternativeLink){
	if (detectflash())
	{
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + intWidth + '" height="' + intHeight + '" id="gardensoundtrack" align="middle" VIEWASTEXT>');
	    document.write('	<param name="allowScriptAccess" value="sameDomain" />');	
		document.write('	<param name="movie" value="' + strFlashSource + '" />');	
		document.write('	<param name="quality" value="best" />');	
		document.write('	<param name="bgcolor" value="' + strBgcolor + '" />');	
		document.write('	<embed src="' + strFlashSource + '" quality="best" bgcolor="' + strBgcolor + '" width="' + intWidth + '" height="' + intHeight + '" name="gardensoundtrack" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');	
		document.write('</object>');
	}
	else
	{
		document.write('<a href="' + strAlternativeLink + '"><img src="' + strAlternativePic + '" border="0"/></a>');
	}
}