function pausescroller(a,b,c,d){this.content=a;this.tickerid=b;this.delay=d;this.mouseoverBol=0;this.hiddendivpointer=1;document.write('<div id="'+b+'" class="'+c+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+b+'1">'+a[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+b+'2">'+a[1]+"</div></div>");var e=this;if(window.addEventListener)window.addEventListener("load",function(){e.initialize()},false);else if(window.attachEvent)window.attachEvent("onload",function(){e.initialize()});else if(document.getElementById)setTimeout(function(){e.initialize()},500)}var pausecontent=new Array;pausecontent[0]='<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="10%" height="23"><div align="center"><img src="images/icons.gif" width="12" height="12" alt="Tea tourism kerala" /></div></td><td height="30" class="Sub-Heading2"><a href="kerala-holidays1.htm" class="Sub-Heading2">Kerala Holidays 1 (4 Nights  5 Days)</a></td></tr><tr><td height="23"><div align="center"><img src="images/icons.gif" width="12" height="12" alt="Beaches in india" /></div></td><td height="30"><a href="kerala-holidays2.htm" class="Sub-Heading2">Kerala Holidays 2 (6 Nights  7 Days)</a></td></tr><tr><td height="23"><div align="center"><img src="images/icons.gif" width="12" height="12" alt="Kerala travel" /></div></td><td height="30"><a href="kerala-holidays3.htm" class="Sub-Heading2">Kerala Holidays 3 (6 Nights  7 Days)</a></td></tr><tr><td height="23"><div align="center"><img src="images/icons.gif" width="12" height="12" alt="Kerala tours" /></div></td><td height="30"><a href="kerala-holidays4.htm" class="Sub-Heading2">Kerala Holidays 4 (5 Nights  6 Days)</a></td></tr><tr><td height="23"><div align="center"><img src="images/icons.gif" width="12" height="12" alt="Medical tourism in india" /></div></td><td height="30"><a href="kerala-holidays5.htm" class="Sub-Heading2">Kerala Holidays 5 (4 Nights  5 Days)</a></td></tr></table>';pausecontent[1]='<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="10%" height="23"><div align="center"><img src="images/icons.gif" width="12" height="12" alt="Golden triangle tour india" /></div></td><td height="30"><a href="kerala-holidays8.htm" class="Sub-Heading2">Kerala Holidays 6 (3 Nights  4 Days)</a></td></tr><tr><td height="23"><div align="center"><img src="images/icons.gif" width="12" height="12" alt="Visit kerala" /></div></td><td height="30"><a href="kerala-holidays9.htm" class="Sub-Heading2">Kerala Holidays 7 (3 Nights  4 Days)</a></td></tr><tr><td height="23"><div align="center"><img src="images/icons.gif" width="12" height="12" alt="Kerala travel" /></div></td><td height="30"><a href="kerala-holidays10.htm" class="Sub-Heading2">Kerala Holidays 8 (3 Nights  4 Days)</a></td></tr><tr><td height="23"><div align="center"><img src="images/icons.gif" width="12" height="12" alt="Holiday in india" /></div></td><td height="30"><a href="kerala-holidays11.htm" class="Sub-Heading2">Kerala Holidays 9 (3 Nights  4 Days)</a></td></tr></table>';var pausecontent1=new Array;pausecontent1[0]='<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="10%"> </td><td width="80%" class="Style1"><div align="justify">The backwaters in Kerala are a world of serenity and wonderment. The coastal regions of Kerala have a network of waterways,inlets from the sea.</div></td><td width="10%"> </td></tr></table>';pausecontent1[1]='<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="10%"> </td><td class="Style1"><div align="justify">The backwaters in Kerala are a world of serenity and wonderment. The coastal regions of Kerala have a network of waterways,inlets from the sea.</div></td><td width="10%"> </td></tr></table>';pausescroller.prototype.initialize=function(){this.tickerdiv=document.getElementById(this.tickerid);this.visiblediv=document.getElementById(this.tickerid+"1");this.hiddendiv=document.getElementById(this.tickerid+"2");this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv));this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-this.visibledivtop*2+"px";this.getinline(this.visiblediv,this.hiddendiv);this.hiddendiv.style.visibility="visible";var a=this;document.getElementById(this.tickerid).onmouseover=function(){a.mouseoverBol=1};document.getElementById(this.tickerid).onmouseout=function(){a.mouseoverBol=0};if(window.attachEvent)window.attachEvent("onunload",function(){a.tickerdiv.onmouseover=a.tickerdiv.onmouseout=null});setTimeout(function(){a.animateup()},this.delay)};pausescroller.prototype.animateup=function(){var a=this;if(parseInt(this.hiddendiv.style.top)>this.visibledivtop+5){this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px";this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px";setTimeout(function(){a.animateup()},50)}else{this.getinline(this.hiddendiv,this.visiblediv);this.swapdivs();setTimeout(function(){a.setmessage()},this.delay)}};pausescroller.prototype.swapdivs=function(){var a=this.visiblediv;this.visiblediv=this.hiddendiv;this.hiddendiv=a};pausescroller.prototype.getinline=function(a,b){a.style.top=this.visibledivtop+"px";b.style.top=Math.max(a.parentNode.offsetHeight,a.offsetHeight)+"px"};pausescroller.prototype.setmessage=function(){var a=this;if(this.mouseoverBol==1)setTimeout(function(){a.setmessage()},100);else{var b=this.hiddendivpointer;var c=this.content.length;this.hiddendivpointer=b+1>c-1?0:b+1;this.hiddendiv.innerHTML=this.content[this.hiddendivpointer];this.animateup()}};pausescroller.getCSSpadding=function(a){if(a.currentStyle)return a.currentStyle["paddingTop"];else if(window.getComputedStyle)return window.getComputedStyle(a,"").getPropertyValue("padding-top");else return 0}
