jQuery.extend({historyCurrentHash:undefined,historyCallback:undefined,historyInit:function(a){jQuery.historyCallback=a;
var b=location.hash;
jQuery.historyCurrentHash=b;
if((jQuery.browser.msie)&&(jQuery.browser.version<8)){if(jQuery.historyCurrentHash==""){jQuery.historyCurrentHash="#";
}$("body").prepend('<iframe id="jQuery_history" style="display: none;"></iframe>');
var d=$("#jQuery_history")[0];
var c=d.contentWindow.document;
c.open();
c.close();
c.location.hash=b;
}else{if($.browser.safari){jQuery.historyBackStack=[];
jQuery.historyBackStack.length=history.length;
jQuery.historyForwardStack=[];
jQuery.isFirst=true;
}}jQuery.historyCallback(b.replace(/^#/,""));
setInterval(jQuery.historyCheck,100);
},historyAddHistory:function(a){jQuery.historyBackStack.push(a);
jQuery.historyForwardStack.length=0;
this.isFirst=true;
},historyCheck:function(){if((jQuery.browser.msie)&&(jQuery.browser.version<8)){var f=$("#jQuery_history")[0];
var e=f.contentDocument||f.contentWindow.document;
var b=e.location.hash;
if(b!=jQuery.historyCurrentHash){location.hash=b;
jQuery.historyCurrentHash=b;
jQuery.historyCallback(b.replace(/^#/,""));
}}else{if($.browser.safari){if(!jQuery.dontCheck){var c=history.length-jQuery.historyBackStack.length;
if(c){jQuery.isFirst=false;
if(c<0){for(var d=0;
d<Math.abs(c);
d++){jQuery.historyForwardStack.unshift(jQuery.historyBackStack.pop());
}}else{for(var d=0;
d<c;
d++){jQuery.historyBackStack.push(jQuery.historyForwardStack.shift());
}}var a=jQuery.historyBackStack[jQuery.historyBackStack.length-1];
if(a!=undefined){jQuery.historyCurrentHash=location.hash;
jQuery.historyCallback(a);
}}else{if(jQuery.historyBackStack[jQuery.historyBackStack.length-1]==undefined&&!jQuery.isFirst){if(document.URL.indexOf("#")>=0){jQuery.historyCallback(document.URL.split("#")[1]);
}else{var b=location.hash;
jQuery.historyCallback("");
}jQuery.isFirst=true;
}}}}else{var b=location.hash;
if(b!=jQuery.historyCurrentHash){jQuery.historyCurrentHash=b;
jQuery.historyCallback(b.replace(/^#/,""));
}}}},historyLoad:function(b){var e;
if(jQuery.browser.safari){e=b;
}else{e="#"+b;
location.hash=e;
}jQuery.historyCurrentHash=e;
if((jQuery.browser.msie)&&(jQuery.browser.version<8)){var d=$("#jQuery_history")[0];
var c=d.contentWindow.document;
c.open();
c.close();
c.location.hash=e;
jQuery.historyCallback(b);
}else{if(jQuery.browser.safari){jQuery.dontCheck=true;
this.historyAddHistory(b);
var a=function(){jQuery.dontCheck=false;
};
window.setTimeout(a,200);
jQuery.historyCallback(b);
location.hash=e;
}else{jQuery.historyCallback(b);
}}}});


