var theight = 100;	
var transtime = 4000;
var headerWidth = '100px' ;	
//var msgWidth = '380px';
//var headerWidth = '20%';
var msgWidth = '100%';
//var msgWidthNS = '370px';
var msgWidthNS = '100%';
borderw = 1;	
var pad_top = 5;	
var pad_top2 = 0;	
var pad_left = 8;	
var pad_left2 = 0;	
borderd = 'border-style:solid; border-width:1px; border-color:#141A3F;'; // Netscape Border	
var text_alignt = 'center'; //Message Text Alignment	
var text_alignh = 'center';	 //Header Text Alignment
var text_decort = 'none';	// Message Text Decoration
var text_decorh = 'none';	//Header Text Decoration
var msgTextSize = '8pt';
var hdrTextSize = '9pt';
var fstylet = 'normal';	
var fstyleh = 'normal';	
var fweightt = 'bold';	
var fweighth = 'bold';	
var fontn = 'Verdana';	
bgcol = '#F2E798';	//Background of Message
bgcolh = '#B31414'; // Background of Header	
txtcol = '#000000'; // Message Text Color
txthicol = '#B40000';
txtcolh = '#E9E9E9'; // Header Text Colors	
border_color_str='#141A3F';	

var news1 = "<font size='3'>Coming Soon:</font><br />Summer Class Schedule<br />Summer Intensive";

var news2 = "<font size='3'>New Classes Available</font><br />";
news2 = news2 + "Musical Theatre - Tuesdays - 4:00-5:00<br />";
news2 = news2 + "Creative Hip Hop - Thursdays - 3:00-4:00<br />";
news2 = news2 + "Register Now!!";
	  
var news3 = "<br />View City Place<br />Performance Pictures";

var news4 = "<font size='3'>Summer Camps</font><br />" ;
var news4 = news4 + 'June 21st - June 25th - "Moviemania" &bull; ' ;
var news4 = news4 + 'June 28th - July 2nd - "Disneymania"<br />' ;
var news4 = news4 + 'July 5th - July 9th - "So You Think You Can Dance" &bull; ' ;
var news4 = news4 + 'July 12th - July 16th - "Broadway Starz"<br />' ;

var text = new Array();
text[0] = news4;
text[1] = news1;
text[2] = news3;

var header = new Array();
header[0] = "";
header[1] = "";
header[2] = "";
header[3] = "";

var linka = new Array();
linka[0] = "summer_camp.html";
linka[1] = "";
linka[2] = "city_place_09.html";
<!--linka[2] = "docs/refer_a_friend_program.pdf";-->

var targa = new Array();
targa[0] = "_parent";
targa[1] = "_new";
targa[2] = "_parent";

<!-- targa[1] = "_parent"; -->

var divtext = new Array();	
var divh = new Array();	
var objst = new Array();	
var objs = new Array();	
var objsh = new Array();
var IE4B = false;
var NS4B = false;
var NS6B = false;
var OP5B = false;	
NS4B = ((document.layers)?true:false);	
IE4B = ((document.all)?true:false);	
NS6B = ((document.getElementById)&&(!IE4B))?true:false;	
uagent = window.navigator.userAgent.toLowerCase();
IE5 = false;
IE4 = false;
IEold = false;
IE5 = (uagent.indexOf('msie 5.0') != -1)?true:false;
IE4 = (uagent.indexOf('msie 4') != -1)?true:false;
if(IE5||IE4){IEold=true;}	
OP5B = (uagent.indexOf('opera') != -1)?true:false;	
if(OP5B == true){IE4B = false; NS6B = true;}	
if(NS6B == true){IE4B = false;}
var IEcompat = false;

if(IE4B){
	var scompat = document.compatMode;
	if(scompat != "BackCompat"){
		IE4B=false;
		NS6B=true;
		IEcompat=true;
	}
}	

var ns6obj = null;	
var str2='';	
var msgw,msgh;	// Width and Height variables for IE
var mc = 0;	
var say = 0,onceki = 0;	
//msgw = 360-120;
msgw = 360;	//Width of Message Div For IE
mc = text.length;	
onceki = mc-1;	
strpos = '';
strvis = '';
strpadding = '';
strpadding2 = '';
nsdiv = '';	
var nstheight = theight-borderw-borderw;	//Height of Message Div for Netscape
//var nst2width = (500-borderw-borderw) + "px" ;		// Width of Message div for Netscape
var nst2width = '99.8%' ;

