BrowserHistoryUtils={addEvent:function(e,d,b,a){a=a||false;if(e.addEventListener){e.addEventListener(d,b,a);return true}else{if(e.attachEvent){var c=e.attachEvent("on"+d,b);return c}else{e["on"+d]=b}}}};BrowserHistory=(function(){var B={ie:false,ie8:false,firefox:false,safari:false,opera:false,version:-1};var c="";var d=document.location.href;var x=document.location.href;var b=document.location.hash;var i="history/historyFrame.html?";var u=-1;var l=false;var E=[];var w=n(x,x+"#"+b,b);var z=[];var m=[];var j=null;var t=navigator.userAgent.toLowerCase();if(t.indexOf("opera")!=-1){B.opera=true}else{if(t.indexOf("msie")!=-1){B.ie=true;B.version=parseFloat(t.substring(t.indexOf("msie")+4));if(B.version==8){B.ie=false;B.ie8=true}}else{if(t.indexOf("safari")!=-1){B.safari=true;B.version=parseFloat(t.substring(t.indexOf("safari")+7))}else{if(t.indexOf("gecko")!=-1){B.firefox=true}}}}if(B.ie==true&&B.version==7){window._ie_firstload=false}function e(){d=document.location.href;var H=o();if(typeof BrowserHistory_multiple!="undefined"&&BrowserHistory_multiple==true){var G=v();for(var F=0;F<G.length;F++){G[F].browserURLChange(H)}}else{q().browserURLChange(H)}}function p(){return document.getElementById("ie_historyFrame")}function r(){return document.getElementById("safari_formDiv")}function a(){return document.getElementById("safari_remember_field")}function q(J){var F;if(J&&document.getElementById(J)){var G=document.getElementById(J);if(typeof G.SetVariable!="undefined"){return G}else{var I=G.getElementsByTagName("object");var H=G.getElementsByTagName("embed");for(F=0;F<I.length;F++){if(typeof I[F].browserURLChange!="undefined"){return I[F]}}for(F=0;F<H.length;F++){if(typeof H[F].browserURLChange!="undefined"){return H[F]}}}}else{var I=document.getElementsByTagName("object");var H=document.getElementsByTagName("embed");for(F=0;F<H.length;F++){if(typeof H[F].browserURLChange!="undefined"){return H[F]}}for(F=0;F<I.length;F++){if(typeof I[F].browserURLChange!="undefined"){return I[F]}}}return undefined}function v(){var G;var H=[];if(H.length==0){var F=document.getElementsByTagName("object");for(G=0;G<F.length;G++){if(typeof F[G].browserURLChange!="undefined"){H.push(F[G])}}}if(H.length==0||H[0].object==null){var F=document.getElementsByTagName("embed");for(G=0;G<F.length;G++){if(typeof F[G].browserURLChange!="undefined"){H.push(F[G])}}}return H}function h(){var G=p().contentWindow.document;var F=String(G.location.search);if(F.length==1&&F.charAt(0)=="?"){F=""}else{if(F.length>=2&&F.charAt(0)=="?"){F=F.substring(1)}}return F}function o(){var F=document.location.href.indexOf("#");return(F>=0)?document.location.href.substr(F+1):""}function g(F){if(F==""){F="#"}document.location.hash=F}function n(F,G,H){return{baseUrl:F,newUrl:G,flexAppUrl:H,title:null}}function D(L,F,N){m=[];if(B.ie){if(N==c&&document.location.href==x&&window._ie_firstload){d=x;return}if((!N||N==c)&&window._ie_firstload){F=L+"#"+c;N=c}else{p().src=i+N}g(N)}else{if(z.length==0&&w.flexAppUrl==N){w=n(L,F,N)}else{if(z.length>0&&z[z.length-1].flexAppUrl==N){z[z.length-1]=n(L,F,N)}}if(B.safari&&!l){if(B.version<=419.3){var H=window.location.pathname.toString();H=H.substring(H.lastIndexOf("/")+1);r().innerHTML='<form name="historyForm" action="'+H+"#"+N+'" method="GET"></form>';var M=window.location.search.substring(1);var I=M.split("&");for(var J=0;J<I.length;J++){var K=I[J].split("=");var G=document.createElement("input");G.type="hidden";G.name=K[0];G.value=K[1];document.forms.historyForm.appendChild(G)}document.forms.historyForm.submit()}else{top.location.hash=N}E[history.length]=N;y()}else{g(N)}}z.push(n(L,F,N))}function y(){if(B.safari){a().value=E.join(",")}}function k(){var G=z.pop();if(!G){return}var F=z[z.length-1];if(!F&&z.length==0){F=w}m.push(G)}function A(){var F=m.pop();if(!F){return}z.push(F)}function f(){m=[]}function s(){if(B.ie){if(d!=document.location.href&&d+"#"!=document.location.href){if(B.version<7){d=document.location.href;document.location.reload()}else{if(o()!=h()){var F=i+o();p().src=F;d=document.location.href}}}}if(B.safari&&!l){if(u>=0&&history.length!=u){var L=o();if(B.version<528.16){u=history.length;L=E[u]}if(typeof BrowserHistory_multiple!="undefined"&&BrowserHistory_multiple==true){var J=v();for(var I=0;I<J.length;I++){J[I].browserURLChange(L)}}else{q().browserURLChange(L)}y()}}if(B.firefox&&!l){if(d!=document.location.href){var H=z.length;var K={back:false,forward:false,set:false};if((window.location.hash==b||window.location.href==x)&&(H==1)){K.back=true;k()}if(m.length>0){if(m[m.length-1].flexAppUrl==o()){K.forward=true;A()}}if((H>=2)&&(z[H-2])){if(z[H-2].flexAppUrl==o()){K.back=true;k()}}if(!K.back&&!K.forward){var G={back:-1,forward:-1};for(var I=0;I<z.length;I++){if(z[I].flexAppUrl==o()&&I!=(H-2)){arbitraryUrl=true;G.back=I}}for(var I=0;I<m.length;I++){if(m[I].flexAppUrl==o()&&I!=(H-2)){arbitraryUrl=true;G.forward=I}}f()}d=document.location.href;var L=o();if(typeof BrowserHistory_multiple!="undefined"&&BrowserHistory_multiple==true){var J=v();for(var I=0;I<J.length;I++){J[I].browserURLChange(L)}}else{q().browserURLChange(L)}}}}var C=function(){l=("onhashchange" in document.body);if(B.ie){var I=document.getElementsByTagName("script");for(var L=0,O;O=I[L];L++){if(O.src.indexOf("history.js")>-1){var K=(new String(O.src)).replace("history.js","historyFrame.html")}}i=K+"?";var F=i;var J=document.createElement("iframe");J.id="ie_historyFrame";J.name="ie_historyFrame";J.src="javascript:false;";try{document.body.appendChild(J)}catch(M){setTimeout(function(){document.body.appendChild(J)},0)}}if(B.safari&&!l){var H=document.createElement("div");H.id="safari_rememberDiv";document.body.appendChild(H);H.innerHTML='<input type="text" id="safari_remember_field" style="width: 500px;">';var G=document.createElement("div");G.id="safari_formDiv";document.body.appendChild(G);var N=document.createElement("div");N.id="safarireloader";var I=document.getElementsByTagName("script");for(var L=0,O;O=I[L];L++){if(O.src.indexOf("history.js")>-1){html=(new String(O.src)).replace(".js",".html")}}N.innerHTML='<iframe id="safarireloader-iframe" src="about:blank" frameborder="no" scrolling="no"></iframe>';document.body.appendChild(N);N.style.position="absolute";N.style.left=N.style.top="-9999px";J=N.getElementsByTagName("iframe")[0];if(document.getElementById("safari_remember_field").value!=""){E=document.getElementById("safari_remember_field").value.split(",")}}if(l){document.body.onhashchange=e}};return{historyHash:E,backStack:function(){return z},forwardStack:function(){return m},getPlayer:q,initialize:function(F){C(F)},setURL:function(F){document.location.href=F},getURL:function(){return document.location.href},getTitle:function(){return document.title},setTitle:function(H){try{z[z.length-1].title=H}catch(G){}if(B.safari){if(H==""){try{var F=window.location.href.toString();H=F.substring((F.lastIndexOf("/")+1),F.lastIndexOf("#"))}catch(G){H=""}}}document.title=H},setDefaultURL:function(J){c=J;J=o();if(B.ie){window._ie_firstload=true;var F=i+J;var H=function(){p().src=F;window.location.replace("#"+J);setInterval(s,50)};try{H()}catch(K){window.setTimeout(function(){H()},0)}}if(B.safari){u=history.length;if(E.length==0){E[u]=J;var I="#"+J;window.location.replace(I)}else{}setInterval(s,50)}if(B.firefox||B.opera){var G=new RegExp("#"+J+"$");if(window.location.toString().match(G)){}else{var I="#"+J;window.location.replace(I)}setInterval(s,50)}},setBrowserURL:function(J,F){if(B.ie&&typeof F!="undefined"){j=F}var I=document.location.href.indexOf("#");var G=I!=-1?document.location.href.substr(0,I):document.location.href;var H=G+"#"+J;if(document.location.href!=H&&document.location.href+"#"!=H){d=H;D(G,H,J);u=history.length}},browserURLChange:function(J){var F=null;if(B.ie&&j!=null){F=j}if(typeof BrowserHistory_multiple!="undefined"&&BrowserHistory_multiple==true){var H=v();for(var G=0;G<H.length;G++){try{H[G].browserURLChange(J)}catch(I){}}}else{try{q(F).browserURLChange(J)}catch(I){}}j=null},getUserAgent:function(){return navigator.userAgent},getPlatform:function(){return navigator.platform}}})();function setURL(a){document.location.href=a}function backButton(){history.back()}function forwardButton(){history.forward()}function goForwardOrBackInHistory(a){history.go(a)}(function(i){var u=navigator.userAgent;var e=
/*@cc_on!@*/
false;var st=setTimeout;if(/webkit/i.test(u)){st(function(){var dr=document.readyState;if(dr=="loaded"||dr=="complete"){i()}else{st(arguments.callee,10)}},10)}else{if((/mozilla/i.test(u)&&!/(compati)/.test(u))||(/opera/i.test(u))){document.addEventListener("DOMContentLoaded",i,false)}else{if(e){(function(){var t=document.createElement("doc:rdy");try{t.doScroll("left");i();t=null}catch(e){st(arguments.callee,0)}})()}else{window.onload=i}}}})(function(){BrowserHistory.initialize()});
