
   homeon = new Image();
   homeon.src = "_images/nav_home_f2.jpg";
   homeoff = new Image();
   homeoff.src = "_images/nav_home.jpg";
   
   practiceon = new Image();
   practiceon.src = "_images/nav_practice_f2.jpg";
   practiceoff = new Image();
   practiceoff.src = "_images/nav_practice.jpg";
   
   peopleon = new Image();
   peopleon.src = "_images/nav_ourpeople_f2.jpg"; 
   peopleoff = new Image();
   peopleoff.src = "_images/nav_ourpeople.jpg";
   
   abouton = new Image();
   abouton.src = "_images/nav_about_f2.jpg";
   aboutoff = new Image();
   aboutoff.src = "_images/nav_about.jpg";
   
   communityon = new Image();
   communityon.src = "_images/nav_community_f2.jpg"; 
   communityoff = new Image();
   communityoff.src = "_images/nav_community.jpg";
   
   resourceson = new Image();
   resourceson.src = "_images/nav_resources_f2.jpg"; 
   resourcesoff = new Image();
   resourcesoff.src = "_images/nav_resources.jpg";

   newson = new Image();
   newson.src = "_images/nav_news_f2.jpg"; 
   newsoff = new Image();
   newsoff.src = "_images/nav_news.jpg"; 

   contacton = new Image();
   contacton.src = "_images/nav_contact_f2.jpg";
   contactoff = new Image();
   contactoff.src = "_images/nav_contact.jpg";

   photopractice = new Image();
   photopractice.src = "images/photo_practice.jpg";
   
   photopeople = new Image();
   photopeople.src = "images/photo_people.jpg";
   
   photoabout = new Image();
   photoabout.src = "images/photo_about.jpg";
   
   photocommunity = new Image();
   photocommunity.src = "images/photo_community.jpg";
   
   photoresources = new Image();
   photoresources.src = "images/photo_resources.jpg";
   
   photonews = new Image();
   photonews.src = "images/photo_news.jpg";
   
   photocontact = new Image();
   photocontact.src = "images/photo_contact.jpg";
   
   //photolegal = new Image();
   //photolegal.src = "_images/photo_legal.jpg";
   
   photonotices = new Image();
   photonotices.src = "images/photo_notices.jpg";
   
   
function on(image) {
   if (parseInt(navigator.appVersion.substring(0,1))>=3) {
		document[image].src = eval(image + "on.src");
   }
}

function off(image) {
   if (parseInt(navigator.appVersion.substring(0,1))>=3) {
		document[image].src = eval(image + "off.src");
   }
}


function control(page_) {
 // if(document[page_]){
	  if (page_ == "home") {
    		document[page_].src = eval(page_+"on.src");
   			eval(page_+"off.src ="+page_+"on.src");
	  	  } else if (page_ == "notices") {
    		document.topPhoto.src = eval("photo"+page_+".src");
		  } else {
			document.topPhoto.src = eval("photo"+page_+".src");
    		document[page_].src = eval(page_+"on.src");
    		eval(page_+"off.src ="+page_+"on.src");
		  }
 	//}
}

function writeVar(page_) {
	document.write (page_);
}
/*
function setPhoto(page_) {
  if(document[page_]){
	document.topPhoto.src = eval("photo"+page_+".src");
  }
}
*/

function popup(url, name, winheight, winwidth, winscroll) {
	var popwin;
	var opts = "toolbar=no,status=no,location=no,menubar=no,resizable=no,height=" + winheight + ",width=" + winwidth + ",scrollbars=" + winscroll;
	popwin = window.open("", name, opts);
	popwin.focus();
	popwin.location = url;
	
}
