/***********************************************
* Fading Scroller- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var delay = 11000; //set delay between message change (in miliseconds)
var maxsteps=30; // number of steps to take to change from start color to endcolor
var stepdelay=60; // time in miliseconds of a single step
//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect
var startcolor= new Array(255,255,255); // start color (red, green, blue)
var endcolor=new Array(0,100,180); // end color (red, green, blue)

var fcontent=new Array();
begintag=''; //set opening tag, such as font declarations
fcontent[0]="<p><a href='clients.php?showDiv=case1details'>&ldquo;Their work was essential to getting tangible results from our strategy exercise.  Their analytic capabilities, attention to detail and precision left us with a model of our business that is still in constant use.&rdquo;</p><p class='author'>Roger Siddle<br/>Chief Executive Officer<br/>BPP Holdings PLC</a></p>";
fcontent[1]="<p><a href='clients.php?showDiv=case1details'>&ldquo;Thanks to their modelling work BPP is in a position to make significantly better informed decisions&hellip; their strong project management skills and methodical approach were key to the success of this project.&rdquo;</p><p class='author'>Chris Ross-Roberts<br/>Group Finance Director<br/>BPP Holdings PLC</a></p>";
fcontent[2]="<p><a href='clients.php?showDiv=case2details'>&ldquo;&hellip;you did a fantastic job for us and we wouldn't have been able to get this far without your involvement.&rdquo;</p><p class='author'>Brian Katzen<br/>Vice Chairman & Co-founder<br/>Octagon Capital Ltd</a></p>";
fcontent[3]="<p><a href='clients.php?showDiv=case2details'>&ldquo;&hellip;The work was elegant, on-time, and highly versatile.  The calibre of their work rivals any of the professional investment banks I've worked with in the past.  I'd highly recommend them.&rdquo;</p><p class='author'>Dan Harple<br/>Executive Chairman<br/>GeoSentric Oyj</a></p>";
fcontent[4]="<p><a href='clients.php?showDiv=case3details'>&ldquo;&hellip;Their work was instrumental in helping us through a successful fund-raising round.  The model was developed under exceptionally tight timescales yet is remarkably user friendly and allows for rapid modification in order to appraise multiple scenarios.  The model is now routinely used in the business to compile our latest forecasts.&rdquo;</p><p class='author'>Joe Raguso<br/>Chief Executive Officer<br/>Intrinsiq Materials Ltd</a></p>";
fcontent[5]="<p><a href='clients.php?showDiv=case5details'>&ldquo;&hellip;Combining professional accountancy skills with real strategic and operational experience blueboxthinking was able to add significant value to the project by anticipating our needs as the business evolved &hellip;  I would have no hesitation in recommending blueboxthinking to other organisations to support decision-making across a wide range of corporate initiatives.&rdquo;</p><p class='author'>Robin Halliday<br/>Chief Financial Officer<br/>GeoSentric Oyj</a></p>";
fcontent[6]="<p><a href='clients.php?showDiv=case6details'>&ldquo;blueboxthinking was instrumental in helping Cody Gate Ventures in its early days with investor reporting and performance management &hellip; We continue to use these reports as our main mechanism for communicating portfolio company performance and projections to investors.&rdquo;</p><p class='author'>Stephen Lake<br/>Managing Partner UK<br/>Cody Gate Ventures LLP</a></p>";
fcontent[7]="<p><a href='clients.php?showDiv=case8details'>&ldquo;&hellip;their analysis has given striking insights into how property can enhance our client&rsquo;s corporate performance and enable property to be repositioned appropriately in the hierarchy of corporate priorities.&rdquo;</p><p class='author'>Robert Bailey<br/>Managing Director<br/>Corporate Property Advisers Ltd</a></p>";
fcontent[8]="<p><a href='clients.php?showDiv=case4details'>&ldquo;&hellip;added real value… by focusing on delivering results, analysing processes, solving problems and objectively criticising potential solutions… a key part of all my planning activities.&rdquo;</p><p class='author'>Toshak Patel<br/>Head of Bid Finance, UK Government Division<br/>Fujitsu Services Ltd</a></p>";
fcontent[9]="<p><a href='clients.php?showDiv=case4details'>&ldquo;&hellip;without their specialist skills and professional attitude the success of the bid would have been materially impacted.&rdquo;</p><p class='author'>Kevan Findlay <br/>Sales Controller, UK Government Division<br/>Fujitsu Services Ltd</a></p>";
fcontent[10]="<p><a href='clients.php?showDiv=case10details'>&ldquo;The model makes the whole process of managing inventory across the business considerably more efficient and less time-consuming.&rdquo;</p><p class='author'>Michael Barrett<br/>Operations Director<br/>Nexus GB Ltd</a></p>";
fcontent[11]="<p><a href='clients.php?showDiv=case11details'>&ldquo;blueboxthinking brought a rigour and a quality to the investment appraisal process which has ensured that we have always had the relevant and important facts available to make decisions in a timely basis.&rdquo;</p><p class='author'>Simon Crowe<br/>Chief Financial Officer<br/>Acergy SA</a></p>";
closetag='';

var fwidth='240px'; //set scroller width
var fheight=''; //set scroller height

var fadelinks=1;  //should links inside scroller content also fade like text? 0 for no, 1 for yes.

///No need to edit below this line/////////////////


var ie4=document.all&&!document.getElementById;
var DOM2=document.getElementById;
var faderdelay=0;
var index = Math.floor(Math.random()*fcontent.length);


/*Rafael Raposo edited function*/
//function to change content
function changecontent(){
  if (index>=fcontent.length)
    index=0
  if (DOM2){
    document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
    document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
    if (fadelinks)
      linkcolorchange(1);
    colorfade(1, 15);
  }
  else if (ie4)
    document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;
  index = Math.floor(Math.random()*fcontent.length);
}

// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

function linkcolorchange(step){
  var obj=document.getElementById("fscroller").getElementsByTagName("A");
  if (obj.length>0){
    for (i=0;i<obj.length;i++)
      obj[i].style.color=getstepcolor(step);
  }
}

/*Rafael Raposo edited function*/
var fadecounter;
function colorfade(step) {
  if(step<=maxsteps) {	
    document.getElementById("fscroller").style.color=getstepcolor(step);
    if (fadelinks)
      linkcolorchange(step);
    step++;
    fadecounter=setTimeout("colorfade("+step+")",stepdelay);
  }else{
    clearTimeout(fadecounter);
    document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";
    setTimeout("changecontent()", delay);
	
  }   
}

/*Rafael Raposo's new function*/
function getstepcolor(step) {
  var diff
  var newcolor=new Array(3);
  for(var i=0;i<3;i++) {
    diff = (startcolor[i]-endcolor[i]);
    if(diff > 0) {
      newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step);
    } else {
      newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step);
    }
  }
  return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")");
}

if (ie4||DOM2)
  document.write('<div id="fscroller" style="width:'+fwidth+';height:'+fheight+'"></div>');

if (window.addEventListener)
window.addEventListener("load", changecontent, false)
else if (window.attachEvent)
window.attachEvent("onload", changecontent)
else if (document.getElementById)
window.onload=changecontent

