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

var pausecontent1=new Array();
pausecontent1[0]='<span class="scrollContent"><strong>Georges Boulloy, VP Product Development, Sony Ericsson</strong><br/><br/>&quot;I met Sheridan Evans for an interview in London when I was looking for a new job.  I was impressed by 2 things in particular: First, their ability to create & review in detail the position / job description of a very senior job.  It is very seldom that headhunters can grasp and articulate the detailed function & deliverables of a role.  Second, their good drive through questions to detect entrepreneurial skills.&quot;<br/><br/></span>';

pausecontent1[1]='<span class="scrollContent"><strong>Simon Button, Chief Technology Officer, Benefon</strong><br/><br/>&quot;Richard\'s professional approach is what impressed me most. He maintained high confidentiality and was thorough.  He was constructive, whilst providing solid coaching throughout the process. Sheridan Evans are well connected and well respected in the industry and I would have no hesitation in recommending them to facilitate the daunting process of searching for a new senior position.&quot;<br/><br/></span>';

pausecontent1[2]='<span class="scrollContent"><strong>Chris Moore, Head of Enterprise Sales Europe, i-mate</strong><br/><br/>&quot;I was head hunted by Sheridan Evans for my current role as Head of Enterprise Sales, Europe at i-mate.  Their attitude and approach were professional at all times plus their discretion remained faultless. I was also very impressed by their knowledge of the market. I would recommend Sheridan Evans to anyone considering a career move.&quot;<br/><br/></span>';

pausecontent1[3]='<span class="scrollContent"><strong>Gilles Simon, Head of Sales France, ALK Technologies</strong><br/><br/>&quot;It has been great to work with Sheridan Evans from the start of the process to contract completion. They went above and beyond my expectations in terms of availability and professional attitude. I was impressed most by the way the process was managed, the deep understanding of company expectations and candidate fit.  Plus, the consultant was fluent in French.  They went beyond boundaries set by other recruiting companies, including continuous communication after contract signature.&quot;<br/><br/></span>';

pausecontent1[4]='<span class="scrollContent"><strong>Peter Sivebaek, Sales Director Nordic, ALK Technologies</strong><br/><br/>&quot;Shelley is the ideal Executive Search Consultant. She is extremely professional in the way she deals with candidates when it comes to interviews but also her knowledge about her client\'s background, market and customers. I can highly recommend Shelley to all companies who demand a sparring partner for whom a high ethical standard is unquestionable. You will not be disappointed.&quot;<br/><br/></span>';

pausecontent1[5]='<span class="scrollContent"><strong>Elise Hayes, Sales Director North America, NMS Communications</strong><br/><br/>&quot;Richard contacted me for a senior level US job opportunity. His professional approach and style earned instant creditability.  As I listened I grew extremely  interested at the possibility of joining the company he described. During the interviews Richard represented his client with absolute precision. His follow up and subsequent offer discussions were timely and responsive. I deeply respect his recruiting abilities and would recommend him to any company or individual.&quot;<br/><br/></span>';

var pausecontent2=new Array();
pausecontent2[0]='<span class="scrollContent"><strong>David Parry, SVP Global Sales, Mobile Tornado </strong><br/><br/>&quot;We needed specialist help to recruit senior people in the US and in Europe within a very short time frame.  Sheridan Evans\' approach was thorough, professional and focused.  They gave us the results we wanted and much more.  In the crowded world of international head-hunters, Sheridan Evans are exceptional.  I will have no hesitation in working with them again or indeed recommending them to anyone else.&quot;<br/><br/></span>';

pausecontent2[1]='<span class="scrollContent"><strong>Michael Kornhauser, Managing Director, ALK </strong><br/><br/>&quot;We engaged with Sheridan Evans to expand our European organisation, a significant project.  We wanted Country Managers in major European Markets.  We selected Sheridan Evans, because they were well connected wherever we needed to be.  The level of service has been outstanding, going well beyond expectations, including contract advice in unfamiliar countries, input at final interviews, as well as transparent feedback and impartial advice.  We now have quality individuals in Spain, France and the Nordics.&quot;<br/><br/></span>';

pausecontent2[2]='<span class="scrollContent"><strong>John Basacchi, Director of Technology, i-mate </strong><br/><br/>&quot;Sheridan Evans completed a number of senior level Executive Search assignments for i-mate and were recommended to me to manage a search in Germany. They quickly got to grips with the brief and delivered excellent candidates. In the process they managed both candidates and client in a professional, frank and transparent manner. I would have no hesitation in recommending Sheridan Evans&quot;<br/><br/></span>';

pausecontent2[3]='<span class="scrollContent"><strong>Edward Belgeonne, CEO, Destiny Wireless plc </strong><br/><br/>&quot;We retained Sheridan Evans to secure a new CTO for Destiny. They took time to meet with the technical team to fully understand the culture of the business and with all of the Directors to confirm requirements.  It was a difficult assignment:  We wanted a CTO who could be innovative with technology, but also had operational skills to drive delivery of solutions.  The job was successfully completed and we have an excellent candidate who is now making a significant contribution.&quot;<br/><br/></span>';

pausecontent2[4]='<span class="scrollContent"><strong>Erik Staaf, GM Global Accounts, Motorola </strong><br/><br/>&quot;I used Sheridan Evans to find a Global Account Manager for one of Motorola\'s strategic accounts. I chose them for their industry expertise and high quality delivery process.  I wanted to know that I could leave it to them and be confident of seeing a high quality short list, as I was not able to get heavily involved in the process myself.  They did not let me down and only presented top class candidates, as well as providing all round quality of service.&quot;<br/><br/></span>';

pausecontent2[5]='<span class="scrollContent"><strong>Stephen Maxwell, Director, A-Novo </strong><br/><br/>&quot;A-NOVO have worked with Sheridan Evans on several key Leadership Team Assessment and Executive Search projects. Performance has been excellent and we continue to be very happy working with them.&quot;<br/><br/></span>';

pausecontent2[6]='<span class="scrollContent"><strong>Jack Craine, VP Global Sales, i-mate</strong><br/><br/>&quot;I engaged Sheridan Evans to conduct a search for a Senior Salesperson to drive our European business because of their mobile industry expertise.  I was impressed by their professional approach, particularly taking time understand what we really wanted.  The way they managed the whole process from start to finish, including input at final interviews was excellent.  Above all, they delivered several high quality candidates, which drove me to get signoff for extra headcount and select two individuals.&quot;</span>';


/***********************************************
* 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){
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
}