if (document.images) {
//TOP NAV
hom_on = new Image();	hom_on.src = def_path+"images/event/roll/home_on.gif";
hom_off = new Image();	hom_off.src = def_path+"images/event/roll/home_off.gif";
cli_on = new Image();	cli_on.src = def_path+"images/event/roll/clientlist_on.gif";
cli_off = new Image();	cli_off.src = def_path+"images/event/roll/clientlist_off.gif";
tes_on = new Image();	tes_on.src = def_path+"images/event/roll/testimonials_on.gif";
tes_off = new Image();	tes_off.src = def_path+"images/event/roll/testimonials_off.gif";
con_on = new Image();	con_on.src = def_path+"images/event/roll/contact_on.gif";
con_off = new Image();	con_off.src = def_path+"images/event/roll/contact_off.gif";
//LEFT NAV
eve_on = new Image();	eve_on.src = def_path+"images/sec/roll/specialevents_on.gif";
eve_off = new Image();	eve_off.src = def_path+"images/sec/roll/specialevents_off.gif";
bar_on = new Image();	bar_on.src = def_path+"images/sec/roll/nightclubs_on.gif";
bar_off = new Image();	bar_off.src = def_path+"images/sec/roll/nightclubs_off.gif";
pat_on = new Image();	pat_on.src = def_path+"images/sec/roll/patrol_on.gif";
pat_off = new Image();	pat_off.src = def_path+"images/sec/roll/patrol_off.gif";
cou_on = new Image();	cou_on.src = def_path+"images/sec/roll/courier_on.gif";
cou_off = new Image();	cou_off.src = def_path+"images/sec/roll/courier_off.gif";
sec_on = new Image();	sec_on.src = def_path+"images/sec/roll/consulting_on.gif";
sec_off = new Image();	sec_off.src = def_path+"images/sec/roll/consulting_off.gif";
}

function swapem(sname,rname){
    sname.src = rname.src;
}
function id2elem(id) {
	if (typeof(id) != 'string') {
		return id;
	}
	if (document.getElementById) {
		id = document.getElementById(id);
	} else if (document.all) {
		id=document.all[id];
	} else {
		id = null;
	}
	return id;
}
function popup(url,width,height){
    nw = window.open(url,"newwindow","width="+width+",height="+height+",status=0,toolbar=0,menubar=0,scrollbars=1,resizable=1,location=0");
    nw.focus();
}

function checkForm(){
if (document.subscribeForm.elements['Email Address'].value.length > 0){
 return true;
 } 
else{
 alert('Please enter your email address.');
 document.subscribeForm.elements['Email Address'].focus();
 return false;
 }
}