if(IE4B) {
	strpos = 'position:absolute;';
	strvis = '';
	strpadding = 'padding-top:' + pad_top + 'px;padding-left:' + pad_left + 'px;';	
	strpadding2 = 'padding-top:' + pad_top2 + 'px;padding-left:' + pad_left2 + 'px;';
} else if(NS6B) {
	strpos='position:absolute;';	
	strvis='visibility:hidden;';	
	//strpadding = 'padding-top:' + pad_top + 'px;padding-left:' + pad_left + 'px;';
	strpadding = ""	
	//strpadding2 = 'padding-top:' + pad_top2 + 'px;padding-left:' + pad_left2 + 'px;';
	strpadding2 = ""
}

divtev1 = ' onmouseover="mdivmo(';
divtev2 = ')" onmouseout ="restime(';	
divtev3 = ')" onclick="butclick(';	
divtev4 = ')"';

for(i=0 ; i<mc ; i++ )
{		
	if(IE4B){
		divtext[i] = '<div id=d' + i + ' onmouseover="mdivmo(' + i + ')" '
		divtext[i] = divtext[i] + 'onmouseout ="restime(' + i + ')" '
		divtext[i] = divtext[i] + 'onclick="butclick(' + i + ')" '
		divtext[i] = divtext[i] + 'style="' + strpos + '' + strvis
		divtext[i] = divtext[i] + 'background:' + bgcol + '; '
		divtext[i] = divtext[i] + 'COLOR: ' + txtcol + '; '
		divtext[i] = divtext[i] + strpadding + ' ' 
		divtext[i] = divtext[i] + 'left:' + 0 + 'px; '
		divtext[i] = divtext[i] + 'top:0; '
		//divtext[i] = divtext[i] + 'width:' + (msgw-2*borderw-5) + 'px; '
		divtext[i] = divtext[i] + 'width:' + msgWidth + '; '
		divtext[i] = divtext[i] + 'height:' + (theight-2*borderw) + 'px; '
		divtext[i] = divtext[i] + 'FONT-FAMILY: ' + fontn + '; '
		divtext[i] = divtext[i] + 'FONT-SIZE: ' + msgTextSize + '; '
		divtext[i] = divtext[i] + 'font-style: ' + fstylet + '; '
		divtext[i] = divtext[i] + 'font-weight: ' + fweightt + '; '
		divtext[i] = divtext[i] + 'margin:0px; '
		divtext[i] = divtext[i] + 'TEXT-DECORATION: ' + text_decort + '; '
		divtext[i] = divtext[i] + 'overflow:hidden; '
		divtext[i] = divtext[i] + 'text-align:' + text_alignt + '; '
		divtext[i] = divtext[i] + 'cursor: default;">';			
		
		divh[i] = '<div id=dh' + i + ' '
		divh[i] = divh[i] + 'style="' + strpos + '' + strvis
		divh[i] = divh[i] + 'background:' + bgcolh + '; '
		divh[i] = divh[i] + 'COLOR: ' + txtcolh + '; '
		divh[i] = divh[i] + strpadding2 + ' '
		divh[i] = divh[i] + 'left:0px; '
		divh[i] = divh[i] + 'top:0; '
		divh[i] = divh[i] + 'width:' + headerWidth + '; '
		divh[i] = divh[i] + 'height:' + (theight-2*borderw) + 'px; '
		divh[i] = divh[i] + 'FONT-FAMILY: ' + fontn + '; '
		divh[i] = divh[i] + 'FONT-SIZE: ' + hdrTextSize + '; '
		divh[i] = divh[i] + 'font-style: ' + fstyleh + '; '
		divh[i] = divh[i] + 'font-weight: ' + fweighth + '; '
		divh[i] = divh[i] + 'TEXT-DECORATION: ' + text_decorh + '; '
		divh[i] = divh[i] + 'margin:0px; '
		divh[i] = divh[i] + 'overflow:hidden; '
		divh[i] = divh[i] + 'text-align:' + text_alignh + '; '
		divh[i] = divh[i] + 'cursor: default;">';		
	} else if(NS6B)	{
		divtext[i] = '<div id=d' + i +' onmouseover="mdivmo('+i+')" '
		divtext[i] = divtext[i] + 'onmouseout ="restime(' + i + ')" '
		divtext[i] = divtext[i] + 'onclick="butclick('+i+')"'
		divtext[i] = divtext[i] + ' style="' + strpos + '' + strvis
		divtext[i] = divtext[i] + 'background:' + bgcol + '; '
		divtext[i] = divtext[i] + 'COLOR: ' + txtcol + '; '
		divtext[i] = divtext[i] + strpadding
		divtext[i] = divtext[i] + ' left:0px; '
		divtext[i] = divtext[i] + 'top:0; '
		//divtext[i] = divtext[i] + 'width:' + (msgw-2*borderw-8-5) + 'px; '
		divtext[i] = divtext[i] + 'width:' + msgWidthNS + '; '
		divtext[i] = divtext[i] + 'height:' + nstheight + 'px; '
		divtext[i] = divtext[i] + 'FONT-FAMILY: ' + fontn + '; '
		divtext[i] = divtext[i] + 'FONT-SIZE: ' + msgTextSize + '; '
		divtext[i] = divtext[i] + 'font-style: ' + fstylet + '; '
		divtext[i] = divtext[i] + 'font-weight: ' + fweightt + '; '
		divtext[i] = divtext[i] + 'TEXT-DECORATION: ' + text_decort + '; '
		divtext[i] = divtext[i] + 'margin:0px; '
		divtext[i] = divtext[i] + 'overflow:hidden; '
		divtext[i] = divtext[i] + 'text-align:' + text_alignt + '; '
		divtext[i] = divtext[i] + 'cursor: default;">';			

		divh[i] = '<div id=dh' + i + ' '
		divh[i] = divh[i] + 'style="' + strpos + ''
		divh[i] = divh[i] + strvis + ' '
		divh[i] = divh[i] + 'background:' + bgcolh + '; '
		divh[i] = divh[i] + 'COLOR: ' + txtcolh + '; '
		divh[i] = divh[i] + strpadding2 + ' '
		divh[i] = divh[i] + 'left:0px; '
		divh[i] = divh[i] + 'top:0; '
		divh[i] = divh[i] + 'width:' + headerWidth + '; '
		divh[i] = divh[i] + 'height:' + nstheight + 'px; '
		divh[i] = divh[i] + 'FONT-FAMILY: ' + fontn + '; '
		divh[i] = divh[i] + 'FONT-SIZE: ' + hdrTextSize + '; '
		divh[i] = divh[i] + 'font-style: ' + fstyleh + '; '
		divh[i] = divh[i] + 'font-weight: ' + fweighth + '; '
		divh[i] = divh[i] + 'TEXT-DECORATION: ' + text_decorh + '; '
		divh[i] = divh[i] + 'margin:0px; '
		divh[i] = divh[i] + 'overflow:hidden; '
		divh[i] = divh[i] + 'text-align:' + text_alignh + '; '
		divh[i] = divh[i] + 'cursor: default;">';		
	}
}

