$(function() {

	// Sifr
	$('div#content h1').sifr({ strSWF: 'flash/gotham-book.swf', strColor: '#f2bb78', strWmode: 'transparent', intPadding: [0, 0, 0, 10], strCase: 'upper' }, { expressInstall: true });
	$('div#content h2').sifr({ strSWF: 'flash/gotham-book.swf', strColor: '#ebe2cd', strWmode: 'transparent', strCase: 'upper' }, { expressInstall: true });
	$('div#content h3.header-menu').sifr({ strSWF: 'flash/van-dijk-bold.swf', strColor: '#bc7700', strWmode: 'transparent', intPadding: [35, 8, 0, 8] }, { expressInstall: true });


	// Flash 
	$(".home #masthead").flash({src:"flash/homeMasthead.swf", width:732, height:436, wmode:"transparent", quality:"high"}, {version:"8"});
	$("div#dhr-logo").flash({src:"http://www.destinationhotels.com/flash/branding/flash_logoDhr-white.swf?link=hotelicon", width:250, height:25, wmode:"transparent", allowScriptAccess:"always", quality:"high"}, {version:"7"});
	$("div#gallery").flash({src:"flash/photo_gallery.swf", width:680, height:400, wmode:"transparent", quality:"high"}, {version:"8"});
	$("div#signature-drinks").flash({src:"flash/signatureDrinks.swf", width:691, height:347, wmode:"transparent", quality:"high"}, {version:"8"});
	
	if($.browser.msie) {
		$('#content form #submit').each(function() {
			$(this).hover(function() { $(this).css('background-position', 'left -43px'); },
						  function() { $(this).css('background-position', 'left top'); });
			$(this).focus(function() { $(this).css('background-position', '0 -86px'); });
		});
	}
	
	$('.map').each(function() { $(this).msnMap(); });
			
// Sample usage of jquery.flash plugin - remove if not needed
	/*	If given the following markup:

	<div id="masthead">
		<img src="images/mastheads/flash-alt.jpg" alt="" /><br />
	</div>
	
	you would use the following to replace the alternate content:

	$("div#masthead").flash(
		{src:"flash/home.swf",
		 width:600,
		 height:300,
		 wmode:"transparent",
		 quality:"high"},
		 {version:"8"},
			function(htmlOptions) { //Use this to specify a query string, take out if not needed.
				htmlOptions.flashvars.configFile = "flash/xml/gallery_config.xml";
				htmlOptions.flashvars.xmlFile = "flash/xml/images.xml";
				$(this).html($.fn.flash.transform(htmlOptions));
		});
	*/


// Sample sifr usage - remove if not needed
	/*
	// intPadding array order is: left, top, right, bottom - must match css for corresponding element
	$('div#content h2').sifr(
		{ strSWF: 'flash/font-name.swf', strColor: '#cc0000', strLinkColor: '#cccc00', strHoverColor: '#cc00cc', strWmode: 'transparent', intPadding: [35, 0, 0, 0], strFlashVars: 'textalign=center&', strCase: 'upper' },
		{ expressInstall: true }
	);
	*/


// Adds hover class for IE and animation for drop down nav - remove if not needed
	/*
	$("ul#nav-primary li").hover(
        function(){ $("ul", this).fadeIn("fast"); }, 
        function() { } 
    );
    if (document.all) {
        $("ul#nav-primary li").hoverClass("over");
		$("ul#nav-primary li ul li").hoverClass("over");
    }
	*/
});


// Function to add/remove "over" class for drop down nav - remove if not needed
$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover( 
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});

};   
