/*Example message arrays for the two demo scrollers*/

var pausecontent=new Array()
pausecontent[0]=' <strong>AT&T Asia/Pacific Group Ltd</strong><br><br>We are impressed with JustLogins electronic &nbsp;leave system, and even at this early stage,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; we are beginning to experience costs savings&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and increased productivity in our human&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  resources function ... <br><br><strong>Amelia Chan  ~  Human Resources&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Director, Remuneration & HRIS </strong>'
pausecontent[1]='<Strong>Singapore Chinese Chamber of&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Commerce &amp; Industry (SCCCI) </STRONG><BR><BR><P>".... JustLogin has provided the best tools for&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  us to keep in touch with our members and amongst themselves. Best of all, an&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  e-commerce platform has been created for our members and this is done quickly without much entry risks nor large IT investments."</P><BR><P><STRONG>Tay Beng Chuan<BR>Honorary President</STRONG>'
pausecontent[2]='<strong>Association Of Muslim Professionals</strong><BR><BR><P>"JustLogin solutions fit our needs completely&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  and it has been money worth spending. In the first month of implementation, the returns&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  were visible, productivity improved and management could better manage the&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; manpower resources remotely. Thank you JustLogin!" </P><BR><P><STRONG>Mohd Khalid Bohari<BR>Manager, MIS</STRONG>'
pausecontent[3]='<strong>Information Management Resources&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Pte Ltd</strong><BR><BR><P>"JustLogins eLeave is very user-friendly,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  flexible and robust. Most importantly, it automatically tracks all our leave records&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  without the need to incur any staff overheads. We have been using it since 2001. Any organization, big or small, will benefit from&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  using the system." <BR><BR></P><STRONG>Ng Chee Yong<BR>Managing Director</STRONG>'
pausecontent[4]='<strong>IRBA International</strong><BR><BR><P>"It is nice to see that even a VWO can afford&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  the of "haves and have-nots". Capital and size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; are no longer the right criteria; ability or not to use IT  productivity is the the new definition for success. (after reading the news about 30 Voluntary Welfare Organisations signing up to&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; use JustLogin ASP services.)" </P><BR> <P><STRONG>Gabriel Inoue<BR>CEO </STRONG>'
pausecontent[5]='<strong>Singapore Engineering Software Pte Ltd</strong> <BR><BR>"It (JustLogin) has effectively and efficiently helped us to manage our human resource and office administrative processes at minimal cost and resources." <br><br><strong>Jenny Yip <br>Manager, Human Resource</strong> '
pausecontent[6]='<strong>CET Technologies Pte Ltd</strong><BR><BR><P>".... (Using JustLogin) obviously means greater&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; convenience for our staff leading to their enhanced productivity.... There are also&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; greater cost savings, since manpower is used&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; more efficiently now - there is no longer the hassle of tracking leave applications and processing of suggestions manually." </P><BR><P><STRONG>Eileen Ko <BR>Human Resource Manager </STRONG> '
pausecontent[7]='<strong>Singapore Association of the Visually Handicapped </strong><BR><BR><P>"JustLogins suite of applications has enabled&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; us to work smarter.For instance, with just a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; few clicks, we can apply for leave and&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check our leave balances anytime, anywhere&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; so long as there is access to the internet. It is easy to use even for the visually-handicapped employees like me." </P><BR><P><STRONG>Albert Toh <BR>Head of Communications Dept</STRONG> '
pausecontent[8]='<strong>Reach Internet Services </strong><BR><BR><P>"With eResource, my staff donot have to&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; waste precious time co-ordinating schedules&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for meetings. They can now log on to check if others are available, book the meeting room&nbsp;&nbsp;&nbsp;&nbsp; and send out invitation emails, all within one&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; application. And the system even sends them&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; notification emails when others RSVP!" </P><BR><P><STRONG>David Phua <BR>Managing Director</STRONG> '
pausecontent[9]='<strong>eCCH Pte Ltd</strong><BR><BR><P>"They (JustLogin) create efficiency. These&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; guys understood where the market was&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; going and understood how to deliver a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; service and that ... is something that I wanted to have and needed to have ... creative problem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; solutions."</P><BR><P><STRONG>Andrew James <BR>Managing Director </STRONG>'
pausecontent[10]='<strong>Cyberland International Pte Ltd </strong><BR><BR><P>"With JustLogin Mobile Office, I am able to&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; access critical information on my mobile phone,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; especially during my frequent trips to the&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; region."<BR><BR></P><P><STRONG>Casey Heng <BR>Managing Director</STRONG>'
pausecontent[11]='<strong>KLA-Tencor Corporation</strong><BR><BR><P>"JustLogin eLeave is very user-friendly and&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; it has many well-thought-of features. It is&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; especially useful for organizations that&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; need to manage leave policies and processes across different countries. Support from&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JustLogin has been responsive and reliable."<BR><BR></P><P><STRONG>Rachel Lim <BR>HR Manager</STRONG>'









<!--
/***********************************************
* 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){
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
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()}, 500)
}

// -------------------------------------------------------------------
// 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+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(){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, div3, div4, div5, div6, div7, div8, div9, div10, div11){
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()}, 100)
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
}

//-->