if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4)) {
 document.write('<link rel="stylesheet" type="text/css" href="sika-nn.css">');
}

var win= null;
function NewWindow(mypage,myname,w,h,scroll){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=no';
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function openRemote(remoteURL) {
	var hposition = (screen.width-360);
	var settings  ='width=350,';
	settings +='height=345,';
	settings +='top=30,';
	settings +='left='+hposition+',';
	settings +='scrollbars=no,';
	settings +='resizable=no';
	var win = window.open(remoteURL,'QuickLinks',settings);
	win.opener.name = "sika";
  // commented out because it breaked in nn4.x
  //if(parseInt(navigator.appVersion) >= 4){
  //	win.window.focus();
  //}
}



var w3c = (document.getElementById) ? 1:0;
var ns4 = ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) ? true : false;
var ie4 = (document.all) ? 1:0;
var DHTML = (w3c || ns4 || ie4);

// handle resize
if (DHTML && ns4) window.onresize=catchThatResizingSucker;
function catchThatResizingSucker() {
 history.go(0);
}

function getObject(name)
{
  if (w3c) {
  	this.obj = document.getElementById(name);
	if (this.obj) this.style = document.getElementById(name).style;
  }
  else if (ie4) {
	this.obj = document.all[name];
	if (this.obj) this.style = document.all[name].style;
  }
  else if (ns4) {
  	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

var openDropdown;

// Functions to show / hide the dropdown menu
var hideTimeout ;
function showmenu(mid) {
	if (!DHTML) return;
	var theObj = new getObject('dd' + mid);
	if (!theObj.style) return;
	if (hideTimeout) {
		clearTimeout(hideTimeout);

		// is another dropdown open ?
		if (openDropdown && openDropdown.style) {
			openDropdown.style.visibility = "hidden";
			openDropdown = null;
		}
	}
	theObj.style.visibility = "visible";

	// register the dropdown as open
	openDropdown = theObj;
}
var hideObj;
function hidemenu(mid) {
	if (!DHTML) return;
	var protoHideObj = new getObject('dd' + mid);
	if (!protoHideObj.style) return;
	hideObj = protoHideObj;
	if (hideTimeout) clearTimeout(hideTimeout);
	hideTimeout = setTimeout('openDropdown = null; hideObj.style.visibility = "hidden"', 1000);
}
	// --------------------
	// open Window
	function openWindow(whichFile){
		if (whichFile.indexOf(".swf")>-1) {
			// Fenster für SWF (400x300 Pixel)
			setWin(whichFile,"win_document","400","300","","","0","0","1","0","0","0","0")
		} else {
			// neues Fenster
	   		setWin(whichFile,"win_document","","","","","1","1","1","1","0","1","1")
		}
	}
	// set Window
	function setWin(url,popName,windowWidth,windowHeight,top,left,toolbar,scrollbars,resizable,location,directories,status,menubar){
		/*
  		var url = "";
  		var popName = "";
  		var windowWidth = 0 ;
  		var windowHeight = 0;
  		var top = 0;
  		var left = 0;
  		var toolbar ="0";
 		var scrollbars ="0";
  		var resizable ="0";
  		var location ="0";
  		var directories ="0";
  		var status="0"
  		var menubar ="0";
		*/
  		if(window.popup){
    		if (!(popup.closed)) {
      			popup.close();
    		}
    		openWin(url,popName,windowWidth,windowHeight,top,left,toolbar,scrollbars,resizable,location,directories,status,menubar);
  		}
  		else{
    		openWin(url,popName,windowWidth,windowHeight,top,left,toolbar,scrollbars,resizable,location,directories,status,menubar);
  		}
	}
	// open Window
	function openWin(url,popName,windowWidth,windowHeight,top,left,toolbar,scrollbars,resizable,location,directories,status,menubar){
		popup = window.open(url,popName,"toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",width="+windowWidth+",height="+windowHeight+",top="+top+",left="+left).focus();
	}



