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,firefox:false,safari:false,opera:false,version:-1};var c="";var d=document.location.href;var w=document.location.href;var b=document.location.hash;var h="history/historyFrame.html?";var t=-1;var E=[];var v=l(w,w+"#"+b,b);var y=[];var k=[];var i=null;var s=navigator.userAgent.toLowerCase();if(s.indexOf("opera")!=-1){B.opera=true;}else{if(s.indexOf("msie")!=-1){B.ie=true;B.version=parseFloat(s.substring(s.indexOf("msie")+4));}else{if(s.indexOf("safari")!=-1){B.safari=true;B.version=parseFloat(s.substring(s.indexOf("safari")+7));}else{if(s.indexOf("gecko")!=-1){B.firefox=true;}}}}if(B.ie==true&&B.version==7){window._ie_firstload=false;}function n(){return document.getElementById("ie_historyFrame");}function q(){return document.getElementById("firefox_anchorDiv");}function p(){return document.getElementById("safari_formDiv");}function a(){return document.getElementById("safari_remember_field");}function o(I){if(BrowserHistory.flexApplication!=null){return BrowserHistory.flexApplication;}if(I&&document.getElementById(I)){var F=document.getElementById(I);if(typeof F.SetVariable!="undefined"){return F;}else{var H=F.getElementsByTagName("object");var G=F.getElementsByTagName("embed");if(H.length>0&&typeof H[0].SetVariable!="undefined"){return H[0];}else{if(G.length>0&&typeof G[0].SetVariable!="undefined"){return G[0];}}}}else{var H=document.getElementsByTagName("object");var G=document.getElementsByTagName("embed");if(G.length>0&&typeof G[0].SetVariable!="undefined"){return G[0];}else{if(H.length>0&&typeof H[0].SetVariable!="undefined"){return H[0];}else{if(H.length>1&&typeof H[1].SetVariable!="undefined"){return H[1];}}}}return undefined;}function u(){var G=[];if(G.length==0){var F=document.getElementsByTagName("object");G=F;}return G;}function g(){var G=n().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 m(){var F=document.location.href.indexOf("#");return(F>=0)?document.location.href.substr(F+1):"";}function f(F){if(F==""){F="#";}document.location.hash=F;}function l(F,G,H){return{baseUrl:F,newUrl:G,flexAppUrl:H,title:null};}function D(L,F,N){k=[];if(B.ie){if(N==c&&document.location.href==w&&window._ie_firstload){d=w;return;}if((!N||N==c)&&window._ie_firstload){F=L+"#"+c;N=c;}else{n().src=h+N;}f(N);}else{if(y.length==0&&v.flexAppUrl==N){v=l(L,F,N);}else{if(y.length>0&&y[y.length-1].flexAppUrl==N){y[y.length-1]=l(L,F,N);}}if(B.safari){if(B.version<=419.3){var H=window.location.pathname.toString();H=H.substring(H.lastIndexOf("/")+1);p().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;x();}else{A(N);f(N);}}y.push(l(L,F,N));}function x(){if(B.safari){a().value=E.join(",");}}function j(){var G=y.pop();if(!G){return;}var F=y[y.length-1];if(!F&&y.length==0){F=v;}k.push(G);}function z(){var F=k.pop();if(!F){return;}y.push(F);}function e(){k=[];}function r(){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(m()!=g()){var F=h+m();n().src=F;}}}}if(B.safari){if(t>=0&&history.length!=t){t=history.length;var L=E[t];if(L==""){}if(typeof BrowserHistory_multiple!="undefined"&&BrowserHistory_multiple==true){var J=u();for(var I=0;I<J.length;I++){J[I].browserURLChange(L);}}else{o().browserURLChange(L);}x();}}if(B.firefox){if(d!=document.location.href){var H=y.length;var K={back:false,forward:false,set:false};if((window.location.hash==b||window.location.href==w)&&(H==1)){K.back=true;j();}if(k.length>0){if(k[k.length-1].flexAppUrl==m()){K.forward=true;z();}}if((H>=2)&&(y[H-2])){if(y[H-2].flexAppUrl==m()){K.back=true;j();}}if(!K.back&&!K.forward){var G={back:-1,forward:-1};for(var I=0;I<y.length;I++){if(y[I].flexAppUrl==m()&&I!=(H-2)){arbitraryUrl=true;G.back=I;}}for(var I=0;I<k.length;I++){if(k[I].flexAppUrl==m()&&I!=(H-2)){arbitraryUrl=true;G.forward=I;}}e();}d=document.location.href;var L=m();if(L==""){}if(typeof BrowserHistory_multiple!="undefined"&&BrowserHistory_multiple==true){var J=u();for(var I=0;I<J.length;I++){J[I].browserURLChange(L);}}else{o().browserURLChange(L);}}}}function A(F){if(document.getElementsByName(F).length==0){q().innerHTML+="<a name='"+F+"'>"+F+"</a>";}}var C=function(){if(B.ie){var I=document.getElementsByTagName("script");for(var M=0,P;P=I[M];M++){if(P.src.indexOf("history.js")>-1){var K=(new String(P.src)).replace("history.js","historyFrame.html");}}h=K+"?";var F=h;var J=document.createElement("iframe");J.id="ie_historyFrame";J.name="ie_historyFrame";try{document.body.appendChild(J);}catch(N){setTimeout(function(){document.body.appendChild(J);},0);}}if(B.safari){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 O=document.createElement("div");O.id="safarireloader";var I=document.getElementsByTagName("script");for(var M=0,P;P=I[M];M++){if(P.src.indexOf("history.js")>-1){html=(new String(P.src)).replace(".js",".html");}}O.innerHTML='<iframe id="safarireloader-iframe" src="about:blank" frameborder="no" scrolling="no"></iframe>';document.body.appendChild(O);O.style.position="absolute";O.style.left=O.style.top="-9999px";J=O.getElementsByTagName("iframe")[0];if(document.getElementById("safari_remember_field").value!=""){E=document.getElementById("safari_remember_field").value.split(",");}}if(B.firefox){var L=document.createElement("div");L.id="firefox_anchorDiv";document.body.appendChild(L);}};return{historyHash:E,backStack:function(){return y;},forwardStack:function(){return k;},getPlayer:o,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{y[y.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=m();if(B.ie){window._ie_firstload=true;var F=h+J;var H=function(){n().src=F;window.location.replace("#"+J);setInterval(r,50);};try{H();}catch(K){window.setTimeout(function(){H();},0);}}if(B.safari){t=history.length;if(E.length==0){E[t]=J;var I="#"+J;window.location.replace(I);}else{}setInterval(r,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(r,50);}},setBrowserURL:function(J,F){if(B.ie&&typeof F!="undefined"){i=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);t=history.length;}return false;},browserURLChange:function(J){var F=null;if(B.ie&&i!=null){F=i;}pendingURL="";if(typeof BrowserHistory_multiple!="undefined"&&BrowserHistory_multiple==true){var H=u();for(var G=0;G<H.length;G++){try{H[G].browserURLChange(J);}catch(I){}}}else{try{o(F).browserURLChange(J);}catch(I){}}i=null;}};})();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();});