//<!--

jQuery.fn.masque = function(classSelector)
{
    $(this).hover(
		function()
		{
		    var arr = $.trim($(this).parent().find('ul').html()).split('li');
		    var text = $.trim($(this).parent().find('a').html()).toUpperCase();
		    
		    //var ct = $(this).parent().children().size(); 
		    ct = $(this).find(".bannerLinkWrapper").find('ul').children().size();

		    //alert($.trim($(this).parent().find('ul').html()));
		    //if(text.substr(text.length - 4, 4) != "<BR>" || arr.length > 1)
		    if(ct > 0 || arr.length > 1)
		    {
    	        $(this).find(classSelector).stop().animate({height:'150px',opacity: '0.9'},400);
    	    }
	    },
		function () {
        	$(this).find(classSelector).stop().animate({height:'30px',opacity: '0.9'}, 300);
	    }
	);
};

$(document).ready(function()
{
    $('div.slider').masque('.masque');
    
    //$('.banerImage').find('.masque').stop().animate({height:'30px',opacity: '0.9'}, 300);
    //$('#PropertyAuctions').find('.masque').stop().animate({height:'40px',opacity: '0.9'}, 300);
    
    $('.slider').find('.masque').stop().animate({height:'30px',opacity: '0.9'}, 300);

});
//-->