var $j = jQuery.noConflict();
$j(document).ready(function() {
$j("img#offersnotice[title]").tooltip({tip: '#tooltip', effect: 'bouncy'});
$j('#bfbcomments').cycle({fx: 'fade', timeout: 7500});
// paging triggers search
$j('ul.paging li a').live("click",function() {
//$j("#pages").empty();
$j(".pagingstrip p").remove();
$j("#loading").loading({img: 'elements/images/loader.gif'});
//var searchvalues = $j("#bfbsearch").serialize();
var pagenumber = $j(this).html();
values = "&showpage="+pagenumber;
//var sorttype = $j('#sorttype').val();
//searchvalues+= "&search_orderby="+sorttype;
$j.ajax({
type: "POST",
url: "scripts/xhr_get_offers.php",
cache: false,
data: values,
success: function(html){
//location.href="#listingtopstrip";
$j("#loading").loading(false).empty();
var newhtml = html.split("---");
$j(".pagingstrip").html(newhtml[0]).fadeIn(200).show();
$j(".column_main").empty().html(newhtml[1]).fadeIn(400).show()
$j(".column_main").effect("highlight", {}, 1500);
}
});
return false;
});

// end of document ready
});