
var linkHome = "/pages/home";
var linkAbout = "/pages/about";
var linkSitemap = "/CrisisRes/sitemap/index.jsp";
var linkPrivacy = "/pages/privacy";
var linkContact = "/pages/contact";
var linkEmergency = "/pages/emergency";

fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=100           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=0            // The time delay before menus open on mouse over
_subOffsetTop=0              // Sub menu top offset
_subOffsetLeft=0            // Sub menu left offset


with(milonic=new menuname("Main Menu")){
style=menuTopStyle;
top=212;
left=16;
alwaysvisible=1;
orientation="vertical";
aI("text=CRISIS PREPARATION &amp; MANAGEMENT ARTICLES;url=/CrisisRes/crisisprep.jsp;");
aI("text=RESEARCH &amp; CASE STUDIES;url=/CrisisRes/research.jsp;");
aI("text=CRISIS GUIDES;url=/CrisisRes/crisisguides.jsp;");
aI("text=NEWS;url=/CrisisRes/news/index.jsp;");
aI("text=RESOURCES;showmenu=Resources;");
}

with(milonic=new menuname("Thought")){
style=menuStyle;
overflow="scroll";
aI("text=Research and Case Studies;url=/pages/thought/research;");
aI("text=Crisis Guides;url=/pages/thought/crisisguides;");
aI("text=Are you PRePARED?;url=/pages/thought/areyouprep;");
}

with(milonic=new menuname("Resources")){
style=menuStyle;
overflow="scroll";
aI("text=Web Sites;url=/CrisisRes/resources/sites.jsp;");
aI("text=Books;url=/CrisisRes/resources/books.jsp;");
}

drawMenus();

// Image rollover code
function makeArray() { 
	var args = makeArray.arguments;
    	for (var i = 0; i < args.length; i++) {	this[i] = args[i]; }
	this.length = args.length;
}
var imageNames = new makeArray(
		"hhome",
		"habout",
		"hsitemap",
		"hprivacy",
		"hcontactus"
);	
var imagePrefix = "/images/rollovers/";
var imageOnSuffix = "_on.gif";
var imageOffSuffix = "_off.gif";

if (document.images) {
	var i;
	var imagesOn = new Array();
	for ( i=0 ; i<imageNames.length ; i++ ) {
		imagesOn[i] = new Image();
		imagesOn[i].src = (imagePrefix + imageNames[i] + imageOnSuffix);
		
	}
}

function img_act(target) {
	if (document.images)
		document[target].src = (imagePrefix + target + imageOnSuffix);
}

function img_inact(target) {
	if (document.images)
		document[target].src = (imagePrefix + target + imageOffSuffix);
}

//Reformat the Date
function monthRename(themonth){
	monthName = "";

	if (themonth == "01"){
		monthName = "January";
	}
	if (themonth == "02"){
		monthName = "February";
	}
	if (themonth == "03"){
		monthName = "March";
	}
	if (themonth == "04"){
		monthName = "April";
	}
	if (themonth == "05"){
		monthName = "May";
	}
	if (themonth == "06"){
		monthName = "June";
	}
	if (themonth == "07"){
		monthName = "July";
	}
	if (themonth == "08"){
		monthName = "August";
	}
	if (themonth == "09"){
		monthName = "September";
	}
	if (themonth == "10"){
		monthName = "October";
	}
	if (themonth == "11"){
		monthName = "November";
	}
	if (themonth == "12"){
		monthName = "December";
	}
	document.write(monthName);
}

function dateFormat(theDate){
	var theYear = theDate.slice(2,4);
	var fullYear = theDate.slice(0,4);
	var theMonth = theDate.slice(4,6);
	var theDay = theDate.slice(6,8);
	
	if (theYear == ""){
		//do nothing
	}
	else {
		if (theDay == "00"){
			if (theMonth == "00"){
			document.write(fullYear);
			}
			else {
			monthRename(theMonth);
			document.write('&nbsp;' + fullYear);
			}	
		}
		if (theDate == "TBA"){
			document.write('TBA');
		}
		else if (theDay != "00"){
			document.write(theMonth + '/' + theDay + '/' + theYear);
		}
	}	
}			
//-->