<!--


// browsercheck
/*  (c) 8/2002, 9/2005, 6/2008 Kristof Lipfert Duesseldorf    */

var d_version=20081204;

var x=[];
if(document.ids){x=['nc4','Netscape Navigator 4'];if(!window.navigator.securityPolicy)x[1]+='.0';else x[1]+='.5-4.8';}
else if(document.all&&!document.getElementById){if(!document.layers)x=['ie4','Internet Explorer 4'];else x=['ow4','OmniWeb 4.x'];}
else if(window.opera&&!document.createElement)x=['op5','Opera 5'];
else if(window.opera&&window.getComputedStyle){
  if(document.querySelectorAll)x=['o10','Opera 10']; else
if(window.getSelection){ x=window.postMessage?5:2;if(x==5){function tst(){if(tst.caller+''=='null')x+=1;}tst();} x=['o9'+x,'Opera 9.'+x];}
else if(document.createRange)x=['op8','Opera 8'];
else if(window.navigate)x=['o75','Opera 7.5'];else x=['o72','Opera7.2'];}
else if(window.opera&&document.compatMode)x=['op7','Opera 7'];
else if(window.opera&&document.releaseEvents)x=['op6','Opera 6'];
else if(document.contains&&!window.opera){x=['kq3','Safari / Konqueror 3'];
x[1]+=window.print?'.1/.2':'.0';
if(document.compatMode)x[1]='kq3.4';
}
 // else if(window.atob&&!document.doctype)x=['kme','Kmeleon'];
 // else if(window.sidebar&&window.atob)x=['nn7','Mozilla'];
 // else if(window.sidebar&&!document.compatMode)x=['nn6','Netscape 6 / Mozilla'];
// ['','','','','','','','','','','','','','',''],

else if(window.pkcs11&&window.XML){
  y=document.querySelectorAll?'1 ':' ';
  x=x=window.postMessage?3:2;x=window.external?['ff'+x,'FireFox '+x+y+'/ Gecko']:['f15','FireFox / Gecko Deer Park '];}
else if(window.pkcs11&&document.compatMode)x=['nn7','Mozilla / FireFox / Gecko '];
else if(window.atob&&document.defaultCharset){x=window.postMessage?31:3;if(document.compareDocumentPosition)x=4;x=['sf'+x,'Safari '+x];
if(window.execScript)x[1]+='/Google';}
else if(window.getSelection&&window.atob)x=['nn7','Mozilla / Gecko'];
else if(window.getSelection&&!document.compatMode)x=['nn6','Netscape 6 / Mozilla Beta'];



else if(window.clipboardData&&document.compatMode){  x=window.XMLHttpRequest?7:6; x+=window.postMessage?1:0; x=['ie'+x,'Internet Explorer '+x];}



// else if(window.clipboardData){x=['ie5','Internet Explorer 5']; if(navigator.appVersion.indexOf("MSIE 5.5")!=-1) x=['5.5','Internet Explorer 5.5']; if(document.doctype) x=['iem','Internet Explorer 5Mac'];}

else if(window.clipboardData){x=['ie5','Internet Explorer 5.0']; 

if(!document.createDocumentFragment) x=['ie5.5','Internet Explorer 5.5'];}

else if(document.doctype && !window.print ) x=['ie5m','Internet Explorer 5Mac'];

else if(document.getElementById&&!document.all){ x[0]='op4';x[1]='Opera 4';if(!window.RegExp) x[1]+='.0';else x[1]+='.1';}
else if(document.images&&!document.all) x=['nn3','Netscape Navigator 3'];
else if(!document.images) x=['2-3','NS 2, IE 3'];
else if(document.clientWidth&&!window.RegExp)x=['kq2','Safari / Konqueror 2'];
else x=['???','unbekannt'];

// ergebnis ausgeben:
//document.writeln(x); 



// check browser

