  // JavaScript Document
function runFlash(file, width, height)
{
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="' + width + '" height="' + height + '" id="home" align="middle">\n');
document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
document.write('<param name="movie" value="' + file + '" />\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="wmode" value="transparent" />\n');
document.write('<param name="bgcolor" value="#ffffff" />\n');
document.write('<embed src="' + file + '" quality="high" wmode="transparent" width="' + width + '" height="' + height + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
document.write('</object>\n');
}
function showDetail(identity){
if(document.getElementById(identity).style.display == "block") {
document.getElementById(identity).style.display = "none";
} else {
document.getElementById(identity).style.display = "block"; 
}
}
function hideDetail(identity){
document.getElementById(identity).style.display = "none"; 
}

function showRightNavs(){
var urlValue  = location.href;
var regex = new RegExp(/(.*)\/(.*)\.asp/ );
var m = regex.exec(urlValue);
var pageName = m[2];
var matchId;
 if (document.getElementById(pageName)){
	matchId = document.getElementById(pageName);
	var IdType = document.getElementById(pageName).tagName;
	if (IdType == "LI"){
	matchId.parentNode.className= "expandedRightNav";
	matchId.parentNode.parentNode.className= "expandedRightNav";
	matchId.parentNode.parentNode.parentNode.className= "expandedRightNav";

	}else{
	matchId.className = "expandedRightNav";
	document.getElementById(pageName).parentNode.parentNode.className = "expandedRightNav";
	}
}
}
