var FlashDetect=new function(){var self=this;self.installed=false;self.raw="";self.major=-1;self.minor=-1;self.revision=-1;self.revisionStr="";var activeXDetectRules=[{"name":"ShockwaveFlash.ShockwaveFlash.7","version":function(obj){return getActiveXVersion(obj);}},{"name":"ShockwaveFlash.ShockwaveFlash.6","version":function(obj){var version="6,0,21";try{obj.AllowScriptAccess="always";version=getActiveXVersion(obj);}catch(err){}
return version;}},{"name":"ShockwaveFlash.ShockwaveFlash","version":function(obj){return getActiveXVersion(obj);}}];var getActiveXVersion=function(activeXObj){var version=-1;try{version=activeXObj.GetVariable("$version");}catch(err){}
return version;};var getActiveXObject=function(name){var obj=-1;try{obj=new ActiveXObject(name);}catch(err){obj={activeXError:true};}
return obj;};var parseActiveXVersion=function(str){var versionArray=str.split(",");return{"raw":str,"major":parseInt(versionArray[0].split(" ")[1],10),"minor":parseInt(versionArray[1],10),"revision":parseInt(versionArray[2],10),"revisionStr":versionArray[2]};};var parseStandardVersion=function(str){var descParts=str.split(/ +/);var majorMinor=descParts[2].split(/\./);var revisionStr=descParts[3];return{"raw":str,"major":parseInt(majorMinor[0],10),"minor":parseInt(majorMinor[1],10),"revisionStr":revisionStr,"revision":parseRevisionStrToInt(revisionStr)};};var parseRevisionStrToInt=function(str){return parseInt(str.replace(/[a-zA-Z]/g,""),10)||self.revision;};self.majorAtLeast=function(version){return self.major>=version;};self.minorAtLeast=function(version){return self.minor>=version;};self.revisionAtLeast=function(version){return self.revision>=version;};self.versionAtLeast=function(major){var properties=[self.major,self.minor,self.revision];var len=Math.min(properties.length,arguments.length);for(i=0;i<len;i++){if(properties[i]>=arguments[i]){if(i+1<len&&properties[i]==arguments[i]){continue;}else{return true;}}else{return false;}}};self.FlashDetect=function(){if(navigator.plugins&&navigator.plugins.length>0){var type='application/x-shockwave-flash';var mimeTypes=navigator.mimeTypes;if(mimeTypes&&mimeTypes[type]&&mimeTypes[type].enabledPlugin&&mimeTypes[type].enabledPlugin.description){var version=mimeTypes[type].enabledPlugin.description;var versionObj=parseStandardVersion(version);self.raw=versionObj.raw;self.major=versionObj.major;self.minor=versionObj.minor;self.revisionStr=versionObj.revisionStr;self.revision=versionObj.revision;self.installed=true;}}else if(navigator.appVersion.indexOf("Mac")==-1&&window.execScript){var version=-1;for(var i=0;i<activeXDetectRules.length&&version==-1;i++){var obj=getActiveXObject(activeXDetectRules[i].name);if(!obj.activeXError){self.installed=true;version=activeXDetectRules[i].version(obj);if(version!=-1){var versionObj=parseActiveXVersion(version);self.raw=versionObj.raw;self.major=versionObj.major;self.minor=versionObj.minor;self.revision=versionObj.revision;self.revisionStr=versionObj.revisionStr;}}}}}();};FlashDetect.JS_RELEASE="1.0.4";

function goToJumpLink(theJumpLink){
 	document.location = '#'+theJumpLink+'';
 	//scroll(0,0);
 }
 
function viewToPrint(thePagesID){ document.location='/view_to_print/index.php?pages_ID='+thePagesID; }

function printThisPage(){ window.print(); }

function insertQuickTimeVideo(thePath, theWidth, theHeight){
	theHeight=parseInt(theHeight)+15;
	document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="'+theWidth+'" height="'+theHeight+'">');
	document.write('	<param name="src" value="'+thePath+'">');
	document.write('	<param name="autoplay" value="false">');
	document.write('	<param name="controller" value="true">');
	document.write('	<param name="type" value="video/quicktime" height="256" width="320">');
	document.write('	<embed src="'+thePath+'" width="'+theWidth+'" height="'+theHeight+'" autoplay="false" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/">');
	document.write('</object>');
}

function insertFlashVideo(thePath, theWidth, theHeight){
	theHeight=parseInt(theHeight)+15;

	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+theWidth+'" height="'+theHeight+'" align="middle">');
	document.write('	<param name="allowScriptAccess" value="sameDomain" />');
	document.write('	<param name="movie" value="/common/flash/player.swf" />');
	document.write('	<param name="FlashVars" value="flvURL='+thePath+'&ControlPanelColor=0x174672&buttonColor=0x000000&ControlPanelPosition=0&showControlPanel=1&ShowtimeColor=0xffffff&bAutoPlay=0&bAutoRepeat=0&BufferTime=5&tmeColor=0xffffff&loaColor=0x666666&GroundColor=0x000000&conNum=5&bShowtime=1&startvolume=100" />');
	document.write('	<param name="quality" value="high" />');
	document.write('	<param name="bgcolor" value="#000000" />');
	document.write('	<param name="scale" value="noscale" />');
	document.write('	<param name="salign" value="lt" />');
	document.write('		<embed src="/common/flash/player.swf" width="'+theWidth+'" height="'+theHeight+'" align="middle" quality="high" bgcolor="#000000" scale="noscale" salign="lt" FlashVars="flvURL='+thePath+'&ControlPanelColor=0x174672&buttonColor=0x000000&ControlPanelPosition=0&showControlPanel=1&ShowtimeColor=0xffffff&bAutoPlay=0&bAutoRepeat=0&BufferTime=5&tmeColor=0xffffff&loaColor=0x666666&GroundColor=0x000000&conNum=5&bShowtime=1&startvolume=100" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function preloadComplete(){ 
	document.getElementById("loading_div").style.display="none"; 
	document.getElementById("main_container").style.visibility="visible"; 
}

function highlightLeftNavItem(the_ID){	
	document.getElementById("LINK_"+the_ID).style.color="#B75A4B";
}

function highlightTopNavItem(the_section, the_num){
	document.getElementById("L2NAV_"+the_num).src="/common/images/level_2_nav_images/section_"+the_section+"/"+the_num+"_on.gif";
}