function pageselectCallback(page_index, jq){
	var new_content = jQuery('#hiddenresult div.p_chunk:eq('+page_index+')').clone();
	$('#Searchresult').empty().append(new_content);
	return false;
}

/** 
 * Initialisation function for pagination
 */
function initPagination() {
	// count entries inside the hidden content
	var num_entries = jQuery('#hiddenresult div.p_chunk').length;
	// Create content inside pagination element
	$("#Pagination").pagination(num_entries, {
		callback: pageselectCallback,
		items_per_page:1 // Show only one item per page
	});
 }
 
document.write("<link href='css/jsok.css' rel='stylesheet' type='text/css' />");
 
$(document).ready(
	function() {
		$('#top').flash({
			src: 'flash/top.swf',
			width: 800,
			height: 164,
			wmode: 'transparent'
		});
		
		$("a[rel='target']").click(
			function() {
        		var newWindow = window.open(this.href);
        		return false;
    		}
		);
	 
		$("a").attr('onfocus', 'blur()');
		
		$(".contTbl td:odd").addClass("r");
		
		initPagination();



	}
);

