function divSwitch(thisClass,which,bgcolor) {
	bgcolor = '#' + bgcolor;
	// hide all div elements having class of thisClass
	var allElements = getElementsByClass(thisClass);
	for(i=0; i<allElements.length; i++){
		allElements[i].style.display = "none";
	}
	// display the selected element ("which")
	document.getElementById(which).style.display = "inline";
	document.getElementById('center_box').style.backgroundColor = bgcolor;
}

function getElementsByClass(searchClass,node,tag) {
	// only "searchClass" is required
	var classElements = new Array();
	if ( node == null )
		node = document;
	if ( tag == null )
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp('(^|\\\\s)'+searchClass+'(\\\\s|$)');
	for (i = 0, j = 0; i < elsLen; i++) {
		if ( pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}

function doFlashIntro()
	{
	   document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="633" height="360" id="splash_intro" align="middle">\n');
	   document.write('<param name="movie" value="flash/sunchase_index.swf" />\n');
	   document.write('<param name="quality" value="high" />\n');
	   document.write('<param name="loop" value="true" />\n');
	   document.write('<param name="wmode" value="transparent" />\n');
	   document.write('<embed src="flash/sunchase_index.swf" quality="high" width="633" height="360" name="splash_intro" loop="true" align="middle" allowScriptAccess="sameDomain"  wmode="transparent" type="application/x-shockwave-flash" />\n');
	   document.write('</object>\n');
	}

function popHelp(ID){
	var thisURL = "help.cfm?blobID=" + ID;
	popup = window.open(thisURL,"myWindow","height=400,width=400,left=100,top=20,scrollbars=yes,scrollable=yes,resizable=1");
	}