/***********************************************
* Breaking Lies Ticker
***********************************************/
var memorywidth="550px" //scroller width
var memoryheight="18px" //scroller height
var memorybgcolor="#252525" //scroller background
var memorypadding="3px" //padding applied to the scroller. 0 for non.
var borderCSS="border: 0px solid black;" //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=0 //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>BREAKING LIES: 07/09/08: In preparation for the 2008 presidential election, Republican congressmen decide to re-examine the merits of slavery. | 03/11/08: Angelina Jolie announces the birth of her brand new, bouncing baby antique wood-burning stove. | 08/03/07: Tiger-man announces bid for presidency; expected to run on platform of being half tiger. | 03/02/06: New, delicious recipe revealed � flour, water, and cabbage. Bake until golden brown. | 10/28/06: Alan Greenspan "wants them waffles". | 07/14/06: Groundbreaking new studies offer conclusive evidence that when presented with a plate of fresh brains and two sticks of butter, nearly 30% of zombies will select the butter. | 06/17/06: Chinese stars become Chinese currency. | 06/14/06: Portugal retreats; US wins Civil War. | 06/09/06: Tennesse Titans to draft entire cast from broadway hit "Cats". | 05/18/06: 4 Out of 5 Furious Doctors are willing to start something... | 05/19/05: It is now documented fact that any film can be ruined when one of the main protagonists rapes another main protagonist. | 11/02/04: George W. Bush killed my mother. | 07/16/04: Spider-Man\'s Belgian brothel files for bankruptcy. | 05/22/04: There is a 3 inch layer of horse brains coating everything in the ocean. | 04/20/04: New research reveals that <i>Cancer</i> causes <i>cigarettes</i>. | 03/30/04: I could probably beat you in a sword fight. | 03/30/04: 3 out of 5 Tom Cruise\'s are the famous movie star Tom Cruise. | 03/27/04: You\'re fired. | 03/27/04: The largest planet in our solar system is Cuba Gooding Jr. | 03/27/04: I told you not to touch the god damned stove! Now look at you! I hope you learned your lesson. | 03/27/04: I shot a mongoose today. | 03/27/04: Spider-Man opens a brothel in Belgium next month.</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>')
}
}