/*************************************************
*		Opens a window
*************************************************/
function openWin(file, width, height){
	var place;
	if(document.all){
		place=', top='+(screen.height/2-height/2)+',left='+(screen.width/2-width/2);
	}else{
		place=', top='+(document.body.clientWidth/2-height/2)+',left='+(document.body.clientHeight/2-width/2);
	}
	newWindow=window.open(file,'newWin','toolbar=no,location=no,scrollbars=yes,resizable=yes,width='+ width +', height='+ height+place);
}

function redirect(to, variables){
	varsArr=variables.split(',');
	for(i=0;i<varsArr.length;i++){
		varVals=varsArr[i].split('=');
		eval("document.vars."+varVals[0]+".value='"+varVals[1]+"'");
	}
	document.vars.action=to;
	document.vars.submit();
}

function chengeToIndex(box, val){
	for(i=0;i<box.options.length;i++){
		if(box.options[i].value==val){
			box.options[i].selected=true;
			return;
		}
	}
}

window.onload=init;

function makeHidden(hidd){
	top.ha.location=hidd;
}

function init(){

}

function changeClass(id){
	if(getObj(id).className=="apear"){
		getObj(id).className="disapear";
	}else{
		getObj(id).className="apear";
	}
}


function showCredits(){
	if(getObj(document, "credits").style.visibility=="visible"){
		getObj(document, "credits").style.visibility="hidden";
	}else{
		getObj(document, "credits").style.position="absolute";
		getObj(document, "credits").style.visibility="visible";
		getObj(document, "credits").style.top=mouseY-100;
		getObj(document, "credits").style.left=mouseX-197;	
	}
}
function closeCredits(){
		getObj(document, "credits").style.visibility="hidden";
}
