<!--
/*function bgSwap(val) {
	if (val == "one") {
		document.body.style.backgroundImage = "url(images/bodybg.gif)"; // fixed top no-repeat #212121
		document.body.style.backgroundAttachment = "scroll";
		document.body.style.backgroundColor = "#212121";
		document.body.style.backgroundPosition = "top";
		document.body.style.backgroundRepeat = "repeat";		
	}
	if (val == "two") {
		document.body.style.backgroundImage = "url(images/fractalChalk.jpg)";
		document.body.style.backgroundAttachment = "fixed";
		document.body.style.backgroundColor = "#212121";
		document.body.style.backgroundPosition = "top";
		document.body.style.backgroundRepeat = "no-repeat";
	}	
	if (val == "three") {
		document.body.style.backgroundImage = "url(images/darkStripe.png)";
		document.body.style.backgroundAttachment = "scroll";
		document.body.style.backgroundColor = "#212121";
		document.body.style.backgroundPosition = "top";
		document.body.style.backgroundRepeat = "repeat";
	}
}*/

function navSwap(path) {
	document.getElementById('mainNav').style.background = "url(images/nav/"+path+")";
	document.getElementById('mainNav').style.backgroundRepeat = "no-repeat";
}

function checkText(id, txt) {
	val = document.getElementById(id).value;
	if (val == txt) {
		document.getElementById(id).value = "";
	}
	if (val == "") {
		document.getElementById(id).value = txt;
	}
}

hex=1 // Initial color value.
function fadetext(){
	if(hex < 200) { //If color is not faded... (240)
		hex+=31; //change color darkness (11)
		document.getElementById("settings").style.display="block";
		document.getElementById("settings").style.color="rgb("+hex+","+hex+","+hex+")";
		setTimeout("fadetext()",100); 
	}else{
		hex=1 //reset hex value
		document.getElementById("settings").style.display="none";
	}
}

function setHeaderSpan(){
	if(title == "smallHeader"){
		elem = document.getElementById('smallHeaderSpan');
		elem.style.display = "none";
		elem2 = document.getElementById('normalHeaderSpan');
		elem2.style.display = "block";
	}else{
		elem = document.getElementById('normalHeaderSpan');
		elem.style.display = "none";
		elem2 = document.getElementById('smallHeaderSpan');
		elem2.style.display = "block";
	}
}

function changeDisplay(id,id2){
	elem = document.getElementById(id);
	elem.style.display = "none";
	elem2 = document.getElementById(id2);
	elem2.style.display = "block";
}

var myimages = new Array();
function preloading(){
	for (x=0; x<preloading.arguments.length; x++){
	myimages[x] = new Image();
	myimages[x].src = preloading.arguments[x];
	}
}

function $(v) { return(document.getElementById(v)); }
function $S(v) { return($(v).style); }
function agent(v) { return(Math.max(navigator.userAgent.toLowerCase().indexOf(v),0)); }
function isset(v) { return((typeof(v)=='undefined' || v.length==0)?false:true); }
function XYwin(v) { var z=agent('msie')?Array(document.body.clientHeight,document.body.clientWidth):Array(window.innerHeight,window.innerWidth); return(isset(v)?z[v]:z); }

function sexyTOG() { document.onclick=function(){ $S('sexyBOX').display='none'; flag = "closed"; document.onclick=function(){}; }; }
function sexyBOX(v,b) { setTimeout("sexyTOG()",100); $('sexyBOX').innerHTML=v; $S('sexyBOX').left=Math.round((XYwin(1)-b)/2)+'px'; $S('sexyBOX').width=b+'px'; $S('sexyBOX').display='block'; }
flag = "closed";
function goBox(val) {
	if (flag == "closed") {
		if (val == "zod") {
			flag = "open";
			sexyBOX('Zodiaster is ConanQ\'s soul creator.<br />Email webmaster concerns to:<br /><img src="images/email.gif" /><br /><br />(click anywhere to close)','331'); return false;
		}
	}
	if (flag == "open") {
		sexyTOG();
	}
}

front = "images/nav/";
preloading("images/upper-small.jpg","images/bottom-small.jpg","images/popup.gif","images/normal-header.jpg","images/small-header.jpg","images/email.gif","images/upper.jpg","images/bottom.jpg",front+"iCur/gif/iCur.gif",front+"iCur/gif/fHov.gif",front+"iCur/gif/gHov.gif",front+"iCur/gif/tHov.gif",front+"iCur/gif/cHov.gif",front+"fCur/gif/fCur.gif",front+"fCur/gif/iHov.gif",front+"fCur/gif/gHov.gif",front+"fCur/gif/tHov.gif",front+"fCur/gif/cHov.gif",front+"gCur/gif/gCur.gif",front+"gCur/gif/iHov.gif",front+"gCur/gif/fHov.gif",front+"gCur/gif/tHov.gif",front+"gCur/gif/cHov.gif",front+"tCur/gif/tCur.gif",front+"tCur/gif/iHov.gif",front+"tCur/gif/fHov.gif",front+"tCur/gif/gHov.gif",front+"tCur/gif/cHov.gif",front+"cCur/gif/cCur.gif",front+"cCur/gif/iHov.gif",front+"cCur/gif/fHov.gif",front+"cCur/gif/gHov.gif",front+"cCur/gif/tHov.gif");
-->
