$(document).ready(function(){
	
			$(".thumbnails a").click(function(){
		
				var thisElement = $(this);
		
				var currentId = $(this).attr("id");
				var loadMedia = $(this).attr("rel");
	
				$(".thumbnails a span").removeClass("current");
				$(this).children("span").addClass("current");
	
				$(".slide").slideDown(function() {
					
					$(".text").hide(); //hide others
					$("." + currentId).fadeIn(); //show text				
		
					$("#featured-image").hide();
				
					if ($(thisElement).attr("class") == "image") {
						$("#featured-image").attr("src", loadMedia).show();
						$("#flashmovie").hide();
					} else {
						var flashvars = {media: loadMedia};
						swfobject.embedSWF("/wp-content/themes/cufoundation/images/global/videoPlayer.swf", "flashmovie", "407", "254", "7", "/wp-content/themes/cufoundation/images/global/expressInstall.swf", flashvars, {wmode:"transparent"});				
					}
				});
				return false;
			});		
			
		});