// MENU ARRAY
var ixm = 0;
var arrMenu = new Array();

arrMenu[ixm] = new Array();
arrMenu[ixm]["Image"] = root + "Images/Buttons/Home.jpg";
arrMenu[ixm]["Link"] = root + "index.htm";
arrMenu[ixm]["Target"] = "_self"; ixm++;

arrMenu[ixm] = new Array();
arrMenu[ixm]["Image"] = root + "Images/Buttons/Music.jpg";
arrMenu[ixm]["Link"] = root + "Music.htm";
arrMenu[ixm]["Target"] = "_self"; ixm++;

/*
arrMenu[ixm] = new Array();
arrMenu[ixm]["Image"] = root + "Images/Buttons/Forum.jpg";
arrMenu[ixm]["Link"] = root + "Forum/";
arrMenu[ixm]["Target"] = "_self"; ixm++;
*/

arrMenu[ixm] = new Array();
arrMenu[ixm]["Image"] = root + "Images/Buttons/Images.jpg";
arrMenu[ixm]["Link"] = root + "Images.htm";
arrMenu[ixm]["Target"] = "_self"; ixm++;

arrMenu[ixm] = new Array();
arrMenu[ixm]["Image"] = root + "Images/Buttons/Links.jpg";
arrMenu[ixm]["Link"] = root + "Links.htm";
arrMenu[ixm]["Target"] = "_self"; ixm++;

arrMenu[ixm] = new Array();
arrMenu[ixm]["Image"] = root + "Images/Buttons/Contact.jpg";
arrMenu[ixm]["Link"] = root + "Contact.htm";
arrMenu[ixm]["Target"] = "_self"; ixm++;


// ----------------------------------------------------------------------------------------------------------------------------- \\
function setBg() {
	// set this to the total number of bg images.
	var imageCount = 25;
	
	var ix = Math.round(imageCount*Math.random());
	var Source = '';
	
	Source += '<body style="background-image: url(Images/Layout/BGs/' + ix + '.jpg);">';
	
	return Source;
}

function bldHead() {
	var Source = '';
	
	Source += '<link rel="stylesheet" type="text/css" href="Css/Main.css">';
	
	return Source;
}

function bldHeader() {
	var Source = '';
	
	Source += '<img src="Images/Layout/Spacer.gif" style="widt: 800px;" />';
	Source += '	<img src="Images/Layout/VSTitle.gif" />';
	Source += '	';
	Source += '	<div style="float: right; width: 75%;">';
	Source += '		<div style="position: absolute; top: 175px; left: 225px;">';
	Source += '			<div>';
	Source += '				<img ';
	Source += '					border="0" src="Images/Layout/mnuLeft.jpg" />';
	
	for ( var ix=0; ix < arrMenu.length; ix++) {
		Source += MenuItem(ix);
	}
	
	Source += '<img ';
	Source += '					border="0" src="Images/Layout/mnuRight.jpg" />';
	Source += '			</div>';
	Source += '		</div>';
	Source += '	</div>';
	Source += '	';
	Source += '	<div style="padding-left: 225px; width: 650px;">';
	Source += '		<p>';
	
	return Source;
}

function bldFooter() {
	var Source = '';
	
	Source += '	</p>';
	Source += '</div>';
	
	return Source;
}

function launchRadio() {
	var oWindow = window.open('Songs/VSRadio.htm','VSRadio','width=280,height=135,resizable=no,scrollbars=no,toolbar=no,location=no,directories=no,menubar=no,copyhistory=no');
}

function MenuItem(Index) {
	var Source = '';
	
	Source += '<a href="' + arrMenu[Index]["Link"] + '" target="' + arrMenu[Index]["Target"] + '"><img border="0" src="' + arrMenu[Index]["Image"] + '" /></a>';
	
	return Source;
}

