//preload button images
bimg_0 = new Image()
bimg_0.src = templatePath+"/templates/img/buttons/Bgg80.gif"
bimg_1 = new Image()
bimg_1.src = templatePath+"/templates/img/buttons/Bg20.gif"
bimg_2 = new Image()
bimg_2.src = templatePath+"/templates/img/buttons/Bg20_over.gif"
bimg_3 = new Image()
bimg_3.src = templatePath+"/templates/img/buttons/Bg20_disabled.gif"

bimg_4 = new Image()
bimg_4.src = templatePath+"/templates/img/buttons/Bg50.gif"
bimg_5 = new Image()
bimg_5.src = templatePath+"/templates/img/buttons/Bg50_over.gif"
bimg_6 = new Image()
bimg_6.src = templatePath+"/templates/img/buttons/Bg50_disabled.gif"

bimg_7 = new Image()
bimg_7.src = templatePath+"/templates/img/buttons/Bg80.gif"
bimg_8 = new Image()
bimg_8.src = templatePath+"/templates/img/buttons/Bg80_over.gif"
bimg_9 = new Image()
bimg_9.src = templatePath+"/templates/img/buttons/Bg80_disabled.gif"

bimg_10 = new Image()
bimg_10.src = templatePath+"/templates/img/buttons/Bg150.gif"
bimg_11 = new Image()
bimg_11.src = templatePath+"/templates/img/buttons/Bg150_over.gif"
bimg_12 = new Image()
bimg_12.src = templatePath+"/templates/img/buttons/Bg150_disabled.gif"

function enableButton(bID){
	oElem = document.getElementById(bID);
	oElem.className="btn_" + oElem.clientWidth;
	oElem.disabled = false;
}
function disableButton(bID){
	oElem = document.getElementById(bID);
	oElem.className="btn_"+ oElem.clientWidth +"_disabled"
	oElem.disabled = true;
}