/*
--------------------------------------------------------------
random banner image and text
styles.css sets default text white 
use <p class='black'> for black text
--------------------------------------------------------------
*/

var image_container = new Array ( )
		
	image_container[0] = "<div id='picback' style='background:url(images/admin/banner/annualpass.jpg) right no-repeat; height:210px;'><h1>Department of <strong>Environment, Climate Change and Water</strong></h1><p><br /><br /><br /><strong>national parks annual pass</strong><br /><br />save time and money with an annual pass</p></div>"
	image_container[1] = "<div id='picback' style='background:url(images/admin/banner/discovery.jpg) right no-repeat; height:210px;'><h1>Department of <strong>Environment, Climate Change and Water</strong></h1><p><br /><br /><br /><strong>National Parks <i>Discovery</i></strong><br /><br />walks, talks and tours</p></div>"
	
	image_container[2]  = "<div id='picback' style='background:url(images/admin/banner/tourismaward.jpg) right no-repeat; height:210px;'><h1>Department of <strong>Environment, Climate Change and Water</strong></h1><p><br /><br /><br /><strong>national tourism award winners</strong><br /><br /><a href='/parks/TourismAwards.htm' STYLE='text-decoration: none; background: none'><small><font color='#ffffff'><strong>Lane Cove River Tourist Park and Montague Island</strong></font></small></a>  <a href='/parks/TourismAwards.htm' STYLE='text-decoration: underline; background: none'><small><small><font color='#ffffff'>more information...</font></small><small</a></p></div>"

	image_container[3] = "<div id='picback' style='background:url(images/admin/banner/volunteers.jpg) right no-repeat; height:210px;'><h1>Department of <strong>Environment, Climate Change and Water</strong></h1><p><br /><img src='images/admin/banner/transparentvolunteerstext.gif'></p></div>"

	
	image_container[4] = "<div id='picback' style='background:url(images/admin/banner/livingthing.jpg) right no-repeat; height:210px;'><h1>Department of <strong>Environment, Climate Change and Water</strong></h1><p><span id='transimage'><img src='images/admin/myimage.png' width='215' height='52' border='0' alt='' /></span><br /><strong>our environment</strong><br /><br />live sustainably at home work and play</p></div>"
	
	image_container[5] = "<div id='picback' style='background:url(images/admin/banner/ethnic.jpg) right no-repeat; height:210px;'><h1>Department of <strong>Environment, Climate Change and Water</strong></h1><p><br /><br /><br /><strong>Ethnic communities sustainable living project</strong><br /><br />engage the bi-lingual educator service</p></div>"
	image_container[6] = "<div id='picback' style='background:url(images/admin/banner/blackballoon.jpg) right no-repeat; height:210px;'><h1>Department of <strong>Environment, Climate Change and Water</strong></h1><p><br /><br /><br /><br /><br /><a href='http://www.savepower.nsw.gov.au/' STYLE='text-decoration: none; background: none'><font color='#000000'>Cut your power use and </font><strong><font color='#F0712A'>save</font></strong></font></a></p></div>"
	
	



/*
KEEP THIS ONE COMMENTED OUT - as sample for links
image_container[3] = "<div id='picback' style='background:url(images/admin/banner/lighthouse.jpg) right no-repeat; height:210px;'><h1>Department of <strong>Environment and Climate Change</strong></h1><p><br /><br /><br /><a href='/events/intnatnllighthouse.htm' STYLE='text-decoration: none'><small><font color='#ffffff'><strong>International lighthouse weekend</strong><br /><br />16-17 August 2008 </font></small></a><a href='/events/intnatnllighthouse.htm'><small><small><font color='#ffffff'>read more...</font></small></small></a></p></div>"
*/

/*------------------first method end------------------*/
var image_array_length = image_container.length

class_random = function()
{	//class		

}

class_random.prototype.Main = function()
{
	var array_id
	array_id = this.random_number();
	
	this.display_image(array_id);	
	
	
}
		
class_random.prototype.display_image =function (id)
{		
	document.getElementById('pic').innerHTML=image_container[id]
	document.getElementById("pic").style.display='';	
			
}		


		
class_random.prototype.random_number = function ()
{
	var id= Math.floor(Math.random()*image_array_length) 			
	return id;
}
	
