//File: olc_rimages.js
//Version: 1.0
//

//---------------------- MODIFY BELOW THIS LINE ---------------------------------------//
// NOTE: ONLY imageFilenames and imageAltText should match in total number
//
var imageFilenames  = new Array(	
"photo01.jpg",
"photo02.jpg",
"photo03.jpg",
"photo04.jpg",
"photo05.jpg",
"photo06.jpg",
"photo07.jpg",
"photo08.jpg",
"photo09.jpg",
"photo10.jpg",
"photo11.jpg",
"photo12.jpg",
"photo13.jpg",
"photo14.jpg",
"photo15.jpg",
"photo16.jpg",
"photo17.jpg",
"photo18.jpg",
"photo19.jpg",
"photo20.jpg",
"photo21.jpg",
"photo22.jpg",
"photo23.jpg",
"photo24.jpg",
"photo25.jpg",
"photo26.jpg",
"photo27.jpg",
"photo28.jpg",
"photo29.jpg",
"photo30.jpg",
"photo31.jpg",
"photo32.jpg"
);


var imageAltText  = new Array(	
"Home Page Image 1",
"Home Page Image 2",
"Home Page Image 3",
"Home Page Image 4",
"Home Page Image 5",
"Home Page Image 6",
"Home Page Image 7",
"Home Page Image 8",
"Home Page Image 9",
"Home Page Image 10",
"Home Page Image 11",
"Home Page Image 12",
"Home Page Image 13",
"Home Page Image 14",
"Home Page Image 15",
"Home Page Image 16",
"Home Page Image 17",
"Home Page Image 18",
"Home Page Image 19",
"Home Page Image 20",
"Home Page Image 21",
"Home Page Image 22",
"Home Page Image 23",
"Home Page Image 24",
"Home Page Image 25",
"Home Page Image 26",
"Home Page Image 27",
"Home Page Image 28",
"Home Page Image 29",
"Home Page Image 30",
"Home Page Image 31",
"Home Page Image 32"
);


var linkUrl  = new Array(	
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"" );

var linkText  = new Array(	
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"" );

var otherHtml = new  Array(
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"" );

var hackHtml = new  Array(
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"" );


var cnf_total_images		= 16;
var cnf_image_path   	= '/olc/images/HGR/hp_header/';
var cnf_link_path   		= '';
var cnf_filename_prefix = '';

//var html_image      =  '<img src=_%_ alt=_%_ width=480 height=282 border=0>';

var html_image      =  '<img src=_%_ alt=_%_ width=468 height=275 border=0>';
var html_link       =  '<a href=_%_ alt=_%_ style=color: #777;>';
var html_link_openw =  '<a href=# onClick=openWindow("_%_")>';
var html_delimeter  = '_%_'
var html_image_suffix= '.jpg';
var html_link_suffix = '.html';	
//---------------------- DO NOT MODIFY BELOW THIS LINE ---------------------------------------//

function writeRotateHtml()
{
	var mine = 0;
	var my_index = 0;
	var html_image = '';
	var html_link = '';
	
	my_index = getRandomNumber( imageFilenames.length );
	
	html_image = createImageHtml( my_index );
	
	document.write( html_image );
	
	return true;
}


function createImageHtml( index )
{
	var tmp;
	
	parts = html_image.split( html_delimeter );	

	tmp = parts[0] + cnf_image_path + imageFilenames[index] + ' ' +  parts[1] + ' "' + imageAltText[index] + '" ' +  parts[2];
	
	return tmp;
}

