

function openContact(url,urlid) {
	window.open('http://www.safariclubfoundation.org/humanitarian/sah/r'+url+'wemail.asp?id='+urlid,'','width=600,height=400,left=40,top=20,screenx=40,screeny=20,toolbar=yes,statusbar=no,locationbar=no,location=no,status=no,scrollbars=yes,directories=no,menubar=yes,resizable=yes');
}



// ************************  TOP NAV FUNCTIONS

	// changes images, you can put multiple images as long as you use the (Image Name, Imange Path) format
	function changeImages () {
		var imgswitch = new Array();
		var i = 0;

		while (i<changeImages.arguments.length) {		
			eval('document.'+changeImages.arguments[i]+'.src = \"'+changeImages.arguments[i+1]+'\"');
			i = i+2;
		}
	}

	var theseimgs = new Array();
	theseimgs[0] = "http://www.safariclubfoundation.org/images/fp/about-roll.gif";
	theseimgs[1] = "http://www.safariclubfoundation.org/images/fp/conservation-roll.gif";
	theseimgs[2] = "http://www.safariclubfoundation.org/images/fp/education-roll.gif";
	theseimgs[3] = "http://www.safariclubfoundation.org/images/fp/humanitarian-roll.gif";
	theseimgs[4] = "http://www.safariclubfoundation.org/images/fp/fundraising-roll.gif";
	theseimgs[5] = "http://www.safariclubfoundation.org/images/fp/endowment-roll.gif";
	theseimgs[6] = "http://www.safariclubfoundation.org/images/fp/plannedgiving-roll.gif";
	theseimgs[7] = "http://www.safariclubfoundation.org/images/fp/sables-roll.gif";

	function preloadImages () {
		var imgs = new Array ();
		
		for (var i=0; i<theseimgs.length; i++) {
			imgs[i] = new Image();
			imgs[i].src = theseimgs[i];
		}
	}
	
	function browserParse (theid,thestyle,thechange) {
		if (document.all) {
			eval('document.all[\"'+theid+'\"].'+thestyle+' = \"'+thechange+'\"');
		}
		else if (document.getElementById) {
			eval('document.getElementById(\"'+theid+'\").'+thestyle+' = \"'+thechange+'\"');
		}
	}
	
	var thetimer;
	var timed = false;
	var opened;
	
	function changeMenus() {
		var argholder = changeMenus.arguments[0];
		
		if (changeMenus.arguments.length < 1) {
			closeAll();
		}

		else {
		
			browserParse('navdiv'+argholder,'style.visibility','visible');
			//browserParse('navcell'+argholder,'className','roll');
			eval('document.navimg'+argholder+'.src = \"'+theseimgs[argholder]+'\"');
				
			if (changeMenus.arguments.length > 1) {
				closeAllNow();
				changeMenus(argholder);
			}
		
			if (timed == true) {
				clearTimeout(thetimer);
			}
		}
	}
	
	function closeAll () {
		thetimer = setTimeout("closeAllNow()",1000);
		timed = true;
	}
	
	var thisimg;
	
	function closeAllNow () {
		for (var i=0; i<=7; i++) {
			browserParse('navdiv'+i,'style.visibility','hidden');
			//browserParse('navcell'+i,'className','reg');
			thisimg = theseimgs[i].split("-roll");
			thisimg = thisimg[0]+thisimg[1];
			eval('document.navimg'+i+'.src = \"'+thisimg+'\"');
		}
	}
	
	// END TOP NAV FUNCTIONS
	
	function openPictures () {
		var theurl = openPictures.arguments[0];
		var thesizes = openPictures.arguments[1].split("x");
		
		window.open(theurl,'','width='+thesizes[0]+',height='+thesizes[1]+',left=20,top=20,screenx=20,screeny=20,scrollbars=no,toolbar=yes,menubar=yes,directories=no,status=no,statusbar=no,location=no,titlebar=no,resizable=yes');
	}
	

