// JavaScript Document
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];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		blue_newtop_01_over = newImage("images/blue-newtop_01-over.gif");
		blue_newtop_02_over = newImage("images/blue-newtop_02-over.gif");
		blue_newtop_03_over = newImage("images/blue-newtop_03-over.gif");
		blue_newtop_04_blue_newtop_03_over = newImage("images/blue-4b.gif");
		blue_newtop_04_over = newImage("images/blue-newtop_04-over.gif");
		blue_newtop_05_over = newImage("images/blue-newtop_05-over.gif");
		blue_newtop_06_over = newImage("images/blue-newtop_06-over.gif");
		blue_newtop_07_over = newImage("images/blue-newtop_07-over.gif");
		blue_newtop_08_blue_newtop_07_over = newImage("images/blue-newtop_08-blue-newtop_.gif");
		blue_newtop_08_over = newImage("images/blue-newtop_08-over.gif");
		blue_newtop_09_blue_newtop_08_over = newImage("images/blue-newtop_09-blue-newtop_.gif");
		blue_newtop_09_over = newImage("images/blue-newtop_09-over.gif");
		preloadFlag = true;
	}	
}

function writeMenuItems(){
document.write ("<TABLE WIDTH=630 BORDER=0 CELLPADDING=0 CELLSPACING=0 id='menu'><TR><TD>");
				
document.write("<A HREF='default.php' ONMOUSEOVER=\"changeImages('blue_newtop_01', 'images/blue-newtop_01-over.gif');\" ONMOUSEOUT=\"changeImages('blue_newtop_01', 'images/blue-newtop_01.gif');\"><IMG NAME='blue_newtop_01' SRC='images/blue-newtop_01.gif' BORDER=0 width='59' height='54'></A></TD><TD>");

document.write("<A HREF='schedule.php' ONMOUSEOVER=\"changeImages('blue_newtop_02', 'images/blue-newtop_02-over.gif');\"			ONMOUSEOUT=\"changeImages('blue_newtop_02', 'images/blue-newtop_02.gif');\"><IMG NAME='blue_newtop_02' SRC='images/blue-newtop_02.gif' BORDER=0 width='79' height='54'></A></TD><TD>");

document.write("<A HREF='performances.htm'	ONMOUSEOVER=\"changeImages('blue_newtop_03', 'images/blue-newtop_03-over.gif');\" ONMOUSEOUT=\"changeImages('blue_newtop_03', 'images/blue-newtop_03.gif'); \"><IMG NAME='blue_newtop_03' SRC='images/blue-newtop_03.gif' BORDER=0 width='54' height='54'></A></TD><TD>");


document.write("<A HREF='tickets.htm' ONMOUSEOVER=\"changeImages('blue_newtop_04', 'images/blue-4b.gif');\"	ONMOUSEOUT=\"changeImages('blue_newtop_04', 'images/blue-4a.gif');\">	<IMG NAME='blue_newtop_04' SRC='images/blue-4a.gif' BORDER=0 width='100' height='54'></A></TD><TD>");

document.write("<A HREF='artists.htm' ONMOUSEOVER=\"changeImages('blue_newtop_05', 'images/blue-newtop_05-over.gif');\" ONMOUSEOUT=\"changeImages('blue_newtop_05', 'images/blue-newtop_05.gif'); \"><IMG NAME='blue_newtop_05' SRC='images/blue-newtop_05.gif' BORDER=0 width='64' height='54'></A></TD><TD>");


document.write("<A HREF='news.htm' ONMOUSEOVER=\"changeImages('blue_newtop_06', 'images/blue-newtop_06-over.gif');\"	ONMOUSEOUT=\"changeImages('blue_newtop_06', 'images/blue-newtop_06.gif');\">	<IMG NAME='blue_newtop_06' SRC='images/blue-newtop_06.gif' BORDER=0 width='53' height='54'></A></TD><TD> ");

document.write("<A HREF='reviews.htm' ONMOUSEOVER=\"changeImages('blue_newtop_07', 'images/blue-newtop_07-over.gif');\"	ONMOUSEOUT=\"changeImages('blue_newtop_07', 'images/blue-newtop_07.gif');\">	<IMG NAME='blue_newtop_07' SRC='images/blue-newtop_07.gif' BORDER=0 width='71' height='54'></A></TD><TD>");

document.write("<A HREF='history.htm' ONMOUSEOVER=\"changeImages('blue_newtop_08', 'images/blue-newtop_08-over.gif'); \"	ONMOUSEOUT=\"changeImages('blue_newtop_08', 'images/blue-newtop_08.gif');\">	<IMG NAME='blue_newtop_08' SRC='images/blue-newtop_08.gif' BORDER=0 width='65' height='54'></A></TD><TD>");
																																																						 
document.write("<A HREF='contacts.htm' ONMOUSEOVER=\"changeImages('blue_newtop_09', 'images/blue-newtop_09-over.gif');\" ONMOUSEOUT=\"changeImages('blue_newtop_09', 'images/blue-newtop_09.gif');\"> <IMG NAME='blue_newtop_09' SRC='images/blue-newtop_09.gif' BORDER=0 width='85' height='54'></A></TD></TR></TABLE>");
}

function writeSideBox(){
document.write ("<div id=\"sidepanel\"><table width=\"176\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"35\"><img src=\"images/side_panel_top.gif\" width=\"176\" height=\"35\"/></td></tr><tr><td valign=\"top\" height=\"100%\" id=\"sidepanelcontent\">Concert reminders<br /><table><tr><td><img src=\"images/email.gif\"/></td><td><a href=\"http://visitor.constantcontact.com/email.jsp?m=1101978851793&p=oi\" target=\"_blank\">Sign-up now!</a></td></tr></table></td></tr><tr><td height=\"17\"><img src=\"images/side_panel_bottom.gif\" width=\"176\" height=\"17\"/></td></tr></table></div>");
}

function writeRandomQuote(){
var theQuotes = new Array();
var theAuthors = new Array();

theQuotes[0] = "One of Chicago's most vibrant, versatile and distinctive ensembles.";
theAuthors[0] = "John von Rhein, Chicago Tribune";

theQuotes[1] = "One of those outstanding chamber ensembles...that bring so much vitality to the city's music scene...Treat yourself, buy a ticket and go.";
theAuthors[1] = "Wynne Delacoma, Chicago Sun-Times";

theQuotes[2] = "The Orion Ensemble has ventured into both standard and newer repertoire with equal zeal.";
theAuthors[2] = "Michael Cameron, Chicago Tribune";

theQuotes[3] = "These gifted and enthusiastic artists are among the reasons why Chicago is undergoing a veritable chamber music renaissance.";
theAuthors[3] = "John von Rhein, Chicago Tribune";


theQuotes[4] = "Orion is...what chamber music should be all about: <br>Individual virtuosity melded into a group personality.";
theAuthors[4] = "Peter Schickele, composer";


var rn = Math.floor(Math.random() * theQuotes.length)
document.write(theQuotes[rn]+"<br>- "+theAuthors[rn])
}