/*
Pausing updown message scroller- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions, 
Terms Of Use, visit http://www.dynamicdrive.com
*/

//configure the below six variables to change the style of the scroller
var scrollerleft='1px'
var scrollertop='280px'
var scrollerwidth='200px'
var scrollerheight='128px'
var scrollerbgcolor='white'
var scroller_timeout=8000
var scroller_speed=50

//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]="<font face='Arial'>''We have raised our profile and level of service as a result of Pentland's training''</font>"
messages[1]="<font face='Arial'>''For a successful programme, you need to invest properly in the consultation process.''</font>"
messages[2]="<font face='Arial'>''People have been encouraged to strengthen teamwork and create win-win situations for each other.''</font>"
messages[3]="<font face='Arial'>''Pentland provided a consistently relevant and customised programme.''</font>"
messages[4]="<font face='Arial'>''People learn more effectively if they are given relevant information.''</font>"
messages[5]="<font face='Arial'>''Pentland's energy has been a driving force in encouraging Morley employees to learn and implement effective interpersonal skills to achieve individual, team and organisational goals.''</font>"
messages[6]="<font face='Arial'>''Training has increased self-confidence for individuals and they are more aware of the needs of others.''</font>"
messages[7]="<font face='Arial'>''Pentland has the expertise to identify our organisation's changing needs.''</font>"
messages[8]="<font face='Arial'>''Pentland has become a trusted partner, getting the best out of our teams.''</font>"
messages[9]="<font face='Arial'>''A good training provider will have in-depth knowledge and experience of the market in which you operate and Pentland have demonstrated this.''</font>"
messages[10]="<font face='Arial'>''Courses should not be treated in isolation; Pentland ensured that learning was reinforced in the workplace.''</font>"
messages[11]="<font face='Arial'>''Having an external training provider like Pentland brings neutrality to a programme, making the delegates more relaxed and comfortable.''</font>"
messages[12]="<font face='Arial'>''Continuous monitoring and evaluation by Pentland ensured truly customised programmes.''</font>"
messages[13]="<font face='Arial'>''Pentland took time to understand the needs of individuals so that programmes were people-focused, not task-focused.''</font>"
messages[14]="<font face='Arial'>''Genuine enthusiasm and positive energy from Pentland's facilitators really brought out the best in our people.''</font>"

///////Do not edit pass this line///////////////////////

var ie=document.all
var dom=document.getElementById

if (messages.length>2)
i=2
else
i=0

function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.top>0&&tlayer.top<=5){
tlayer.top=0
setTimeout("move1(tlayer)",scroller_timeout)
setTimeout("move2(document.main.document.second)",scroller_timeout)
return
}
if (tlayer.top>=tlayer.document.height*-1){
tlayer.top-=5
setTimeout("move1(tlayer)",scroller_speed)
}
else{
tlayer.top=parseInt(scrollerheight)
tlayer.document.write(messages[i])
tlayer.document.close()
if (i==messages.length-1)
i=0
else
i++
}
}

function move2(whichlayer){
tlayer2=eval(whichlayer)
if (tlayer2.top>0&&tlayer2.top<=5){
tlayer2.top=0
setTimeout("move2(tlayer2)",scroller_timeout)
setTimeout("move1(document.main.document.first)",scroller_timeout)
return
}
if (tlayer2.top>=tlayer2.document.height*-1){
tlayer2.top-=5
setTimeout("move2(tlayer2)",scroller_speed)
}
else{
tlayer2.top=parseInt(scrollerheight)
tlayer2.document.write(messages[i])
tlayer2.document.close()
if (i==messages.length-1)
i=0
else
i++
}
}

function move3(whichdiv){
tdiv=eval(whichdiv)
if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){
tdiv.style.top=0+"px"
setTimeout("move3(tdiv)",scroller_timeout)
setTimeout("move4(second2_obj)",scroller_timeout)
return
}
if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
tdiv.style.top=parseInt(tdiv.style.top)-5+"px"
setTimeout("move3(tdiv)",scroller_speed)
}
else{
tdiv.style.top=parseInt(scrollerheight)
tdiv.innerHTML=messages[i]
if (i==messages.length-1)
i=0
else
i++
}
}

function move4(whichdiv){
tdiv2=eval(whichdiv)
if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
tdiv2.style.top=0+"px"
setTimeout("move4(tdiv2)",scroller_timeout)
setTimeout("move3(first2_obj)",scroller_timeout)
return
}
if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px"
setTimeout("move4(second2_obj)",scroller_speed)
}
else{
tdiv2.style.top=parseInt(scrollerheight)
tdiv2.innerHTML=messages[i]
if (i==messages.length-1)
i=0
else
i++
}
}

function startscroll(){
if (ie||dom){
first2_obj=ie? first2 : document.getElementById("first2")
second2_obj=ie? second2 : document.getElementById("second2")
move3(first2_obj)
second2_obj.style.top=scrollerheight
second2_obj.style.visibility='visible'
}
else if (document.layers){
document.main.visibility='show'
move1(document.main.document.first)
document.main.document.second.top=parseInt(scrollerheight)+5
document.main.document.second.visibility='show'
}
}

window.onload=startscroll