function rollover(name)
{
	var path = document.images[name].src;	
	var pathpieces = path.split("/");
	
	var allbutone = pathpieces.slice(0,pathpieces.length-1);
	var ipath = allbutone.join("/");
	
	var imgname = pathpieces[pathpieces.length-1];
	var temp = imgname.split("_");
	var prebutone = temp.slice(0,temp.length-1);
	var pre = prebutone.join("_");
	var post = temp[temp.length-1];
	var state = (post.indexOf("0") > -1) ? 1 : 0;
	var ext = (post.indexOf(".gif") > -1) ? '.gif' : '.jpg'; 
	var newsrc = ipath + '/' + pre + '_' + state + ext;
    document.images[name].src = newsrc;
}

/*
function preload()
{
    for (i=0; i<=document.images.count; i++) 
    {
        var newImage = new Image();
        var imgsrc = document.images[0].src;
        if (imgsrc.indexOf("0") > -1) newImage = 
    }
}
*/