$(document).ready(function(){
	var target = $("#target");
	var _anchor = $("#anchor");
	var cultivate = $("#cultivate");
	var why = $("#why");
	var target_on = $("#target_on");
	var anchor_on = $("#anchor_on");
	var cultivate_on = $("#cultivate_on");
	var why_on = $("#why_on");
	var video = $("#video");
	var target_box = $("#target_box");
	var anchor_box = $("#anchor_box");
	var cultivate_box = $("#cultivate_box");
	var why_box = $("#why_box");
	var close_target = $("#target_box .close");
	var close_anchor = $("#anchor_box .close");
	var close_cultivate = $("#cultivate_box .close");
	var close_why = $("#why_box .close");
	var play = $("#play");
	var flash = $("#vid_outer");
	
	//target
	target.mouseover(function(){
		video.hide();
		anchor_box.hide();
		cultivate_box.hide();
		why_box.hide();
		anchor_on.hide();
		cultivate_on.hide();
		why_on.hide();	
		//show
		target_on.show();	
		target_box.show();
	});
	target.mousedown(function(){
		target_box.show();
	});
	close_target.mousedown(function(){
		target_on.hide();
		target_box.hide();
		video.show();
		play.show();
		flash.hide();
	});
	//anchor
	_anchor.mouseover(function(){
		video.hide();
		target_on.hide();
		cultivate_on.hide();
		why_on.hide();
		target_box.hide();
		cultivate_box.hide();
		why_box.hide();
		//show		
		anchor_on.show();
		anchor_box.show();		
	});
	_anchor.mousedown(function(){
		anchor_box.show();
	});
	close_anchor.mousedown(function(){
		anchor_box.hide();
		anchor_on.hide();
		video.show();
		play.show();
		flash.hide();
	});
	//cultivate
	cultivate.mouseover(function(){
		video.hide();
		anchor_box.hide();
		target_box.hide();
		why_box.hide();		
		anchor_on.hide();
		target_on.hide();
		why_on.hide();		
		//show
		cultivate_on.show();
		cultivate_box.show();
	});
	cultivate.mousedown(function(){
		cultivate_box.show();
	});
	close_cultivate.mousedown(function(){
		cultivate_box.hide();
		cultivate_on.hide();
		video.show();
		play.show();
		flash.hide();
	});
	//why
	why.mouseover(function(){
		video.hide();
		target_box.hide();
		anchor_box.hide();
		cultivate_box.hide();
		target_on.hide();
		anchor_on.hide();		
		cultivate_on.hide();		
		//show
		why_on.show();
		why_box.show();
	});
	why.mousedown(function(){
		why_box.show();
	});	
	close_why.mousedown(function(){
		why_on.hide();
		why_box.hide();
		video.show();
		play.show();
		flash.hide();
	});
	play.mousedown(function(){
		play.hide();
		flash.show();
	});
	
});
