backgrounds	 = new Array();
backgrounds[1] = 'topBanners/image_step1.jpg';
backgrounds[2] = 'topBanners/image_step2.jpg';
backgrounds[3] = 'topBanners/image_step3.jpg';
backgrounds[4] = 'topBanners/image_step4.jpg';
backgrounds[5] = 'topBanners/image_step5.jpg';
backgrounds[6] = 'topBanners/image_step6.jpg';
backgrounds[7] = 'topBanners/image_step7.jpg';

heading	 = new Array();
heading[1] = 'deciding to buy'
heading[2] = 'finding the right loan';
heading[3] = 'the real cost of buying';
heading[4] = 'searching for your new home';
heading[5] = 'making an offer';
heading[6] = 'the buying process';
heading[7] = 'moving in';

copy = new Array();
copy[1] = 'Buying a property, whether it is an apartment or a house, is pretty daunting - after all, it\'s probably the biggest investment you\'ll make in your life. &quot;Deciding to buy&quot; will get you prepared with valuable information on financial and legal matters';
copy[2] = 'Researching what sort of loan will suit your budget and lifestyle isn\'t easy. &quot;Finding the right loan&quot; will give you an overview of the different types of loans so you can see the whole picture. We\'ll also recommend you some questions to ask your home loan consultant and prepare you for the questions they might ask you!';
copy[3] = 'There are substantial expenses associated with buying a home. &quot;The real cost of buying&quot; will give you some tips on how to make a budget plan and how to draw up a comprehensive list of the costs to avoid any unpleasant surprises.';
copy[4] = 'First home buyers have many choices to make when searching for their home. &quot;Searching for your new home&quot; will help you identify what you are looking for in a home and what factors influence it\'s appreciation and might affect its resale value. ';
copy[5] = 'So you\'ve found your dream house and it seems to be in your price range. That\'s great! &quot;Making an offer&quot; will get you prepared to sort your finance and organise inspections and get you ready to make an offer or bid at auction.';
copy[6] = 'Almost there - the vendor has accepted your offer. Until contracts are exchanged - you\'re in a danger period - either party can pull out! &quot;The Buying Process&quot; will guide you through the final stages of exchanging contract, settlement and final inspection.';
copy[7] = 'Congratulations - the place is yours! Now all you have to do is move in. Although moving house is often described as one of life\'s most stressful experiences, it doesn\'t have to be. &quot;Moving in&quot; will help you get organised and start planning early.';

$(document).ready(function(){
	$("#subStep ul").hide();
	
	MM_preloadImages(
		'images/topBanners/image_step1.jpg',
		'images/topBanners/image_step2.jpg',
		'images/topBanners/image_step3.jpg',
		'images/topBanners/image_step4.jpg',
		'images/topBanners/image_step5.jpg',
		'images/topBanners/image_step6.jpg',
		'images/topBanners/image_step7.jpg'
	);
	
	window.portalTimerId = setTimeout('$(\'#nextButton\').click()',10000);
	window.pollTimerId = setTimeout('$(\'#btnNextPoll\').click()',10000);
	window.setTimeout(function(){$('#triggerSteps').click();}, 3000);
	
});

function viewSteps(buttonClicked){
	$(buttonClicked).remove();
	$("#subStep ul").slideDown(400);
};

function changeBackground(stepNum){
	src = "/images/"+backgrounds[stepNum];

	$('#mainImageintro').css({background: 'transparent url('+src+') no-repeat'});

	$('#ramsHeaderCopy').html(copy[stepNum]);
	$('#ramsHeading').html(heading[stepNum]);
}
