$(document).ready(function()
	{
		$('#side-modules #testimonial, #footer #special-offer.module-box, div.partner-address, .menu-oldstyle h4, .rounded, p.pagination, h1#related-items').corner("12px");
		$('#side-modules .module-text, #side-modules .module-box, #footer .module-box, #footer .module-text, div#testimonial, div#image-bar').removeClass('hidden');
		$('#main-page-headline h1 span, #masthead h1#logo span, #testimonial div h1 span, #testimonial div hr').css('visibility', 'hidden');
		
	}
);

$(document).ready(function()
 {
    $('#menus-copybox p a, #upcoming-events a').hover(function() {
        $(this).animate({
            backgroundColor: "#300"
        },
        400);
    },
    function() {
        $(this).animate({
            backgroundColor: "#100"
        },
        200);
    });
});



$(document).ready(function()
	{
		$('#main-copybox p, #main-copybox h2, .module-box p, .module-text p, .content-box p, #testimonial p').addClass('hyphenate');
		$('div#upcoming-events.module-text p').removeClass('hyphenate');
	}
);




$(document).ready(function()
	{

//	Cross-slide jquery plugin provided by http://www.gruppo4.com/~tobia/cross-slide.shtml
$('div#image-bar .image-bar-left').crossSlide({
	sleep: 10,
	fade: 2
	// 	shuffle: true
	},
[
				{ src: '/images/uploads/img-top-shrimp.jpg'},{ src: '/images/uploads/image-top-bread.jpg'},{ src: '/images/uploads/img-top-roses-place-setting.jpg'},{ src: '/images/uploads/img-top-home-topiary.jpg'},{ src: '/images/uploads/img-top-bride-groom-kiss_1.jpg'},{ src: '/images/uploads/image-top-roast-beef-02.jpg'},{ src: '/images/uploads/img-top-groom-boutonniere.jpg'},{ src: '/images/uploads/img-top-exchange-rings.jpg'},{ src: '/images/uploads/img-top-bride-portrait.jpg'},{ src: '/images/uploads/img-top-whiskey.jpg'}
]);
		
//	Cycle jquery plugin provided by http://www.malsup.com/jquery/cycle/
//	Dropped in favor of simpler Cross-Slide Plugin (above)
		
	// $('.image-bar-left').cycle
	// (
	// 	{
	// 		fx: 'fade',
	// 		speed: '3000',
	// 		timeout: '12222',
	// 		// random: 1,
	// 		// pause: 1,
	// 		before: onBefore1
	// 	}
	// );
	// var slidesAdded1 = false;
	// function onBefore1(curr, next, opts) {
	// // make sure we don't call addSlide before it is defined
	// if (!opts.addSlide || slidesAdded1)
	// return;
	// 
	// 
	// 		opts.addSlide('<img src="http://riccardos.com/images/uploads/img-top-exchange-rings.jpg" alt="Exchange of Rings"  />');
	// 		opts.addSlide('<img src="http://riccardos.com/images/uploads/img-top-bride-groom-kiss_1.jpg" alt="Bride and Groom Kiss"  />');
	// 		opts.addSlide('<img src="http://riccardos.com/images/uploads/image-top-bread.jpg" alt="Hot Crusty Bread"  />');
	// 		opts.addSlide('<img src="http://riccardos.com/images/uploads/img-top-roses-place-setting.jpg" alt="Table Setting with White Roses"  />');
	// 		opts.addSlide('<img src="http://riccardos.com/images/uploads/img-top-whiskey.jpg" alt="Whiskey on the Rocks"  />');
	// 		opts.addSlide('<img src="http://riccardos.com/images/uploads/img-top-groom-boutonniere.jpg" alt="Groom&rsquo;s Boutonniere"  />');
	// 		opts.addSlide('<img src="http://riccardos.com/images/uploads/img-top-home-topiary.jpg" alt="Beautiful Topiary Table Seting"  />');
	// 
	// slidesAdded1 = true;
	// };
		
$('div#image-bar .image-bar-center').crossSlide({
	sleep: 10,
	fade: 2
	// 	shuffle: true
	},
[
				{ src: '/images/uploads/image-top-cocktail-01_1.jpg'},{ src: '/images/uploads/img-top-bride-groom-kiss.jpg'},{ src: '/images/uploads/img-top-place-setting.jpg'},{ src: '/images/uploads/img-top-home-bride-callas.jpg'},{ src: '/images/uploads/img-top-flatware.jpg'},{ src: '/images/uploads/image-top-salad.jpg'},{ src: '/images/uploads/img-top-martini.jpg'},{ src: '/images/uploads/img-top-brides-bouquet.jpg'},{ src: '/images/uploads/img-top-table-02.jpg'}
]);
		
	
	
	// $('.image-bar-center').cycle
	// (
	// 	{
	// 		fx: 'fade',
	// 		speed: '3000',
	// 		timeout: '12222',
	// 		// random: 1,
	// 		// pause: 1,
	// 		before: onBefore2
	// 	}
	// );
	// var slidesAdded2 = false;
	// function onBefore2(curr, next, opts) {
	// // make sure we don't call addSlide before it is defined
	// if (!opts.addSlide || slidesAdded2)
	// return;
	// 
	// 	
	// 		opts.addSlide('<img src="http://riccardos.com/images/uploads/image-top-salad.jpg" alt="Tossed Salad with Fancy Greens"  />');
	// 		opts.addSlide('<img src="http://riccardos.com/images/uploads/img-top-home-bride-callas.jpg" alt="Bride with Bouquet"  />');
	// 		opts.addSlide('<img src="http://riccardos.com/images/uploads/img-top-place-setting.jpg" alt="Beautiful Place Setting"  />');
	// 		opts.addSlide('<img src="http://riccardos.com/images/uploads/img-top-flatware.jpg" alt="Beautiful Table Setting"  />');
	// 		opts.addSlide('<img src="http://riccardos.com/images/uploads/img-top-table-02.jpg" alt="Table Setting"  />');
	// 		opts.addSlide('<img src="http://riccardos.com/images/uploads/img-top-martini.jpg" alt="Martini"  />');
	// 
	// slidesAdded2 = true;
	// };

		
$('div#image-bar .image-bar-right').crossSlide({
	sleep: 10,
	fade: 2
	// 	shuffle: true
	},
[
				{ src: '/images/uploads/image-top-champagne-02.jpg'},{ src: '/images/uploads/img-top-home-champ-glasses.jpg'},{ src: '/images/uploads/image-top-linguini-clams.jpg'},{ src: '/images/uploads/image-top-salmon.jpg'},{ src: '/images/uploads/image-top-flowers-03.jpg'},{ src: '/images/uploads/img-top-vintage-kiss.jpg'},{ src: '/images/uploads/img-top-rings-roses.png'},{ src: '/images/uploads/img-top-place-setting-03.jpg'},{ src: '/images/uploads/img-top-bride-eating.jpg'},{ src: '/images/uploads/img-top-table-03.jpg'}
]);
		


	// $('.image-bar-right').cycle
	// (
	// 	{
	// 		fx: 'fade',
	// 		speed: '3000',
	// 		timeout: '12222',
	// 		// random: 1,
	// 		// pause: 1,
	// 		before: onBefore3
	// 	}
	// );
	// 	var slidesAdded3 = false;
	// 	function onBefore3(curr, next, opts) {
	// 	// make sure we don't call addSlide before it is defined
	// 	if (!opts.addSlide || slidesAdded3)
	// 	return;
	// 	
	// 	
	// 			opts.addSlide('<img src="http://riccardos.com/images/uploads/img-top-rings-roses.png" alt="Wedding Rings and Roses"  />');
	// 			opts.addSlide('<img src="http://riccardos.com/images/uploads/image-top-salmon.jpg" alt="Grilled Salmon"  />');
	// 			opts.addSlide('<img src="http://riccardos.com/images/uploads/img-top-vintage-kiss.jpg" alt="1950&rsquo;s Wedding Couple"  />');
	// 			opts.addSlide('<img src="http://riccardos.com/images/uploads/img-top-bride-eating.jpg" alt="Bride digging in to dessert"  />');
	// 			opts.addSlide('<img src="http://riccardos.com/images/uploads/img-top-place-setting-03.jpg" alt="Beautiful Red Table Dressing"  />');
	// 			opts.addSlide('<img src="http://riccardos.com/images/uploads/image-top-linguini-clams.jpg" alt="Pasta with Clams"  />');
	// 			opts.addSlide('<img src="http://riccardos.com/images/uploads/image-top-flowers-03.jpg" alt="Flower Arrangement"  />');
	// 	
	// 	slidesAdded3 = true;
	// 	};
	}
);




