/* ***** Begin: GreyWyvern's Buffered Text-fade Effect - v2.1 ****** */
var fader = new Array(), fadeQ = new Array();
var RGB = new Array(256), k = 0, hex = ["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];
for (var i = 0; i < 16; i++) for (var j = 0; j < 16; j++) RGB[k++] = hex[i] + hex[j];

function fadeObj(number, id, colOff, colOn, spdIn, spdOut, def) {
  this.number = number;
  this.id = id;
  this.colOff = [parseInt(colOff.substr(0, 2), 16), parseInt(colOff.substr(2, 2), 16), parseInt(colOff.substr(4, 2), 16)];
  this.colOn = [parseInt(colOn.substr(0, 2), 16), parseInt(colOn.substr(2, 2), 16), parseInt(colOn.substr(4, 2), 16)];
  this.colNow = [parseInt(colOff.substr(0, 2), 16), parseInt(colOff.substr(2, 2), 16), parseInt(colOff.substr(4, 2), 16)];
  this.spdIn = spdIn;
  this.spdOut = spdOut;
  this.def = def;
  this.direction = false;
  this.active = false;
  this.message = new Array();
  this.messageNow = 0;
}

function fadeCmd(number, message, direction) {
  this.number = number;
  this.message = message;
  this.direction = direction;
}

function fade(number, message, direction) {
  if (fader[number].def && fader[number].messageNow == 0 && fader[number].direction) {
    fadeQ[fadeQ.length] = new fadeCmd(number, 0, false);
    fadeQ[fadeQ.length] = new fadeCmd(number, message, direction);
    message = 0;
    direction = false;
  } else fadeQ[fadeQ.length] = new fadeCmd(number, message, direction);
//  setTimeout("fadeBegin(" + number + ");", 20);
  setTimeout("fadeBegin(" + number + ");", 20);
}

function fadeBegin(number) {
  for (var x = 0; x < fadeQ.length; x++) {
    for (var y = x + 1; y < fadeQ.length; y++) {
      if (fadeQ[x].number == fadeQ[y].number && fadeQ[x].message == fadeQ[y].message && fadeQ[x].direction != fadeQ[y].direction) {
        fadeQ.splice(x, 1);
        fadeQ.splice(y - 1, 1);
      }
    }
  }
  if (!fader[number].active) {
    for (var x = 0; x < fadeQ.length; x++) {
      if (fadeQ[x].number == number && fadeQ[x].direction != fader[number].direction) {
        var del = fadeQ.splice(x, 1);
        setTimeout("fadeEng(" + number + ", " + del[0].message + ", " + del[0].direction + ");", 0);
        break;
      }
    }
  }
}

function fadeEng(number, message, direction) {

  if (!fader[number].active) {
    fader[number].active = true;
    fader[number].direction = direction;
    fader[number].messageNow = message;
    document.getElementById(fader[number].id).innerHTML = fader[number].message[message];
  }
  var iniCol = (direction) ? fader[number].colOff : fader[number].colOn;
  var endCol = (direction) ? fader[number].colOn : fader[number].colOff;
  var incCol = fader[number].colNow;
  var spd = (direction) ? fader[number].spdIn : fader[number].spdOut;
  for (var x = 0; x < 3; x++) {
    var incr = (endCol[x] - iniCol[x]) / spd;
    incCol[x] = (incr < 0) ? Math.max(incCol[x] + incr, endCol[x]) : Math.min(incCol[x] + incr, endCol[x]);
  }
  document.getElementById(fader[number].id).style.color = "#" + RGB[parseInt(incCol[0])] + RGB[parseInt(incCol[1])] + RGB[parseInt(incCol[2])];
  if (incCol[0] == endCol[0] && incCol[1] == endCol[1] && incCol[2] == endCol[2]) {
    fader[number].active = false;
    for (var x = 0; x < fadeQ.length; x++) {
      if (fadeQ[x].number == number) {
        var del = fadeQ.splice(x, 1);
        setTimeout("fadeEng(" + number + ", " + del[0].message + ", " + del[0].direction + ");", 0);
        return false;
      }
    }
    if (!direction) {
      if (fader[number].def) {
        setTimeout("fadeEng(" + number + ", 0, true);", 0);
      } else document.getElementById(fader[number].id).innerHTML = "&nbsp;";
    }
  } else setTimeout("fadeEng(" + number + ", " + message + ", " + direction + ");", 0);
}
/* ***** End: GreyWyvern's Buffered Text-fade Effect - v2.1 ******** */


/* ***** User defined fade objects and messages ******************** */
var Quotes=new Array();
Quotes[0]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>In total, I worked for 5 different agencies during my time in London - Australasian Recruitment Company stood out as they were always willing to listen and help put you in a position that you were actually interested in and they wouldn’t try and pressure you into a role that you didn’t want. I wouldn’t hesitate to recommend them.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Rachel Smith – Australia</p>"
Quotes[1]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>As a candidate, client and colleague, it’s been great being a part of Australasian’s history.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></p><p>Bridgette Sinclair - New Zealand</p>"
Quotes[2]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>Thanks for making my London life so enjoyable!  You guys are amazing and are really professional yet personal.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></p><p>Chenelle Phillips - Australia</p>"
Quotes[3]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>Personal service, 1 to 1 consultation and you really understand what both candidates and clients want and need.  You guys are AMAZING and inspirational.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></p><p>Roxy Carr – HR Officer – Technology Company</p>"
Quotes[4]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>You offer a fantastic service and Australasian is my first call.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Jo Farley – Operations – Internet Company</p>"
Quotes[5]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>You’ve provided exceptional, dedicated and tenacious temps that have made a real impact on our business.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Jo Carter – Imperial College, London</p>"
Quotes[6]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>From my dealings with Australasian as a candidate new to the City of London to now as a client employing a constant flow or Australasian candidates – I can’t say enough how professional, easy and rewarding my experience has been.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Kristy McShane – SQS Group Ltd</p>"
Quotes[7]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>I would like to thank you again for all your help and support over the last few weeks while I've been settling in London.  You have been amazing, warm and understanding, truly professional and your service stood out head and shoulders above any of the other recruitment companies which I've dealt<br>with.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Kathryn Pollock – South Africa</p>"
Quotes[8]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>I would like to take this opportunity to thank you for your support in finding me yet another fantastic role this year.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Tracie Kasper-Dent – South Africa<br>January 2009</p>"
Quotes[9]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>An employment agency that restores one's faith in recruitment personnel!  Truly personal service – truly humane and genuine approach. Thank you.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Trish Sayers - New Zealand</p>"
Quotes[10]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>It was great to be able to show a temp how to do things just once – it has been a breath of fresh air using Australasian Recruitment Company.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Sandra Jackson, Operations Manager</p>"
Quotes[11]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>Many thanks for taking the time to meet with me. I found you (and your colleagues) to be highly professional, candid and insightful - a truly refreshing experience.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Fiona Mackenzie – South Africa</p>"
Quotes[12]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>By the way, I have to say you guys are the best recruitment agency that I have. Always calling me to check how things are, it is really lovely to have such great service, so thank you very much!<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Michele Ironton – New Zealand</p>"
Quotes[13]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>Your agency was head and shoulders above all others I dealt with on my arrival in London and I will certainly be recommending your agency to friends and family in the future.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Suzanne McDevitt - United Kingdom</p>"
Quotes[14]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>Not only did you get me a job within a few weeks of moving, but everyone I dealt with there were really lovely people. So thank you again, I'm so glad I walked into your office that day!<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Tiffany Barbarich – Australia<br>October 2009</p>"
Quotes[15]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>Thanks so much for being extremely proactive for me, at a time when I wasn't sure which way to go and prospects were very uncertain. I am so glad that I registered with Australasian!<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Rosalyn – United Kingdom<br>December 2009</p>"
Quotes[16]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>I would like to thank everyone at Australasian Recruitment Company for their hard work and for opening the door for me for this role.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Daniel – South Africa<br>January 2010</p>"
Quotes[17]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>It is a weight off my mind to know that I have work from now until I leave so thank you guys again – best recruitment agency in London I reckon!!<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Vicki – New Zealand<br>January 2010</p>"
Quotes[18]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>I just wanted to drop you a quick note to say thank you for all of your support and help. You've been a fantastic company to work with, and I've been thoroughly impressed by the highly professional level of service I've received.<br><br>I've been particularly impressed with your courteous manner, and I think it really sets you apart from other recruitment agencies. As you know, job hunting can be a stressful process, and the fact that you stayed in regular contact with me throughout the period was extremely reassuring.<br><br>I'm absolutely delighted about my new position and for the first time in awhile I'm not dreading Monday. It's a lovely feeling.<br><br>I wouldn't normally write such a gushing email, but as I mentioned, I've been really impressed.<br><br>I'm looking forward to working with you again in the future, and I'll be recommending you to all my Antipodean friends.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Jessica Adams<br>March 2010</p>"
Quotes[19]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>I just want to thank you again for the interview and the job placement! What a pleasure to find a recruitment agency that gets you a job the same day as your interview! I will definitely be recommending Australasian Recruitment to everyone interested in administration!<br><br>Looking forward to starting tomorrow!<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Jasmine Gailer<br>March 2010</p>"
Quotes[20]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>Thankyou on behalf of Greenpeace for the sterling service you have provided!<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Retty – Greenpeace<br>February 2010</p>"
Quotes[21]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>Once again thanks for the speedy and quality response you have provided – just the kind of relationship with a recruitment agency we can sometimes only hope for with other suppliers!<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Gemma – TNS Media Intelligence</p>"
Quotes[22]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>I feel I must tell you how much I appreciate the enthusiastic and professional (but somehow also so familiar) manner with which you and your team approach your work.  Whenever I have met or spoken to someone from Australasian, I am only ever left with a positive impression and the very reassuring feeling of being supported in my professional endeavours.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Brooke - Australian</p>"
Quotes[23]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>Thank you so much for your help. You've gained nothing from helping me, but are simply true professionals and I'm very grateful for your advice and reassurance. I will definitely refer other Australians abroad to you and hopefully our paths cross again in the future.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Marika Clemow - Australia</p>"
Quotes[24]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>I am very pleased with your service and Ruth from accounts when she was chatting to me regarding my pay and other items. If only most agencies were as nice as Australasian :)<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Georgia Stathopoulos – Australia</p>"
Quotes[25]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>You guys have been great and I am overwhelmed by the amount of roles that you have run past me in just the past two days so I'll be referring you to people as well.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Natasha Jones – Australia</p>"
Quotes[26]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>Hi all,<br><br>I just wanted to put out a big thank you to everyone for your hard work in helping me in my job search and taking the time to spend with me to discuss career options and guidance. I am very excited to be starting at Google, it really is an amazing opportunity.<br><br>I would like to take the time to say that you are by far the best agency I have dealt with in London and would go as far to say the best I have ever dealt with, so I am really glad that you were the agency to place me. I found the entire process to be extremely thorough, from registration interview, preparation for client interviews, and the debriefing stage - you take a genuine interest in your candidates and beautifully manage this relationship. At no time did I feel like I was being 'used', as is often the case with many agencies who are purely commission and solely client focused.<br><br>Thank you!<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Danielle - Australia</p>"
Quotes[27]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>As a candidate, Jeremy and the Team at Australasian offered wonderful client service unmatched by any of the numerous other agencies in London.  Everyone was so genuine and helpful, it gave me great confidence to know that my first time job hunting in London was in the hands of Australasian.<br><br>Thank you!<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Anna Coathup</p>"
Quotes[28]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>I would like to thank you for being such a great team. The constant communication and effort in finding me work played a very large part in keeping me motivated throughout my job search. So thank you very much. I wish you and everyone at Australasian all the very best of success in and outside of work.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Michelle Grainger – South Africa – July 2010</p>"

/* UPDATE settings.asp randomquote() AS WELL */

var fader=new Array();
fader[0] = new fadeObj(0, 'fade0', 'dddddd', '000000', 40, 40, true);
for(var i=0;i<Quotes.length;i++)
     fader[0].message[i]=Quotes[i];

var olditem=-1;

function fadeRandom(){
     if(olditem>-1)
          fade(0,olditem,false);
     var newitem=-1;
     while(newitem<0 || newitem==olditem)
          var newitem=parseInt(fader[0].message.length*Math.random());
     fade(0,newitem,true);
     olditem=newitem;
}

var fadeInterval=window.setInterval('fadeRandom();',20000);
