	// PageLoad function
	// This function is called when:
	// 1. after calling $.historyInit();
	// 2. after calling $.historyLoad();
	// 3. after pushing "Go Back" button of a browser
	function pageload(hash) {
		// hash doesn't contain the first # character.
		if(hash) {
			// restore ajax loaded state
			jQuery("#load").load(hash + ".html");
		} else {
			// start page
			jQuery("#load").empty();
		}
	}
	
	jQuery(document).ready(function(){
		// Initialize history plugin.
		// The callback is called at once by present location.hash. 
		jQuery.historyInit(pageload);
		
		// set onlick event for buttons
		jQuery("a[@rel='history']").click(function(){
			// 
			var hash = this.href;
			hash = hash.replace(/^.*#/, '');
			// moves to a new page. 
			// pageload is called at once. 
			jQuery.historyLoad(hash);
			return false;
		});

		//JQuery Cycle zoom div
		//Effects
		//blindX
		//blindY 
		//blindZ 
		//cover 
		//curtainX 
		//curtainY 
		//fade 
		//fadeZoom 
		//growX 
		//growY 
		//scrollUp 
		//scrollDown 
		//scrollLeft 
		//scrollRight 
		//scrollHorz 
		//scrollVert 
		//shuffle 
		//slideX 
		//slideY 
		//toss 
		//turnUp 
		//turnDown 
		//turnLeft 
		//turnRight 
		//uncover 
		//wipe 
		//zoom 
		jQuery('#zoom').cycle({ 
		fx: 'zoom',
		speed:   500,
		//easing: 'bounceout',
		//delay:  -2000 
		timeout: 9000
		});

		jQuery('#scrolltext').cycle({ 
		fx: 'scrollRight',
		    speed:   1000, 
		    timeout: 5000,
		    next:   '#scrolltext', 		     
		    pause:   1
		});







	});
