
var scrollerdelay='5000' //delay between msg scrolls. 3000=3 seconds.
var scrollerwidth='315px'
var scrollerheight='98px'
var scrollerbgcolor=''
//set below to '' if you don't wish to use a background image
var scrollerbackground=''

//configure the below variable to change the contents of the scroller
var messages=new Array()
messages[0]="<span class=\"News\"> &nbsp;24 June 2010, Thursday, Thrissur </span><p><span class=\"Verdana9Gray\"> Lord Krishna Residency Inauguration </span></p><p align=\"justify\"><span class=\"Verdana10pxNormal\">Cine Artist Sri. Siddique inaugurated the our new project (Lord Krishna Residendy, Business Class Apartments) on 24 June 2010, 10:00 am at Chungam, West Fort, Trhissur. <a href=\"events.html\">...more</a></span></p>"
messages[1]="<span class=\"News\"> &nbsp;03 May 2010, Monday, Cochin </span><p><span class=\"Verdana9Gray\"> Inauguration of Marketing Office </span></p><p align=\"justify\"><span class=\"Verdana10pxNormal\">Cine artist Mr. Siddique inaugurated the new marketing office of Lord Krishna builders near Cochin International Airport on 3rd May 2010. <a href=\"events.html\">...more</a></span></p>"
messages[2]="<span class=\"News\"> &nbsp;25 Jan. 2010, Cochin</span><p><span class=\"Verdana9Gray\"> Grihalakshmi Sammanotsav 2008-09</span></p><p align=\"justify\"><span class=\"Verdana10pxNormal\">Lord Krishna Builders presented Maruti Alto to the second prize winner in 'Grihalakshmi Sammanotsav 2008-09'.<a href=\"events.html\">...more</a></span></p>"
messages[3]="<span class=\"News\"> &nbsp;18 Jan. 2010, Cochin</span><p><span class=\"Verdana9Gray\">Inauguration of Cochin Office</span></p><p align=\"justify\"><span class=\"Verdana10pxNormal\">Lord Krishna Builders has extended services to Cochin too... Launched our new office in Cochin at NH-47, Opp. Lulu Shopping Mall Project, Edappally, Cochin on Monday, 18th January 2010 at 09:30 am<a href=\"events.html\">...more</a></span></p>"
messages[4]="<span class=\"News\"> &nbsp;30 Dec. 2009, Nedumbassery</span><p><span class=\"Verdana9Gray\">Inauguratioon & Key Handing Over Ceremony !</span></p><p align=\"justify\"><span class=\"Verdana10pxNormal\">We, Lord Krishna Builders has reached another milestone.. We take great pleasure in inviting you with your family to the inauguration & key handing over ceremony of our projects...Airport Suites Block IV & Airport Luxury Villas<a href=\"events.html\">...more</a></span></p>"
messages[5]="<span class=\"News\"> &nbsp;14 Sept. 2009, Thrissur</span><p><span class=\"Verdana9Gray\">Bhoomi Pooja !</span></p><p align=\"justify\"><span class=\"Verdana10pxNormal\">With the grace of Lord krishna, we conducted  &lsquo; Bhoomi Pooja &rsquo; of our new Bungalow Project at Peringavu, Thrissur on 14th September 2009 (Monday) 7:30 am - 8:00 am..<a href=\"events.html\">...more</a></span></p>"
///////Do not edit pass this line///////////////////////

var ie=document.all
var dom=document.getElementById

if (messages.length>2)
i=2
else
i=0

function move(whichdiv){
tdiv=eval(whichdiv)
if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){
tdiv.style.top=0+"px"
setTimeout("move(tdiv)",scrollerdelay)
setTimeout("move2(second1_obj)",scrollerdelay)
return
}
if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
tdiv.style.top=parseInt(tdiv.style.top)-5+"px"
setTimeout("move(tdiv)",50)
}
else{
tdiv.style.top=parseInt(scrollerheight)+"px"
tdiv.innerHTML=messages[i]
if (i==messages.length-1)
i=0
else
i++
}
}

function move2(whichdiv){
tdiv2=eval(whichdiv)
if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
tdiv2.style.top=0+"px"
setTimeout("move2(tdiv2)",scrollerdelay)
setTimeout("move(first1_obj)",scrollerdelay)
return
}
if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px"
setTimeout("move2(second1_obj)",50)
}
else{
tdiv2.style.top=parseInt(scrollerheight)+"px"
tdiv2.innerHTML=messages[i]
if (i==messages.length-1)
i=0
else
i++
}
}

function startscroll(){
first1_obj=ie? first1 : document.getElementById("first1")
second1_obj=ie? second1 : document.getElementById("second1")
move(first1_obj)
second1_obj.style.top=scrollerheight
second1_obj.style.visibility='visible'
}

if (ie||dom){
document.writeln('<div id="main1" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden;background-color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+')">')
document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0px;top:0px">')
document.writeln('<div id="first1" style="position:absolute;width:'+scrollerwidth+';left:0px;top:1px;">')
document.write(messages[0])
document.writeln('</div>')
document.writeln('<div id="second1" style="position:absolute;width:'+scrollerwidth+';left:0px;top:0px;visibility:hidden">')
document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])
document.writeln('</div>')
document.writeln('</div>')
document.writeln('</div>')
}

if (window.addEventListener)
window.addEventListener("load", startscroll, false)
else if (window.attachEvent)
window.attachEvent("onload", startscroll)
else if (ie||dom)
window.onload=startscroll