var agt = navigator.userAgent.toLowerCase();
var ver = navigator.appVersion;
var dom = document.getElementById ? true : false;
var ie4 = (document.all && !this.dom) ? true : false;
var ie5 = (this.ver.indexOf("MSIE 5")>-1 && this.dom) ? true : false;
var ie6 = (this.ver.indexOf("MSIE 6")>-1 && this.dom) ? true : false;
var ie7 = (this.ver.indexOf("MSIE 7")>-1 && this.dom) ? true : false;
var ie8 = (this.ver.indexOf("MSIE 8")>-1 && this.dom) ? true : false;
var ie9 = (this.ver.indexOf("MSIE 9")>-1 && this.dom) ? true : false;
var ns4 = (document.layers && !this.dom) ? true : false;
var ns6 = (document.getElementById && !document.all) ? true : false;
//	this.ie4mac=this.ie4 && navigator.userAgent.indexOf("Mac")>-1;
//	this.ie5mac=this.ie5 && navigator.userAgent.indexOf("Mac")>-1;
//	this.ie55=(this.ver.indexOf("MSIE 5.5")>-1 && this.dom) ? true : false;
//	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.ie5mac);
var old = (this.ie9 || this.ie8 || this.ie7 || this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6) ? false : true;
var ie = (this.ns4 || this.ns6) ? false : true;

// check window size

function howBig() {
	if (navigator.userAgent.indexOf("MSIE") > 0) {
		var hSize = document.body.clientHeight;
		return hSize;
	} 
	else {                                                
		var hSize = window.innerHeight;
		return hSize;
	}
	return;      
}

// init CONTENT-div and preload images

function init() {
	if (ie4 || ie5) {
		document.body.style.overflow = "hidden";
		document.all.CONTENT.style.height = howBig() - 350;
		document.all.CONTENT.style.overflow = "auto";
 	}
	else
		if (ie9 || ie8 || ie7 || ie6 || ns6) {
			document.body.style.overflow = "hidden";
			document.getElementById("CONTENT").style.height = howBig() - 350;
			document.getElementById("CONTENT").style.overflow = "auto";
		}
//	MM_preloadImages('images/bg_07_r.gif','images/bg_08_r.gif');
}

// reload if window is resized

function reloadPage() {
	if (!ns4)
		setTimeout("document.location.reload(false)",1000);
}

// open image window

function openPicWin(thePic,picWidth,picHeight,winTitle,features) {
  if(window.screen){
    var myLeft = (screen.width-picWidth)/2;
    var myTop = (screen.height-picHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
	picWin = window.open('','picWindow',features+((features!='')?',':'')+'width='+picWidth+',height='+picHeight);;
	picWin.document.open();
	picWin.document.write('<html><title>'+winTitle+'</title><body bgcolor="#003399" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	picWin.document.write('<a href="javascript:self.close()">'); 
	picWin.document.write('<img src='+thePic+' width='+picWidth+' height='+picHeight+' alt="Click to close..." border="0">'); 
	picWin.document.write('</a>'); 
	picWin.document.write('</body></html>');
	picWin.document.close();
  if (picWin.opener == null) picWin.opener = self;
	if (picWin != null) 
		if (picWin.closed != true)	
			picWin.focus();
}

function DJR_openBrWindow(theURL,winName,features,myWidth,myHeight,isCenter) { 
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  mywindow = window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
	if (mywindow != null) 
		if (mywindow.closed != true)	
			mywindow.focus();
}


// dreamweaver scripts


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}




function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}


function tmt_findObj(n){
var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
}else{x=document.getElementById(n)}return x;
}

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 MM_showHideLayers() { //v3.0A Modified by Al Sparber and Massimo Foti for NN6 Compatibility
var i,p,v,obj,args=MM_showHideLayers.arguments;if(document.getElementById){
for (i=0; i<(args.length-2); i+=3){ obj=tmt_findObj(args[i]);v=args[i+2];
v=(v=='show')?'visible':(v='hide')?'hidden':v;
if(obj)obj.style.visibility=v;}} else{
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }}
}

function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  mywindow = window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
	if (mywindow != null) 
		if (mywindow.closed != true)	
			mywindow.focus();
}

//-->
