window.addEventListener("load", function () {onload (); onload = null}, false); window.addEventListener("resize", onresize, false); function onload () { // quickbar initialesieren cbInit(); } function onresize () { if (window.innerWidth>24) { showSidebar (window.innerWidth); } } function swapEditMode () { var opener = top.getOpener (true); if (opener) { var act = new opener.Action (); act.request (0, "swapEditMode"); } } function reload () { top.reload (true); } function detatchSidebar () { var opener = top.getOpener (false); if (opener && opener.Action) { top.cms.sidebarDetatch = true; top.cms.windowOnunload = true; new opener.Action ().showWindow (top.cms_content.location.search); } } function showSidebar (width) { var f1 = top.document.getElementById ("cms_frameset_1"); var f2 = top.document.getElementById ("cms_frameset_2"); top.cms.sidebarDetatch = false; f1.cols = width ? (width+",*") : (top.cms.sidebarWidth ? top.cms.sidebarWidth : "320,*"); f2.cols = "*,0"; } function logoutUser () { top.setProgress (true); var request = new Ajax ("../html/html_action.php", "action=logout"); request.onCompletion = function (response) { //d (response); var xml = document.createElement("xml"); xml.innerHTML = response; xml = xml.firstChild; top.location.href = xml && xml.getAttribute ('url') ? xml.getAttribute ('url') : "/"; } request.run (); }