// Default JavaScript-Funktionen
// =============================

// Layout-Funktionen die in jeder Seite verwendet werden

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

// Diverse andere Funktionen

function fensterErzeugen(URL){
  neu = open(URL, "neuesFenster", 
        "width=800,height=800,scrollbars,resizable=yes,screenX=0,screenY=0,dependent=yes");
  MeinFenster.focus();
}

/* The following Javascript-function/program is part of the CMS
   phpCMS (http://phpcms.de). It can be found in the file named
   js_mail2crypt.js - v1.5 (c) 2002, 2003 by Henning Poerschke
+----------------------------------------------------------------------+
| Mail2Crypt Copyright (c) 2002-2003 Henning Poerschke
+----------------------------------------------------------------------+
| This program is free software; you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation; either version 2 of the License, or
| (at your option) any later version.
|
| This program is distributed in the hope that it will be useful, but
| WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
| General Public License for more details.
|
| You should have received a copy of the GNU General Public License
| along with this program; if not, write to the Free Software
| Foundation, Inc., 59 Temple Place - Suite 330, Boston,
| MA  02111-1307, USA.
+----------------------------------------------------------------------+
*/
function showmail(nospamplease, idontlikespam, nothanks, no, way){
var str_out = '';
var num_out = '';
var num_in;
var hex = '0123456789abcdef'
num_out = nospamplease;
for(i = 0; i < num_out.length; i += 2) {
num_in1 = ''
num_in = parseInt(num_out.substr(i,2)) + 23;
while (num_in != 0) {
num_in1 = hex.charAt(num_in%16)+num_in1;
num_in = num_in >> 4;}
num_in = unescape('%' + num_in1);
str_out += num_in;
str_out = unescape(str_out);}
nospamplease = str_out;
speakfriendandenter = '&#109;&#97;&#105;&#108;&#116;&#111;:' + nospamplease;
voila = '<a href="' + speakfriendandenter + '" title="'+ nospamplease + '">';
if((idontlikespam != "") && (nothanks != "")) voila = idontlikespam  + " " + voila;
else if((idontlikespam != "") && (nothanks == "")) voila += idontlikespam;
if(nothanks != "") voila += '<img src="' + nothanks + '" width="' + no + '" height="' + way + '" border="0" alt="' + nospamplease + '" />' ;
else if((idontlikespam == "") && (nothanks == "")) voila += nospamplease;
voila += '</a>';
document.write(voila);}
