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";
}

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";
}

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".
var memoryheight="18px"; //scroller height