/************************************************************************************************  
  Browserabfrage:
************************************************************************************************/
   function Browsercheck(){
	this.ver=navigator.appVersion 								 
	this.dom=document.getElementById?1:0						
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;   
	this.ie4=(document.all && !this.dom)?1:0;					
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;		
	this.ns4=(document.layers && !this.dom)?1:0;				
	this.ok=(this.ie5 || this.ie4 || this.ns4 || this.ns6)		
	if(this.ie6) this.ie5 = 1;
	return this
  }
  Browser = new Browsercheck();

/************************************************************************************************  
  MouseOver
************************************************************************************************/

  function preloadImages() {
	  if(document.images) {
		  document.imgpreload = new Array();
		  var array = preloadImages.arguments
		  for(i=0; i<array.length; i++) {
			  document.imgpreload[i] = new Image;
			  document.imgpreload[i].src = array[i];
		  }
	  }
  }
  
  function swapImage(doc, imgName, imgUrl, imgText) {
	  if(imgText!="") { window.status = imgText; }
  	if(doc.images) {
	    doc.images [imgName].srcORG = doc.images [imgName].src;
		doc.images [imgName].src = imgUrl;
	  }
  }
  function swapImageRestore(doc, imgName) {
	  window.status = '';
	  if(doc.images) {
		  doc.images [imgName].src = doc.images [imgName].srcORG;
	  }
  }
/************************************************************************************************  
  Fenster oeffnen:
************************************************************************************************/
var F1;
var welches;
function oeffne(url){
  welches = url; 
  window.setTimeout("oeffne2()",3000);
}
function oeffne2(){
  F1 = window.open(welches,"news","width=428,height=350,screenX=30,screenY=30,toolbar=0,menubar=0,location=0,resizable=0,scrollbars=yes"); 
  if (F1){  F1.moveTo(screen.width/2-355,180);
    F1.focus();
  }
}

//Ueberpruefung, ob Fenster geschlossen wurde (funktioniert nur, solange man auf der Seite bleibt)
function CheckOpen() {
      if(F1){
        if(F1.closed == true) alert("Fenster wurde geschlossen");
        else alert("Fenster noch offen");
      }else oeffne('news.htm');
    }
/**********************************************************************************************/
