/*
* jQuery BBQ: Back Button & Query Library - v1.2.1 - 2/17/2010 * http://benalman.com/projects/jquery-bbq-plugin/ * * Copyright (c) 2010 "Cowboy" Ben Alman * Dual licensed under the MIT and GPL licenses. * http://benalman.com/about/license/ */
(function($,p){var i,m=Array.prototype.slice,r=decodeURIComponent,a=$.param,c,l,v,b=$.bbq=$.bbq||{},q,u,j,e=$.event.special,d=“hashchange”,A=“querystring”,D=“fragment”,y=“elemUrlAttr”,g=“location”,k=“href”,t=“src”,x=/^.*?|#.*$/g,w=/^.*#/,h,C={};function E(F){return typeof F===“string”}function B(G){var F=m.call(arguments,1);return function(){return G.apply(this,F.concat(m.call(arguments)))}}function n(F){return F.replace(/^*#?(.*)$/,“$1”)}function o(F){return F.replace(/(?:^*?([^#]*).*$)?.*/,“$1”)}function f(H,M,F,I,G){var O,L,K,N,J;if(I!==i){K=F.match(H?/^(*)#?(.*)$/:/^([^#?]*)??([^#]*)(#?.*)/);J=K||“”;if(G===2&&E(I)){L=I.replace(H?w:x,“”)}else{N=l(K);I=E(I)?l(I):I;L=G===2?I:G===1?$.extend({},I,N):$.extend({},N,I);L=a(L);if(H){L=L.replace(h,r)}}O=K+(H?“#”:L||!K?“?”:“”)+L+J}else{O=M(F!==i?F:p[k])}return O}a=B(f,0,o);a=c=B(f,1,n);c.noEscape=function(G){G=G||“”;var F=$.map(G.split(“”),encodeURIComponent);h=new RegExp(F.join(“|”),“g”)};c.noEscape(“,/”);$.deparam=l=function(I,F){var H={},G={“true”:!0,“false”:!1,“null”:null};$.each(I.replace(/+/g,“ ”).split(“&”),function(L,Q){var K=Q.split(“=”),P=r(K),J,O=H,M=0,R=P.split(“][”),N=R.length-1;if(/[/.test(R)&&/]$/.test(R)){R=R.replace(/]$/,“”);R=R.shift().split(“[”).concat(R);N=R.length-1}else{N=0}if(K.length===2){J=r(K);if(F){J=J&&!isNaN(J)?+J:J===“undefined”?i:G!==i?G:J}if(N){for(;M<=N;M++){P=R===“”?O.length:R;O=O=M
* jQuery hashchange event - v1.2 - 2/11/2010 * http://benalman.com/projects/jquery-hashchange-plugin/ * * Copyright (c) 2010 "Cowboy" Ben Alman * Dual licensed under the MIT and GPL licenses. * http://benalman.com/about/license/ */
(function($,i,b){var j,k=$.event.special,c=“location”,d=“hashchange”,l=“href”,f=$.browser,g=document.documentMode,h=f.msie&&(g===b||g<8),e=“on”+d in i&&!h;function a(m){m=m||i[l];return m.replace(/^*#?(.*)$/,“$1”)}$[d+“Delay”]=100;k=$.extend(k,{setup:function(){if(e){return false}$(j.start)},teardown:function(){if(e){return false}$(j.stop)}});j=(function(){var m={},r,n,o,q;function p(){o=q=function(s){return s};if(h){n=$('<iframe src=“javascript:0”/>‘).hide().insertAfter(“body”).contentWindow;q=function(){return a(n.document[l])};o=function(u,s){if(u!==s){var t=n.document;t.open().close();t.hash=“#”+u}};o(a())}}m.start=function(){if®{return}var t=a();o||p();(function s(){var v=a(),u=q(t);if(v!==t){o(t=v,u);$(i).trigger(d)}else{if(u!==t){i[l]=i[l].replace(/#.*/,“”)+“#”+u}}r=setTimeout(s,$)})()};m.stop=function(){if(!n){r&&clearTimeout®;r=0}};return m})()})(jQuery,this);