/*
Preload images script
By JavaScript Kit (http://javascriptkit.com)
Over 400+ free scripts here!
*/

var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}

/*
preloadimages("string1B.wav")


function EvalSound(soundobj) {
  var thissound= eval("document."+soundobj);
  thissound.Play();
}
*/


function xbgChangeOn(oToChange){
var oStyle = oToChange.style
var sOldColor = oStyle.backgroundColor
var sSetColor = (sOldColor=="#000000")?"#000000":"#FFFF00";
oStyle.backgroundColor = sSetColor
oStyle.backgroundColor = sOldColor
}


function downloadsON() {
		document.getElementById("DownloadsBTN").style.backgroundColor="#000000";
		document.getElementById("subIcon").style.visibility="hidden";
		document.getElementById("subIcon").style.display="none";		
 		document.getElementById("sublinksDIV").style.visibility="hidden";
 		document.getElementById("sublinksDIV").style.display="none";		
	}
	
function downloadsOFF() {
		document.getElementById("DownloadsBTN").style.backgroundColor="#000000";		
	}

function factsON() {
		document.getElementById("FactsBTN").style.backgroundColor="#000000";		
		document.getElementById("subIcon").style.visibility="visible";
		document.getElementById("subIcon").style.display="inline";		
 		document.getElementById("sublinksDIV").style.visibility="visible";
 		document.getElementById("sublinksDIV").style.display="inline";		
	}
	
function factsOFF() {
		document.getElementById("FactsBTN").style.backgroundColor="#000000";				
	}
	
function forumON() {
		document.getElementById("ForumBTN").style.backgroundColor="#000000";
		document.getElementById("subIcon").style.visibility="hidden";
		document.getElementById("subIcon").style.display="none";		
 		document.getElementById("sublinksDIV").style.visibility="hidden";
 		document.getElementById("sublinksDIV").style.display="none";
	}
	
function forumOFF() {
		document.getElementById("ForumBTN").style.backgroundColor="#000000";		
	}
	
function gigsON() {
		document.getElementById("GigsBTN").style.backgroundColor="#000000";
		document.getElementById("subIcon").style.visibility="hidden";
		document.getElementById("subIcon").style.display="none";		
 		document.getElementById("sublinksDIV").style.visibility="hidden";
 		document.getElementById("sublinksDIV").style.display="none";		
	}
	
function gigsOFF() {
		document.getElementById("GigsBTN").style.backgroundColor="#000000";		
	}	
	

function newsON() {
		document.getElementById("NewsBTN").style.backgroundColor="#000000";
		document.getElementById("subIcon").style.visibility="hidden";
		document.getElementById("subIcon").style.display="none";		
 		document.getElementById("sublinksDIV").style.visibility="hidden";
 		document.getElementById("sublinksDIV").style.display="none";		
	}
	
function newsOFF() {
		document.getElementById("NewsBTN").style.backgroundColor="#000000";	
	}	
	
function entrepreneurON() {
		document.getElementById("EntrepreneurBTN").style.backgroundColor="#000000";
		document.getElementById("subIcon").style.visibility="hidden";
		document.getElementById("subIcon").style.display="none";		
 		document.getElementById("sublinksDIV").style.visibility="hidden";
 		document.getElementById("sublinksDIV").style.display="none";		
	}
	
function entrepreneurOFF() {
		document.getElementById("EntrepreneurBTN").style.backgroundColor="#000000";	
	}	
	
function homeON() {
		document.getElementById("HomeBTN").style.backgroundColor="#000000";
		document.getElementById("subIcon").style.visibility="hidden";
		document.getElementById("subIcon").style.display="none";		
 		document.getElementById("sublinksDIV").style.visibility="hidden";
 		document.getElementById("sublinksDIV").style.display="none";		
	}
	
function homeOFF() {
		document.getElementById("HomeBTN").style.backgroundColor="#000000";	
	}		
		



function openWeb(sURL) {	
	var nww = screen.availWidth * .90
	var nwh = screen.availHeight * .70

	if(window.screen) {			newwindow=open(sURL,"newwin","scrollbars=yes,toolbar=yes,directories=yes,menubar=yes,resizable=yes,status=yes,width="+nww+",height="+nwh);	
	}
}

function openDoc(sURL) {	
	var nww = screen.availWidth * .90
	var nwh = screen.availHeight * .70

if(window.screen) {			newwindow=open(sURL,"newwin","scrollbars=yes,toolbar=no,directories=no,menubar=yes,resizable=yes,status=yes,width="+nww+",height="+nwh);	
	}
}


function openPhoto(sURL) {	
	var nww = 340
	var nwh = 270

if(window.screen) {			newwindow=open(sURL,"newwin","scrollbars=yes,toolbar=no,directories=no,menubar=yes,resizable=yes,status=yes,width="+nww+",height="+nwh);	
	}
}


