//alert("0");
function topnavroll( flag, num ) {
	var cell = document.getElementById("mainNav" + num );
	
	num_str = num + "";
		if ( num < 10 ) {
		num_str = "0" + num;
	}
	var subNavImage = document.getElementById("subNavBarImage" );
	subNavImage.src = "/images/nav/rolloverbar_" + num_str +  ".gif";
	
	if ( cell  ){
		
		//alert(num_str + " "+flag);
		if ( flag){
			
			cell.src = "/images/nav/nav_" + num_str + "_on.gif";
			changeObjectDisplay ( "subNavBar" , "block");
			
		}else{
			cell.src = "/images/nav/nav_" + num_str  + "_off.gif";
			changeObjectDisplay ( "subNavBar" , "none");
		}
	}
}

function topintroroll( flag ) {
	var cell = document.getElementById("mainIntro"  );
	
	
	if ( cell  ){
		
		//alert(num_str + " "+flag);
		if ( flag){
			
			cell.src = "/images/intro-rollover.gif";
			
			
		}else{
			cell.src = "/images/intro.gif";
			
		}
	}
}

function utilitynavroll( flag, num ) {

	var cell = document.getElementById("Header1_hlUtilityNav" + num );
	//alert("2");
	if ( cell  ){
	
		if ( flag){
			
			cell.className = "utility_nav_on";
			
		}else{
			cell.className = "utility_nav_off";
		}
	}
}
function getStyleObject(objectId) {
    // cross-browser function to get an object's style object given its id
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
} // getStyleObject

function changeObjectDisplay(objectId, newDisplay) {
    // get a reference to the cross-browser style object and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
	styleObject.display = newDisplay;
	return true;
    } else {
	// we couldn't find the object, so we can't change its visibility
	return false;
    }
} // changeObjectDisplay
