
/* Simple version detection */
 	var isNS = (navigator.appName == "Mozilla" && parseInt(navigator.appVersion) >= 2);
  
/* They can be used in place of hidden and visible because on occasion Navigator has problems with the two */
 	var HIDDEN = (isNS) ? 'hide' : 'hidden';
 	var VISIBLE = (isNS) ? 'show' : 'visible';
	
var openedWindow;
  
function showObject(object){
	if((isNS) ? document.layers[object] : document.all[object]){
	(isNS) ? document.layers[object].visibility = VISIBLE : document.all[object].style.visibility = VISIBLE;
		}
	}
			
function hideObject(object){
	if((isNS) ? document.layers[object] : document.all[object]){
	if (isNS){document.layers[object].visibility = HIDDEN;}
	else {//Checks if mousepointer moves outside subMenu (in IE)
		if (document.all[object].className == 'expl' || document.all[object].className == 'pict'){
			document.all[object].style.visibility = HIDDEN
			}
		else {if (!(document.all[object].contains(window.event.toElement))){
			document.all[object].style.visibility = HIDDEN
				}
			}
		}
	}	
}	
			
function changeLocation(location){
	document.location = location;
}			
			

	
function popUp2(newWindow) {
	if (!openedWindow || openedWindow.closed){ openedWindow=window.open(newWindow,'Converter','width=200,height=340,resizable,scrollbars');
		openedWindow.focus();
		return false;
	} else {
		openedWindow.document.location = newWindow;
		openedWindow.focus();
		return false;		
	}
}
