$(document).ready(function () {

	$('.rightbox.caption').hover(function(){
		$(".boxcaption", this).stop().animate({top:'107px'},{queue:false,duration:200});
	}, function() {
		$(".boxcaption", this).stop().animate({top:'178px'},{queue:false,duration:200});
	});

	$("#popup").colorbox({iframe: true, innerWidth: 520, innerHeight: 570});
	$(".ytplay").colorbox({iframe:true, innerWidth:425, innerHeight:344});
	$("#ytplay").colorbox({iframe:true, innerWidth:425, innerHeight:344});

	$('.dropdown').each(function () {
		$(this).parent().eq(0).hoverIntent({
			timeout: 100,
			over: function () {
				var current = $('.dropdown:eq(0)', this);
				current.slideDown(500);
			},
			out: function () {
				var current = $('.dropdown:eq(0)', this);
				current.fadeOut(500);
			}
		});
	});
	
	$('.dropdown a').hover(function () {
		$(this).stop(true).animate({paddingLeft: '35px'}, {speed: 100, easing: 'easeOutBack'});
	}, function () {
		$(this).stop(true).animate({paddingLeft: '15px'}, {speed: 100, easing: 'easeOutBounce'});
	});
	
	$('#menu').find('ul').each(function (){
		if ($.trim($(this).text()) == ""){
			$(this).remove();
		}
	});

	$('ul.dropdown').parent('li').css('background-image', 'url(/layouts/Standard/img/menupil_right.gif)');

});
