/*
=============================================================================
G L O B A L E S   J A V A S C R I P T   N A C H   S T Y L E G U I D E   2 . 1
=============================================================================
*/
/*
--------------------------------------------------------
Anzeigen des Visuals und der Icon-Leiste im Frame "_nav"
--------------------------------------------------------
*/
function visualandicons(visual, gbkshome, gbkshomealt, lang, url, target) 
{
  if (!gbkshomealt) {
    gbkshomealt = "Zur Startseite";
  }
  document.write("<table width='100%' cellpadding='0' cellspacing='0' border='0'>");
  // Visual einblenden, wenn _header frame nicht vorhanden
  if (!top._header) {
    document.write('<tr><td colspan="2" align="center" valign="middle"><a href="'+gbkshome+'" target="_top">');
    document.write('img src="../visual/'+visual+'" alt="'+gbkshomealt+'" border="0"></a></td></tr>');
    document.write('<tr><td colspan="2"><img src="../icon/leer.gif" alt="" height="10" width="1"></td></tr>');
  }

  // Sprachumschaltung anzeigen, falls Parameter angegeben
  if (lang) {
    document.write('<tr><td class="nav" width="100%">&nbsp;');
    if (lang == "ger") {
      document.write('<a href="'+url+'" target="'+target+'"><img  src="http://brain.dresdner.net/icon/deutsch.gif" width="25" height="25" border="0" alt="Zur deutschsprachigen Fassung"></a>');
    }
    else if (lang == "eng") {
      document.write('<a href="'+url+'" target="'+target+'"><img src="http://brain.dresdner.net/icon/english.gif" width="25" height="25" border="0" alt="English Version"></a>');
    }
    document.write('</td></tr><tr><td colspan="2"><img src="http://brain.dresdner.net/icon/leer.gif" alt="" height="10" width="1"></td></tr>');
  }
  document.write('</table>');
}

function timestamp() {
    lastmod=new Date(document.lastModified);

    if (lastmod.getYear()<2000) year=lastmod.getYear()+1900; else year=lastmod.getYear();
    if (lastmod.getYear()<10) year=lastmod.getYear()+2000;
    if (lastmod.getMinutes()<10) min="0"+lastmod.getMinutes(); else min=lastmod.getMinutes();
    if (lastmod.getSeconds()<10) sec="0"+lastmod.getSeconds(); else sec=lastmod.getSeconds();

    document.write("Letzte Änderung: "+lastmod.getDate()+"."+(lastmod.getMonth()+1)+"."+year+", "+lastmod.getHours()+":"+min+":"+sec);
}

var navtype= "l";
var i = 0;
var url = "http://ibk.dresdner.net/basics3/suchebrowser.htm";

function SearchBrowser() {
    i = i + 1;
    if(navigator.appVersion.substring(0,1) == "3") {
	var popup_window = window.open(url,i , "width=500,height=400,personalbar,toolbar,scrollbars,menubar=yes,resizable=yes,location,locationbar=yes,status=yes,screenX=100,screenY=0");
	popup_window.focus(); 
    }
    else {
	if(screen.width >= 1024) {
	    var popup_window = window.open(url,i , "width=800,height=580,personalbar,toolbar,scrollbars,menubar=yes,resizable=yes,location,locationbar=yes,status=yes,screenX=100,screenY=0");
	    popup_window.focus();
	}
	else {
	    var popup_window = window.open(url,i , "width=500,height=400,personalbar,toolbar,scrollbars,menubar=yes,resizable=yes,location,locationbar=yes,status=yes,screenX=100,screenY=0");
	    popup_window.focus();
	}
    }
}

