soundManager.url = 'js/soundman/swf/';
soundManager.flashVersion = 8; // optional: shiny features (default = 8)
soundManager.useFlashBlock = false; // optionally, enable when you're ready to dive in
// enable HTML5 audio support, if you're feeling adventurous.
// soundManager.useHTML5Audio = true;

soundManager.onload = function() {
  var click = soundManager.createSound({
    id: 'click',
    url: 'sounds/click.mp3',
	volume: 10
  });
   var swish = soundManager.createSound({
    id: 'swish',
    url: 'sounds/swish.mp3',
	volume: 15
  });
  //swish.play();
}

$(document).ready(function(){

	$("a[rel='exteriors']").colorbox({
		transition:"elastic",
		maxWidth:"1080px",
		maxHeight:"720px"
	});
	$("a[rel='interiors']").colorbox({
		transition:"elastic",
		maxWidth:"1080px",
		maxHeight:"720px"
	});
	$("a[rel='details']").colorbox({
		transition:"elastic",
		maxWidth:"1080px",
		maxHeight:"720px"
	});
	
	$("a[rel='estateHomes']").colorbox({
		transition:"elastic",
		maxWidth:"1080px",
		maxHeight:"720px"
	});
	$("a[rel='beachHouses']").colorbox({
		transition:"elastic",
		maxWidth:"1080px",
		maxHeight:"720px"
	});
	$("a[rel='customBuilds']").colorbox({
		transition:"elastic",
		maxWidth:"1080px",
		maxHeight:"720px"
	});
	$("a[rel='renovations']").colorbox({
		transition:"elastic",
		maxWidth:"1080px",
		maxHeight:"720px"
	});
	
	$("a[rel='projects1']").colorbox({
		transition:"elastic",
		maxWidth:"1080px",
		maxHeight:"720px"
	});
	$("a[rel='projects2']").colorbox({
		transition:"elastic",
		maxWidth:"1080px",
		maxHeight:"720px"
	});
	$("a[rel='projects3']").colorbox({
		transition:"elastic",
		maxWidth:"1080px",
		maxHeight:"720px"
	});
	
	$("a[rel='sale1']").colorbox({
		transition:"elastic",
		maxWidth:"1080px",
		maxHeight:"720px"
	});
	$("a[rel='sale2']").colorbox({
		transition:"elastic",
		maxWidth:"1080px",
		maxHeight:"720px"
	});
	$("a[rel='sale3']").colorbox({
		transition:"elastic",
		maxWidth:"1080px",
		maxHeight:"720px"
	});
	$('.fadeBox').cycle({ 
    timeout: 6000, 
    speed:  1000
}); 
	
});

/*$(function() {
if (!$('.fadeBox').length > 0) return false;
$('.fadeBox').cycle('fade');
});*/
