// JavaScript Document function makeRequest(url) { var httpRequest; if (window.XMLHttpRequest) { // Mozilla, Safari, ... httpRequest = new XMLHttpRequest(); if (httpRequest.overrideMimeType) { httpRequest.overrideMimeType('text/xml'); // See note below about this line } } else if (window.ActiveXObject) { // IE try { httpRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { httpRequest = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } if (!httpRequest) { //alert('Giving up :( Cannot create an XMLHTTP instance'); return false; } httpRequest.onreadystatechange = function() { alertContents(httpRequest); }; httpRequest.open('GET', url, true); httpRequest.send(''); } function alertContents(httpRequest) { if (httpRequest.readyState == 4) { if (httpRequest.status == 200) { actImg.innerHTML = httpRequest.responseText; } else { //alert('There was a problem with the request.'); } } } var rm = "show"; var sm ="show"; var oMenu = false; var tabcurrent = "openingszin"; var currentmenu = null; var menus = new Array( "menu_00" , "menu_01" , "menu_02", "menu_03" ); var mState = new Array(0, 0, 0, 0); var states = new Array( "hidden" , "show"); function checkLocationnu() { if ( window.location.href.split("&c=")[1]) { showTabIndex(tab,menu); } } function showTabIndex(tab,menu){ l = window.location.hostname ; window.location = "http://" + l + "/index.php?&tab="+ tab + "&menu="+ menu; } function tab_findObj(id) { x = document.getElementById(id); return x; } function hNext( h , s ) { tab_findObj(h).className = "hidden"; tab_findObj(s).className = "show"; } function hMenu(){ tab_findObj("sectionLinks").className = rm; if (rm =="hidden") { rm = "show"} else { rm = "hidden"} ; } function showTabl( id ) { tab_findObj(tabcurrent).className = "hidden"; tab_findObj(id) .className= "show"; tabcurrent = id ; sm="show"; } function curMenu( id ) { if (currentmenu) { tab_findObj(currentmenu).className = "hidden" } tab_findObj( id).className = "show"; currentmenu = id; } function sMenu( id, ind ) { if ( window.location.href.split("&c=")[1]) { tab = 'content_tab_' + ind + '1'; showTabIndex(tab,id); return; } showTabl('content_tab_' + ind + '1'); curMenu(id ); } function checkLocation() { if ( window.location.href.split("&menu=")[1]) { c = window.location.href.split("&menu=")[1]; t = window.location.href.split("&tab=")[1]; tab = t.split("&menu=")[0] showTabl( tab ); curMenu(c ) } }