$(document).ready(function(){

	//khaled photo
	$("div.nav span").click(function(){
		
		//Highlight current page number
		$("div.nav span").css({'color' : '', 'cursor' : '','border' : ''});
		$(this).css({'color' : 'red' , 'cursor' : 'default','border' : '1px solid #C00'});
		
		//Load content
		var pageNum = this.id;
		var catid   = $('#catid').attr('value');
		var targetUrl = "exhibitions-ajax.php?page=" + pageNum + "&id=" + catid;
		$.get(targetUrl, function(data){
		$('#khaled_photo').hide();
		$('#khaled_photo').html(data);
		$('#khaled_photo').fadeIn("slow");
    });
		});
		
		
	//khaled other 
	$("div.nav1 span").click(function(){
		
			//Highlight current page number
		$("div.nav1 span").css({'color' : '', 'cursor' : '','border' : ''});
		$(this).css({'color' : 'red' , 'cursor' : 'default','border' : '1px solid #C00'});
		
		//Load content
		var pageNum = this.id;
    var catid   = $('#catid').attr('value');
		var targetUrl = "exhibitions-ajax.php?page=" + pageNum + "&id=" + catid + "&other=1";
		$.get(targetUrl, function(data){
		$('#khaled_other').hide();
		$('#khaled_other').html(data);
		$('#khaled_other').fadeIn("slow");
    });
		});


 $(function() {
    $('#khaled_photo dt a').lightBox();
    });
    
     $(function() {
    $('#khaled_other dt a').lightBox();
    });
    	
  
     
});
