//initialize headings
heading = new Array ("","welcome to our home page","contact","press & promo","calendar","music & lyrics","beetniks","cds & stuff","links");

//initialize lyrics snippets
lyric = new Array ("","there is a dream dreaming us","We cross the fields of play","A cell in the body of the rhythm unfolding in the kingdom of creation","we are made from the stars","From the light and the mystery","The light dancing in my soul is a reflection of you","homemade bedtime stories","we are sending you an invitation");

function writeBars(index){
//write the top bar
	parent.topbar.document.write("<html><head><meta http-equiv='content-type' content='text\/html;charset=iso-8859-1'><title>SB top center<\/title><base target='_self'><link rel='stylesheet' type='text/css' href='tbarStyles.css'><\/head>");
	parent.topbar.document.write("<body>");
	parent.topbar.document.write("<table border='0' cellpadding='0' cellspacing='0' width='100%' bgcolor='#f4e1c7'>");
	parent.topbar.document.write("<tr><td width='100%' bgcolor='#ffbb10'><img border='0' src='images\/shim.gif' width='1' height='3'><\/td><\/tr>");
	parent.topbar.document.write("<tr><td width='100%' align='center' class='message'>");
	parent.topbar.document.write(heading[index]);
	parent.topbar.document.write("<\/td><\/tr><\/table>");
	parent.topbar.document.write("<\/body><\/html>");
	parent.topbar.document.close();

//write the bottom bar
	parent.bottombar.document.write("<html><head><meta http-equiv='content-type' content='text\/html;charset=iso-8859-1'><title>SB bottom center<\/title><base target='_self'><\/head>");
	parent.bottombar.document.write("<body bgcolor='#79252f'>");
	parent.bottombar.document.write("<table border='0' cellpadding='0' cellspacing='0' width='100%' height='100%'>");
	parent.bottombar.document.write("<tr><td align='center'><font face='Arial,Helvetica' color='#ff9968' size='1'>");
	parent.bottombar.document.write(lyric[index]);
	parent.bottombar.document.write("<\/font><\/td><\/tr><\/table>");
	parent.bottombar.document.write("<\/body><\/html>");
	parent.bottombar.document.close();

}

<!--open a new window-->
function newWindow(filename){
	extWindow = window.open(filename,'extWin','width=350,height=300,resizable,toolbar,scrollbars');
}

var offSource = new Array("","images/home.gif","images/contact.gif","images/press.gif","images/calendar.gif","images/music.gif","images/beetniks.gif","images/cds.gif","images/links.gif");
var onSource = new Array("","images/homeover.gif","images/contactover.gif","images/pressover.gif","images/calendarover.gif","images/musicover.gif","images/beetniksover.gif","images/cdsover.gif","images/linksover.gif");

var mPicOff = new Array;
var mPicOn = new Array;

for(var i = 1;i < onSource.length-1;i++){
	mPicOff[i] = new Image;
	mPicOff[i].src = offSource[i];
	mPicOn[i] = new Image;
	mPicOn[i].src = onSource[i];
}


var menuTop = 45;
var menuLeft = 400;

var domSMenu = null;
var oldDomSMenu = null;
var t = 0;
var lDelay = 3;
var lCount = 0;
var pause = 100;

function turnOn(imgName,num){
	if(document.images && imgName){imgName.src = onSource[num]}
}

function turnOff(imgName,num){
	if(document.images && imgName){imgName.src = offSource[num]}
}

function popMenu(menuNum){
	if(isDHTML){
		t = 2;
		if(oldDomSMenu){
			oldDomSMenu.visibility = 'hidden';
			oldDomSMenu.zIndex = '0';
			t = 2;
			lCount = 0;
		}
		var idSMenu = 'menu' + menuNum;
		var domSMenu = findDOM(idSMenu,1);

		if(oldDomSMenu != domSMenu){
			domSMenu.visibility = 'visible';
			domSMenu.zIndex = '100';
			oldDomSMenu = domSMenu;
		}
		else {oldDomSMenu = null;}

	}
	else {return null;}

}

function delayHide(){
	if((oldDomSMenu) && (t == 0)){
		oldDomSMenu.visibility = 'hidden';
		oldDomSMenu.zIndex = '0';
		oldDomSMenu = null;
		lCount = 0;
		return false;
	}

	if(t == 2){lCount = 0; return false;}
	if (t == 1){
		lCount = lCount + 1;
		if(lDelay <= lCount){t = 0;}
		if(lDelay >= lCount){setTimeout('delayHide(' + t + ')',pause);}
	}

}

function frameUp(headPage,mainPage){
	document.write("<html>\n");
	document.write("<frameset rows='175,*' frameBorder='no' frameSpacing='0' border='0'>\n");
	document.write("<frame src='"+headPage+"' name='head' noresize scrolling='no'>\n");
	document.write("<frame src='"+mainPage+"' name='main' noresize>\n");
	document.write("</frameset>\n");
	document.write("<\/html>\n");
}
