$(document).ready(function(){
	
	// home properties
	$("#home-properties .properties").click(function(){
		window.location=$(this).find("a").attr("href");
	});
	
	$('#home-properties .properties').hover(function() {
		$(this).find("a").addClass('linkhover');
	}, function() {
		$(this).find("a").removeClass('linkhover');
	});	
	
	// sub properties
	$("#sub-properties .properties").click(function(){
		window.location=$(this).find("a").attr("href");
	});
	
	$('#sub-properties .properties').hover(function() {
		$(this).find("a").addClass('linkhover');
	}, function() {
		$(this).find("a").removeClass('linkhover');
	});	
	
	// home news
	$("#news li").click(function(){
		window.location=$(this).find("a").attr("href");
	});
	
	$('#news li').hover(function() {
		$(this).find("a").addClass('linkhover');
	}, function() {
		$(this).find("a").removeClass('linkhover');
	});	
	
	// sub news
	$("#sub-news li").click(function(){
		window.location=$(this).find("a").attr("href");
	});
	
	$('#sub-news li').hover(function() {
		$(this).find("a").addClass('linkhover');
	}, function() {
		$(this).find("a").removeClass('linkhover');
	});	
	
	// properties list
	$("#sub-left .propertylist").click(function(){
		window.location=$(this).find("a").attr("href");
	});
	
	$('#sub-left .propertylist').hover(function() {
		$(this).find("a").addClass('linkhover');
	}, function() {
		$(this).find("a").removeClass('linkhover');
	});	
	
});

