//===============================================================================================
//::::::::::::::------          Funktion für Navigation ohne href            ------::::::::::::::
//===============================================================================================
// Client-Browsertypen ermitteln
var isMozilla = document.getElementById && !document.all;
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

gotoNeueSeite = function(loc){
	window.location.href =loc;
}
	
//===============================================================================================
//::::::::::::::------          Funktion für den nach-oben-Button            ------::::::::::::::
//===============================================================================================
 function goTop(){
	location.replace('#top');}
	
//===============================================================================================
//::::::::::::::------                     Für Flash                         ------::::::::::::::
//===============================================================================================
 AC_FL_RunContent = 0;
 DetectFlashVer = 0;
// Globale Variablen
// Erforderliche Hauptversion von Flash
var requiredMajorVersion = 6;
// Erforderliche Unterversion von Flash
var requiredMinorVersion = 0;
// Erforderliche Flash-Revision
var requiredRevision = 0;

//===============================================================================================
//::::::::::::::------        löscht das Eingabefeld der Suchfunktion        ------::::::::::::::
//===============================================================================================
 function clearInput(){	
	window.document.forms[0].search_exp.value="";}

//===============================================================================================
//::::::::::::::---------               Dreamweaver popUp                    ------::::::::::::::
//===============================================================================================
function MM_openBrWindow(theURL,winName,features){ //v2.0
  window.open(theURL,winName,features);}

//===============================================================================================
//::::::::::::::------ öffnet neues Fenster f&uuml;r Bild-Dateien ohne HTML-Datei ------::::::::::::::
//===============================================================================================
 function bild(img_url, img_title, img_width, img_height){
  wnd = open("",
             "Bildanzeige",
             "width=" + (img_width + 32) + ",height=" + (img_height + 64) +
             ",toolbar=0,location=0,directories=0,status=0,menubar=0," +
             "scrollbars=0,resizable,dependent")

  var baseadr = location.href
  var lastsl  = location.href.lastIndexOf("\\")
  if(lastsl >= 0)
    baseadr = baseadr.substring(0, lastsl + 1)
  else{
    lastsl = location.href.lastIndexOf("/")
    if(lastsl >= 0)
      baseadr = baseadr.substring(0, lastsl + 1)}
  
  with(wnd.document){
    open("text/html")
    writeln("<html>")
    writeln("<HEAD><TITLE>" + img_title + "</TITLE>")
    writeln("<BASE HREF=\"" + baseadr + "\"></HEAD>")
    writeln("<BODY bgcolor=':000000'>")
    writeln("<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=4 WIDTH=\"100%\" HEIGHT=\"100%\">")
    writeln("<TR><TD ALIGN=CENTER VALIGN=MIDDLE><IMG GALLERYIMG=\"no\" SRC=\"" + img_url +
            "\" WIDTH=" + img_width +
            " HEIGHT=" + img_height +
            " HSPACE=0 VSPACE=0 ALT=\"" + img_title + "\"></TD></TR>")
    write("<TR><TD ALIGN=right VALIGN=BOTTOM>")
    write("<a href=\"javascript:self.close()\"><img src = \"images/close-window.gif\" border = \"0\"></a>")
    writeln("</TD></TR>")
    writeln("</TABLE>")
    writeln("</BODY></HTML>")
    close()}
  wnd.focus()
}
//===============================================================================================
//::::::::::::::------           HTML (oder PDF in IFRAME laden              ------::::::::::::::
//===============================================================================================
 function OK_loadit(url,layerObjNS, width){ 
 if (document.layers){
     document.layers[layerObjNS].load(url, width);}
	 else{
       if (window.frames.length > -1){
           window.frames[layerObjNS].location.href = url;}
	}
  document.MM_returnValue = false;
}

