//JAB 06/10/05 Functions for rollover in left nav

<!--

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		register_now_01_ImageMap_01_over = newImage("http://www.nrcsip.com/images/register_now_01-ImageMap_01.gif");
		preloadFlag = true;
	}
}

// -->

//JAB 06/10/05 Functions for store
var bV=parseInt(navigator.appVersion);
NS4=(document.layers) ? true : false;
IE4=((document.all)&&(bV>=4))?true:false;
hasDOM=(document.getElementById) ? true : false;

if (NS4) {
    with (document) {
        write('<table border="0" cellspacing="0" cellpadding="0">');
        write('<tr><td><img src="http://www.nrcsip.com/images/spacer.gif" width="1" height="104"></td></tr></table>');
    }
}

//JAB 06/10/05 Functions for left nav
function toggle( whichOne )
{
var theDiv, theStyle, theImg;
switch ( whichOne )
{

	default:
	{
		theImg = document.getElementById( "imgDegrees" );
		theStyle = theImg.src.indexOf( "_off" ) >= 0 ? "block" : "none";
		theDiv = document.getElementById( "divDegrees" );
		break;
	}
}
toggle2();
theDiv.style.display = theStyle;
theImg.src = ( theStyle == "block" ? theImg.src.replace( "_off", "_on" ) : theImg.src.replace( "_on", "_off" ) );
//alert(theImg.src);
}

function toggle2( )
{
var theDiv, theStyle, theImg;


theImg = document.getElementById( "imgDegrees" );
theStyle = theImg.src.indexOf( "off" ) >= 0 ? "block" : "none";
theDiv = document.getElementById( "divDegrees" );
if (theImg.src.indexOf( "off" )<0) {
	theDiv.style.display = theStyle;
	theImg.src = ( theStyle == "block" ? theImg.src.replace( "_off", "_on" ) : theImg.src.replace( "_on", "_off" ) );
}
//alert(theImg.src);

}



