/* ***** 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'/>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[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'/>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>"
//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[0]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>I would like to thank you all for the fabulous service that you provided during my hunt for the right job. I couldn't have asked for a more helpful, hard working team and I appreciate the effort that each and every person put in on my behalf. It was great to know that whenever I called and whoever I spoke to I was greeted with a friendly, efficient and dedicated service. It really did make it seem like I was your most important candidate, and that you had my best interests as your number one priority.</p><p>I have dealt with a number of other recruitment agencies on my quest for a new job and I can say hands down, without a shadow of a doubt that you guys are number 1! I wish you all the best and am extremely grateful for the advice, patience and hard work I was treated to as one of your clients.</p><p>I will be sure to recommend you to all my friends!</p><p>Please pass on my well wishes and thanks to Surayya, Juliette and the rest of the Australasian team.</p><p>It was a pleasure.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></p><p>Adrienne  New Zealand<br>September 2010</p>"
Quotes[1]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>I would like to sincerely thank you all for your assistance with finding me temporary assignments during my brief time in London! Your utmost professionalism, enthusiasm and helpfulness has made my employment in London very stress free and fulfilling.</p><p>I will have no hesitations in recommending your agency to any friends who may be coming to London in the future and I will be in touch if my travels lead me back to London one day.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Haylee  Australia<br>November 2010</p>"
Quotes[2]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>I wanted to send you my thanks for your wonderful service and attention to my situation. In dealing with a couple of other recruitment agencies, I can honestly say that you guys offer the most comprehensive, helpful, sincere service and I felt extremely well-looked after - that goes for each member of your team I've had the pleasure to deal with. The advice you gave me has been invaluable, and I really appreciate it.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></p><p>Anna  New Zealand<br>October 2010</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.<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'/></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'/></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'/></p><p>Kristy McShane  SQS Group Ltd</p>"
Quotes[7]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>Thank you so much Surayya for helping me secure this fantastic position, providing a great future ahead here in London. The more I think about the role the more excited I am about taking on a great role and becoming part of a fantastic company... I have always felt that all of your team have a united sincerity amongst you to provide the best service for both your candidate and your client, and I really respect and appreciate that.</p><p>Its funny, Australasian was the first agency I dealt with, and I'm pleased to say the job hunt has ended with you guys!</p><p>I want to extend my thanks to all of the team at Australasian ...you've always been such a pleasure to deal with, understanding, non-judgemental and helpful. As a candidate that means a lot.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Anna  New Zealand<br>November 2010</p>"
Quotes[8]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>Working with Australasian showed me different side to recruitment. I had a very particular position to fill, and was extremely impressed by the personalised approach Australasian took in really understanding the skills and personality of the individual needed fit in a role. Candidates were well briefed before I met with them making the interviews efficient and productive. I recommend Sam and her team without hesitation.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></p><p>Jacqui  Eland Cables</p>"
Quotes[9]="<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.</p><nobr><img src='images/quotationmarkend.gif' align='texttop'/><p>Sandra Jackson, Operations Manager</p>"
Quotes[10]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>Your agency is definitely one of the best I've ever been with. Should I need to look for work in the future I will contact you guys again, or will refer people in a similar situation there.</p><nobr><img src='images/quotationmarkend.gif' align='texttop'/><p>Marcel  England<br>June 2011</p>"
Quotes[11]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>I am now very experienced with interviews carried out by recruitment agencies and can tell within minutes if the person sitting in front of me is knowledgeable and actually is genuinely interested in the me the candidate.<br><br>I must say with great pleasure that you restored my confidence in the recruitment industry and that Australasian is like a bunch of fresh flowers in this untidy jungle of recruitment agencies.<br><br>The questioning techniques were appropriate and I have been made to feel comfortable so as to explain exactly what i was looking for in my next role. All my expectations have been met and even beyond.<br><br>I will definitely recommend your agencies to people i know as i am confident you would deliver again and again.</p><nobr><img src='images/quotationmarkend.gif' align='texttop'/><p>Carmelina  France<br>May 2011</p>"
Quotes[12]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>I would like to say a huge thanks for all your support, You have been absolutely great and I will have no hesitation in recommending you to anyone I know who is heading over there in the future!  Keep up your amazing service; you definitely stand apart from the other agencies with your dedication and commitment to your recruits!</p><nobr><img src='images/quotationmarkend.gif' align='texttop'/><p>Annika  Australia<br>June 2011</p>"
Quotes[13]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>I wanted to thank yourself and the team at Australasian Recruitment for all your assistance since being interviewed in September. Everyone was so friendly and it was a relief securing employment so quickly after settling in London.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Lauren  Australia<br>December 2010</p>"
Quotes[14]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>In light of my recent job placement, I wanted to extend my sincerest thanks to all of you for your assistance and encouragement the last 5 months.<br><br>It's been a long journey to finally land a position,  and unfortunately it wasn't through Australasian - but I truly appreciate all of your help in finding me work, and keeping my spirits high when I was feeling a bit discouraged.</p><nobr><img src='images/quotationmarkend.gif' align='texttop'/><p>Leigh  Canada<br>July 2011</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 - New Zealand<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'/>Australasian has consistently exceeded expectations and is definitely the best and most efficient agency I have dealt with in London to date.</p><p>I hope to be back in no time with a new visa, and hope to be able to work with you all again then.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Briar  New Zealand<br>January 2011</p>"
Quotes[23]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>I really have to say that you have consistently gone the extra mile in the last three years and I have never dealt with any recruiter that is as helpful. I will recommend Australasian in my next Facebook status update and hope it can generate more candidates for you.</p><nobr><img src='images/quotationmarkend.gif' align='texttop'/><p>Rindie  South Africa<br>March 2011</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'/>Thank you very much to you and your team for helping me out during my job search.  I really appreciated your proactive approach and professionalism - you guys are how all recruiters should be!</p><p>If my situation changes in the future I will absolutely let you know.<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Ashlea  Australia<br>March 2011</p>"
Quotes[26]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>You have all been terrific to deal with and I really do appreciate it!  Important to let you know how fabulous you all are!!<nobr><img src='images/quotationmarkend.gif' align='texttop'/></nobr></p><p>Naomi  New Zealand<br>March 2011</p>"
Quotes[27]="<p><img src='images/quotationmarkbegin.gif' align='texttop'/>I wanted to thank you for being so proactive since our first meeting. In record time you secured me a temporary position and I was very impressed with how quickly you did this and you have been fabulous ever since.</p><nobr><img src='images/quotationmarkend.gif' align='texttop'/><p>Kimberley  Australia<br>July 2011</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);

