<!--
var thePics;
var picsPreloaded = false;



//FUNCTIONS
function emailSignup(email) {
    document.forms[0].elements['email'].value = email;
    document.forms[0].submit();
}


function swap(name,state) {
    if(picsPreloaded==true && thePics[name+state]!=undefined && thePics[name+state].complete) {
        document.images[name].src = thePics[name+state].src;
    } else if(document.images[name]) {
		document.images[name].src = eval(name+state).src;
	}
}

function popOffsite(location) {
	var x=10;
	var y=10;
	var dx=650;
	var dy=450;

	if (isIE4) {
	    var w = window.open(location, '_blank');
	    return;
	}
	var w = window.open();
	w.document.writeln("<html><head></head>");
	w.document.writeln("<frameset border=0 rows=50,* frameborder=no framespacing=0>");
	w.document.writeln("<frame frameborder=no framespacing=0 marginheight=0 marginwidth=0 name=nav noresize scrolling=no src=\"PopOffsiteNav.htm\">");
	w.document.writeln("<frame frameborder=no framespacing=0 name=body noresize src=\"" + location + "\">");
	w.document.writeln("</frameset>");
	w.document.writeln("</html>");

	w.focus();
}

function popActivity(which) {
	var x=10;
	var y=10;
	var dx=590;
	var dy=413;

	var w = window.open('ActivityPop.jsp?act='+which, 'popup_act', 'width=' + dx + ',height=' + dy + ',status=no,resizable=yes,menubar=yes,location=no,scrollbars=yes,toolbar=no');
	w.focus();
}

function popNewsletter(which) {
	var x=10;
	var y=10;
	var dx=610;
	var dy=413;

	var w = window.open('newsletter/current.htm', 'popup_news', 'width=' + dx + ',height=' + dy + ',status=no,resizable=yes,menubar=yes,location=no,scrollbars=yes,toolbar=no');
	w.focus();
}

function popup(location) {
	var x=10;
	var y=10;
	var dx=590;
	var dy=480;

	var w = window.open(location, 'popup', 'width=' + dx + ',height=' + dy + ',status=no,resizable=yes,menubar=yes,location=no,scrollbars=yes,toolbar=no');
	w.focus();
}

function preloadPics(thePics) {
	if(thePics != undefined) {
		for (i=0;i<thePics.length;i++){
			thePics[thePics[i]] = new Image();
			thePics[thePics[i]].src = 'images/'+thePics[i]+'.gif';
			thePics[thePics[i]+'_over'] = new Image();
			thePics[thePics[i]+'_over'].src = 'images/'+thePics[i]+'_over.gif';
		}
	}
	picsPreloaded = true;
}

function moreAct() {
	if (opener) {
		opener.location = "Activities.htm";
		opener.focus();
	} else {
		var w = window.open('Activities.htm', '_blank');
		w.focus();
	}
	window.close();
}


//-->
