jQuery(document).ready(function() {

    jQuery('.jcarousel-skin-tango').jcarousel({
        wrap: 'circular'
    });

    jQuery('.jcarousel-skin-alpha').jcarousel({
        wrap: 'circular'
    });

   jQuery(".ceebox").ceebox();

   jQuery(".main_two").equalHeights();
   jQuery(".bannerdiv").equalHeights();
   jQuery(".banner2div").equalHeights();

   jQuery(".banner4col").vAlign("div");
   jQuery(".banner5col").vAlign("div");

   jQuery('#widget_rrm_recent_comments ul').jScrollPane(	{
			showArrows: true,
			horizontalGutter: 10
		});

   
     
	jQuery(".menu-audiente-tv-container ul.menu ul").css({ display: 'none' });
	jQuery(".menu-audiente-tv-container ul.menu li").hover(function() {
		jQuery(this).find('ul.sub-menu')
			.stop(true, true).delay(50).animate({ "height": "show", "opacity": "show" }, 200 );
	}, function(){
		jQuery(this).find('ul.sub-menu')
			.stop(true, true).delay(50).animate({ "height": "hide", "opacity": "hide" }, 200 );
	});

   
});




function clickclear(thisfield, defaulttext) {
if (thisfield.value == defaulttext) {
thisfield.value = "";
}
}

function clickrecall(thisfield, defaulttext) {
if (thisfield.value == "") {
thisfield.value = defaulttext;
}
}



(function ($) {
	$.fn.vAlign = function(container) {
		return this.each(function(i){
			if(container == null) {
				container = 'div';
			}
			var paddingPx = 10; //change this value as you need (It is the extra height for the parent element)
			$(this).html("<" + container + ">" + $(this).html() + "</" + container + ">");
			var el = $(this).children(container + ":first");
			var elh = $(el).height(); //new element height
			var ph = $(this).height(); //parent height
			if(elh > ph) { //if new element height is larger apply this to parent
				$(this).height(elh + paddingPx);
				ph = elh + paddingPx;
			}
			var nh = (ph - elh) / 2; //new margin to apply
			$(el).css('margin-top', nh);
		});
	};
})(jQuery);







