// JavaScript Document

$(document).ready(function()
{
	$('#menu a').click( function() { //start function when any link is clicked
		var category = $(this).attr("id"); //retrieve title of link so we can compare with php file
		$.post("sources/paginatcheck.php",{ category:category } ,function(cat)
        {
		  if(cat=="no")
		  {
			  $("#paginate-top").html("")
			  $("#paginate-bottom").html("")
          }
				
        });
 
	});
});


$(document).ready(function(){
Nifty("#menu a","small top transparent");
Nifty("#outcontent","medium bottom transparent");
$('.content').load('sources/boo.php');	//by default initally load text from boo.php
$('#menu a').click( function() { //start function when any link is clicked
			$(".content").slideUp("slow");
			 	var content_show = $(this).attr("id"); //retrieve title of link so we can compare with php file
				$.ajax({
				method:"get", url:"sources/boo.php", data:"page="+content_show,
				beforeSend: function(){$("#loading").show("fast");}, //show loading just when link is clicked
				complete: function(){ $("#loading").hide("fast");}, //stop showing loading when the process is complete
				success: function(html){ //so, if data is retrieved, store it in html
				$(".content").show("slow"); //animation
				$(".content").html(html); //show the html inside .content div
			}
		}); //close $.ajax(
}); //close click(
}); //close $(
