if(document.images){
	img1on=new Image();
	img1on.src="images/btn_home_on.gif";
	img2on=new Image();
	img2on.src="images/btn_biography_on.gif";
	img3on=new Image();
	img3on.src="images/btn_sounds_on.gif";
	img4on=new Image();
	img4on.src="images/btn_tour_dates_on.gif";
	img5on=new Image();
	img5on.src="images/btn_reviews_on.gif";
	img6on=new Image();
	img6on.src="images/btn_discography_on.gif";
	img7on=new Image();
	img7on.src="images/btn_contact_on.gif";
	img8on=new Image();
	img8on.src="images/btn_photo_gallery_on.gif";
	
	img1off=new Image();
	img1off.src="images/btn_home_off.gif";
	img2off=new Image();
	img2off.src="images/btn_biography_off.gif";
	img3off=new Image();
	img3off.src="images/btn_sounds_off.gif";
	img4off=new Image();
	img4off.src="images/btn_tour_dates_off.gif";
	img5off=new Image();
	img5off.src="images/btn_reviews_off.gif";
	img6off=new Image();
	img6off.src="images/btn_discography_off.gif";
	img7off=new Image();
	img7off.src="images/btn_contact_off.gif";
	img8off=new Image();
	img8off.src="images/btn_photo_gallery_off.gif";
}

function imgOn(imgName){
	if(document.images){
		document[imgName].src=eval(imgName + "on.src");
	}
}

function imgOff(imgName){
	if(document.images){
		document[imgName].src=eval(imgName + "off.src");
	}
}

var menu = new Array();

var i=1; menu[i] = new Object();
menu[i].name = 'HOME'; 
menu[i].url = 'home.html';
menu[i].img = 'btn_home';

i++; menu[i] = new Object();
menu[i].name = 'BIOGRAPHY'; 
menu[i].url = 'biography.html';
menu[i].img = 'btn_biography';

i++; menu[i] = new Object();
menu[i].name = 'SOUNDS'; 
menu[i].url = 'sounds.html';
menu[i].img = 'btn_sounds';

i++; menu[i] = new Object();
menu[i].name = 'TOUR DATES'; 
menu[i].url = 'tour_dates.html';
menu[i].img = 'btn_tour_dates';

i++; menu[i] = new Object();
menu[i].name = 'REVIEWS'; 
menu[i].url = 'reviews.html';
menu[i].img = 'btn_reviews';

i++; menu[i] = new Object();
menu[i].name = 'DISCOGRAPHY'; 
menu[i].url = 'discography.html';
menu[i].img = 'btn_discography';

i++; menu[i] = new Object();
menu[i].name = 'CONTACT'; 
menu[i].url = 'contact_info.html';
menu[i].img = 'btn_contact';

i++; menu[i] = new Object();
menu[i].name = 'PHOTO GALLERY'; 
menu[i].url = 'photo_gallery.html';
menu[i].img = 'btn_photo_gallery';

function writeMenuText(sel)
{
	for (i=1; i < menu.length; i++) {
		document.write('<td nowrap>');	
		document.write('<font face="Arial,Helvetica,sans-serif" size="-1"><a href="'+ menu[i].url + '">' + menu[i].name + '</a></font>');
		document.write('</td>');
	}
}

function writeMenu(sel)
{
	document.write('<table border="0" cellspacing="0" cellpadding="0"><tr>');

	for (i=1; i < menu.length; i++) {
		state = '_on';	
		document.write('<td>');	
		
		if (sel != i) {
			document.write('<a href="' + menu[i].url + '" onMouseOver="imgOn(\'img' + i + '\')" onMouseOut="imgOff(\'img' + i + '\')">');
			state = '_off';
		}
	
		document.write('<img src="images/' + menu[i].img + state + '.gif" border=0 alt="' + menu[i].name + '" name="img' + i + '">');
		
		if (sel != i) {
			document.write('</a>')
		}
		document.write('</td>');
	}

	document.write('</tr></table>');	
}

function writeHeader(sel)
{
	document.write('<table width="100%" border="0" cellspacing="0" cellpadding="10" bgcolor="#000000">');
	document.write('<tr>');
	document.write('<td align="center"><img src="images/banner.jpg" border="0" alt=""></td>');	
	// document.write('<td align="right" valign="bottom"><font face="Arial" size="-1" color="#FFFFFF"><b>' + menu[sel].name + '</b></font></td>');
	document.write('<tr><td height="15"></td></tr>');
	document.write('</tr>');
	document.write('</table>');
}

function writeFooter(sel)
{
	document.write('<table>');
	document.write('<tr>');
	document.write('<td>');
	document.write('<div align="center">');
	document.write('<font face="Verdana, Helvetica, sans-serif" size="-1">');
	document.write('To contact Red Velvet Slide please email <a href="mailto:mailinglist@RedVelvetSlide.com">mailinglist@RedVelvetSlide.com</a>.');
	document.write('<br>');
	document.write('Copyright © 2001-2009 Red Velvet Slide and Magic Brew Productions');
	document.write('</font>');
	document.write('</div>');
	document.write('</td>');
	document.write('<td align="right">');
	document.write('<a href="contact_info.html"><img src="images/btn_mailing_list.gif" border="0" alt="" width="101" height="48"></a>');
	document.write('</td>');
	document.write('</tr>');
	document.write('</table>');
}	



				
				
				
