// Villa Mauresque main javascript


$(document).ready(function()
       {
		  
	
/*		
		$('#photos') 
	.after('<div id="nav">') 
	.cycle({ 
    fx:     'fade', 
    speed:   2000, 
    timeout: 2000, 
    pager:  '#nav' 
	});*/
	
		//$('.date-pick').datePicker();
		 
		 
 		
		
		/*$('fieldset#guest_book_form legend')
 			 .click(function(){
    			$(this).parent().children().filter('h1,h2,h3,h4,p,img,table,ul,div,span, input, textarea, label').toggle('slow');
  			});*/
		
		
		 
$('p.email').defuscate();
		 
zebraRows('tbody tr:odd td', 'odd');  		 
		
DD_belatedPNG.fix('.png_fix');		
});



//used to apply alternating row styles
		function zebraRows(selector, className)
		{
  			$(selector).removeClass(className).addClass(className);
		}
		
//fade in / out

		jQuery.fn.fadeToggle = function(speed, easing, callback)
		{
  			 return this.animate({opacity: 'toggle'}, speed, easing, callback);

		}; 