//all javascripts that are SITE SPECIFIC, and probably cannot be reused in other site, go in this file

//alert('site.js up');

function toggleVisible(togDiv, toggle){
	//alert('in toggleVisible');
	if(divObj=findObjectPath(togDiv)){
		//alert('ready to toggle');
		switch(toggle){
			case 1:
				divObj.style.visibility='visible';
				break;
				
			case 0:
				divObj.style.visibility='hidden';
				break;
		}
	}
}


function showIntro(){
	<!--
	// In this section we set up the content to be placed dynamically on the page.
	// Customize movie tags and alternate html content below.
	if(!useRedirect){
	  if(hasRightVersion){  // if we've detected an acceptable version
		//alert('inserting flash code')
		//var randomNum= Math.round(Math.random() * 99999);
		var oetags
		oetags=''
		oetags+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="667" height="307" id="index" align="left">'
		oetags+='<param name="allowScriptAccess" value="sameDomain" />'
		oetags+='<param name="movie" value="/swf/collage.swf" />'
		//oetags+='<param name="movie" value="/swf/collage.swf'+'?randomNum='+randomNum+'" />'
		oetags+='<param name="quality" value="high" />'
		oetags+='<param name="bgcolor" value="#FFFFFF" />'
		oetags+='<embed src="/swf/collage.swf" quality="high" bgcolor="#FFFFFF" width="667" height="307" name="index" align="left" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'
		//oetags+='<embed src="/swf/collage.swf'+'?randomNum='+randomNum+'" quality="high" bgcolor="#000000" width="700" height="500" name="site" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'
		oetags+='</object>'
		document.write(oetags); // embed the flash movie
	  }else{  // flash is too old or we can't detect the plugin
		//alert('inserting js code')	
		var jstags
		jstags='<img src="/images/noFlash.jpg" alt="" width="667" height="307" />';
		document.write(jstags); // insert non-flash content
	  }
	}
	// -->	
}


function showFlipbook(){
	<!--
	// In this section we set up the content to be placed dynamically on the page.
	// Customize movie tags and alternate html content below.
	if(!useRedirect){
	  if(hasRightVersion){  // if we've detected an acceptable version
		//alert('inserting flash code')
		var oetags;
		oetags='<div align="left" style="padding-top:5px;">'
		oetags+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="291" height="300" id="homepage" align="middle">'
		oetags+='<param name="allowScriptAccess" value="sameDomain" />'
		oetags+='<param name="movie" value="/swf/flipbook.swf" />'
		oetags+='<param name="FlashVars" value="datascript=flipbookData.php" />'
		oetags+='<param name="quality" value="high" />'
		oetags+='<param name="bgcolor" value="#FFFFFF" />'
		oetags+='<embed src="/swf/flipbook.swf" quality="high" FlashVars="datascript=flipbookData.php" bgcolor="#FFFFFF" width="291" height="300" name="bios" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'
		oetags+='</object></div>';
		document.write(oetags); // embed the flash movie 
	  }
	}
	// -->
}


function showScan(scanSWF){
	<!--
	// In this section we set up the content to be placed dynamically on the page.
	// Customize movie tags and alternate html content below.
	if(!useRedirect){
	  if(hasRightVersion){  // if we've detected an acceptable version
		//alert('inserting flash code')
		var oetags;
		oetags=''
		oetags+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="204" height="204" id="homepage" align="middle">'
		oetags+='<param name="allowScriptAccess" value="sameDomain" />'
		oetags+='<param name="movie" value="/swf/'+scanSWF+'.swf" />'
		oetags+='<param name="quality" value="high" />'
		oetags+='<param name="bgcolor" value="#000000" />'
		oetags+='<embed src="/swf/'+scanSWF+'.swf" quality="high" bgcolor="#000000" width="204" height="204" name="bios" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'
		oetags+='</object>';
		document.write(oetags); // embed the flash movie 
	  }
	}
	// -->
}