// JavaScript Document

function statePopup(strFileName, bScrollBars) {
	// strFileName is the root-relative path of the popup

	var strParameters = "toolbar=no, location=no, status=no, menubar=no, scrollbars=no, resizable=no, width=402, height=320";

	if (bScrollBars == true) {
		strParameters = "toolbar=no, location=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=422, height=320";
	}

	window.open(strFileName,'statePopup', strParameters);
}



// *****************************************************************************
// these are the user defined globals.

// minimum version user needs to view flash (2 - 9)
	var requiredVersion = 6;
// flag indicating whether to load a new page or embed flash based on detection results
	// true loads a new page, false to embed
	var useRedirect = false;

// Only set if useRedirect is true
	// location of the flash movie page
	var flashPage = "";
	// page displayed if the user doesn't have the plugin or it can't be detected
	var noFlashPage = "";
	// page displayed if an old plugin is detected
	var upgradePage = "";
// *****************************************************************************


// In this section we set up the content to be placed dynamically on the page.
// Customize movie tags and alternate html content below.
function StateFlash(stateLanding) {
	if (!useRedirect) {    // if dynamic embedding is turned on
		if(hasRightVersion) {  // if we've detected an acceptable version
			var oeTags = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="295" height="126" id="state_landing_page">'
			+ '<param name="allowScriptAccess" value="sameDomain" />'
		+ '<param name="movie" value="images/header_flash.swf" />'
		+ '<param name="quality" value="high" />'
			+ '<param name="bgcolor" value="#FFFFFF" />'
			+ '<embed src="images/header_flash.swf" quality="high" bgcolor="#FFFFFF" width="295" height="126" name="state_landing_page" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'
			+ '<\/embed>'
			+ '<\/object>';
	
			document.write(oeTags);   // embed the flash movie
		} else {  // flash is too old or we can't detect the plugin
			// NOTE: height, width are required!
			var alternateContent = '<img src="images/header_photo.jpg" width="295" height="126" alt="' + stateLanding + '"/>';
	
			document.write(alternateContent);  // insert non-flash content
		}
	}
}
//NH1635405092007*/
function swapPage(targ,selObj,restore) {
selObj = document.forms[0].quickLinkage.options[document.forms[0].quickLinkage.selectedIndex].value;
 eval(targ+".location='"+selObj+"'");
	if (restore) {
	  selObj.selectedIndex=0;
	}
}