function mdivmo(gnum) {	
	if(IE4B) {
		if(linka[gnum]!= '')	{
			objd = eval('d' + gnum);
			objd.style.color = txthicol;
			objd.style.cursor = 'hand';
			window.status = '' + linka[gnum];
		}
	} else if(NS6B) {
		if(linka[gnum]!= '') {
			objs[onceki].style.color = txthicol;
			objs[onceki].style.cursor = 'pointer';
			window.status = '' + linka[gnum];
		}
	}
}

function restime(gnum2){
	if(IE4B) {
		objd = eval('d' + gnum2);
		objd.style.color = txtcol;
		window.status = '';
	} else if(NS6B) {
		objs[onceki].style.color = txtcol;
		window.status = '';
	}
}

function butclick(gnum3){
	if(targa[gnum3] == ''){
		targa[gnum3] = '_parent';
	}
	if(IE4B) {
		window.open('' + linka[gnum3],'' + targa[gnum3]);
	} else if(NS6B) {
	  	if((targa[gnum3].indexOf("_parent")>-1)){
			eval("parent.window.location='"+linka[gnum3]+"'");
		} else if((targa[gnum3].indexOf("_top")>-1)){
			eval("top.window.location='"+linka[gnum3]+"'");			
		} else {
			window.open(''+linka[gnum3],''+targa[gnum3]);
		}	
	}
}