$(document).ready(function() {
	$('ul.testimonial-text').cycle({
		fx: 'scrollUp',
		speed: '3456',
		timeout: '12222',
		random: 1,
		pause: 1,
		cleartypeNoBg: true
	});
});

$(document).ready(function(){
	$('#testimonial').hover(function(event){
	$('#testimonial .read-more').fadeIn(1200).removeClass('hidden');
	}, function(){
	$('#testimonial .read-more').fadeOut(500);
	return false;
	});
});

$(document).ready(function()
	{
		$('#gallery .grid_2 a, a#main-room-image').fancybox({
		'overlayColor': '#0C0000',
		'overlayOpacity': '0.85'
		});
	}
);

$(document).ready(function()
	{
		// var fHeight = parseInt($(this).attr('href').match(/height=[0-9]+/i)[0].replace('height=', ''));
		$('.tag-listing a.inline-popup').fancybox({
			'overlayColor':'#0C0000',
			'overlayOpacity':'0.85',
			'frameWidth':720,
			'frameHeight':620,
			'hideOnContentClick':false
		});
	}
);

// $(window).load(function() 
// 	{
 // $('div.alertbox').fadeIn(222).fadeOut(222).fadeIn(222).fadeOut(222).fadeIn(222).fadeOut(222).fadeIn(222).fadeOut(222).fadeIn(222).fadeOut(222).fadeIn(222).fadeOut(222).fadeIn(222).animate({opacity: 1.0}, 40000).fadeOut(4000, function() 
 // 		{
 // 		      $(this).slideUp('slow');
 // 		});
 // 	}
 // );



		$(window).load(function()
			{$('div.alertbox').fadeIn(222).fadeOut(222).fadeIn(222).fadeOut(222)
												.fadeIn(222).fadeOut(222).fadeIn(222).fadeOut(222)
												.fadeIn(222).fadeOut(222).fadeIn(222).fadeOut(222)
												.fadeIn(222).animate({opacity: 1.0}, 45000)
												.animate({opacity:'hide', height:'hide'}, 5000);
			});								





