
// Vorhang auf allen Seiten Start #########################################################

var Weite;
function undWeg(){	
    if(Weite<1071){		
    document.getElementById("curtain_left").style.display="none";
	document.getElementById("curtain_right").style.display="none";	
	}		
}
// 1071
function Fensterweite () {
  if (window.innerWidth) {
    return window.innerWidth;
  } else if (document.body && document.body.offsetWidth) {
    return document.body.offsetWidth;
  } else {
    return 0;
  }  
}
function neuAufbau () {
  if (Weite != Fensterweite())
    location.href = location.href;
}
/* Überwachung von Netscape initialisieren */
if (!window.Weite && window.innerWidth) {
  window.onresize = neuAufbau;
  Weite = Fensterweite();    
}
// Vorhang auf allen Seiten Ende #########################################################




//  Zaubertrick 5: start #####################################################################################
ax=0;
function writeTable() {	
	ax=Math.round(Math.random()*26);
	alphaArray=new Array("&diams;", "6", "&hearts;", "&Psi;", "&clubs;", "}", "&spades;", "&int;", "&oplus;", "&alefsym;", "&euro;", "&real;", "&image;", "&loz;", "&otimes;", "&aelig;", "&para", "&weierp;", "&Dagger;", "&Yuml;", "U", "&xi;", "m", "&sub;", "^", "x", "_", "[", "]");
	table="<table id='table05'><tr>";
	j=1;
	for ( i = 99 ; i >= 0 ; i-- ) {
		a=Math.round(Math.random()*26);
		if ( i%9 == 0 &&  i < 89 ){
			a=ax;
		}
		table+="<td class='numtd'>"+i+"</td><td class='symtd'>"+alphaArray[a]+"</td>";
		if ( j%10 == 0 ){
			table+="</tr><tr>";
		}
		j++
	}
	table+="</table>";
	var sym = document.getElementById("sym");	
	var sh = document.getElementById("sh");
	sym.innerHTML=table;
	sh.innerHTML="";
}
function showAnswer() {		
	var sym = document.getElementById("sym");	
	var sh = document.getElementById("sh");	
	sym.innerHTML="";
	sh.innerHTML=alphaArray[ax];	
	sym.innerHTML="Du hast an folgendes Symbol gedacht: <strong style='font-size:37px;'>"+alphaArray[ax]+"</strong>";
	sym.innerHTML+="<p><a href='javascript:writeTable();'>Du kannst es nicht glauben? Dann mach's noch einmal...</a></p>";
	
	
	}
	
//  TRICK 5: end #####################################################################################




/* Weiterempfehlen  start   */
function sendpage(){
var title =escape(document.title);
var mail_str = "mailto:?subject= Seitenempfehlung:  "+title;
            mail_str += "&body="+"Hallo,"+"%0A"+"ich moechte Dir diese Seite empfehlen: "+"%0A"+"%0A" +window.location.href +"%0A"+"%0A"+"" ;
    location.href = mail_str;
}
/* Weiterempfehlen  end   */

