/***********************************************
		* Memory Scroller script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
		* This notice MUST stay intact for legal use
		* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
		***********************************************/
		
		var memorywidth="880px" //scroller width
		var memoryheight="50px" //scroller height
		var memorybgcolor="#FFF" //scroller background
		var memorypadding="0px" //padding applied to the scroller. 0 for non.
		var borderCSS="border: 0;" //Border CSS, applied to scroller to give border.
		
		var memoryspeed=2 //Scroller speed (larger is faster 1-10)
		var pauseit=1 //Pause scroller onMousever (0=no. 1=yes)?
		
		var persistlastviewedmsg=1 //should scroller's position persist after users navigate away (1=yes, 0=no)?
		var persistmsgbehavior="onload" //set to "onload" or "onclick".
		
		//Specify the scroller's content (don't delete <nobr> tag)
		//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):
		
		var memorycontent='<nobr><span style="font: bold 13px Verdana"><a href="#"><img src="images/logos/sm/alcoa.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"border="0"/></a><a href="#"><img src="images/logos/sm/bhpbilliton.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/riotinto.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/centrecorp.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/DOE.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/westfarmers.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/amp.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/a&r.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/argyle.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/desert_knowledge.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/dampier_salt.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/g&w.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/gold_fields.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/kcgm.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/lotterywest.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/pilbara_iron.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/riotinto_futurefund.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/newmont.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/mallesons.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/flinders_foundation.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/jubilee_mines.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/downer_edi.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/minter_ellison.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/myer_foundation.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/flinders_power.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/northwest_shelf.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a><a href="#"><img src="images/logos/sm/gold_fields_esperance.jpg" width="130" height="50" alt="A&amp;R Logo" border="0"/></a></span></nobr>'
		
		
		////NO NEED TO EDIT BELOW THIS LINE////////////
		var combinedcssTable="width:"+(parseInt(memorywidth)+6)+"px;background-color:"+memorybgcolor+";padding:"+memorypadding+";"+borderCSS+";"
		var combinedcss="width:"+memorywidth+";height:"+memoryheight+";"
		
		var divonclick=(persistlastviewedmsg && persistmsgbehavior=="onclick")? 'onClick="savelastmsg()" ' : ''
		memoryspeed=(document.all)? memoryspeed : Math.max(1, memoryspeed-1) //slow speed down by 1 for NS
		var copyspeed=memoryspeed
		var pausespeed=(pauseit==0)? copyspeed: 0
		var iedom=document.all||document.getElementById
		if (iedom)
		document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-10000px">'+memorycontent+'</span>')
		var actualwidth=''
		var memoryscroller
		
		if (window.addEventListener)
		window.addEventListener("load", populatescroller, false)
		else if (window.attachEvent)
		window.attachEvent("onload", populatescroller)
		else if (document.all || document.getElementById)
		window.onload=populatescroller
		
		function populatescroller(){
		memoryscroller=document.getElementById? document.getElementById("memoryscroller") : document.all.memoryscroller
		memoryscroller.style.left=parseInt(memorywidth)+8+"px"
		if (persistlastviewedmsg && get_cookie("lastscrollerpos")!="")
		revivelastmsg()
		memoryscroller.innerHTML=memorycontent
		actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
		lefttime=setInterval("scrollmarquee()",20)
		}
		
		function get_cookie(Name) {
		var search = Name + "="
		var returnvalue = ""
		if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search)
		if (offset != -1) {
		offset += search.length
		end = document.cookie.indexOf(";", offset)
		if (end == -1)
		end = document.cookie.length;
		returnvalue=unescape(document.cookie.substring(offset, end))
		}
		}
		return returnvalue;
		}
		
		function savelastmsg(){
		document.cookie="lastscrollerpos="+memoryscroller.style.left
		}
		
		function revivelastmsg(){
		lastscrollerpos=parseInt(get_cookie("lastscrollerpos"))
		memoryscroller.style.left=parseInt(lastscrollerpos)+"px"
		}
		
		if (persistlastviewedmsg && persistmsgbehavior=="onload")
		window.onunload=savelastmsg
		
		function scrollmarquee(){
		if (parseInt(memoryscroller.style.left)>(actualwidth*(-1)+8))
		memoryscroller.style.left=parseInt(memoryscroller.style.left)-copyspeed+"px"
		else
		memoryscroller.style.left=parseInt(memorywidth)+8+"px"
		}
		
		if (iedom){
		with (document){
		document.write('<table border="0" cellspacing="0" cellpadding="0" style="'+combinedcssTable+'"><td>')
		write('<div style="position:relative;overflow:hidden;'+combinedcss+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=memoryspeed">')
		write('<div id="memoryscroller" style="position:absolute;left:0px;top:0px;" '+divonclick+'></div>')
		write('</div>')
		document.write('</td></table>')
		}
		}
	// JavaScript Document
