$(function() {

$("div#flash-signup-email").each(function(){
        $(this).flash(
            {src:"/flash/flash-dropdown.swf",
             width:196,
             height:152,
             name:"homeMasthead",
             id:"homeMasthead",
             wmode:"transparent",
             quality:"high"},
             {version:"9"},
                function(htmlOptions) { //Use this to specify a query string, take out if not needed.
					htmlOptions.flashvars.openOnLoad = true;
                    $(this).html($.fn.flash.transform(htmlOptions));
            });
    });

	$('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"});
    
    $("body.home div#masthead").flash(
        {src:"/flash/home-masthead.swf",
         width:955,
         height:230,
         wmode:"transparent",
         quality:"high"},
         {version:"8"},
            function(htmlOptions) { //Use this to specify a query string, take out if not needed.
                htmlOptions.flashvars.xmlPath = "/flash/xml/home-masthead.xml";
                $(this).html($.fn.flash.transform(htmlOptions));
        });
	
	$("div#photo-gallery").flash({src:"/flash/photo-gallery.swf", width:530, height:387, wmode:"transparent", quality:"high"},{version:"8"});

	$("#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();
	});



});

