// Funktion för meny dölj och visa 
function visa(sw,id) { 
var vis = (sw ? 'visible' : 'hidden'); 
if (document.getElementById) 
document.getElementById(id).style.visibility = vis; 
else if (document.all) 
document.all[id].style.visibility = vis; 
else if (document.layers) 
document.layers[id].style.visibility = vis; 
} 
 
// Funktion för meny ändra färg 
function farg(id,an) { 
var fa = (an ? '' : '#3A6388'); 
if (document.getElementById) 
document.getElementById(id).style.backgroundColor = fa; 
else if (document.all) 
document.all[id].style.backgroundColor = fa; 
else if (document.layers) 
document.layers[id].style.backgroundColor = fa; 
} 
 
// Funktion för popup 
function popup(URL,title,width,height,scroll,status,menubar,org){ 
if (parseInt(navigator.appVersion) >= 3){ 
if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)<5){ 
var tools = new Packages.java.awt.Toolkit.getDefaultToolkit(); 
screen=tools.getScreenSize(); 
} 
} 
x = screen.width; 
y = screen.height; 
 
window.open(URL,title,"top=" + parseInt(y/2-height/2) + ",left=" + parseInt(x/2-width/2) + ",width=" + width + ",height=" + height +",scrollbars=" + scroll + ",status=" + status + ",menubar=" + menubar + ",directories=no, location=no"); 
}
