$(function() {
	$('div#content h1').sifr({ strSWF: '/flash/georgia-bold.swf', strColor: '#4b370a', strWmode: 'transparent', intPadding: [0, 0, 0, 2], strFlashVars: 'letterSpacing=3&', strCase: 'upper' },{ expressInstall: true });
	$('div.home-push h2').sifr({ strSWF: '/flash/georgia-bold.swf', strColor: '#4b370a', strWmode: 'transparent', strFlashVars: 'letterSpacing=1&', strCase: 'upper' },{ expressInstall: true });
	
	
	$("body.home div#masthead").flash({src:"/flash/home-masthead.swf", width:955, height:230, wmode:"transparent", quality:"high"},{version:"8"});
	
	$("div#photo-gallery").flash({src:"/flash/photo-gallery.swf", width:530, height:387, wmode:"transparent", quality:"high"},{version:"8"});
	$("div#condo-gallery").flash({src:"/flash/condo-gallery.swf", width:530, height:387, wmode:"transparent", quality:"high"},{version:"8"},
			function(htmlOptions) { //Use this to specify a query string, take out if not needed.
				htmlOptions.flashvars.images = "/flash/xml/condo-images.xml";
				htmlOptions.flashvars.browser = BROWSER;  //Used for SSP Postcard feature, comment out if not needed.
				$(this).html($.fn.flash.transform(htmlOptions));
		});
	
	
	//Blog icons
	$(".post").each(function(){
		var thisPost = $(this);
		$("a.post-icon",thisPost).click(function(){
			$(".post-details a",thisPost).click();
			return false;
		});
		$("#comment-btn a",thisPost).click(function(){
			$("form#blog-comment",thisPost).removeClass("hide-form");
			$(this).remove();
			return false;
		});
	});
	
	$("#spring-sale-modal").each(function() {
		var springModalWidth = ($(window).width()-$(this).width())/2;
		$(this).css('left',springModalWidth);
		$(this).css('top','120px');
		$(this).jqm({closeClass:'spring-sale-close,'}).jqmShow();
	});

	$("#holiday-modal").each(function() {
		$('#holiday-modal').jqm();
		$('#holiday-modal').jqmShow();
	});


	//Facebook Widget 
	/*$(document).ready(function() {
		
		$("div.facebook-widget").each(function() {
			$(this).slideDown(1000);
			$(this).children('.close').click(function() {
				$("div.facebook-widget").slideUp();
			});
		});

	});*/
	
});

