// JavaScript Document

$(document).ready(function(){	
		   		   
			
			 $('a.email').nospam({
				replaceText: true,
				filterLevel: 'low'
			});  
			 
			 $('a.email2').nospam({
				filterLevel: 'low'
			});  
			
			
			$('#slideshow') 
			.cycle({ 
				fx:     'fade', 
				speed:  'slow', 
				timeout: 6000
				
			});
			
			$('#slideshow_small') 
			.cycle({ 
				fx:     'fade', 
				speed:  'slow', 
				timeout: 5000
			});
			
			function init_gallery(){			
				$(".fancy").fancybox(
					{
						'padding'			: 1,
						'zoomOpacity'			: true,
						'overlayShow'			: true,
						'overlayColor'			: '#ffffff',
						'overlayOpacity'		: 0.2,
						'zoomSpeedIn'			: 500,
						'zoomSpeedOut'			: 500,
						'title'			: this.title,
				}); 			
			}
			
			init_gallery();
			
			
			/*
			$('.news_details').live('click',function() {	
				var obj = $(this);
				obj.parent().children('.ajaxloader2').show();
					$.ajax({
							url: obj.attr('href'),
							type: "GET",
							cache: false,
							success: function(data){
								obj.parent().hide();
								obj.parent().parent().children('.ajax_box').html(data).show('Blind');
								init_gallery();
							}
					});
				return false;
			});
			
				beforeShowDay: function(date) {
					var day = date.getDay();
					return [(day == 1)];
				
				}
			*/

});