/* Auto Sizing of Testimonial Lightboxes Work-In-Progress */ 
/* $(document).ready(function()
{
$('.tag-listing a.inline-popup').each(function()
{
var fHeight = parseInt($(this).attr('href').match(/height=[0-9]+/i)[0].replace('height=', ''));
$(this).fancybox({
'frameWidth': 720,
'frameHeight': fHeight,
'overlayColor': #0C0000,
'overlayOpacity': 0.85,
'hideOnContentClick': false
});
});
}
); */



/* document).ready(function() {
$('a.inline-popup').each(function() {
var fWidth = parseInt($(this).attr('href').match(/width=[0-9]+/i)
[0].replace('width=', ''));
var fHeight = parseInt($(this).attr('href').match(/height=[0-9]+/i)
[0].replace('height=', ''));
$(this).fancybox({
'frameWidth': fWidth,
'frameHeight': fHeight
});
});

}); */







/* Hanging Alignment Work-In-Progress */ 
/*
$(document).ready(function()
{
jQuery.expr[ ":" ]["begins-with"] = function(elem, index, match) {
return ( new RegExp("^" + match[3]).test( elem.textContent ||
elem.innerText || "" ));
}
$("p:begins-with('\“'), p:begins-with('\‘')").css({'text-indent':'-0.4em'});
$("p:begins-with('W'), p:begins-with('M'), p:begins-with('V'), p:begins-with('T')").css({'text-indent':'-0.175em'});
$("h1:begins-with('\“'), h1:begins-with('\‘'), h1:begins-with('W'), h1:begins-with('M'), h1:begins-with('V'), h1:begins-with('T')").css({'text-indent':'-0.3em'});
$("#main-copybox h1:begins-with('\“'), #main-copybox h1:begins-with('\‘'), #main-copybox h1:begins-with('W'), #main-copybox h1:begins-with('M'), #main-copybox h1:begins-with('V'), h1:begins-with('T')").css({'text-indent':'-0.035em'});
$("h2:begins-with('\“'), h2:begins-with('\‘'), h2:begins-with('W'), h2:begins-with('M'), h2:begins-with('V'), h2:begins-with('T')").css({'text-indent':'-0.075em'});
$("#main-copybox .menu-entry h2:begins-with('\“'), #main-copybox .menu-entry h2:begins-with('\‘'), #main-copybox .menu-entry h2:begins-with('W'), #main-copybox .menu-entry h2:begins-with('M'), #main-copybox .menu-entry h2:begins-with('V')").css({'text-indent':'-0.035em'});
$("#main-copybox .menu-entry p:begins-with('\“'), #main-copybox .menu-entry p:begins-with('\‘'), #main-copybox .menu-entry p:begins-with('W'), #main-copybox .menu-entry p:begins-with('M'), #main-copybox .menu-entry p:begins-with('V')").css({'text-indent':'-0.035em'});
}
);
*/









