
// YT Video
var videoID = "";
var divID = "yt-video";
var params = { allowScriptAccess: "always" };
var atts = { id: "myytplayer" };

$(document).ready(function(){

	// $('#btn-download a').fancybox();
/*	$('.iframe').fancybox({
		'showCloseButton' : true,
		'titleShow' : false,
		'hideOnContentClick' : false,
		'autoScale' : true,
		'width': 643,
		'height': 483
	});
*/	
	/* Fancybox for spring callout on homepage */
/*	$("#homepage-callout-trigger").fancybox().trigger('click');*/

	/* 	Open links in a new window */
	$("a[rel='external']").live('click',function(){ window.open(this.href); return false; });	
	
	/* Homepage masthead slideshow */
	$('#home-cycle').cycle({
		'timeout': 8000
	});

	// YT Video
	// if($('#yt-video').size() > 0) {
	// 	videoID = $('#yt-video').html();
	// 	swfobject.embedSWF("http://www.youtube.com/v/" + videoID + "&enablejsapi=1&playerapiid=player1&autoplay=1",  divID, "640", "480", "8", null, null, params, atts);
	// }
	
});

