/***********************************************
* 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
***********************************************/

////NO NEED TO EDIT BELOW THIS LINE////////////
var combinedcssTable_2="width:"+(parseInt(memorywidth_2)+6)+"px;background-color:"+memorybgcolor_2+";padding:"+memorypadding_2+";"+borderCSS_2+";"
var combinedcss_2="width:"+memorywidth_2+";height:"+memoryheight_2+";"

var divonclick_2=(persistlastviewedmsg_2 && persistmsgbehavior_2 =="onclick")? 'onClick="savelastmsg_2()" ' : ''
memoryspeed_2=(document.all)? memoryspeed_2 : Math.max(1, memoryspeed_2-1) //slow speed down by 1 for NS
var copyspeed_2=memoryspeed_2
var pausespeed_2=(pauseit==0)? copyspeed_2: 0
var iedom_2=document.all||document.getElementById
if (iedom_2)
document.write('<span id="temp_2" style="visibility:hidden;position:absolute;top:-100px;left:-10000px">'+memorycontent_2+'</span>')
var actualwidth_2=''
var memoryscroller_2;

if (window.addEventListener)
window.addEventListener("load", populatescroller_2, false)
else if (window.attachEvent)
window.attachEvent("onload", populatescroller_2)
else if (document.all || document.getElementById)
window.onload=populatescroller_2

function populatescroller_2(){
memoryscroller_2=document.getElementById? document.getElementById("memoryscroller_2") : document.all.memoryscroller_2
memoryscroller_2.style.left=parseInt(memorywidth_2)+8+"px"
if (persistlastviewedmsg_2 && get_cookie_2("lastscrollerpos_2")!="")
revivelastmsg_2()
memoryscroller_2.innerHTML=memorycontent_2;
actualwidth_2=document.all? temp_2.offsetWidth : document.getElementById("temp_2").offsetWidth
lefttime_2=setInterval("scrollmarquee_2()",20)
}

function get_cookie_2(Name_2) {
var search_2 = Name_2 + "="
var returnvalue_2 = ""
if (document.cookie.length > 0) {
offset_2 = document.cookie.indexOf(search_2)
if (offset_2 != -1) {
offset_2 += search_2.length
end_2 = document.cookie.indexOf(";", offset_2)
if (end_2 == -1)
end_2 = document.cookie.length;
returnvalue_2=unescape(document.cookie.substring(offset_2, end_2))
}
}
return returnvalue_2;
}

function savelastmsg_2(){
document.cookie="lastscrollerpos_2="+memoryscroller_2.style.left
}

function revivelastmsg_2()
{
	lastscrollerpos_2=parseInt(get_cookie_2("lastscrollerpos_2"))
	memoryscroller_2.style.left=parseInt(lastscrollerpos_2)+"px"
}

if (persistlastviewedmsg_2 && persistmsgbehavior_2 =="onload")
	window.onunload=savelastmsg_2

function scrollmarquee_2()
{
	if (parseInt(memoryscroller_2.style.left)>(actualwidth_2*(-1)+8))
		memoryscroller_2.style.left=parseInt(memoryscroller_2.style.left)-copyspeed_2+"px"
	else
		memoryscroller_2.style.left=parseInt(memorywidth_2)+8+"px"
}