//jQuery.noConflict();
jQuery(document).ready(function(){
	initPage();

	$('#s').liveSearch({ajaxURL: '/?ajax=1&s='});

	var l = document.getElementById("listing-holder");
	if (l) {
	$('#listing-holder').infinitescroll({
		navSelector  : "#subnav",
		nextSelector : "#subnav span.next a",
		itemSelector : "#listing-holder div.box",
		loadingImg : "/wp-content/themes/edward3/images/loader2.gif"
	}, function() {
		$("div.infscr-pages div.box-twitter").remove();
		initPage();
		makeGrid();
		pagePlayer.initDOM();
	});
	}
});

function initPage() {
	$("#listing div.box").bind("mouseenter", function(){$(this).addClass("box-hover");}).bind("mouseleave", function(){$(this).removeClass("box-hover");});
	$("#header select").selectbox();

	$("img").lazyload({ placeholder : "/wp-content/themes/edward3/images/transparent.gif" });

$("#listing div.box").jFade({
	trigger: "mouseover",
	property: 'background',
	start: 'F1F1F1',
	end: '000000',
	steps: 12,
	duration: 12
}).jFade({
	trigger: "mouseout",
	property: 'background',
	start: '000000',
	end: 'F1F1F1',
	steps: 12,
	duration: 12
}); 
	
}
 $(document).ready(function(){ 
        $(document).pngFix(); 
    }); 