$(document).ready(function(){
				
	//Search 
	$("#squery").focus(function () {
		$("#squery").attr("value","");
	});
	$("#sbutt").attr("value","");
	
	//Map Controls	
	//Find Current state
	var currstate = $("#map").css("background-position");
	if(typeof(currstate) === "undefined"){
		currstate = $("#map").css("background-position-x");
		currstate = currstate + " " + $("#map").css("background-position-y");		
	}
	
	//OFF
	$("#map").mouseleave(function () {		
		$("#map").css("background-position", currstate);
	}); 	

	// ON
	$("#imap area[alt='ACT']").mouseover(function () {
		$("#map").css("background-position", "0 -120px");
	});	
	$("#imap area[alt='NSW']").mouseover(function () {
		$("#map").css("background-position", "0 -240px");
	});
	$("#imap area[alt='WA']").mouseover(function () {
		$("#map").css("background-position", "0 -360px");
	});	
	$("#imap area[alt='VIC']").mouseover(function () {
		$("#map").css("background-position", "0 -480px");
	});
	$("#imap area[alt='SA']").mouseover(function () {
		$("#map").css("background-position", "0 -600px");
	});	
	$("#imap area[alt='QLD']").mouseover(function () {
		$("#map").css("background-position", "0 -720px");
	});	
	
	//Property Listing Thumnail Slideshow
	$('.slideshow').mouseenter(function () {							 		
		$(this).cycle({
				fx:     'fade',
				timeout:       1000, //Interval Time
				speed:         1000, //Transition Speed
				delay: -1500 //Delay before first Transition
		});
	});
	
	
	$('.slideshow').mouseleave(function () {
  	$(this).cycle('pause');
	});	








	
});