// general rollover, layer and pop-up scripts.
// also, clickandpledge.com script at bottom!
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	//if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	//}
}

navImgPath = "/images/nav/";
function imgOver(imgName) { 
	if (!document.layers){
		if (document.all) document.all[imgName].src = navImgPath+imgName + "_over.gif"; 			
		else document.getElementById(imgName).src = navImgPath+imgName + "_over.gif"; 
	}
}

function imgOff(imgName) { 
	if (!document.layers){
		if (document.all) document.all[imgName].src = navImgPath+imgName + "_off.gif"; 			
		else document.getElementById(imgName).src = navImgPath+imgName + "_off.gif"; 
	}
}

if (document.layers) {
  visible = 'show';
  hidden = 'hide';
} else if (document.all||document.getElementById) {
  visible = 'visible';
  hidden = 'hidden';
}

function showLayer(id){
	if (!document.layers){
		if (document.all) document.all[id].style.visibility=visible;			
		else document.getElementById(id).style.visibility=visible;
	}
}

function hideLayer(id){
	if (!document.layers){
		if (document.all) document.all[id].style.visibility=hidden;			
		else document.getElementById(id).style.visibility=hidden;
	}
}

function pop(pagename) {
		window.open(pagename,'newwin','scrollbars=no,width=510,height=650,toolbar=no',false);
		return;
}

function popwide(pagename) {
		window.open(pagename,'newwin','scrollbars,width=525,height=650,toolbar=no',false);
		return;
}

function ChargeWindow(OrgID) {
	window.open('https://128bit.clickandpledge.com/Default.asp?ID='+OrgID,'ChargeWindow','toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width=720,height=600');
}
