	
	function getRand(onPage)
	{
		
	//Projects intro page images
	//profile - bank 1 images	
		if(onPage == 'profile1')
		{
			numArray = new Array(01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17);
		}		
	//profile - bank 2 images
		else if(onPage == 'profile2')
		{
			numArray = new Array(02,03,04,05,06,07,09,10,11,12,13,15);
		}
	//profile - bank 3 images
		else if(onPage == 'profile3')
		{
			numArray = new Array(01,02,03,04,05,06,07,08,09,10,11,12,15);
		}
	//profile - bank 4 images
		else if(onPage == 'profile4')
		{
			numArray = new Array(01,08,09,28,34,36,43,47,52,62,74,75,76,77,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117);
		}
	
		
		//randomly load an image, using the var randNum
		//maxNum is the highest numbered image within the images directory
		
		
			var maxNum = numArray.length;
			var randNum = (Math.floor(Math.random() * maxNum));
		
			randNum = numArray[randNum];
					
		//place 0 in image name
			if (randNum < 10)
			{
				randNum = "0" + randNum; 
			}
		return randNum;
	}


	function getfocus(){
		window.focus();
	}
	
	function getProfile1()
	{
		document.write("<img src='/photos_top/ffc_mini_1_" + getRand('profile1') + ".gif' width=46 height=37 border=0 alt='Film Finance Corporation Australia'>");	
	}
	
	function getProfile2()
	{
		document.write("<img src='/photos_top/ffc_mini_2_" + getRand('profile2') + ".gif' width=46 height=37 border=0 alt='Film Finance Corporation Australia'>");	
	}
	
	function getProfile3()
	{
		document.write("<img src='/photos_top/ffc_mini_3_" + getRand('profile3') + ".gif' width=46 height=37 border=0 alt='Film Finance Corporation Australia'>");	
	}
	
	function getProfile4()
	{
		document.write("<img src='/photos_large/ffc_photo_lg_" + getRand('profile4') + ".gif' width=148 height=356 border=0 alt='Film Finance Corporation Australia'>");
	}
	

	

