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


var currentId = -1;
var offElement = true;
var lastType = -1;
//var setTimeId;

function TipSvet(id, type){
	lastType = type;
	if(type == 0){
		offElement = true;				
		setTimeout('close_my_f_menu(' + id + ', ' + lastType +')', 100);
	}
	else{			
		offElement = false;	
		if(currentId != id && currentId != -1 && currentId != '-1'){
			//alert('close: ' + currentId);setTimeout('close_my_f_menu(' + id + ')', 1000);
			document.getElementById(currentId).style.display = 'none'; 
		}
		else{
								
		}
		currentId = id;
		document.getElementById(id).style.display = 'block';	
	}
	//alert(currentId + ' :: ' + id + ' :: ' + offElement + '::' + type);
}
function close_my_f_menu(id, type){
	if(lastType == type && currentId == id)
		document.getElementById(id).style.display = 'none';			
}
