
// - Statuszeile ------------------------------------------------------
function statusMsg( text)
{
  window.defaultStatus = text;
  window.status = text;
}


// - eMail-Dummys ------------------------------------------------------
function email( name, domain, tld, link) 
{
  var link = "<a href='mailto:"+name+"@"+domain+"."+tld+"'>"+link+"</a>";
  document.write(link);
}

function email2( name,domain, tld) 
{
  var link = "<a href='mailto:"+name+"@"+domain+"."+tld+"'>"+name+"@"+domain+"."+tld+"</a>";
  document.write(link);
}


// - Popup für Galerie -------------------------------------------------
function PopImgWindow( Picture, Breit, Hoch)
{
  xsize = Breit+35; // Zusatz für Rand rechts und links
  ysize = Hoch+75;  // Zusatz für Rand oben und unten - damit Button angezeit werden kann 
    
  ScreenWidth = screen.width;
  ScreenHeight = screen.height;

  xpos = (ScreenWidth/2)-(xsize/2);
  ypos = (ScreenHeight/2)-(ysize/2);
	
	NewWindow=window.open("","Picture","height="+ysize+",width="+xsize+",scrollbars=no,resizable=no,top="+ypos+",left="+xpos+"");
	NewWindow.document.write ("<html><head><title>PhilippHauer.de - Galerie");
	NewWindow.document.write ("</title></head>");
  NewWindow.document.write ("<body style='background-color:#ffffff; color:#FF9900; font-family: Arial, Helvetica, sans-serif; ' onload='focus()'>");
//NewWindow.document.write ("<body bgcolor='#cccccc'>");
	NewWindow.document.write ("<table align='center'><tr>");
	NewWindow.document.write ("<td align='center' valign='top'>");
	NewWindow.document.write ("<table border='0' bgcolor='#40666e' cellpadding='0' cellspacing='1'><tr><td align='center'>");
	NewWindow.document.write ("<a href='javaScript:self.close()'><img alt='Bild von PhilippHauer.de' style='border:1px solid #1F8DAA;' src=");
	NewWindow.document.write (Picture);
	NewWindow.document.write ("></a>");
	NewWindow.document.write ("</tr></table>");
	NewWindow.document.write ("</td></tr><tr>");
	NewWindow.document.write ("<td align='center' style='font-size:10px;'>Zum Schließen klicken");
	NewWindow.document.write ("<br>");
	NewWindow.document.write ("</td></tr></table>");
	NewWindow.document.write ("</body></html>");
	NewWindow.document.close();
  NewWindow.resizeTo(xsize,ysize); 
}


// - Vorladen --------------------------------------------------------------
function vorladen( imgName)
{
  if(document.images)
  	{
	  navihover=new Image();
	  navihover.src=imgName;

	}
}




//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//                          Spiegelschrift v1.0
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//------------------------------ Copyright ------------------------------
//                           (c) 2002 xeam.de
//                      Internet: http://www.xeam.de
//                         e-mail: mail@xeam.de
//------------------------------------------------------------------------
/* 
  Beispiel fuer den Einsatz:

  <body bgcolor="#FFFBDF" onload="schreiben ();">
   <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
     <td align="center" id="textfeld">
     </td>
    </tr>
   </table>
  </body>

*/
 var zeile=new Array ();   // hier muessen die Inhalte der verschiedenen Zeilen eingegeben werden
 zeile[0]="ofni.regna.wreB";
 zeile[1]="";
 zeile[2]="Quelle:";
 zeile[3]="http://www.traci.de";
 var trennzeichen="&nbsp;|&nbsp;";   // Zeichen, welche zwischen dem richtigen und dem gespiegelten Text erscheinen
 var text;
 var a;
 var b;

function schreiben ()
{
 if (window.document.getElementById)
  {
   for (a=0;a<zeile.length;a++)
    {
     text="";
     text+=(zeile[a]+trennzeichen);
     for (b=zeile[a].length;b>=0;b--)
      {
       text+=zeile[a].charAt (b);
      }
     window.document.getElementById ("textfeld").innerHTML+=(text+"<br>");
    }
  }
}



