function inet_pop_win(pageToLoad, winName, width, height, center, ramme) { xposition=0; yposition=0; if ((parseInt(navigator.appVersion) >= 4 ) && (center)){ xposition = (screen.width - width) / 2; yposition = (screen.height - height) / 2; } width = width + ramme * 2 args = "width=" + width + "," + "height=" + height + "," + "location=0," + "menubar=0," + "resizable=0," + "scrollbars=0," + "status=0," + "titlebar=0," + "toolbar=0," + "hotkeys=0," + "left=" + xposition + "," + "top=" + yposition; window.open(pageToLoad+"&ramme="+ramme,winName,args ); } function idmenu_entity_click(entity_id) { if (document.getElementById(entity_id).style.display == "none") { document.getElementById(entity_id).style.display = "block"; document.getElementById("img_" + entity_id).src = "./site/images/menu/folder_open.gif"; } else { document.getElementById(entity_id).style.display = "none"; document.getElementById("img_" + entity_id).src = "./site/images/menu/folder_closed.gif"; var i = 0; var entity_col = document.getElementById(entity_id).children; for (i=1; i < entity_col.length; i++) { if (entity_col(i).style.display == "block") { idmenu_entity_click(entity_col(i).id); } } } } function idmenu_init(parent_id) { if (document.getElementById(parent_id).style.display == "none") { idmenu_entity_click(parent_id); parent_id = document.getElementById(parent_id).parentNode.id; if (parent_id != "id_menu") { idmenu_init(parent_id); } } } function idmenu_initdoc() { var parent_id = document.getElementById("page_active").parentNode.id; return parent_id; } function inet_open_win() { if (ua["dom"]) { var url = ""; var target = ""; var attributes = ""; if (arguments.length > 0) { url = arguments[0]; } //Target attribute: if (arguments.length > 1) { target = arguments[1]; } //Optional attributes: if (arguments.length > 2) { attributes = arguments[2]; } win = window.open(url, target, attributes); win.focus(); return false; } } /**** INIT ****/ function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != "function") { window.onload = func; } else { window.onload = function() { oldonload(); func(); } } }