

// check for movie player
// note: don't use document.ready - swfobject does not work if you wait till dom ready, do right away
if ($('#movie')) {
	var flashvars = { videos: "/assets/media/videos.xml" };
	var params = { allowfullscreen: "true", allowscriptaccess: "always" };
	var attributes = {};
	swfobject.embedSWF("/assets/flash/Titanium-800.swf", "movie", "800", "306", "9.0.0","/assets/flash/expressInstall.swf", flashvars, params, attributes);
}


// home page video toggler
$(document).ready(function(){

/*
	$('#video-block-opener a').css("background-position","0 0");
	
	$('#video-block-opener a').click( function() {
		// change opener icon
		//y = $(this).css("background-position");
		if ($('#video-block').is(':visible')) {
			y = "0 0px";
		} else {
			y = "0 -25px";
		}
		$(this).css("background-position",y);
		$('#video-block').toggle();
		return false;
	});
*/
	if ( $("#slideshow").length ) { // exists?
		$("#slideshow .scrollable").scrollable({circular: true}).navigator().autoscroll({interval: 3000 });
	}
});

