function addScrollers() 
{
// code each scroller as follows:
// startScroll('id of scroller div','content of scroller');

startScroll('myscroller','<p class=topSmallNavText><b>Our 24*7 Customer Care Number +91-9946663888</b><br/><a href="http:\/\/manage.skylarkhost.com\/content.php?action=promos">Our Social Network<\/a><\/p><p class=topSmallNavText><a href="https://www.facebook.com/Travancorerestoration\/">FACEBOOK<\/a>Like us<br><\/b> <\/p><p class=topSmallNavText><a href="http:\/\/www.travancorerestoration.com/indexrm1.html\/">Our Offers !!<\/a> <br>Free washing on every approved claim<\/b>.<\/p><p class=topSmallNavText><a href="http:\/\/www.travancorerestoration.com/indexrm2.html\/">Special Offer!!!!<\/a> <br>10 % cash discount on painting charges on non-insurance claims<\/b>.<\/p><p class=topSmallNavText><b>Thank you for trusting us with your car and we look forward to see you very soon.<\/b><\/p>');
}

var speed=15; // scroll speed (bigger = faster)
var dR=false; // reverse direction

// Vertical Scroller Javascript
// copyright 24th September 2005, by Stephen Chapman
// permission to use this Javascript on your web page is granted
// provided that all of the code below (as well as these
// comments) is used without any alteration
var step = 2; 
function objWidth(obj) {
	if(obj.offsetWidth) return obj.offsetWidth; if (obj.clip) return obj.clip.width; return 0;} function objHeight(obj) {if(obj.offsetHeight) return obj.offsetHeight; if (obj.clip) return obj.clip.height; return 0;} function scrF(i,sH,eH){var x=parseInt(i.top)+(dR? step: -step); if(dR && x>sH)x=-eH;else if(x<2-eH)x=sH;i.top = x+'px';} 
	function startScroll(sN,txt){var scr=document.getElementById(sN); var sW = objWidth(scr)-6; var sH = objHeight(scr); scr.innerHTML = '<div id="'+sN+'in" style="position:absolute; left:3px; width:'+sW+';">'+txt+'<\/div>'; var sTxt=document.getElementById(sN+'in'); var eH=objHeight(sTxt); sTxt.style.top=(dR? -eH : sH)+'px'; sTxt.style.clip='rect(0,'+sW+'px,'+eH+'px,0)'; setInterval(function() {scrF(sTxt.style,sH,eH);},1000/speed);}
window.onload = addScrollers;

