	  	$(document).ready(function(){
				//Examples of how to assign the ColorBox event to elements
				$("a[rel='galeri1']").colorbox();
				
				//Example of preserving a JavaScript event for inline calls.
				$("#click").click(function(){ 
					$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
					return false;
				});
			});
	  
	  
	function gallery(deger1,deger2,cid){		 
	
	 $("#gallery").ajaxStart(function(){

	$(this).html('<img src="images/loadingAnimation.gif" /><br>Yukleniyor...');

	});

	if (deger2!="") {
		deger2 = "&cid=" + cid + "&totalRows_Recordset1=" + deger2 ;
	} else {
		deger2 = "&cid=" + cid;
		}
	
	
	$.ajax({
   type: "GET",
   url: "ajaxgallery.php",
   data: "pageNum_Recordset1=" + deger1 +  deger2 + "",
   success: function(msg){
     //alert( "Data Saved: " + msg );
	 $('#gallery').html(msg);
	 
	 $("a[rel='galeri1']").colorbox();

// $.fn.colorbox.init();
	 
   }
 });
 

 
}
