/*copyright egghead medien 2003 //// info@egghead.de */


/* Pulldown - Quicknavi */

function pullDown() {
if (document.getElementById("quickNav").value == "" ||
document.getElementById("quickNav").value == "--") {
return;
}
parent.frames['main'].location = document.getElementById("quickNav").value;
}



/* Bilder vorrausladen */
function loadImg() {
    var artikel2 = new Image();
        artikel2.src="../gfx/artikel2.gif";
    var listart2 = new Image();
        listart2.src="../gfx/listart2.gif";   
}

/* Bilderwechsel in Subnavigation */
function sub(name, img)
{
   document[name].src=img;
}

/* Bilderwechsel in Listenansicht */
function lis(name, img)
{
   document[name].src=img;
}

/* Bilderwechsel in Tippleiste */
function tip(name, img)
{
   document[name].src=img;
}


/* Öffnen der Subnavigation */
function subnavOpen(url) {
  //alert(url + "\n&Frame=sub");  
  parent.sub.location.replace(url + "&Frame=sub");  
}
/* Css-Problem fŸr netscape4 */

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function applet_link(hlink, type)
{
   if (hlink == "#") {
      return;
   }
   MyStr   = new String(hlink);
   oshres  = MyStr.indexOf("http://cms.bruchsal-xl.de");
   hres    = MyStr.indexOf("://");
   mres    = MyStr.indexOf("mailto:");
   download= MyStr.indexOf("download.php");
   if (((oshres == -1) && (hres != -1) && (mres != -1)) || (download == 0)) hlink="http://cms.bruchsal-xl.de/"+hlink;
   if (type) {
      if (type == 2) {
         window.open(hlink, "", "Menubar=0,Toolbar=0,Directories=0,Location=0,Resizable=1,Scrollbars=0,Status=0,width=400,height=400");
      }else{
            document.location.href=hlink+'&Frame=content';
      }
   }
   else {
      window.open(hlink, "", "Menubar=1,Toolbar=1,Directories=1,Location=1,Resizable=1,Scrollbars=1,Status=1");
   }
}
