﻿function swapsrc(imageIn, postfix) {
var src;
src = imageIn.src.replace("_hover","").replace("_depressed","");
return(src.substr(0, src.lastIndexOf(".")) + postfix + src.substr(src.lastIndexOf("."), 4));
}

function onmouseover_q(theimage) {
theimage.src = swapsrc(theimage, "_hover");
}

function onmouseout_q(theimage) {
theimage.src = swapsrc(theimage, "");
}

function onmousedown_q(theimage) {
theimage.src = swapsrc(theimage, "_depressed");
}
