function indexLoad() {
	promoPop();
	webTV();}
function webTV() {if (navigator.appName == 'WebTV') {window.location="http://www.graduatechoir.co.nz/webtv/index.htm"}}
function promoPop() {
	var cookie = getCookie('popped');
	if (cookie==''){
		pop();
		if (promopop) {document.cookie='popped=yes';}
		else {document.cookie='popped=checkno';//then display for popupblockers
		}}
	else if (cookie=='checkyes'){
		pop();
		document.cookie='popped=yes';}
	else if (cookie=='checkno'){
		//then popups are blocked
}}
function pop(){
	promopop=window.open('about:blank','','width=226,height=300,resizable');
	promopop.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><script src="index.js" language="JavaScript" type="text/javascript"></script><meta http-equiv="Content-Language" content="en-nz"><TITLE>The Graduate Choir</TITLE><LINK href="images/gradz.css" type="text/css" rel=stylesheet><META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD><body><table cellpadding=0 cellspacing=0 height="100% width="100%"><tr width="100%" height=4><td background="images/pop_top.gif"></td><td width=1 bgcolor="#eaeaea"></td><td width="100%" background="images/pop_top.gif"></td><td width=1 bgcolor="#eaeaea"></td><td background="images/pop_top.gif"></td></tr><tr width="100%" height="100%"><td><img src="images/spacer.gif" width=3></td><td width=1 bgcolor="#eaeaea"><img src="images/spacer.gif" class=spacer></td><td><table width="100%" height="100%" cellspacing=1 cellpadding=1><tr><td align=center valign=center><br>Welcome to The Graduate Choir\'s Website</i><br><br>--<br><br><b>The Graduate Choir\'s new CD, <i>\'Sing in Exultation!\'</i>, is now available!</b><br><a href="javascript:parentOpen(\'experience_cd.htm\')" class=nobold>Click for more info</a><br><br>--<br><br><b>Become a member of <i>The Graduate Choir Support Network</i> and receive advance notice of performances and news about the choir.</b><br><a href="javascript:parentOpen(\'contact_support.htm\')" class=nobold>Click for more info</a><br><br></td></tr></table></td><td width=1 bgcolor="#eaeaea"><img src="images/spacer.gif" class=spacer></td><td><img src="images/spacer.gif" width=3></td></tr><tr width="100%" height=4><td background="images/pop_bot.gif"></td><td width=1 bgcolor="#eaeaea"></td><td width="100%" background="images/pop_bot.gif"></td><td width=1 bgcolor="#eaeaea"></td><td background="images/pop_bot.gif"></td></tr></table></body></html>');}
	// old popup: <img src="images/easterpopup.jpg" border=0 width=226 height=300 usemap="#promo"><map name="promo"><area shape="poly" coords="0,0,226,0,226,282,190,282,190,300,0,300" href="javascript:parentOpen(\'events.htm\')" alt="Click for More Info" ><area shape="poly" coords="190,282,226,282,226,300,190,300" href="javascript:closewin()" alt="Close Window"></map>
function parentOpen(page){
	window.opener.location=page;
	closewin();}
function getCookie(Name) {
	var search = Name + '=';
	var returnvalue = '';
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search);
		if (offset != -1) { // if cookie exists
			offset += search.length; // set index of beginning of value
			end = document.cookie.indexOf(';', offset); // set index of end of cookie value
			if (end == -1){end = document.cookie.length;}
			returnvalue=unescape(document.cookie.substring(offset, end));}}
	return returnvalue;}
function closewin() {window.close();}

function randQuote(){
	var howMany = 10;  // max number of items listed below
	var quot = new Array(howMany+1);
	var auth = new Array(howMany+1);
//	quot[0]='<b>URGENTLY REQUIRED</b><br><br><i>Four</i> <b>TENOR</b> singers.<br>Singers should be able to sing at least a top G with confidence.<br>Music reading skills are desirable.<br><br>As well, there are vacancies for <i>three</i> <b>SECOND BASS</b> singers.<br>Singers should be able to sing at least a bottom D with confidence.<br>Music reading skills are desirable.<br>'
//	auth[0]=' '
	quot[0]='&quot;The Graduate Choir of Auckland...produce a rich and vibrant sound with enormous maturity and outstanding intonation, diction and ensemble and I can safely say that I have never heard anything like it in my life...&quot;';  //
	auth[0]='Janet Lincé, Mastersinger, Winter 2003';
	quot[1]='&quot;...They presented us with one of the finest examples of choral singing to be heard anywhere in the world...&quot;';  //
	auth[1]='Janet Lincé, Breve, November 2003';
	quot[2]='&quot;...Sheer technical and musical excellence... they redefine the word perfection before your very ears...&quot;'; //
	auth[2]='Heath Lees, The Listener, November 2002';
	quot[3]='&quot;The Graduate Choir... demonstrated real warmth and breadth of tone alongside consistently accurate intonation, superb diction in four languages, a total feeling of ensemble from start to finish and a true sense of musical integrity, giving each and every one of us a real thrill...&quot;'; //
	auth[3]='Janet Lincé, Breve, November 2003';
	quot[4]='&quot;Whilst they are renowned for their interpretation of the serious choral repertoire, they are appreciated for their versatility in delivering accessible crowd pleasers as well...&quot;'; //
	auth[4]='Concert FM, March 2005';
	quot[5]='&quot;Unique features are their blend of warm rich tone, their internationally representative status and outstanding calibre of musicianship...&quot;'; //
	auth[5]='Concert FM, March 2005';
	quot[6]='&quot;Conductor Terence Maskell is a magician. He knows how to focus his singers on a single line, catching just the right light, shade and nuance.&quot;'; //
	auth[6]='William Dart, NZ Herald, September 2005';
	quot[7]='&quot;Director Terence Maskell has shaped this into one of our most exciting smaller choirs.&quot;'; //
	auth[7]='Ian Dando, The Listener, April 2008';
	quot[8]='&quot;This is one of the very best choirs in New Zealand, of great strength and excellence both in its technical skills, musicality and interpretative insight.&quot;'; //
	auth[8]='Lindis Taylor, Dominion Post, October 2007';
	quot[9]='&quot;A national treasure.&quot;';
	auth[9]='Stuart Middleton, October 2007';
	quot[10]='&quot;The Graduate Choir... showed the careful grooming of director Terence Maskell in its sensitive phrasing and dynamic control and forthright way with a fugue.&quot;';
	auth[10]='William Dart, October 2008';

	quo = rndnumber(howMany);
	quox = '<i>' + quot[quo] + '</i><div align=right class=small>' + auth[quo] + '</div><br><bR><br>';
	document.write(quox);
}

function rndnumber(howMany){
var randscript = -1;
while (randscript < 0 || randscript > howMany || isNaN(randscript)){
randscript = parseInt(Math.random()*(howMany+1));
}
return randscript;
}
