var line=new Array();
line[1]=["Web Editor, Avenue Magazine - Calgary", 4759];
line[2]=["Associate Editor - Calgary", 4758];
line[3]=["Account Manager - Toronto", 4757];
line[4]=["Print and Digital Ad Sales Representative - Flexible—Sa...", 4756];
line[5]=["Administrative Coordinator - Toronto", 4754];
line[6]=["Consumer Marketing Manager, Canadian Business & MoneySe...", 4753];
line[7]=["Classified Account Manager & Sales Support - Yonge and ...", 4751];
line[8]=["Art Intern - Toronto, Ontario", 4750];
line[9]=["Director of Custom Publishing - Edmonton, Alberta", 4749];
line[10]=["Advertising Sales Professional - Richmond Hill, ON", 4748];
var longestmessage=1
for (i=2;i<line.length;i++){
if(line[i][0].length>line[longestmessage][0].length)
longestmessage=i
}
lines=line.length-1
if(document.all||document.getElementById){}
temp=''
nextchar=-1;
nextline=1;
cursor='_'
function animate(){
document.getElementById('total_job').innerHTML = 57;
document.getElementById('new_7days').innerHTML = 13;
var currentLine = nextline;
if(temp==line[nextline][0] & temp.length==line[nextline][0].length & nextline!=lines){
nextline++;
if(nextline>=10){nextline=1;}
nextchar=-1;
document.getElementById('run_text').innerHTML = '<a href=\"/jobs/?jobId=' + line[currentLine][1] + '\">'+ temp + '</a>';
temp='';
setTimeout('nextstep()',4000)}
else if(nextline==lines & temp==line[nextline][0] & temp.length==line[nextline][0].length){
nextline=1;
nextchar=-1;
temp=''
setTimeout('nextstep()',5000)}
else{
nextstep()}}
function nextstep(){
if(cursor=='_'){
cursor='[]'}
else if(cursor=='[]'){
cursor='_'}
nextchar++;
temp+=line[nextline][0].charAt(nextchar);
document.getElementById('run_text').innerHTML = temp+cursor
setTimeout('animate()',25)}
if(document.all||document.getElementById){
addLoadEvent(function(){
animate();
});
}

