var timerID = null
var timerRunning = false
var now = new Date()
var timeStop = now.getMinutes()+1

function stopclock(){
   if(timerRunning)
      clearTimeout(timerID)
   timerRunning = false
}

function startclock(){
   stopclock()
   showtime()
}

function showtime(){
   var now = new Date()
   var hours = now.getHours()
   var minutes = now.getMinutes()
   var seconds = now.getSeconds()
   var timeValue = "" + ((hours > 12) ? hours : hours)
   timeValue += ((minutes < 10) ? ":0" : ":") + minutes
   timeValue += ((seconds < 10) ? ":0" : ":") + seconds
   document.mForm.face.value = timeValue 
   timerID = setTimeout("showtime()",1000)
   timerRunning = true
}

function popup(TheURL){
 window.open("/bild.shtml?"+TheURL,'Vollbild','width=640,height=480,resizable=no,toolbar=no,scrollbars=no')
}

var Tss=31,Acc=0;

function tarotkarten() {
 cBild = new Image();
 cBild.src = "/img/"+(Tss >9? '0':'00')+Tss+".jpg";
 document.images["Tarotkarte"].src= cBild.src;
 aBild = new Image();
 aBild.src = "/img/"+(Acc >9? '0':'00')+Acc+".jpg";
 document.images["Arkanakarte"].src= aBild.src;

 Tss++,Acc++;
 if(Tss >77) Tss=22;
 if(Acc >21) Acc=0;
 setTimeout("tarotkarten()",5000)
}

function goKarte(n){

 Adresse = "http://www.t-a-r-o-t.info/tarotdeutungen/text"+(n==1? Acc:Tss)+".htm";
 MeinFenster = window.open(Adresse, "Tarotfenster", "width=640,height=500,resizable=yes,scrollbars=yes");
 MeinFenster.focus();

}



