$(document).ready(onReady);



function onReady()
{	
	$('#homePropOfTheWeek > div').css('visibility','hidden');
	
	$('#homePropOfTheWeek').cycle({fx:'fade',speed:'slow'});
	
	//this is for the images on the home page
	$('#image > a > img').css('visibility','hidden');
	
	$('#descriptShow > div').css('visibility','hidden');
	
	//$('#homePropOfTheWeek').cycle({fx:'fade',speed:'slow'});
	
	//$('#homePropOfTheWeek').css('visibility','hidden');
		
	//once the images have loaded make them visible
	$('#image > a > img').load(makeVisible());

	//this is for the descriptions on the home page
	$('#descriptShow').cycle({fx:'fade',speed:'slow'});
	
	$('#locationTxt').css('color','#999');
	
	$('#locationTxt').click(function(){$('#locationTxt').css('color','#000')});
}


function makeVisible()
{
	
	// this is for the jquery cycle plugin
	$('#image').cycle({fx:'fade',speed:'slow'});
	
	$('#image > a > img').css('visibility','visible');
	
	//this displays the property information, price, style etc
	$('#descriptShow > div').css('visibility','visible');
	
	$('#homePropOfTheWeek > div').css('visibility','visible');
}


