﻿	changePicUrl = new Array("images/slide8.jpg","images/slide13.jpg", "images/slide15.jpg","images/slide6.jpg");
	changePicLink=new Array("http://www.aimsloans.com.au/au_en/AboutAIMS.aspx","http://www.aimsloans.com.au/","http://www.aimsloans.com.au/au_en/CommercialLoans.aspx","http://www.aimsloans.com.au/au_en/Customers.aspx?ID=5");
	
	jumpTarget='_blank'
	changeInteval = 12000;

	changeTextDivId = -1;
	changePicId = -1;	
	changePicObj = document.getElementById("changePic");


	function changePic(){
		if(changePicId<changePicUrl.length-1)
			changePicId++ ;
		else 
			changePicId=0;
		if (document.all){
			changePicObj.filters.revealTrans.Transition=Math.floor(Math.random()*23);
			changePicObj.filters.revealTrans.apply();
		}
		changePicObj.src=changePicUrl[changePicId];
		if (document.all)
			changePicObj.filters.revealTrans.play()
	}

	function changePicJump(){
		jumpUrl=changePicLink[changePicId];;
		if (jumpUrl != ''){
			if (jumpTarget != '')window.open(jumpUrl,jumpTarget);
			else location.href=jumpUrl;
		}
	}
	changeTimerPoint = null;
	function changeTimer(){
		changePic();
		setTimerPoint();
	}
	function setTimerPoint(){
		changeTimerPoint = setTimeout("changeTimer();", changeInteval);
	}
	function clearTimerPoint(){
		clearTimeout(changeTimerPoint);
	}
	changeTimer();