/* TESTING AREA */ 
/* This code is for testing early setups of the Image Bar (check to see if image rotations look good) */ 




/* $(document).ready(function()
	{

//	Cross-slide jquery plugin provided by http://www.gruppo4.com/~tobia/cross-slide.shtml
$('div#image-bar-beta').removeClass('hidden');

$('div#image-bar-beta .image-bar-left').crossSlide({
	sleep: 10,
	fade: 3,
	shuffle: true
	},
[
				{ src: '/images/uploads/img-top-val-heartonsatin.jpg'},
				{ src: '/images/uploads/img-top-val-lovestamp.jpg'},
				{ src: '/images/uploads/img-top-val-candyhearts.jpg'},
				
				{ src: '/images/uploads/img-top-holiday-cookies-whi.jpg'},
				{ src: '/images/uploads/img-top-holiday-redball.jpg'},
				{ src: '/images/uploads/img-top-holiday-gifts01.jpg'},
				{ src: '/images/uploads/img-top-holiday-gold-ornmts.jpg'},
				
				{ src: '/images/uploads/img-top-autumn-corn.jpg'},
				{ src: '/images/uploads/img-top-pumpkins.jpg'},
				{ src: '/images/uploads/img-top-pumpkin-pie.jpg'}
]);
		
	
$('div#image-bar-beta .image-bar-center').crossSlide({
	sleep: 10,
	fade: 3,
	shuffle: true
	},
[
				{ src: '/images/uploads/img-top-holiday-stars.jpg'},
				{ src: '/images/uploads/img-top-holiday-chairs.jpg'},
				{ src: '/images/uploads/img-top-holiday-redball2.jpg'},
				{ src: '/images/uploads/img-top-holiday-rwine-glows.jpg'},
				
				{ src: '/images/uploads/img-top-scarecrow.jpg'},
				{ src: '/images/uploads/img-top-berries.jpg'},
				{ src: '/images/uploads/img-top-turkey-table.jpg'},
				
				{ src: '/images/uploads/image-top-cocktail-01_1.jpg'},
				{ src: '/images/uploads/img-top-bride-groom-kiss.jpg'},
				{ src: '/images/uploads/img-top-place-setting.jpg'},
				{ src: '/images/uploads/img-top-home-bride-callas.jpg'},
				{ src: '/images/uploads/img-top-flatware.jpg'},
				{ src: '/images/uploads/image-top-salad.jpg'},
				{ src: '/images/uploads/img-top-martini.jpg'},
				{ src: '/images/uploads/img-top-brides-bouquet.jpg'},
				{ src: '/images/uploads/img-top-table-02.jpg'}
]);
		
	
		
$('div#image-bar-beta .image-bar-right').crossSlide({
	sleep: 10,
	fade: 3,
	shuffle: true
	},
[
				{ src: '/images/uploads/img-top-holiday-champagne.jpg'},
				{ src: '/images/uploads/img-top-holiday-ornament.jpg'},
				{ src: '/images/uploads/img-top-holiday-wine-glitte.jpg'},
				{ src: '/images/uploads/img-top-holiday-glowcandle.jpg'},
				
				{ src: '/images/uploads/img-top-pumpkin-cart.jpg'},
				{ src: '/images/uploads/img-top-leaf-bushels.jpg'},
				{ src: '/images/uploads/img-top-maple-leaf.jpg'},
				
				{ src: '/images/uploads/image-top-champagne-02.jpg'},
				{ src: '/images/uploads/img-top-home-champ-glasses.jpg'},
				{ src: '/images/uploads/image-top-linguini-clams.jpg'},
				{ src: '/images/uploads/image-top-salmon.jpg'},
				{ src: '/images/uploads/image-top-flowers-03.jpg'},
				{ src: '/images/uploads/img-top-vintage-kiss.jpg'},
				{ src: '/images/uploads/img-top-rings-roses.png'},
				{ src: '/images/uploads/img-top-place-setting-03.jpg'},
				{ src: '/images/uploads/img-top-bride-eating.jpg'},
				{ src: '/images/uploads/img-top-table-03.jpg'}
]);	
}
); */ 