if(IE4B){
} else if(NS6B) {
	str2 = '';
	for(i=0 ; i < mc ; i++) {
		str2 = str2 + '<div id=op' + i + ' '
		str2 = str2 + 'style="position:absolute; '
		str2 = str2 + 'overflow:hidden;' + strvis + ' '
		str2 = str2 + 'left:0px; '
		str2 = str2 + 'top:0px; '
		str2 = str2 + 'width:' + nst2width + '; '
		str2 = str2 + 'height:' + nstheight + 'px; '
		str2 = str2 + strvis + borderd + '">';		
		//str2 = str2 + '' + divh[i] + header[i] + '</div>' + divtext[i] + '' + text[i] + '</div>';
		str2 = str2 +  divtext[i] + '' + text[i] + '</div>';		
		str2 = str2 + '</div>';	
	}
}

function dotrans(){	
	if(IE4B) {
		if( IEold != true ){
			spage.filters[0].apply();
		}
		spage.innerHTML = '' + divh[say] + header[say] + '</div>' + divtext[say] + text[say] + '</div>';			
		if( IEold!=true ) {
			spage.filters[0].play();
		}		
		//setTimeout('dotrans()',8000+transtime);
		setTimeout('dotrans()',transtime);	
	} else if(NS6B)	{
	  	if( say != onceki ){
			if( IEcompat == true ){
				spage.filters[0].apply();
			}		
			//objsh[say].style.visibility = 'visible';		
			//objsh[onceki].style.visibility = 'hidden';		
			objs[say].style.color = txtcol;		
			objs[say].style.visibility = 'visible';		
			objs[onceki].style.visibility = 'hidden';		
			objst[say].style.visibility = 'visible';		
			objst[onceki].style.visibility = 'hidden';
			if( IEcompat == true ){ spage.filters[0].play(); }
		}		
		onceki = say;		
		//setTimeout('dotrans()',8000);
		setTimeout('dotrans()',transtime);	
	}	
	say++;	
	if( say >= mc){ say = 0; }
}

function dofirst()	{		
	var i=0;		
	var str="";		
	for( i=0 ; i < mc ; i++ ) {			
		str = "d" + i;				
		objs[i] = document.getElementById(str);			
		objs[i].style.left = "" + 0 + "px";			
		objs[i].style.top = "0px";			
		objs[i].style.visibility = "hidden";			
		str = "dh"+i;				
		//objsh[i] = document.getElementById(str);			
		//objsh[i].style.left = "0px";			
		//objsh[i].style.top="0px";			
		//objsh[i].style.visibility = "hidden";			
		str="op" + i;				
		objst[i] = document.getElementById(str);			
		objst[i].style.left = "0px";			
		objst[i].style.top = "0px";			
		objst[i].style.visibility = "hidden";		
	}		
	objs[0].style.visibility = "visible";		
	//objsh[0].style.visibility = "visible";		
	objst[0].style.visibility = "visible";		
	dotrans();	
}

function initte() {
	if(IE4B) {
		spage.style.borderStyle = "solid";			
		spage.style.borderWidth = "" + borderw + "px";			
		spage.style.borderColor = border_color_str;			
		//spage.innerHTML = "" + divh[say] + header[say] + "</div>" + divtext[0] + text[0] + "</div>";
		spage.innerHTML = "" + divtext[0] + text[0] + "</div>";			
		say=1;
		if(say>=mc){say=0;}			
		setTimeout('dotrans()',transtime);
	} else if(NS6B)	{
		say = 0;			
		ns6obj = document.getElementById('spage');			
		ns6obj.innerHTML = str2;
		ns6obj.style.left = "0px";
		ns6obj.style.top = "0px";			
		setTimeout('dofirst()',transtime);		
	}	
}

window.onload=initte;
