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

//scripte menyja
var dom = document.getElementById?1:0;
var ns4 = document.layers?1:0;


function showMenu(name,number) {

 var groups = 8;

 for (count = 1; count <= groups; count++) {
 var content = name + count;
 var active = name + number;

  if(dom) {
   if(content == active) {
    document.getElementById(active).style.visibility = 'visible';
    document.getElementById(active).onmouseover = clearShut;
    document.getElementById(active).onmouseout = setShut;   //automatikisht hiden
   }
   else {
    document.getElementById(content).style.visibility = 'hidden';
   }
  }
  else if(ns4) {
   if(content == active) {
    document[active].visibility = 'show';
    document[active].onmouseover = clearShut;
    document[active].onmouseout = setShut;			//automatikisht hiden
   }
   else {
    document[content].visibility = 'hide';
   }
  }
 }
 first = name, sec = number;
 clearShut();
}


function setShut() { 

timer = setTimeout("shut(first,sec)", 500);
}


function clearShut() {

if(window.timer)
clearTimeout(timer);
}


function shut(first,sec) {

 var active = first + sec;

 if(dom)
 document.getElementById(active).style.visibility = 'hidden';
 else if(ns4)
 document[active].visibility = 'hide';
}

//status zeile
var txt = "";
function szeile(anzeige)
   {
    status = anzeige;
   }
  
 // Print window
 var drucken = null;
 function win_print(Seite,Name,w,h,scroll) {
		 LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
		 TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
		 
		  set = 'height='+h+',width='+w+', top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable, menubar=1'
		  drucken = window.open(Seite,Name,set)

}
 
 /// Fenster 
 		var Fenster = null;
		function upload(meineSeite,meinName,w,h,scroll)
		{
			LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
			TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
		
			settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
			Fenster = window.open(meineSeite,meinName,settings)
		}
		
  /// Formatiert
  
 function openIT1(u) {
	return win_mm(u,'rarewin',1000,750,null,null,
			   '../../img/close_up.gif','images/img/close_ovr.gif',
			   '../../img/clock.gif',
			   '../../img/min_up.gif','images/img/min_ovr.gif',
			   '../../img/max_up.gif','images/img/max_ovr.gif',
			   '../../img/res_up.gif','images/img/res_ovr.gif',
			   '<font face=impact color=#f0f0f0 size=5>&nbsp;&nbsp; Klix Deckenradiatoren GmbH</font>','|| Technische Daten || www.klix-deckenradiatoren.de',
			   '#EEEEE6','#AC1F23',
			   '#AC1F23','#3399CC',
			   'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0','scrolling=no noresize',
			   1,false,false,false,35)
}