/*
___/\/\/\/\/\/\/\___ ___/\/\/\/\/\/\/\___

code by adn

http://www.throatwobblermangrove.com

ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ
*/

/*
___/\/\/\/\/\/\/\___ ___/\/\/\/\/\/\/\___
 -- The Lizard Hunter --
ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ
*/

function lizardHunter(){
	if (document.getElementById){
		mumbojumbo();
	}else{
		location="gameover.htm"
	}
}


/*
___/\/\/\/\/\/\/\___ ___/\/\/\/\/\/\/\___
 -- The Mumbo Jumbo --
ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ
*/

function mumbojumbo(){
	dubi=Math.floor(Math.random()*3);
	location="img/splash/"+dubi+"/intro.htm";
}


/*
___/\/\/\/\/\/\/\___ ___/\/\/\/\/\/\/\___
 -- Cookie check and resave --
ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ
*/


function checkthecookie() {
lingua=readCookie('httplingua')
	if (readCookie('httptema')){
		location=lingua+"/http.htm";
	}else{
		saveCookie('httptema','http',666)
		location=lingua+"/http.htm";
	}

tema=readCookie('httptema')
saveCookie('httptema',tema,666)
saveCookie('httplingua',lingua,666)
}

/*
___/\/\/\/\/\/\/\___ ___/\/\/\/\/\/\/\___
-- Cookie Recipes --
ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ
*/

function saveCookie(name,value,days) {
        if (days) {
                var date = new Date();
                date.setTime(date.getTime()+(days*24*60*60*1000))
                var expires = "; expires="+date.toGMTString()
        }
        else expires = ""
        document.cookie = name+"="+value+expires+"; path=/"
}

function readCookie(name) {
        var nameEQ = name + "="
        var ca = document.cookie.split(';')
        for(var i=0;i<ca.length;i++) {
                var c = ca[i];
                while (c.charAt(0)==' ') c = c.substring(1,c.length)
                if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length)
        }
        return null
}

function deleteCookie(name) {
        saveCookie(name,"",-1)
}


/*
___/\/\/\/\/\/\/\___ ___/\/\/\/\/\/\/\___
 -- Window Popper --
ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ
*/


function pop(url,name,features, myWidth, myHeight, isCenter) {
  if(window.screen)if(isCenter)if(isCenter=="1"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  flop=window.open(url,name,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
	flop.focus();
}

/*
___/\/\/\/\/\/\/\___ ___/\/\/\/\/\/\/\___
 -- PhotoZoom --
ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ
*/


function zoom(pfoto) {
pfoto="zoom.htm?"+pfoto
features=''
  if(window.screen){
    var myLeft = (screen.width-600)/2;
    var myTop = (screen.height-400)/2;
    features+='left='+myLeft+',top='+myTop;
  }
  flop=window.open(pfoto,'photozoom',features+',width=600,height=400');
  flop.focus();
}

/*
___/\/\/\/\/\/\/\___ ___/\/\/\/\/\/\/\___
-- Header Tooltip --
ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ
*/

function etiqueta(newText) {
	x=document.getElementById('lalabel');
	y=document.getElementById('lashadow');
	z=document.getElementById('elarrow');
	x.innerHTML=newText;
	y.innerHTML=newText;
	x.style.visibility="visible";
	y.style.visibility="visible";
	z.style.visibility="visible";
}

function noetiqueta() {
	x=document.getElementById('lalabel');
	y=document.getElementById('lashadow');
	z=document.getElementById('elarrow');
	x.style.visibility="hidden";
	y.style.visibility="hidden";
	z.style.visibility="hidden";
}


/*
___/\/\/\/\/\/\/\___ ___/\/\/\/\/\/\/\___
-- Tools Menu --
ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ
*/


function xOn(theId) {
	xfile=document.getElementById(theId)
	xname=xfile.getAttribute('src')
	x=xname.length
	xext=xname.substring(x-4,xname.length)
	xname=xname.substring(0,x-4)
	xfile.src=xname+".on"+xext
}

function xOff(theId) {
	xfile=document.getElementById(theId)
	xname=xfile.getAttribute('src')
	x=xname.length
	xext=xname.substring(x-4,xname.length)
	xname=xname.substring(0,x-7)
	xfile.src=xname+xext
}

function pOn(theId) {
	
	pOff();	

	xfile=document.getElementById(theId);
	xname=xfile.getAttribute('src');
	x=xname.length;
	xext=xname.substring(x-4,xname.length);
	xname=xname.substring(0,x-4);
	xfile.src=xname+".on"+xext;

	xfile=document.getElementById('thaphoto');
	xname=xfile.getAttribute('src');
	x=xname.length;
	xname=xname.substring(0,x-7)+theId;
	xdiv=document.getElementById('thaphotodiv');
	xdiv.innerHTML="<img src="+xname+".jpg width=640 height=400 id=thaphoto>";
	/*xfile.src=xname+".jpg"*/
}

function pOff() {
	icons=document.getElementById("photoIcons");
	icons.innerHTML="<img src=img/pg/photo.gif id=p01 onclick=pOn('p01')><img src=img/pg/photo.gif id=p02 onclick=pOn('p02')><img src=img/pg/photo.gif id=p03 onclick=pOn('p03')><img src=img/pg/photo.gif id=p04 onclick=pOn('p04')><img src=img/pg/photo.gif id=p05 onclick=pOn('p05')><img src=img/pg/photo.gif id=p06 onclick=pOn('p06')><img src=img/pg/photo.gif id=p07 onclick=pOn('p07')><img src=img/pg/photo.gif id=p08 onclick=pOn('p08')><img src=img/pg/photo.gif id=p09 onclick=pOn('p09')><img src=img/pg/photo.gif id=p10 onclick=pOn('p10')>";
}


/*
___/\/\/\/\/\/\/\___ ___/\/\/\/\/\/\/\___
-- News Bot --
ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ
*/

function newspaper(theId) {
	x=document.getElementById(theId + "box");
	y=document.getElementById(theId + "arrow");
	if(x.style.display != "block"){
		x.style.display="block";
		y.src="img/opened.gif";
		
	}else{
		x.style.display="none";
		y.src="img/closed.gif";
    }
}


/*
___/\/\/\/\/\/\/\___ ___/\/\/\/\/\/\/\___
-- Hall of Fame --
ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ
*/

function hallOfFame(theId) {;
	x=document.getElementById(theId);
	if(x.style.display != "block"){
		killEmAll()
		x.style.display="block";
	}else{
		x.style.display="none";
    }
}

function killEmAll(){
	k=document.getElementById('ein');
	k.style.display="none";
	k=document.getElementById('zwei');
	k.style.display="none";
	k=document.getElementById('drei');
	k.style.display="none";
	k=document.getElementById('vier');
	k.style.display="none";
	k=document.getElementById('funf');
	k.style.display="none";
}




/*
___/\/\/\/\/\/\/\___ ___/\/\/\/\/\/\/\___
-- Fuera Pista --
ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ ŻŻŻ\/\/\/\/\/\/\/ŻŻŻ
*/

function fuerapista() {
	x=document.location.search;
	window.open(x.substring(1));
	history.back();
}


