
home_on = new Image(35,297);
profile_on = new Image(33,297);
services_on = new Image(36,297);
plan_on = new Image(36,297);
trouble_on = new Image(35,297);
products_on = new Image(35,297);
employment_on = new Image(35,297);
request_on = new Image(35,297);
contact_on = new Image(36,297);

home_off = new Image(35,297);
profile_off = new Image(33,297);
services_off = new Image(36,297);
plan_off = new Image(36,297);
trouble_off = new Image(35,297);
products_off = new Image(35,297);
employment_off = new Image(35,297);
request_off = new Image(35,297);
contact_off = new Image(36,297);

home_on = "img/home_on.jpg";
profile_on = "img/profile_on.jpg";
services_on = "img/services_on.jpg";
plan_on = "img/plan_on.jpg";
trouble_on = "img/trouble_on.jpg";
products_on = "img/products_on.jpg";
employment_on = "img/employment_on.jpg";
request_on = "img/request_on.jpg";
contact_on = "img/contact_on.jpg";

home_off = "img/home.jpg";
profile_off = "img/profile.jpg";
services_off = "img/services.jpg";
plan_off = "img/plan.jpg";
trouble_off = "img/trouble.jpg";
products_off = "img/products.jpg";
employment_off = "img/employment.jpg";
request_off = "img/request.jpg";
contact_off = "img/contact.jpg";

//functions to swap img
function push(imgName) {
    if (document.images)
      document[imgName].src = eval(imgName + '_on');  
}
function release(imgName) {
  if (document.images)
    document[imgName].src = eval(imgName + '_off');  
}

function popwin(wname,name,h,w) {
	t=10;
	l=10;
	var url = name;
	window.name="pops";
	window.open(url,wname,'width='+w+',height='+h+',top='+t+',left='+l+',status=0,toolbar=0,resizable=0,scrollbars=0');
}

function popimg(type,name,h,w,alt,lpos,tpos) {
	newWindow = window.open("","newWindow","width="+w+",height="+h+",scrollbars=no,left="+lpos+",top="+tpos);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src=\"'+name+'\" width='+w+' height='+h+' alt=\"'+alt+'\">'); 	
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}
