$(function(){

   
	
   $("#slideimage .boximg").cycle({
	   timeout:	   5000
	});
   
/*
   $('#slidecontent').cycle({ 
	   fx: 'scrollHorz', 
       speed:  'slow', 
       timeout: 0,
       pager:  '#selectslide',
       pagerAnchorBuilder: function(idx, slide) { 
           // return selector string for existing anchor 
           //return '#paperslide li:eq(' + idx + ') a';
    	   return '#selectslide li:eq(' + idx + ')';
       }
   });
 
   $('.imgallslide').cycle({ 
	   fx: 'scrollHorz', 
       speed:  'slow', 
       timeout: 5000,
       pager:  '.headslide',
       pagerAnchorBuilder: function(idx, slide) { 
           // return selector string for existing anchor 
           //return '#paperslide li:eq(' + idx + ') a';
    	   return '.headslide p a:eq(' + idx + ')';
       }
   });
   
	$(".galleryimg a").fancybox({
		'titleShow'		: false,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic',
		'centerOnScroll' : true,
		'overlayColor':'#000000',
		'overlayOpacity'		:	0.5
		
	});*/
	$(".listimg a").fancybox({
		'titleShow'		: false,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic',
		'centerOnScroll' : true,
		'overlayColor':'#000000',
		'overlayOpacity'		:	0.5,
		'autoScale'			:	true
		
	});
	$("#mapoffice .load").fancybox({
		'titleShow'		: false,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic',
		'centerOnScroll' : false,
		'overlayColor':'#000000',
		'overlayOpacity'		:	0.5,
		'autoScale'			:	false
	});
	
	 $("#loadxls,#loadpdf").click(function(){
		 	var id = $(this).attr("id");
		 	str = $(this).attr("class");
		 	typeid = str.replace("xls", "");
		 	typeid = typeid.replace("pdf", "");
		 
			$.ajax({
				   type: "POST",
				   url: "../update.php",
				   data: ({update : id,typeid:typeid}),
				   dataType: "html",
				   success: function(msg){
				     //alert( "Data Saved: " + msg );
				   }
			});
	 });
	 

});
