Can anyone tell me why this isn't working?
function changeBG(element_id){
document.getElementById(element_id).className= "arrowActive";
setTimeout("document.getElementById("+element_id+").className= 'arrow'", 300);
}
In firebug I get an error saying that the element_id passed to setTimeout() is not defined.