var popups=false;
function checkPopups() {
	var cookie=getCookie('popped');
	if (cookie=='yes'){popups=true;}
	else if (cookie==''){
		popuptest = window.open(document.location.href, "popuptest", "width=1,height=1");
		if (popuptest) {document.cookie='popped=checkyes';popups=true;popuptest.close();}
		else {document.cookie='popped=checkno';}}}
function getCookie(Name) {
	var search = Name + '=';
	var returnvalue = '';
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search);
		if (offset != -1) {
			offset += search.length;
			end = document.cookie.indexOf(';', offset);
			if (end == -1){end = document.cookie.length;}
			returnvalue=unescape(document.cookie.substring(offset, end));}}
	return returnvalue;}
function showMember(n) {
	var m, v, a, p, o, r, c;
	if (n=='Esther Leauanae'){
		m = 'Nov 2001';
		v = 'Second Alto';
		a = '-';
		p = 'Aorere College Choir';
		o = '-';
		c = 'Currently on leave from the choir to complete music studies in Wellington.';
	}
	else if (n=='Kriss Rapana'){
		m = 'June 2001';
		v = 'Second Alto, Counter Tenor, Tenor, Bass';
		a = '-';
		p = 'Auckland Youth Choir';
		o = '-';
		c = '-';
	}
	else if (n=='Ilaisaane Tokelau'){
		m = 'Sept 2001';
		v = 'First Alto';
		a = '-';
		p = 'Aorere College Choir';
		o = '-';
		c = '-';
	}
	else {alert('Sorry, an error has occurred.  Please report this to the webmaster in the "Contact Us" Section.');}
	if (!popups) {
		var bName=navigator.appName;
		var bVer=parseInt(navigator.appVersion); 
		memberstring='<table width=208 height=250 cellspacing=2 cellpadding=0 align=center bgcolor="#999999"><tr><td><table width=204 height=100% cellspacing=2 cellpadding=2 align=center bgcolor="#cccccc"><tr><td><table width=200 height="100%" cellspacing=0 cellpadding=0 align=center bgcolor="#cccccc"><tr><td width=200 align=center><b>' + n + '</b></font><BR><img src="images/spacer.gif" width=1 height=7></td></tr><tr><td width=200 align=left><table width=75 height=75 border=0 cellspacing=2 cellpadding=2 align=left><tr align=left><td align=left><img src="images/members/' + n + '.jpg" width=80 height=80></td></tr></table><b>Member since: </b>' + m + '<br><b>Voice Part: </b>' + v + '<br><b>Also a member of: </b>' + a + '<br><b>Past member of: </b>' + p + '<br><b>Current Occupation: </b>' + o + '<br><b>Comments: </b>' + c + '<br><br></td></tr></table></td></tr></table></td></tr></table>';
		var memberobj=parent.document.getElementById? parent.document.getElementById("memberdiv"): parent.document.all.memberdiv;
		if ((bName == "Netscape" && bVer >= 4) || (bName == "Microsoft Internet Explorer" && bVer >= 4)){
			memberobj.innerHTML=memberstring;
		}
		else if (document.layers){
			parent.document.memberdiv.document.open();
			parent.document.memberdiv.document.write(memberstring);
			parent.document.memberdiv.close();
		}
		else {
			alert('Please turn off your pop-up blocker and re-load this page to view the members\' info.');
		}
	}
	else {
		memberpop=window.open('about:blank','','width=228,height=300,resizable');
		memberpop.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><meta http-equiv="Content-Language" content="en-nz"><TITLE>Choir Member: ' + n + '</TITLE><META http-equiv=Content-Type content="text/html; charset=windows-1252"><LINK href="images/gradz.css" type=text/css rel=stylesheet><script src="members.js" language="JavaScript" type="text/javascript"></script></HEAD><body><table width=95% height=100%= cellspacing=0 cellpadding=0 align="center"><tr><td width=250 align="center"><img src="images/spacer.gif" width=1 height=7><br><font size=2><b>' + n + '</b></font><BR><img src="images/spacer.gif" width=1 height=7></td></tr><tr><td width=250 align="left"><table width=75 height=75 cellspacing=2 cellpadding=2 align="left"><tr valign=center align=left><td align=left><img src="images/members/' + n + '.jpg" width=80 height=80></td></tr></table><b>Member since: </b>' + m + '<br><b>Voice Part: </b>' + v + '<br><b>Also a member of: </b>' + a + '<br><b>Past member of: </b>' + p + '<br><b>Current Occupation: </b>' + o + '<br><b>Comments: </b>' + c + '<br></td></tr><tr height="100%"><td width=250 align="center" valign=bottom><a href="javascript:closewin();">Close Window</a><br><img src="images/spacer.gif" width=1 height=7></td></tr></table></body></html>');
	}}
function closewin() {window.close();}