var BV={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS"},searchString:function(d){for(var a=0;a<d.length;a++){var b=d[a].string;var c=d[a].prop;this.versionSearchString=d[a].versionSearch||d[a].identity;if(b){if(b.indexOf(d[a].subString)!=-1){return d[a].identity}}else{if(c){return d[a].identity}}}},searchVersion:function(b){var a=b.indexOf(this.versionSearchString);if(a==-1){return}return parseFloat(b.substring(a+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};var gHash=null;function hookAnchors(b){var c=eventTarget(b);if(c!=null&&c.nodeType==1&&c.tagName.toLowerCase()=="a"){var a=c.href;if(c.getAttribute("target")!=null){return}if(a.indexOf("mailto:")==0){return}var a=basename(a);if(sendAndCall(a,replaceCallback)){stopEvent(b)}}}var gTimeout;function checkHash(){if(gHash==null){return}var a=getCurrentHash();if(a!=gHash){if(gTimeout!=null){clearInterval(gTimeout);gTimeout=null;if(gChangedFromFrame){return}if(a==null){a=G_DEFAULT_INDEX}a=decodeURIComponent(a);gChangedFromFrame=true;sendAndCall(a,replaceCallback)}}}function basename(a){if(a==null){return""}var b=a.split("/");return b.pop()}function dirname(a){if(a==null){return""}var b=a.split("/");b.pop();return b.join("/")}function stopEvent(a){if(!a){var a=window.event}a.cancelBubble=true;if(a.stopPropagation){a.stopPropagation()}if(a.preventDefault){a.preventDefault()}a.returnValue=false}function replaceCallback(j,g){var f=null;var h=null;try{var k=g.responseXML.documentElement;var a=k.getElementsByTagName("div");for(var b=0;b<a.length;b++){if(a.item(b).getAttribute("id")=="main"){f=a.item(b);break}}h=k.getElementsByTagName("title")[0];h=h.firstChild.nodeValue}catch(c){alert(c)}if(f==null){document.location=j;return}var d=$("main");if(document.importNode){f=document.importNode(f,true);d.parentNode.replaceChild(f,d)}else{f=f.cloneNode(true);d.outerHTML=f.xml}updateHistory(j,h)}var gHistoryFrame;function setHistoryFrame(b,a){if(BV.browser!="Explorer"){return}if(gHistoryFrame==null){gHistoryFrame=document.createElement("iframe");gHistoryFrame.style.visibility="hidden";gHistoryFrame.style.position="absolute";document.body.appendChild(gHistoryFrame)}var c=gHistoryFrame.contentWindow.document;if(!gChangedFromFrame){c.open();c.write('<html><body onload="window.top.historyChange(document.getElementById(\'url\').innerHTML)"><div id="url">'+b+"</div></body></html>");c.close()}c.title=a;gChangedFromFrame=false}function updateHistory(b,a){var c=history.length;if(!gChangedFromFrame||BV.browser=="Explorer"){document.location.hash=encodeURIComponent(b)}document.title=a;gHash=getCurrentHash();setHistoryFrame(b,a);gChangedFromFrame=false;if(gTimeout==null){gTimeout=setInterval(checkHash,200)}}var gChangedFromFrame=false;function historyChange(a){if(gHash==a){return}if(a==""){a=G_DEFAULT_INDEX}gChangedFromFrame=true;sendAndCall(a,replaceCallback)}window.top.historyChange=historyChange;function sendAndCall(d,a){var b=null;var g=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new ActiveXObject("Msxml2.XMLHTTP.4.0")}];for(var c=0;c<g.length;c++){try{b=g[c]();if(b!=null){break}}catch(f){}}if(b==null){return false}b.onreadystatechange=function(){if(b.readyState!=4){return}try{b.onreadystatechange=null}catch(i){try{b.onreadystatechange=function(){}}catch(i){}}var h=null;try{h=b.status;if(!h&&(b.responseText!=null||b.responseText!="")){h=304}}catch(i){}if(h==200||h==201||h==204||h==304||h==1223){a(d,b)}else{if(h==404){alert("404 Error - Page not found : \n"+d)}}};b.open("get","index.php?xml&url="+encodeURIComponent(d),true);b.send("");return true}function eventTarget(b){var a;var b=eventObject(b);if(b.target){a=b.target}else{if(b.srcElement){a=b.srcElement}}if(a.nodeType==3){a=a.parentNode}return a}function eventObject(a){if(!a){return window.event}else{return a}}function cleanEvents(){if(gTimeout!=null){clearInterval(gTimeout);gTimeout=null}removeEventSimple(window,"click",hookAnchors);removeEventSimple(window,"unload",cleanEvents);removeEventSimple(window,"load",initialize)}function addEventSimple(c,a,b){if(c.addEventListener){c.addEventListener(a,b,false)}else{if(c.attachEvent){c.attachEvent("on"+a,b)}}}function removeEventSimple(c,a,b){if(c.removeEventListener){c.removeEventListener(a,b,false)}else{if(c.detachEvent){c.detachEvent("on"+a,b)}}}function getCurrentHash(){var a=document.location.hash;if(a!=null&&a.length>0){if(a.charAt(0)=="#"){a=a.substring(1)}}if(a==""){return null}return a}function initialize(){var a=getCurrentHash();var b=basename(document.location.toString());if(a!=null&&b!=a){sendAndCall(a,replaceCallback)}else{if(b==""){b=G_DEFAULT_INDEX}if(BV.browser=="Explorer"){setHistoryFrame(b,document.title);return}else{document.location.hash=b;gHash=b}}}document.$=function(a){return document.getElementById(a)};window.$=document.$;BV.init();var G_DEFAULT_INDEX="index.html";if((BV.browser=="Firefox"||BV.browser=="Mozilla"||(BV.browser=="Explorer"&&BV.version>=5.5)||(BV.browser=="Opera"&&BV.version>=9.5)||(BV.browser=="Safari"&&BV.version>=500))){addEventSimple(window,"unload",cleanEvents);addEventSimple(document,"click",hookAnchors);addEventSimple(window,"load",initialize)}if(!(BV.OS=="Linux"&&(((BV.Browser=="Firefox"||BV.browser=="Mozilla")&&BV.version<=3)||(BV.Browser=="Opera"&&BV.version<=9.5)))){swfobject.embedSWF("fla/fla.swf","animFlash","2400","1650","8.0.0",null,{},{allowFullScreen:true,wmode:"transparent",quality:"high"})};