// JavaScript Document

	jQuery(document).ready(function(){
		// Initialize history plugin.
		// The callback is called at once by present location.hash. 
		jQuery.historyInit(Ory.Widget.LinkMove);
		
		/*         Ory.Widget.LinkHistorySet; ---2007-07-08 del-comment */
		
		// set onlick event for buttons
		jQuery("a[@rel='history']").click(function(){
			// 
			var hash = this.href;
			//var hash = this.href;
			
			//hash = hash.replace(/^.*#/, '');
			hash = hash.replace(/^.*?c=/, '');
			// moves to a new page. 
			// pageload is called at once. 
			if(!hash) hash = 1;
			jQuery.historyLoad(hash);
			return false;
		});
		
		jQuery("a[@rel='history2']").click(function(){
			// 
			var hash = this.href;
			//hash = hash.replace(/^.*#/, '');
			hash = hash.replace(/^.*?c=/, '');
			// moves to a new page. 
			// pageload is called at once. 
			jQuery.historyLoad(hash);
			//return false;
		});
		
	});


