$(function() {
	//Documentation located in special.docs.js

	$(".home #masthead").flash({src:"flash/homepage.swf", width:707, height:294, wmode:"transparent", quality:"high"},{version:"9"});
	
	$("div#port-elizabeth-photos").flash(
		{src:"flash/hotels-ssp.swf",
		 width:600,
		 height:406,
		 wmode:"transparent",
		 quality:"high"},
		 {version:"9"},
			function(htmlOptions) { //Use this to specify a query string, take out if not needed.
				htmlOptions.flashvars.xmlFile = "/flash/xml/port-elizabeth-images.xml";
				$(this).html($.fn.flash.transform(htmlOptions));
		});

	$("div#ballito-photos").flash(
		{src:"flash/hotels-ssp.swf",
		 width:600,
		 height:406,
		 wmode:"transparent",
		 quality:"high"},
		 {version:"9"},
			function(htmlOptions) { //Use this to specify a query string, take out if not needed.
				htmlOptions.flashvars.xmlFile = "/flash/xml/ballito-images.xml";
				$(this).html($.fn.flash.transform(htmlOptions));
		});

	$("div#midrand-photos").flash(
		{src:"flash/hotels-ssp.swf",
		 width:600,
		 height:406,
		 wmode:"transparent",
		 quality:"high"},
		 {version:"9"},
			function(htmlOptions) { //Use this to specify a query string, take out if not needed.
				htmlOptions.flashvars.xmlFile = "/flash/xml/midrand-images.xml";
				$(this).html($.fn.flash.transform(htmlOptions));
		});

	$("div#hotel-photos").flash(
		{src:"flash/hotels-ssp.swf",
		 width:600,
		 height:406,
		 wmode:"transparent",
		 quality:"high"},
		 {version:"9"},
			function(htmlOptions) { //Use this to specify a query string, take out if not needed.
				htmlOptions.flashvars.xmlFile = "/flash/xml/hotel-images.xml";
				$(this).html($.fn.flash.transform(htmlOptions));
		});


	$('body:not(".newsletter") div#left-side h1').sifr(
		{ strSWF: '/flash/futura-BdCn.swf', strColor: '#c7bbaa', strWmode: 'transparent', strFlashVars: 'offsetTop=-3&', strCase: 'upper' }, 
		{ expressInstall: true }
	);
	
	
		//Rotating Push Marketing
	$('#mycarousel').each(function() { 
		$(this).jcarousel({
			scroll: 1,
			size: 3,
			wrap: 'last', 
			buttonNextHTML: '<div><span href="#" class="next-offer">next offer <img src="/images/layout/right-arrow.gif" /></span></div>', 
			buttonPrevHTML: ''
		});
	});
	
});
