function preload(imgName,imgSrc){
eval(imgSrc+"= new Image()");
eval(imgSrc+".src='"+imgName+"'");

}

preload('images/nav_btn_1_home.gif','img1');
preload('images/nav_btn_1_home_hl.gif','img1_hl');

preload('images/nav_btn_2_benefits.gif','img2');
preload('images/nav_btn_2_benefits_hl.gif','img2_hl');

preload('images/nav_btn_3_equine.gif','img3');
preload('images/nav_btn_3_equine_hl.gif','img3_hl');

preload('images/nav_btn_4_canine.gif','img4');
preload('images/nav_btn_4_canine_hl.gif','img4_hl');

preload('images/nav_btn_5_client.gif','img5');
preload('images/nav_btn_5_client_hl.gif','img5_hl');

preload('images/nav_btn_6_clinics.gif','img6');
preload('images/nav_btn_6_clinics_hl.gif','img6_hl');

preload('images/nav_btn_7_articles.gif','img7');
preload('images/nav_btn_7_articles_hl.gif','img7_hl');

preload('images/nav_btn_8_contact.gif','img8');
preload('images/nav_btn_8_contact_hl.gif','img8_hl');

preload('images/nav_btn_9_gifts.gif','img9');
preload('images/nav_btn_9_gifts_hl.gif','img9_hl');

function swap(theSlot,theSrc){
var theString="document."+theSlot+".src="+theSrc+".src";
eval(theString);
}

newWindow=false;


function helpWin(url){
if(!newWindow){
newWindow= window.open(url,"test","width=500,height=500,scrollbars=yes");
}
else if(newWindow && newWindow.closed){
newWindow= window.open(url,"test","width=500,height=500,scrollbars=yes");
}
else{

newWindow.focus();
}

}


function adminWin(url){
if(!newWindow){
newWindow= window.open(url,"test","width=500,height=380,scrollbars=yes");
}
else if(newWindow && newWindow.closed){
newWindow= window.open(url,"test","width=500,height=380,scrollbars=yes");
}
else{

newWindow.focus();
}

}


function popUp(mypage,myname,w,h,scroll){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;

	var settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	if (scroll == 2) {
		scroll = 0
		settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=false'
	}

	win = window.open(mypage,myname,settings)
}