jQuery.extend({historyCurrentHash:undefined,historyCallback:undefined,historyInit:function(A){jQuery.historyCallback=A;
var C=location.hash;jQuery.historyCurrentHash=C;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 B=D.contentWindow.document;B.open();B.close();B.location.hash=C;
}else{if($.browser.safari){jQuery.historyBackStack=[];jQuery.historyBackStack.length=history.length;
jQuery.historyForwardStack=[];jQuery.isFirst=true;}}jQuery.historyCallback(C.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 A=$("#jQuery_history")[0];
var B=A.contentDocument||A.contentWindow.document;var D=B.location.hash;if(D!=jQuery.historyCurrentHash){location.hash=D;
jQuery.historyCurrentHash=D;jQuery.historyCallback(D.replace(/^#/,""));}}else{if($.browser.safari){if(!jQuery.dontCheck){var E=history.length-jQuery.historyBackStack.length;
if(E){jQuery.isFirst=false;if(E<0){for(var C=0;C<Math.abs(E);C++){jQuery.historyForwardStack.unshift(jQuery.historyBackStack.pop());
}}else{for(var C=0;C<E;C++){jQuery.historyBackStack.push(jQuery.historyForwardStack.shift());
}}var F=jQuery.historyBackStack[jQuery.historyBackStack.length-1];if(F!=undefined){jQuery.historyCurrentHash=location.hash;
jQuery.historyCallback(F);}}else{if(jQuery.historyBackStack[jQuery.historyBackStack.length-1]==undefined&&!jQuery.isFirst){if(document.URL.indexOf("#")>=0){jQuery.historyCallback(document.URL.split("#")[1]);
}else{var D=location.hash;jQuery.historyCallback("");}jQuery.isFirst=true;}}}}else{var D=location.hash;
if(D!=jQuery.historyCurrentHash){jQuery.historyCurrentHash=D;jQuery.historyCallback(D.replace(/^#/,""));
}}}},historyLoad:function(E){var C;if(jQuery.browser.safari){C=E;}else{C="#"+E;location.hash=C;
}jQuery.historyCurrentHash=C;if((jQuery.browser.msie)&&(jQuery.browser.version<8)){var A=$("#jQuery_history")[0];
var B=A.contentWindow.document;B.open();B.close();B.location.hash=C;jQuery.historyCallback(E);
}else{if(jQuery.browser.safari){jQuery.dontCheck=true;this.historyAddHistory(E);var D=function(){jQuery.dontCheck=false;
};window.setTimeout(D,200);jQuery.historyCallback(E);location.hash=C;}else{jQuery.historyCallback(E);
}}}});
