var c=1;
var t;
var timer_is_on=0;

/*$(document).ready(function(){
	$('.prefill').each(function(index) {
		if ($(this).val()==''){
			var text = $(this).attr("alt");
			$(this).val(text)
		}
	});
	
	$('.prefill').live("click", function(event){
		var text = $(this).attr("alt");
		if ($(this).val()==text){
			$(this).val('')
		}
	});
	
	$('.prefill').live("blur", function(event){
		if ($(this).val()==''){
			var text = $(this).attr("alt");
			$(this).val(text)
		}
	});
	
	$('form').submit(function() {
		$('.prefill').each(function(index) {
			var text = $(this).attr("alt");
			if ($(this).val()==text){
				$(this).val('')
			}
		});	
		return true;
	});	
});*/

function timedCount()
{
document.getElementById('content').style.backgroundImage="url('/images/PR_rotating"+c+".jpg')";

c=c+1;
if (c >= 8) {
  c = 1;
}
t=setTimeout("timedCount()",4000);
}

function doTimer()
{

if (!timer_is_on)
  {
  timer_is_on=1;
  timedCount();
  }
}


var mygallery=new fadeSlideShow({
	wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
	dimensions: [802, 185], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
	["http://www.propertyreturns.com.au/images/PR_rotating1.jpg"],		["http://www.propertyreturns.com.au/images/PR_rotating2.jpg"],		["http://www.propertyreturns.com.au/images/PR_rotating3.jpg"],		["http://www.propertyreturns.com.au/images/PR_rotating4.jpg"],		["http://www.propertyreturns.com.au/images/PR_rotating5.jpg"],		["http://www.propertyreturns.com.au/images/PR_rotating6.jpg"],	["http://www.propertyreturns.com.au/images/PR_rotating7.jpg"]
		
		//<--no trailing comma after very last image element!
	],
	displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 4000, //transition duration (milliseconds)
	descreveal: "ondemand",
	togglerid: ""
})
