


/*Example message arrays for the two demo scrollers*/

var pausecontent=new Array()
pausecontent[0]='<img src="imgs/home10/1s.jpg" width="1005px;" alt="Add live chat to your website, Live Support Software" title="Add live chat to your website, Live Support Software" />'
pausecontent[1]='<img src="imgs/home10/3s.jpg" width="1005px;" alt="Add live chat to your website, Live Support Software" title="Add live chat to your website, Live Support Software" />'
pausecontent[2]='<img src="imgs/home10/4s.jpg" width="1005px;" alt="Add live chat to your website, Live Support Software" title="Add live chat to your website, Live Support Software" />'
pausecontent[3]='<img src="imgs/home10/7s.jpg" width="1005px;" alt="Add live chat to your website, Live Support Software" title="Add live chat to your website, Live Support Software" />'
pausecontent[4]='<img src="imgs/home10/8s.jpg" width="1005px;" alt="Add live chat to your website, Live Support Software" title="Add live chat to your website, Live Support Software" />'

var pausecontent2=new Array()
pausecontent2[0]='<div align="justify" style="font-family:Verdana, Arial, Helvetica, sans-serif; text-align:justify; color:#000; font-style:italic; font-size:9px;">I just wanted to praise you on your EXCELLENT customer service and live2support product. I checked out other providers BUT YOUR Company offered more features at a LESSER rate. (This really makes me happy)." Good customer service is hard to find. You definitely DON\'T keep people "hanging" when they e-mail you". THAT I LOVE! :)</div><br/><div align="center"> <img src="imgs/home10/8.gif" /></div>'
pausecontent2[1]='<div align="justify" style=" padding:0px; margin:0px; font-family:Verdana, Arial, Helvetica, sans-serif; text-align:justify; color:#000; font-style:italic; font-size:9px;">I have looked into several sources for a service like this. This is the easiest most effective tool I have used for my customers and my website since inception. The functionality and options for the price are simply unbeatable. I urge anyone else to shop around AFTER they bookmark this website, because you WILL NOT find a better service. Anywhere....</div><br/><div align="center"><img src="imgs/home10/7.gif" /></div>'
pausecontent2[2]='<div align="justify" style="font-family:Verdana, Arial, Helvetica, sans-serif; text-align:justify; color:#000; font-style:italic; font-size:9px;">We really appreciate Live2Support! Live Chat Software Service. Live2Support Inc. has offered us the cost effective live chat solution that really help students and parents to get the information about University and also help our staff to respond their queries...</div><br/><div align="center"><img src="imgs/home10/6.gif" /> </div>'
pausecontent2[3]='<div align="justify" style="font-family:Verdana, Arial, Helvetica, sans-serif; text-align:justify; color:#000; font-style:italic; font-size:9px;">Live2support is a powerful tool to connect with the website visitors in the real time environment. It is easy to implement and has useful MIS from a business perspective.  The technical team  is  also very helpful and supportive.  I recommend Live2support for all the people who wish to get connected with their site visitors at economical prices along with great features.  Thanks a lot!"</div><br/><div align="center"><img src="imgs/home10/5.gif" /></div>'
pausecontent2[4]='<div align="justify" style="font-family:Verdana, Arial, Helvetica, sans-serif; text-align:justify; color:#000; font-style:italic; font-size:9px;">"We have used several live support applications over the years, but Live2Support is by far the best. This software is stable, easy to use and pleasing to the eye. It is also extremely reliable."  </div><br/><div align="center"><img src="imgs/home10/4.gif" /></div>'
pausecontent2[5]='<div align="justify" style="font-family:Verdana, Arial, Helvetica, sans-serif; text-align:justify; color:#000; font-style:italic; font-size:9px;">"The Live2Support instant messaging system has allowed our team to be much more responsive to our client needs. We have realized more than a good return on our investment." </div><br/><div align="center"><img src="imgs/home10/2.gif"  /></div>'
pausecontent2[6]='<div align="justify" style="font-family:Verdana, Arial, Helvetica, sans-serif; text-align:justify; color:#000; font-style:italic; font-size:9px;">"Live2support has considerably increased our leads since we have implemented it into our site. Our customers are already on our website and Live2support allows us to interact with them non-invasively."</div><br/><div align="center"><img src="imgs/home10/3.gif" /></div>'
pausecontent2[7]='<div align="justify" style="font-family:Verdana, Arial, Helvetica, sans-serif; text-align:justify; color:#000; font-style:italic; font-size:9px;">"We are confident in recommending this Live Chat application to our business friends.The solution was very easy to set up, to use and the cost is minimal."</div><br/><div align="center"><img src="imgs/home10/1.gif" /> </div>'
//pausecontent2[8]='<div align="justify" style="font-family:Verdana, Arial, Helvetica, sans-serif; text-align:justify; color:#000; font-style:italic; font-size:9px;">"We have been using your Live2Support chat software with great and overwhelming success. Our clients have been quite pleased with the product and the additional mode of support now available to them. Every step of the way the support provided has been to the utmost caliber. We foresee a long lasting relationship and use of the product into the future "</div><br/><div align="center"><img src="imgs/home10/1.gif" /> </div>'



/***********************************************
* Pausing up-down scroller- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

function pausescroller(content, divId, divClass, delay, speed1){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
this.speed1=speed1
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 100)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

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))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
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 scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+this.speed1)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-this.speed1+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-this.speed1+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 500)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}

// JavaScript Document
