/* DATEI: hv.js */


/* Javascript CMS hillerschevilla.de 04-2004 */
/* Copyright by ISS-Oberlausitz */
/* Author: T.Hojenski */

var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var zfzahl = Math.random(); // Zufallszahl für Btn-Hover-Effekt

function img_view(ds,lg,pf)
{
   url = pf + './img_view.php?ds=' + ds + '&lg=' + lg;
   galwindow = window.open(url,'_blank','location=no,scrollbars=auto,toolbar=no,resizable=yes,left=1,top=1,width=665,height=650');
   galwindow.moveTo(((screen.availWidth-720)/2),((screen.availHeight-650)/2)-20)
}
function NavViewOn(tdf,obj,txt) {
   tdf.src = obj + '_2.gif';
   window.status = txt;
   setTimeout("window.status=''",25000);
}

function NavViewOff(tdf,obj,awhl) {
   tdf.src = obj + '_' + awhl + '.gif';
   window.status = '';
}
function btnchange(obj,bwhl,zst){
   if(!obj.src) {
      if(document.all) obj = document.all(obj);
      else if(document.getElementById) obj = document.getElementById(obj);
   }
   if(zst == true)  obj.src = 'images/sys/' + bwhl + '2.gif';
   if(zst == false) obj.src = 'images/sys/' + bwhl + '.gif';
   obj.title = bwhl;
}

function loadincl() {
   document.write('<sc'+'ript src="js/ipub_ticker.js" type=text/java'+'script></script>');
   document.write('<sc'+'ript src="js/ipub_tooltip.js" type=text/java'+'script></script>');
}

function openWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function nav_change(obj_id,zst){
   if(document.getElementById || document.all) {
      if(document.all) {
         obj = document.all('npt_'+obj_id);
         link = document.all('nl_'+obj_id);
      } else if(document.getElementById) {
         obj = document.getElementById('npt_'+obj_id);
         link = document.getElementById('nl_'+obj_id);
      }
      if (zst == 1 || zst == 2) {
         obj_src = obj.src;
         link_class = link.className;
         if (zst == 2) {
            obj.src = 'images/sys/snav2.gif';
            link.className = 'ntwo3';
         } else {
            obj.src = 'images/sys/snav2.gif';
            link.className = 'ntwo3';
         }
      } else {
         obj.src = obj_src;
         link.className = link_class;
      }
   }
}


function setline(theRow,linecolor,stopcolor) {
   if (linecolor == '' || typeof(theRow.style) == 'undefined') {
      return false;
   }
   if (typeof(document.getElementsByTagName) != 'undefined') {
      var theCells = theRow.getElementsByTagName('td');
   } else if (typeof(theRow.cells) != 'undefined') {
      var theCells = theRow.cells;
   } else {
      return false;
   }
   var rowCellsCnt  = theCells.length;
      theCells[0].style.backgroundColor = stopcolor;
   for (var c = 1; c < rowCellsCnt; c++) {
      theCells[c].style.backgroundColor = linecolor;
   }
   return true;
}
