/*
* jQuery functions for listing pages
*/

// set jQuery handler so that there is no conflict with other libraries
//var $j = jQuery.noConflict();


/*
* removes scrollbars from filter boxes that have less than 10 items.
* Only necessary for IE6 and below
*/

adjustFilterBoxes = function() {

	$j("#listing_filters ul").not(".selfilters").each( function () {
								
		if ($j(this).children().size() < 10)
		{
			$j(this).addClass("noscroll");
		}
	});
}

/*
* Adds border to bottom of banner div if there is no
* enhanced listings div
*/

adjustBannerBox = function() {

	var cntBanner = $j("#telli_banner").size();
	var cntEnhanced = $j("#enhanced_listings").size();
	
	if (cntBanner == 1 && cntEnhanced == 0)
	{
		$j("#telli_banner").addClass("no_enhanced");
	}
}