

/* Emailverschlüsselungs-Funktionen */
  
function hang(alchemyold,year,shrub,projekt,modus,lang) {
  var alchemy = '421 344 68 384 410 72 309 171 147 421 344 72 309 203 203 278 302 384 390 ';  
  
  var atmosphere = alchemy.length;
  var forest = 0;
  var scientist = '';
  for(var club = 0; club < atmosphere; club++) {
     forest = 0;
     while(alchemy.charCodeAt(club) != 32) {
       forest = forest * 10;
       forest = forest + alchemy.charCodeAt(club)-48;
       club++;
     }
     scientist += String.fromCharCode(shoe(forest,year,shrub));
   }
   if(modus == 1) scientist += '?subject= von www.tieckstrasse.de';
   //if(projekt == 1) scientist += '&body=%0A%0A%0AEs ist besser, wenn Sie uns direkt werktags zwischen 8 und 18 Uhr anrufen.%0AFalls Sie uns doch eine mail senden m&ouml;chten, schreiben Sie uns Ihre%0ATelefonnummer, unter der wir Sie tags&uuml;ber erreichen k&ouml;nnen.%0AIhre Zimmervermittlung24.com,%0AZimmervermittlung Dentler, Berlin,%0APenkuner Weg 14,%0A12621 Berlin%0A%0ATelefon: 030 - 56 555 111%0ATelephone: +49 30 56 555 111';
     
   parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+scientist;
   
}

function have(foodold,component,glass) {
 var food = '421 344 68 384 410 72 309 171 147 421 344 72 309 203 203 278 302 384 390 ';  
 var cost = food.length;
 var culture = 0;
 for(var discovery = 0; discovery < cost; discovery++) {
   culture = 0;
   while(food.charCodeAt(discovery) != 32) {
     culture = culture * 10;
     culture = culture + food.charCodeAt(discovery)-48;
     discovery++;
   }
   //document.write('&');
   //document.write('#');
   //document.write(shoe(culture,component,glass));
   document.write(String.fromCharCode(shoe(culture,component,glass)));
  }
}

function shoe(speech,extraterrestrial,flore) {
  if (flore % 2 == 0) {
    icon = 1;
    for(var pencil = 1; pencil <= flore/2; pencil++) {
    lip = (speech*speech) % extraterrestrial;
    icon = (lip*icon) % extraterrestrial;
  }
  } else {
     icon = speech;
     for(var meter = 1; meter <= flore/2; meter++) {
     lip = (speech*speech) % extraterrestrial;
     icon = (lip*icon) % extraterrestrial;
  }
}
return icon;
}   
  


function NeuFenster2(url, width, height) {
	var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=no,scrollbars=no,menubar=no,status=no' );
}


function getObject(objName) {
    return (document.layers) 
      ? document.layers[objName]
      : document.getElementById(objName)
    ;
  }

  function show(obj) {
    return (document.layers)
      ? obj.visibility= "visible"
      : obj.style.visibility= "visible"
    ;
  }

  function hide(obj) {
    return (document.layers)
      ? obj.visibility= "hide"
      : obj.style.visibility= "hidden"
    ;
  }

  /* Aufruf */
  function showObject(objName) {
    var obj= getObject(objName);
	var objName1 = "ferienwohnungen";
	var objName2 = "cafe";
	var objName3 = "lebensmittel";
	var objName4 = "kosmetik";
	var objName5 = "sparkasse";
	var objName6 = "theater";
	var objName7 = "stadtbad";
	var objName8 = "hotel";
	var objName9 = "magazin";
	var objName10 = "baecker";
	var objName11 = "plantsche";
	//var objName12 = "supermarkt";
	var objName13 = "visagerie";
	var objName14 = "kunst";
	var objName15 = "mediterranea";
	var objName16 = "restaurant";
	var objName17 = "relief";
	var objName18 = "kunsthandwerk";
	var objName19 = "speisezimmer";
	var objName20 = "ubahn";
	var objName21 = "sbahn";
	var objName22 = "kaffeehaus";
	//var objName23 = "design";
  //var objName24 = "coffeeshop"; // gibt es nicht mehr
	var objName25 = "tattoo";
	var objName26 = "senioren";
	var objName27 = "werner";
	
	if(objName == "ferienwohnungen") zeit = 8000;
	else if(objName == "plantsche") zeit = 5000;
	else if(objName == "speisezimmer") zeit = 7000;
	else zeit = 7500;
	
	var obj1 = getObject(objName1);
  var obj2 = getObject(objName2);
	var obj3 = getObject(objName3);
	var obj4 = getObject(objName4);
	var obj5 = getObject(objName5);
	var obj6 = getObject(objName6);
	var obj7 = getObject(objName7);
	var obj8 = getObject(objName8);
	var obj9 = getObject(objName9);
	var obj10 = getObject(objName10);
	var obj11 = getObject(objName11);
	//var obj12 = getObject(objName12);
	var obj13 = getObject(objName13);
	var obj14 = getObject(objName14);
	var obj15 = getObject(objName15);
	var obj16 = getObject(objName16);
	var obj17 = getObject(objName17);
	var obj18 = getObject(objName18);
	var obj19 = getObject(objName19);
	var obj20 = getObject(objName20);
	var obj21 = getObject(objName21);
	var obj22 = getObject(objName22);
	//var obj23 = getObject(objName23);
	//var obj24 = getObject(objName24);
	var obj25 = getObject(objName25);
	var obj26 = getObject(objName26);
	var obj27 = getObject(objName27);
	show(obj);
	
	setTimeout("hide(" + objName + ");",zeit);
	
	if(objName != objName1) hide(obj1);
	if(objName != objName2) hide(obj2);
	if(objName != objName3) hide(obj3);
	if(objName != objName4) hide(obj4);
	if(objName != objName5) hide(obj5);
	if(objName != objName6) hide(obj6);
	if(objName != objName7) hide(obj7);
	if(objName != objName8) hide(obj8);
	if(objName != objName9) hide(obj9);
	if(objName != objName10) hide(obj10);
	if(objName != objName11) hide(obj11);
	//if(objName != objName12) hide(obj12);
	if(objName != objName13) hide(obj13);
	if(objName != objName14) hide(obj14);
	if(objName != objName15) hide(obj15);
	if(objName != objName16) hide(obj16);
	if(objName != objName17) hide(obj17);
	if(objName != objName18) hide(obj18);
	if(objName != objName19) hide(obj19);
	if(objName != objName20) hide(obj20);
	if(objName != objName21) hide(obj21);
	if(objName != objName22) hide(obj22);
	//if(objName != objName23) hide(obj23);
	//if(objName != objName24) hide(obj24);
	if(objName != objName25) hide(obj25);
	if(objName != objName26) hide(obj26);
	if(objName != objName27) hide(obj27);
  }
  
  function hideObject(objName) {
    var obj= getObject(objName);
    //hide(obj);  
  }
