var line=new Array();
line[1]=["Art Director - Richmond Hill, ON", 4189];
line[2]=["Junior Graphic Designer - Where Calgary Magazine - Calgary", 4188];
line[3]=["Production/Web Designer - Downtown Toronto", 4187];
line[4]=["Advertising Director, Maclean's & L'Actualité - Toronto", 4186];
line[5]=["Production Coordinator - 5201 Dufferin Street", 4185];
line[6]=["Editor-in-Chief, Marketing magazine - Toronto", 4184];
line[7]=["Graphic Designer - Toronto", 4183];
line[8]=["Senior Editor - Toronto", 4182];
line[9]=["Photo Editor - Montreal", 4179];
line[10]=["Online Producer & Reporter ~ Xtra.ca - Toronto; Church ...", 4178];
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 = 59;
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();
});
}
