var indexURL=document.getElementsByTagName("base")[0].href;var indexPage="index.php";var SEPARATOR="#$#%#";var navIe=(window.ActiveXObject)?true:false;var iframe;var state=0;var states=new Array();var iframeChange=0;var lastUrl="";function loadIframe(){if(navIe){iframe=new Element("iframe",{src:"",styles:"display: none"});document.body.appendChild(iframe);var A=iframe.contentWindow.document;A.open();A.write('<html><body>state: <input id="state" type="text" value="'+(state)+'" /></body></html>');A.close();states[state]=lastUrl}}var checkUrl=function(){var B=window.location.href;if(navIe){try{var A=iframe.contentWindow.document.getElementById("state").value}catch(E){A=state}}if(B!=lastUrl){lastUrl=B;if(B.split("#").length==2){if(navIe){if(iframeChange==0){try{var D=iframe.contentWindow.document;D.open();D.write('<html><body><input id="state" type="hidden" value="'+(++state)+'" /></body></html>');D.close();states[state]=lastUrl}catch(E){}}else{iframeChange=0}}var C="";if((B.split("#")[0].toLowerCase()==indexURL.toLowerCase())&&B.split("#")[1]==""){C="index.php"}if(C==""){C=decodeURIComponent(B.split("#")[1])}makeRequest(C)}else{if(document.getElementsByTagName("base")[0]){window.location=window.location.href+"#"}}}else{if(navIe&&A!=state){window.location=states[A];state=A;iframeChange=1}}};var interval=setInterval(checkUrl,100);