function Browser() {
	var b=navigator.appName
	if (b=="Netscape") this.b="ns"
	else if (b=="Microsoft Internet Explorer") this.b="ie"
	else this.b=b
	this.version=navigator.appVersion
	this.v=parseInt(this.version)
	this.ns=(this.b=="ns" && this.v>=4)
	this.ns4=(this.b=="ns" && this.v==4)
	this.ns5=(this.b=="ns" && this.v==5)
	this.ie=(this.b=="ie" && this.v>=4)
	this.ie4=(this.version.indexOf('MSIE 4')>0)
	this.ie5=(this.version.indexOf('MSIE 5')>0)
	this.ie55=(this.version.indexOf('MSIE 5.5')>0)
	this.dom=((document.createRange&&(document.createRange().createContextualFragment))?true:false)
	this.min=(this.ns||this.ie)
	var ua=navigator.userAgent.toLowerCase()
	if (ua.indexOf("win")>-1) this.platform="win32"
	else if (ua.indexOf("mac")>-1) this.platform="mac"
	else this.platform = "other"
}
is=new Browser();


/// Bilder-Preload und Wechsel ///

function preload(imgObj,imgSrc){
	eval(imgObj+'= new Image()');
	eval(imgObj+'.src= "' + imgSrc+'"');
}
function changeImage(imgName,imgObj){
	if(is.ns4) eval('document.images["' + imgName + '"].src= '+ imgObj + '.src');
	else document.images[imgName].src= eval(imgObj + ".src");
}


// -----DRUCKFUNKTION:-----
function drucken() {

  if(navigator.userAgent.toLowerCase().indexOf( "mac" )!=-1){
            alert('Your browser does not support this function \n press "command" + "P" to print this page.');
            return;
        }


  var OLECMDID_PRINT= 6;
  var OLECMDEXECOPT_DONTPROMPTUSER= 2;
  var OLECMDEXECOPT_PROMPTUSER= 1;
  var WebBrowser= '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';

  if( parseFloat( navigator.appVersion ) < 4 ){      //parseFloat() schneidet nicht Zahlenzeichen einfach ab!
   alert('Your browser does not support this function. You can either update your browser or press "Ctrl" + "P" to print this page.');  
  }
  else {
    if( navigator.appName.indexOf( "Netscape" )!=-1 ){
      window.print();
    }
    else {
      self.focus();
      document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
      WebBrowser1.ExecWB( OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER );
      WebBrowser1.outerHTML= '';
    }
  }
}

function statPopUp(url,popup){

  if (is.platform == "win32"){
  menu = "no"
  }

  if (is.platform == "mac"){
  menu = "yes"
  }


  window[popup] = window.open(url,popup,"width=500,height=500,scrollbars=yes,resizable=yes,menubar="+menu);
  window[popup].focus();
}

function fotoQuerPopUp(url,popup){

  if (is.platform == "win32"){
  menu = "no"
  }

  if (is.platform == "mac"){
  menu = "yes"
  }


  window[popup] = window.open(url,popup,"width=660,height=520,scrollbars=yes,resizable=yes,menubar="+menu);
  window[popup].focus();
}

function fotoHochPopUp(url,popup){

  if (is.platform == "win32"){
  menu = "no"
  }

  if (is.platform == "mac"){
  menu = "yes"
  }


  window[popup] = window.open(url,popup,"width=500,height=500,scrollbars=yes,resizable=yes,menubar="+menu);
  window[popup].focus();
}


function bwrPopUp(url,popup){

  if (is.platform == "win32"){
  menu = "no"
  }

  if (is.platform == "mac"){
  menu = "yes"
  }


  window[popup] = window.open(url,popup,"width=500,height=500,scrollbars=yes,resizable=yes,menubar="+menu);
  window[popup].focus();
}


function wopenPopNormGross(url,scr,size){

  if (is.platform == "win32"){
  menu = "no"
  }

  if (is.platform == "mac"){
  menu = "yes"
  }

  scroll = (scr != "") ? "yes" : "no";
  resize = (size != "") ? "yes" : "no";

  window[popup] = window.open(url,"Help","popup_gross","width=483,height=490,scrollbars="+scroll+",resizable="+resize+",menubar="+menu);
  window[popup].focus();
}


function wopenPopNormKlein(url,scr,size){

  if (is.platform == "win32"){
  menu = "no"
  }

  if (is.platform == "mac"){
  menu = "yes"
  }

  scroll = (scr != "") ? "yes" : "no";
  resize = (size != "") ? "yes" : "no";

  window[popup] = window.open(url,"popup_klein","width=458,height=490,scrollbars="+scroll+",resizable="+resize+",menubar="+menu);
  window[popup].focus();
}




function wopen_spez(url,scr,size){

  if (is.platform == "win32"){
  menu = "no"
  }

  if (is.platform == "mac"){
  menu = "yes"
  }

  scroll = (scr != "") ? "yes" : "no";
  resize = (size != "") ? "yes" : "no";

  window[spezpopup] = window.open(url,"spezpopup","width=464,height=316,scrollbars="+scroll+",resizable="+resize+",menubar="+menu);
  window[spezpopup].focus();
}

<!-- Zeitberechnung 
Stamp = new Date();
	
	var Hours;
	var Mins;
	var Time;
	var Tag;
	var Monat;
	var Jahr;
	
	Hours = Stamp.getHours();
	Mins = Stamp.getMinutes();
	Tag = Stamp.getDate();
	Monat = (Stamp.getMonth()+1);
	if (navigator.appName == "Netscape") Jahr  = (Stamp.getYear() + 1900)
	else
	Jahr  = Stamp.getYear();
	
	if (Tag < 10) Tag = "0" + Tag;
	if (Monat < 10) Monat = "0" + Monat;
		
	if (Mins < 10) 
	{
    Mins = "0" + Mins;
  }
<!-- document.write('<font size="2" face="Arial"><B>' +Stamp.getDate()+ "."+ (Stamp.getMonth() + 1) +"."+Stamp.getYear() + '</B></font><BR>');
<!--document.write ('<font size="2" face="Arial"><B>' + Hours + ":" + Mins + '</B></font>');
//-->


function datum()
{  
  document.write(Tag+ "."+ Monat +"."+Jahr);
}

function zeit()
{
  document.write(Hours + ":" + Mins);
}

function datum_pendent1()
{
  if(Stamp.getDate() > 23)
  {
    Tag  = 3;
    
    if((Stamp.getMonth() + 1) > 11)
    {
      Monat = 1;
      Jahr  = (Stamp.getYear() + 1);
    }
    else
    {
      Monat = ((Stamp.getMonth() + 1) + 1);
      Jahr  = Stamp.getYear();
    }
  }    
  else
  {
    Tag  = (Stamp.getDate() + 5);
    Monat = (Stamp.getMonth() + 1);
    Jahr  = Stamp.getYear();
  }
    
  if (Tag < 10) Tag = "0" + Tag;
  if (Monat < 10) Monat = "0" + Monat;
  if (navigator.appName == "Netscape") Jahr  = (Jahr + 1900);
  
  document.write(Tag + "."+ Monat +"."+ Jahr);
}


function copyright()
{
document.writeln('<p class="disclaimer">&copy;1999 - 2004 Blackwater Rangers </p>');
}
