var memorywidth="645px" //scroller width
var memoryheight="20px" //scroller height
var memorybgcolor="#bbe28d" //scroller background
var memorypadding="2px" //padding applied to the scroller. 0 for non.
var borderCSS="border: 1px solid #006600;" //Border CSS, applied to scroller to give border.

var memoryspeed=1 //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">Thank you for visiting <a href="http://www.dynamicdrive.com">Dynamic Drive.</a> If you find this script useful, please consider <a href="http://www.dynamicdrive.com/link.htm">linking to</a> or <a href="http://www.dynamicdrive.com/recommendit/">recommending</a> Dynamic Drive.</span></nobr>'


  var memorycontent = "<font color='white'>- 48% of first year students are first generation</font> "
  memorycontent += "<font color='#006600'>- <a href=\"http://www.sru.edu\">Mean SAT of first year students is 1030</a></font> "
  memorycontent += "<font color='white'>- Average HSGPA of first year students is 3.39</font> "
  memorycontent += "<font color='#006600'>- Nearly 40% are in top 25% of HS graduating class</font> "
  memorycontent += "<font color='white'>- Offer rate for first year students is 59%</font> "
  memorycontent += "<font color='#006600'>- 85% of first year students report that SRU is their first choice</font> "
  memorycontent += "<font color='white'>- 75% apply to two or more colleges</font> "
  memorycontent += "<font color='#006600'>- 54% apply to three or more colleges</font> "
  memorycontent += "<font color='white'>- 40% live within 50 miles of SRU</font> "
  memorycontent += "<font color='#006600'>- 60% plan to continue their education beyond a bachelor's degree</font> "
  memorycontent += "<font color='white'>- Campus visit is single most important factor influencing student's final decision to enroll</font> "
  memorycontent += "<font color='#006600'>- Most common reason for selecting SRU is good academic reputation</font> "
  memorycontent += "<font color='white'>- 99% of first year students attend orientation</font> "
  memorycontent += "<font color='#006600'>- 90% of first year students brought a laptop to campus</font> "



////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="margin-left:58px;'+combinedcssTable+'"><td>')

write('<div style="position:relative;overflow:hidden; left: 0px;'+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>')
}
}
