function toEnable()
{
	tot = window.setTimeout(function(){
		$("#clone").remove();
		},2000)
}

function toDisable()
{
	window.clearTimeout(tot);
}

$(document).ready(function(){
	tot = null;

	$("#navi2 > a")
		.mouseover(function(){
			toDisable();
			$("#clone").remove();
			$(this)
				.next("div")
				.clone()
					.hide()
					.attr("id","clone")
					.width($(this).width()+5)
					.css("position","absolute")
					.css("top",$(this).offset().top-1)
					.css("left",$(this).offset().left+$(this).outerWidth())
					.appendTo("body")
					.mouseover(toDisable)
					.mouseout(toEnable)
					.show()
		})
		.mouseout(toEnable)
		
	$("#home_film")
		.one('click',function(){
			$(this).append(
			'<object height="240" width="320" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" type="application/x-oleobject" standby="Loading Windows Media Player components..." classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" id="MediaPlayer">'+
				'<param value="resources/movie.wmv" name="filename"/>'+
				'<param value="False" name="Showcontrols"/>'+
				'<param value="True" name="autoStart"/>'+
				'<param value="True" name="Loop"/>'+
				'<embed height="240" width="320" src="resources/movie.wmv" type="application/x-mplayer2"/>'+
			'</object>');
		});
});