






	csslevel1 = "css/styles.css"
	csslevel2 = "../css/styles.css"
	//document.write("<link href="+theprefix+thecss+" type='text/css' rel='STYLESHEET'>")


function goLocation(where){
	location = where
}

function preloadimages(){

	if (document.images) {
		img1 = new Image
		img2 = new Image
		img3 = new Image
		img4 = new Image
		img5 = new Image
		img6 = new Image
		img7 = new Image
		img8 = new Image
		img9 = new Image
		
		img1.src = "../img/arrow.gif"
		img2.src = "../img/arrow-active.gif"
		img3.src = "../img/arrow-on.gif"
		img4.src = "../img/arrownext.gif"
		img5.src = "../img/arrownext-on.gif"
		img6.src = "../img/arrowprev.gif"
		img7.src = "../img/arrowprev-on.gif"
		img8.src = "../img/arrowup.gif"
		img9.src = "../img/arrowup-on.gif"
	}
}

function expand(thedstID,thesrcID){
	//alert(thesrcID.length)
	count = 1
	while(count < thesrcID.length){
		window.document.getElementById(thesrcID[count]).style.display = 'none';
		count = count + 1
	}
	
	
	//window.document.getElementById(thesrcID).style.display = 'none';
	//alert(window.document.getElementById(thedstID).style.display)
	window.document.getElementById(thedstID).style.display = '';
}

function over(){
	alert("over")
}

function out(){
	alert("out")
}

function goback(){
	//history.back()
	//alert("goback")
	History.go(-1)
}




	
function colorchoice(){
	var divtags = window.document.getElementsByTagName('div')
	count = 0
	while(count < divtags.length){
		if(divtags[count].style.backgroundColor != ''){
			divtags[count].style.backgroundColor = '#000000'
		}
		
		if(divtags[count].className == 'bar'){
			divtags[count].style.backgroundColor = '#000000'
		}
		
		divtags[count].style.color = '#0CEE89'
		count = count + 1
	}
	//alert(divtags[1].className)
	//alert(divtags[0].style.backgroundColor)
	//if(divtags[0].style.backgroundColor == ''){
	//	alert('null')
	//}
	
	var atags = window.document.getElementsByTagName('a')
	count = 0
	while(count < atags.length){
		if(atags[count].style.backgroundColor != ''){
			atags[count].style.backgroundColor = '#000000'
		}
		atags[count].style.color = '#0CEE89'
		count = count + 1
	}
	
	
}

function colorchoiceXXX(){
	var thechoice = document.getElementById('colorchooser').value;
	
	var tags = window.document.getElementsByTagName('div')
	
	
	
	alert(tags[2].style.position)
	//alert(tags.length)
	
	if(thechoice == '1'){
		//PINK on YELLOW
		var forecolor = "#F31176"
		var backcolor = "#EDFF00"
		window.document.getElementById('sprbody').className = "bodyclass";
		window.document.getElementById('nav1').className = "arrow-menu";
		window.document.getElementById('nav2').className = "arrow-menu";
		window.document.getElementById('nav3').className = "arrow-menu";
		window.document.getElementById('nav4').className = "arrow-menu";
		window.document.getElementById('nav5').className = "arrow-menu";
		
	}else if(thechoice == '2'){
		//GREEN on BLACK
		var forecolor = "#08A760"
		var backcolor = "#000000"
		
		
		window.document.getElementById('sprbody').className = "bodyclass2";
		window.document.getElementById('nav1').className = "arrow-menu2";
		window.document.getElementById('nav2').className = "arrow-menu2";
		window.document.getElementById('nav3').className = "arrow-menu2";
		window.document.getElementById('nav4').className = "arrow-menu2";
		window.document.getElementById('nav5').className = "arrow-menu2";
		
		//c1color
		//c2color
		//c1bgcolor
		//c2bgcolor
		//c1bgimage
		//c2bgimage
	}
	
	//window.document.getElementById('sprbody').style.backgroundColor = backcolor;
	//window.document.getElementById('navbar').style.backgroundColor = backcolor;
	//window.document.getElementById('imagediv').style.backgroundColor = backcolor;
	//window.document.getElementById('nav1').style.color = forecolor;
	//window.document.getElementById('introtext').style.color = forecolor;
	
	
}

//to change all elements with the same name
//var xelements = window.document.getElementsByName("x");
//for (var i = 0; i < xelements.length; i++) {
//xelements[i].style.backgroundColor = '#000000';
//}			
				
function getWindowHeight() {
	var windowHeight = 0;
	if (typeof(window.innerHeight) == 'number') {
		windowHeight = window.innerHeight;
	}
	else {
		if (document.documentElement && document.documentElement.clientHeight) {
			windowHeight = document.documentElement.clientHeight;
		}
		else {
			if (document.body && document.body.clientHeight) {
				windowHeight = document.body.clientHeight;
			}
		}
	}
	return windowHeight;
}

function setFooter() {
	var windowHeight = getWindowHeight();
	var contentHeight = document.getElementById('content').offsetHeight;
	var footerElement = document.getElementById('footer');
	//var footerText = document.getElementById('footer-text');
	var footerHeight  = footerElement.offsetHeight;
	//var footerTextHeight  = footerText.offsetHeight;
	
	//footerElement.style.top = (windowHeight - (contentHeight + footerHeight)) + 'px';
	
	if (windowHeight - (contentHeight + footerHeight) >= 0) {
		footerElement.style.top = (windowHeight - (contentHeight + footerHeight)) + 'px';
	}else {
		footerElement.style.top = '0px';
	}

}


window.onload = function() {
	setFooter();
}
window.onresize = function() {
	setFooter();
}


			
