<!--
//Globals.
var ie4up;
var ns4up;
//JJS added Mac/IE5 check on 04/14/2000 - turnoff rollover on IE5 w/Mac
var is_mac;
var is_ie5;
loadinit();
function browserCheck(){
    var agt=navigator.userAgent.toLowerCase();
    var is_major = parseInt(navigator.appVersion);
    var is_minor = parseFloat(navigator.appVersion);
    is_mac    = (agt.indexOf("mac")!=-1);
    var is_ie   = (agt.indexOf("msie") != -1);
    is_ie5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
	ie4up = (document.all) ? true:false;
	ns4up = (document.layers) ? true:false;
}
function loadinit(){
	var irdmIMage;
	//Preload images into the browser cache and set random images.
	browserCheck();
	preloadimage('park_off','images/park_off.gif');
	preloadimage('park_on','images/park_on.gif');
	rollText = new Array();
	// 1. Apply online
	rollText[0] = '<font face="arial, helvetica" size="1" color="#ff7a2b">Park your resume with one of our staffing consultants - we will get back to you as soon as we find a match.</b></font>';

	//Random Number generator - rotating images
	irdmImage = Math.round((Math.random() * 5) +1);
	preloadimage('leftImageCached','/images/hp_bl' + irdmImage + '.gif');
	preloadimage('rightImageCached','/images/hp_tr' + irdmImage + '.gif');
}
function preloadimage(imgObj, imgSrc){
	//imgObj is the name of the object associated with the image.
	//imgSrc is the source url of the image.
	eval(imgObj+' = new Image()');
	eval(imgObj+'.src = "'+imgSrc+'"');
}
function showRoll(iIndex, imgName, imgObj){
	//DHTML show text and rollover image.
	if (is_mac && is_ie5){
		//Turn off rollovers on Mac/IE5
		return;
	}
    if (document.images){
	    if (ie4up){
			document.all['rollover'].style.visibility = 'visible';
			document.all['rollover'].style.filter = "alpha(opacity=00)"
			document.all['msg'].innerHTML=rollText[iIndex];
			document.all['msg'].style.visibility = 'visible';
		}
		if (ns4up){
			document.rollover.visibility='show';
			document.rollover.zindex=10;
			document.nstext.visibility='show';
			document.nstext.zindex=20;
			document.nstext.document.write(rollText[iIndex]);
			document.nstext.document.close();
		}
		document.images[imgName].src = eval(imgObj+".src");
    }
}
function hideRoll(imgName,imgObj){
	//DHTML hidetext and rollover image.
	if (is_mac && is_ie5){
		//Turn off rollovers on Mac/IE5
		return;
	}
	if (document.images){
		if (ie4up){
			document.all['rollover'].style.visibility = 'hidden';
			document.all['msg'].innerHTML="";
			document.all['msg'].style.visibility = 'hidden';
		}
		if (ns4up){
			document.rollover.visibility='hide';
			document.nstext.visibility='hide';
		}
		document.images[imgName].src = eval(imgObj+".src");
	}
}
function displayRandomImages(){
	//Display random rotating images from cached copy.
	document.leftImage.src = eval('leftImageCached.src');
	document.rightImage.src = eval('rightImageCached.src');
}
function popup(wurl, wname){
	window.open(wurl,wname,'width=640,height=480,menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,status=yes,location=yes');
	return;
}

function clearmsg(){
	top.status='';
	return;
}

function displaymsg(wname){
	top.status='View the ' + wname + ' page (opens in a new window)';
	return;
}
//-->


