// JavaScript Document
// functions used in the Available Homes section



$(document).ready(function(){
	// add float class selectors to alternating home_data divs
	$("div.home_data:even").addClass('float_left');
	$("div.home_data:odd").addClass('float_right').after('<br clear="all"/>');
	
	// hide the edit icons
	$("div.home_data > div.edit").hide();
	
	// attach mouseover behaviors to home_data divs
	$("div.home_data").mouseover(function(){
		$(this).children("div.edit").show();
	});
	$("div.home_data").mouseout(function(){
		$(this).children("div.edit").hide();
	});
	
	// add "unavailable" watermark to image
	$("div.home_unavailable").append('<span class="unavailable">Unavailable</span>');
});