var DHTML = 0, DOM = 0, MS = 0, NS = 0, OP = 0;

function DHTML_init() {

 if (window.opera) {
     OP = 1;
 }
 if(document.getElementById) {
   DHTML = 1;
   DOM = 1;
 }
 if(document.all && !OP) {
   DHTML = 1;
   MS = 1;
 }
if(document.layers && !OP) {
   DHTML = 1;
   NS = 1;
 }
}

//----------------------------------------------------------------------

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();
    }


//----------------------------------------------------------------------

var Email;

function openEmail(){
		if(NS){
			var w = 550;
			var h = 655;
		}
		else {
			var w = 555;
			var h = 610;
		}
		var x = (screen.availWidth - w ) / 2;
		var y = (screen.availHeight - h) / 2;

		Email =  window.open('mail.htm', 'mail', 'left='+x+',top='+y+',width='+w+',height='+h+',status=no,toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes');
		Email.focus();
}

function openMessen(){
		document.NewsTicker.Zeile.blur();
		var x = (screen.availWidth - 500)/2;
		var y = (screen.availHeight - 800)/2;
		Messen =  window.open('http://www.heri.de/fairs.htm', 'fairs', 'left='+x+',top='+y+',width=500,height=800,status=no,toolbar=no,location=no,menubar=no,scrollbars=no');
		Messen.focus();
		//alert(result);
	 }


//-----------------------execute on load----------------------------------
DHTML_init();
MM_reloadPage(true);
