var line=new Array();
line[1]=["Industry Initiatives Coordinator - Toronto, Ontario", 4768];
line[2]=["Auto Aftermarket Editorial Strategist/Head Buzz Generat...", 4767];
line[3]=["Associate Publisher - Halifax", 4766];
line[4]=["Associate Editor - Halifax", 4765];
line[5]=["Editor - Halifax", 4764];
line[6]=["Freelance Graphic Designer - Toronto", 4763];
line[7]=["Assistant Producer Digital Content Channels - Toronto", 4762];
line[8]=["Full Time Editor - Markham", 4761];
line[9]=["National Account Manager - Markham", 4760];
line[10]=["Web Editor, Avenue Magazine - Calgary", 4759];
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 = 64;
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();
});
}

