var loaded = 1;
var currentDown = null;
if (document.images)
{
var the_images = new Array(
'images/button_1-on.gif',
'images/button_2-on.gif',
'images/button_3-on.gif',
'images/button_4-on.gif',
'images/button_5-on.gif',
'images/button_6-on.gif',
'images/button_7-on.gif',
'images/button_8-on.gif',
'images/button_9-on.gif',
'images/button_10-on.gif',  
'images/button_11-on.gif',
'images/button_12-on.gif',
'images/button_12-on.gif'
);
preloadImages(the_images);
}
function preloadImages(the_images_array)
{
if (document.preloadArray==null) {
document.preloadArray = new Array();
}
var i = document.preloadArray.length;
for(var loop = 0; loop < the_images_array.length; loop++)
{
document.preloadArray[i] = new Image;
document.preloadArray[i++].src = the_images_array[loop];
}
}
function imageOver (el)
{
if (loaded)
{
if (!currentDown || el.name != currentDown.name)
{
var str_switch = "on";
chr = el.src.lastIndexOf("-") + 1;
period = el.src.lastIndexOf(".");
el.src = "" + el.src.substring(0, chr) + str_switch + el.src.substring(period, el.src.length);
return true;
}
}
}
function imageOff (el, override)
{
if (loaded)
{
if (!currentDown || override || el.name != currentDown.name)
{
var str_switch = "off";
chr = el.src.lastIndexOf("-") + 1;
period = el.src.lastIndexOf(".");
el.src = "" + el.src.substring(0, chr) + str_switch + el.src.substring(period, el.src.length);
return true;
}
}
}