function openVideo(vidFile) {
	$("#"+vidFile).flash({
		swf: "FLVPlayer_Progressive.swf",
		width: 320,
		height: 240,
		wmode: "transparent",
		flashvars: {
			MM_ComponentVersion: 1,
			skinName: "Clear_Skin_2",
			streamName: "assets/flash/"+vidFile,
			autoPlay: true,
			autoRewind: false
		}
	});
}
$(document).ready(function() {

	/* Add Arrow to Nav Items w/ Dropdowns */
	$("#wrapper > nav > ul > li:has('ul')").each(function() {
		$(this).addClass("dropdown");
	});

	/* If we need Videos, Initialize SWFObject */
	$(".video img").click(function() {
		var vidID = $(this).parent().attr("id");
		openVideo(vidID);
		return false;
	});

	/* Animate Nav */
	$("#wrapper > nav li li a").hover(function () {
		$(this).stop(true).animate({ paddingLeft: "18px" }, {speed: 100, easing: 'easeOutBack'});
	}, function () {
		$(this).stop(true).animate({ paddingLeft: "8px" }, {speed: 100, easing: 'easeOutBounce'});
	});
});

