var pnt={links:{},$back:null,currentHash:window.location.hash,load:function(a){if(a.button!==0)return true;a=this.pathname.substr(0,1)!=="/"?"/"+this.pathname.replace(/\/$/,""):this.pathname.replace(/\/$/,"");var d=jQuery(this);jQuery.ajax({url:a,dataType:"html",complete:function(e,f){if(f==="success"||f==="notmodified"){var b=jQuery("<div />").append(e.responseText.replace(/<script(.|\s)*?\/script>/gi,""));jQuery("#FullContent").fadeTo(200,0.5,function(){jQuery(this).html(b.find("#FullContent").children()).fadeTo(200,
1)});jQuery("#MainContent").html(b.find("#MainContent").children()).hide().slideDown(400);var c=b.find("title").text();c||(c=e.responseText.match(/<title(.|\s)*?\/title>/i)[0].replace(/<[^>]+>/g,""));document.title=c;document.body.scrollIntoView();d.parent().removeClass("loading")}else window.location.href="http://"+window.location.hostname+window.location.hash.substr(1)}});if(a!==window.location.pathname.replace(/\/$/,""))window.location.hash="#"+a;else if(window.location.hash!==""&&window.location.hash!==
a)window.location.hash="#"+a;window._gaq&&window._gaq.push(["_trackPageview",a]);jQuery(".current_page_item, .current_page_parent").removeClass("current_page_item current_page_parent");d.parent().addClass("current_page_item loading");pnt.currentHash=a;pnt.links[a]=this;return false},hashChange:function(){if(window.location.hash.substr(0,2)==="#/"&&pnt.currentHash!==window.location.hash.substr(1)&&pnt.links[window.location.hash.substr(1)])pnt.load.apply(pnt.links[window.location.hash.substr(1)]);else window.location.hash===
""&&pnt.currentHash!==""&&pnt.load.apply(pnt.$back.parent().not(".current_page_item").children().get(0))}};if("onhashchange"in window)window.onhashchange=pnt.hashChange;else setInterval(pnt.hashChange,20);jQuery(function(){jQuery(".page_item a").live("click",pnt.load);pnt.$back=jQuery(".current_page_item a")});