/****
*
*
*/



jQuery(
	function($){
		
		$("img").click(function(e){
			if (e.button != 0) {
				alert("no donwloading images");
				return true;
			}						
		});
		

		$('#font-page-slide').cycle({
			fx: 'fade',
			speed: 3000,
			timeout: 3500,
			width: '1040',
			height: 'auto'
		});
		
		$(".thumb-container").hover(function(){
			$(this).children("span.thumb-bg").fadeTo("fast", 0); // This should set the opacity to 0% on hover
			$(this).children("span.thumb-type").fadeTo("fast", 1.0);

			},function(){
			$(this).children("span.thumb-bg").fadeTo("fast", 1.0); // This should set the opacity back to 100% on mouseout
			$(this).children("span.thumb-type").fadeTo("fast", 0);
			
		});
		
		$('fomr.wpcf7-form').submit(function(){
			
			$(this).$('input:text').each(function(){
				var labelName = 'label#'+$(this).attr("name");
				var textVal = $(labelName).text();
				if($(this).val() == textVal)
				{
					$(this).val("");
				}							 
			});
			
			return true;
											 
		});
				
		$('input[name=wedding-date]').datepicker();
	}
);


