/**
 * Cross-browser script to an object. Make sure id and name are set. 
 * DOES NOT ALWAYS WORK WELL WITH LAYERS
 * found at apple developer site... author unknown
 **/
function getAnObject(objectId) {
    // cross-browser function to get an object's style object given its id
    if(document.getElementById && document.getElementById(objectId)) {
		// W3C DOM
		return document.getElementById(objectId);
    } else if (document.all && document.all(objectId)) {
		// MSIE 4 DOM
		return document.all(objectId);
    } else if (document.layers && document.layers[objectId]) {
		// NN 4 DOM.. note: this won't find nested layers
		return document.layers[objectId];
    } else {
		return false;
    }
}
function show(what) {
    //alert("what is: " + what);
    var all = new Array();
    all[0]='most_recent';
    all[1]='most_recent_more';
    all[2]='top_rated';
    all[3]='top_rated_more';
    for (i = 0; i < all.length; ++i) {
        if (what == all[i]) continue;
        var tgt = getAnObject(all[i]);
        if (tgt) {
            tgt.className = all[i] + "_off";
        } else {
            //alert("missing " + all[i]);
        }
    }
    var tgt = getAnObject(what);
    if (tgt) {
        tgt.className = what;
    } else {
        //alert("unable to deal with " + what);
    }
}