//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
// Javascript for SECUMAR.com                                                 //
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//

i = 0;

function On(Name) {
	if (document.images) {
  	for (i = 0; i < NumPics; i++) {
  		if (document.images[Pics[i][2]] != null) {
  			if (Name != Pics[i][2]) {
  				document.images[Pics[i][2]].src = Pics[i][0].src;
  			} else {
  				document.images[Pics[i][2]].src = Pics[i][1].src;
  				window.parent.status=Pics[i][3];
  			}
  		}
  	}
	}
}

function Off(Name) {
	if (document.images) {
  	for (i = 0; i < NumPics; i++) {
  		if (document.images[Pics[i][2]] != null) {
  			document.images[Pics[i][2]].src = Pics[i][0].src;
  		}
  	}
	}
}

function neptun() {
  neptun=window.open("movie.pl?hebe2","neptun","toolbar=0,location=0,status=1,menubar=0,scrollbars=0,resizable=1,width=300,height=250");
}

if (document.layers) ns=true
  else ns = false;
if(document.getElementById) mo=true
  else mo=false;
if(document.all) ie=true
  else ie=false;

function mOver(cell) {
  if (document.getElementById) {
    cell.style.cursor = 'hand';
    cell.bgColor = '#ffe6b1';
  }
}

function mOut(cell) {
  if (document.getElementById) {
    cell.style.cursor = 'default';
    cell.bgColor = '#FFFFFF';
  }
}

function mClick(cell) {
  window.location.href = cell;
}

function MM_showHideLayers() {
  var i, visStr, args, theObj, obj1, obj2;
  args = MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) { //with arg triples (objNS,objIE,visStr)
    visStr = args[i+2];
    if (navigator.appName == 'Netscape' && document.layers != null) {
      theObj = eval(args[i]);
      if (visStr == 'show') {
        args[1].visibility = "show";
        eval(args[1]+'.visibility = "show"');}
      else { args[1].visibility = "hide"; }
    } else {
      if (document.all != null) { //IE
        if (visStr == 'show') visStr = 'visible'; //convert vals
        if (visStr == 'hide') visStr = 'hidden';
        theObj = eval(args[i+1]);
        if (theObj) theObj.style.visibility = visStr;
      }
    }
  }
}

function fn_galerie (nav) {
  GalerieFenster = window.open(nav ,"SECUMARgalerie", "width=950,height=768,resizable=yes,scrollbars=yes");
  GalerieFenster.focus();
}
