I have a script that is supposed to load data into a div when a link is clicked.
However it's only loading the data when I refresh the page, not when I click the link.

        <script type="text/javascript">
    var $j = jQuery.noConflict(); 

	$j(document).ready(function () {

		$j('a[href=' + window.location.hash + ']').addClass('selected');
		$j('a[rel=ajaxtwo]').click(function () {
			var hash = this.href;
			hash = hash.replace(/^.*#/, '');
			return false;
	function pageload(hash) {
		if (hash) getPage();    
	function getPage() {
		var data = 'page=' + encodeURIComponent(document.location.hash);
			url: "slider_loader.php",	
			type: "GET",		
			data: data,		
			cache: false,
			success: function (html) {	
Any help would be greatly appreciated. Thanks.