
$(document).ready(function(){

	$("#container").addClass('container');
	
	$("#sizes a").hover(
		function(){
			$("#container").addClass('container_on');
			$("#container").removeClass('container');
		}, 
		function() {
			$("#container").addClass('container');
			$("#container").removeClass('container_on');
		}
    ).filter(".large").click(function(){
		$("#sizes").hide();
		//$("body").append('<img id="darkness" src="images/darkness.png" />');
		$("#movie-container").addClass("movie-large").show(250,function(){
			$("#movie").html('<embed src="video/brightshinies_720.mov" width="720" height="502" controller="true" />');
			$("#close-movie").show();
		});
		return false;
	}).end().filter(".med").click(function(){
		$("#sizes").hide();
		//$("body").append('<img id="darkness" src="images/darkness.png" />');
		$("#movie-container").addClass("movie-med").show(250,function(){
			$("#movie").html('<embed src="video/brightshinies_640.mov" width="640" height="448" controller="true" />');
			$("#close-movie").show();
		});
		return false;
	}).end().filter(".small").click(function(){
		$("#sizes").hide();
		//$("body").append('<img id="darkness" src="images/darkness.png" />');
		$("#movie-container").addClass("movie-small").show(250,function(){
			$("#movie").html('<embed src="video/brightshinies_480.mov" width="480" height="340" controller="true" />');
			$("#close-movie").show();
		});
		return false;
	}).end().filter(".youth").click(function(){
		$("#sizes").hide();
		//$("body").append('<img id="darkness" src="images/darkness.png" />');
		$("#movie-container").addClass("movie-youth").show(250,function(){
			$("#movie").html('<embed src="video/brightshinies_320.mov" width="320" height="232" controller="true" />');
			$("#close-movie").show();
		});
		return false;
	}).end();
	
	$("#close-movie a").click(function(){
		$("#close-movie").hide();
		$("#movie").html('');
		$("#movie-container").hide(250,function(){
			$(this).removeClass();
			//$("#darkness").remove();
			$("#sizes").show();
		})
		return false;
	});

});