var CNLVURL = "/";

// ****************************************
// Show and Hide a Combo Box
// ****************************************
var layerRef="null",styleSwitch="null";

function gup( name )
{  
	name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");  
	var regexS = "[\\?&]"+name+"=([^&#]*)";  
	var regex = new RegExp( regexS );  
	var results = regex.exec( window.location.href );  
	if( results == null )    
		return "";  
	else    
		return results[1];
}

function initShowHide(){

if (navigator.appName == "Netscape") {
 if(document.getElementById) {
	layerRef="document.getElementById('";
	styleSwitch="').style";
 }
 else if(document.layers) {
 	layerRef="document.layers['";
	styleSwitch="']";
 }
}
else{
	layerRef="document.all('";
	styleSwitch="').style";
	}
}

function showLayerOriginal(layerName2){  eval(layerRef+layerName2
+styleSwitch+'.visibility="visible"');
 }

function showFormFields(){  
	if (navigator.appName != "Netscape") {
		eval(layerRef+"IWantToCombo" +styleSwitch+'.visibility="visible"');
		eval(layerRef+"CommunityLinksCombo" +styleSwitch+'.visibility="visible"');
		if (document.title=="Community Calendar"){
			eval(layerRef+"MonthYear" +styleSwitch+'.visibility="visible"');
			eval(layerRef+"Departments" +styleSwitch+'.visibility="visible"');			
		}
		if (document.title=="Contact Us"){
			eval(layerRef+"PreferredContactMethod" +styleSwitch+'.visibility="visible"');
			eval(layerRef+"AreaOfInterest" +styleSwitch+'.visibility="visible"');
		}
		if (document.title=="Hometown Emergency Planner") {
			eval(layerRef+"Topic"+styleSwitch+'.visibility="visible"');
		}
	}
 }

function hideFormFields(){
		if (layerRef == 'null')
			layerRef="document.getElementById('";
		if (styleSwitch == 'null')
			styleSwitch="').style";		
		if (navigator.appName != "Netscape") {
			eval(layerRef+"IWantToCombo"+styleSwitch+'.visibility="hidden"');
			eval(layerRef+"CommunityLinksCombo"+styleSwitch+'.visibility="hidden"');
			if (document.title=="Community Calendar"){
				eval(layerRef+"MonthYear" +styleSwitch+'.visibility="hidden"');
				eval(layerRef+"Departments" +styleSwitch+'.visibility="hidden"');			
			}
			if (document.title=="Contact Us"){
				eval(layerRef+"PreferredContactMethod" +styleSwitch+'.visibility="hidden"');
				eval(layerRef+"AreaOfInterest" +styleSwitch+'.visibility="hidden"');
			}
			if (document.title=="Hometown Emergency Planner") {
				eval(layerRef+"Topic"+styleSwitch+'.visibility="hidden"');
			}
		}
		else if(parseInt(navigator.appVersion) == 4)
		{

		}
 }

		
// ****************************************
// Pop-up menus
// ****************************************
if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

HM_PG_MenuWidth = 150;
HM_PG_FontFamily = "Arial";
HM_PG_FontSize = 10;
HM_PG_FontBold = 1;
HM_PG_FontItalic = 0;
HM_PG_FontColor = "#3d5a9c";
HM_PG_FontColorOver = "white";
HM_PG_BGColor = "white";
HM_PG_BGColorOver = "#3d5a9c";
HM_PG_ItemPadding = 3;

HM_PG_BorderWidth = 2;
HM_PG_BorderColor = "#3d5a9c";
HM_PG_BorderStyle = "solid";
HM_PG_SeparatorSize = 2;
HM_PG_SeparatorColor = "#3d5a9c";

HM_PG_ImageSrc = "/Images/HM_More_blue_right.gif";
HM_PG_ImageSrcLeft = "/Images/HM_More_blue_left.gif";
HM_PG_ImageSrcOver = "/Images/HM_More_blue_right.gif";
HM_PG_ImageSrcLeftOver = "/Images/HM_More_blue_left.gif";

HM_PG_ImageSize = 5;
HM_PG_ImageHorizSpace = 0;
HM_PG_ImageVertSpace = 2;

HM_PG_KeepHilite = true; 
HM_PG_ClickStart = 0;
HM_PG_ClickKill = false;
HM_PG_ChildOverlap = 20;
HM_PG_ChildOffset = 10;
HM_PG_ChildPerCentOver = null;
HM_PG_TopSecondsVisible = .5;
HM_PG_StatusDisplayBuild =0;
HM_PG_StatusDisplayLink = 0;
HM_PG_UponDisplay = "hideFormFields();";
HM_PG_UponHide = "showFormFields();";
HM_PG_RightToLeft = false;

HM_PG_CreateTopOnly = 1;
HM_PG_ShowLinkCursor = 1;
HM_PG_NSFontOver = true;
