function check_hash(){if($('body').data('hash')!=document.location.hash){$('body').data('hash',document.location.hash);hash_to_ids(document.location.hash);}};function init_history(){if(jQuery.browser.msie){$('body').prepend('<iframe id="myIframe" name="myIframe" src="iframe.html"></iframe>');jQuery('#myIframe').load(function(){addHistoryEntry(document.location.hash);});}setInterval(check_hash,100);};function addHistoryEntry(newHash){var iframe=jQuery('#myIframe').contents();if(jQuery('a:contains('+newHash+')').length===0){jQuery('body',iframe).append('<div></div><a name="'+newHash+'"></a>');}if(jQuery.browser.opera){window.setTimeout(function(){changeHash(newHash);},100);}else{changeHash(newHash);}};function changeHash(newHash){jQuery('#myIframe').get(0).contentWindow.document.location.hash=newHash;}