//configure cookieBox[] to set the messges you wish be displayed (HTML codes accepted)
//Backslash any apostrophes within your text (ie: I\'m the king of the world!)
//Specify random URLs to display inside iframe
var cookieBox=new Array()
cookieBox[0]="There is a true and sincere friendship between you and your friends."
cookieBox[1]="You find beauty in ordinary things, do not lose this ability."
cookieBox[2]="Ideas are like children; there are none so wonderful as your own."
cookieBox[3]="It takes more than good memory to have good memories."
cookieBox[4]="A thrilling time is in your immediate future."
cookieBox[5]="Your blessing is no more than being safe and sound for the whole lifetime."
cookieBox[6]="Plan for many pleasures ahead."
cookieBox[7]="The joyfulness of a man prolongeth his days."
cookieBox[8]="Your everlasting patience will be rewarded sooner or later."
cookieBox[9]="Make two grins grow where there was only a grouch before."
cookieBox[10]="Something you lost will soon turn up."
cookieBox[11]="Your heart is pure, and your mind clear, and your soul devout."
cookieBox[12]="Excitement and intrigue follow you closely wherever you go!"
cookieBox[13]="A pleasant surprise is in store for you."
cookieBox[14]="May life throw you a pleasant curve."
cookieBox[15]="As the purse is emptied the heart is filled."
cookieBox[16]="Be mischievous and you will not be lonesome."
cookieBox[17]="You have a deep appreciation of the arts and music."
cookieBox[18]="Your flair for the creative takes an important place in your life."
cookieBox[19]="Your artistic talents win the approval and applause of others."
cookieBox[20]="Pray for what you want, but work for the things you need."
cookieBox[21]="Your many hidden talents will become obvious to those around you."
cookieBox[22]="Don't forget, you are always on our minds."
cookieBox[22]="Your greatest fortune is the large number of friends you have."
cookieBox[23]="A firm friendship will prove the foundation on your success in life."
cookieBox[24]="Don't ask, don't say. Everything lies in silence."
cookieBox[25]="Look for new outlets for your own creative abilities."
cookieBox[26]="Be prepared to accept a wondrous opportunity in the days ahead!"
cookieBox[27]="Fame, riches and romance are yours for the asking."
cookieBox[28]="Good luck is the result of good planning."
cookieBox[29]="Good things are being said about you."
cookieBox[30]="Smiling often can make you look and feel younger."
cookieBox[31]="Someone is speaking well of you."
cookieBox[32]="The time is right to make new friends."
cookieBox[33]="You will inherit some money or a small piece of land."
cookieBox[34]="Your life will be happy and peaceful."
cookieBox[35]="A friend is a present you give yourself."
cookieBox[36]="A member of your family will soon do something that will make you proud."
cookieBox[37]="A quiet evening with friends is the best tonic for a long day."
cookieBox[38]="A single kind word will keep one warm for years."
cookieBox[39]="Anger begins with folly, and ends with regret."
cookieBox[40]="Generosity and perfection are your everlasting goals."
cookieBox[41]="Happy news is on its way to you."
cookieBox[42]="He who laughs at himself never runs out of things to laugh at."
cookieBox[43]="If your desires are not extravagant they will be granted."
cookieBox[44]="Let there be magic in your smile and firmness in your handshake."
cookieBox[45]="If you want the rainbow, you must to put up with the rain. D. Parton"
cookieBox[46]="Nature, time and patience are the three best physicians."
cookieBox[47]="Strong and bitter words indicate a weak cause."
cookieBox[48]="The beginning of wisdom is to desire it."
cookieBox[49]="You will have a very pleasant experience."
cookieBox[50]="You will inherit some money or a small piece of land."
cookieBox[51]="You will live a long, happy life."
cookieBox[52]="You will spend old age in comfort and material wealth."
cookieBox[53]="You will step on the soil of many countries."
cookieBox[54]="You will take a chance in something in the near future."
cookieBox[55]="You will witness a special ceremony."
cookieBox[56]="Your everlasting patience will be rewarded sooner or later."
cookieBox[57]="Your great attention to detail is both a blessing and a curse."
cookieBox[58]="Your heart is a place to draw true happiness."
cookieBox[59]="Your ability to juggle many tasks will take you far."
cookieBox[60]="A friend asks only for your time, not your money."
cookieBox[61]="You will be invited to an exciting event."

var persistlastviewedmsg=1 //should messages' order persist after users navigate away (1=yes, 0=no)?
var persistmsgbehavior="onload" //set to "onload" or "onclick".

//configure the below variable to determine the delay between ticking of messages (in miliseconds):
var tickdelay=100000

////Do not edit pass this line////////////////

var divonclick=(persistlastviewedmsg && persistmsgbehavior=="onclick")? 'onClick="savelastmsg()" ' : ''
var currentmessage=0

function changetickercontent(){
if (cookiestick.filters && cookiestick.filters.length>0)
cookiestick.filters[0].Apply()
cookiestick.innerHTML=cookieBox[Math.floor(Math.random()*cookieBox.length)]
if (cookiestick.filters && cookiestick.filters.length>0)
cookiestick.filters[0].Play()
currentmessage=(currentmessage==cookieBox.length-1)? currentmessage=0 : currentmessage+1
var filterduration=(cookiestick.filters&&cookiestick.filters.length>0)? cookiestick.filters[0].duration*1000 : 0
setTimeout("changetickercontent()",tickdelay+filterduration)
}

function begincookie(){
if (persistlastviewedmsg && get_cookie("lastmsgnum")!="")
revivelastmsg()
cookiestick=document.getElementById? document.getElementById("cookieBox") : document.all.cookieBox
changetickercontent()
}

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="lastmsgnum="+currentmessage
}

function revivelastmsg(){
currentmessage=parseInt(get_cookie("lastmsgnum"))
currentmessage=(currentmessage==0)? cookieBox.length-1 : currentmessage-1
}

if (persistlastviewedmsg && persistmsgbehavior=="onload")
window.onunload=savelastmsg


if (window.addEventListener)
window.addEventListener("load", begincookie, false)
else if (window.attachEvent)
window.attachEvent("onload", begincookie)
else if (document.all || document.getElementById)
window.onload=begincookie