/* DATEI: *.js */


/* Javascript Datei BLUEPAGE CMS 07 -2004 */
/* Copyright by ISS-Oberlausitz */
/* Author: T.Hojenski */

function img_view(ds,lg,pf,inhId) {
   url = pf + './img_view.php?ds=' + ds + '&lg=' + lg + '&inhId=' + inhId;
   opt = 'location=no,scrollbars=auto,toolbar=no,resizable=yes,left=' + ((screen.availWidth-720)/2) + ',top=' + (((screen.availHeight-650)/2)-20) + ',width=665,height=650';
   galwindow = window.open(url,'_blank',opt);
   galwindow.moveTo(((screen.availWidth-720)/2),((screen.availHeight-650)/2)-20)
}

function loadtime() {
   document.write('<sc'+'ript src="js/gwz_time.js" type="text/java'+'script"></script>');
}

function NavViewOn(tdf,lg,obj,awhl,txt) {
   if (!tdf.src) {
      if(document.all) tdf = document.all(tdf);
      else if(document.getElementById) tdf = document.getElementById(tdf);
   }
   tdf.src = lg + '/menu/' + awhl + obj;
   window.status = txt;
   setTimeout("window.status=''",25000);
}

var obj_src,link_class;

function nav_change(sel,zst){
   if(document.getElementById || document.all) {
      if(document.all) {
         obj = document.all(sel);
         link = document.all(sel+'_txt');
      } else if(document.getElementById) {
         obj = document.getElementById(sel);
         link = document.getElementById(sel+'_txt');
      }
      obj.src = "images/sys/"+sel+zst+".gif";
      link.className = "bnav"+zst;
   }
}
function navb_change(sel,zst){
   if(document.getElementById || document.all) {
      if(document.all) {
         obj = document.all(sel);
         link = document.all(sel+'_txt');
      } else if(document.getElementById) {
         obj = document.getElementById(sel);
         link = document.getElementById(sel+'_txt');
      }
      obj.src = "images/sys/"+sel+zst+".gif";
      link.className = "b2nav"+zst;
   }
}
function btnchange(obj,whl,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/' + whl + '2.gif';
   if(zst == false) obj.src = 'images/sys/' + whl + '.gif';
//   obj.title = whl;
}
/*


function setline(theRow,linecolor) {
   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 = 0; c < rowCellsCnt; c++) {
      theCells[c].style.backgroundColor = linecolor;
   }
   return true;
}

function addbookmark() {   // IE
   if (document.all && navigator.userAgent.indexOf('Opera') <= -1) {
      var bookmarkurl="http://www.demo.bluepage.com"
      var bookmarktitle="BLUEVILLE - DEMO BLUEPAGE-CMS V2.3"
      window.external.AddFavorite(bookmarkurl,bookmarktitle)
   } else {
      alert("Dieser Link funktioniert nur bei Benutzern des Internet-Explorers.\n\nBenutzen Sie bitte die Tastenkombination für\nNetscape/Mozilla:\t\tSTRG+D,\nOpera:\t\t\tSTRG+T.")
   }
}


function nav_hover(theRow,theClass,txt) {
   window.status = txt;

   if (typeof(document.getElementsByTagName) != 'undefined') {
      var theCells = theRow.getElementsByTagName('td');
      var theLinks = theRow.getElementsByTagName('a');
   } else if (typeof(theRow.cells) != 'undefined') {
      var theCells = theRow.cells;
      var theLinks = theRow.theLinks;
   } else {
      return false;
   }
   var rowCellsCnt  = theCells.length;

   for (var c = 0; c < rowCellsCnt; c++) {
      theCells[c].className = theClass;
      theLinks[c].className = theClass;
   }
   return true;
}




*/