rem: if (amount > len) amount = amount % client.viewsArray.length;  
context: function cycleView (amount){    var len = client.viewsArray.length;    if (len <= 1)        return;        if (amount > len)        amount = amount % client.viewsArray.length;    var tb = getTabForObject (client.currentObject);    if (!tb)        return;        var vk = Number(tb.getAttribute("viewKey"));    var destKey = vk + amount;    if (destKey > len - 1)    {        /* wrap past max */        destKey -= client.viewsArray.length;    }    else if (destKey < 0)    {        /* wrap past 0 */        destKey += client.viewsArray.length;    }        setCurrentObject (client.viewsArray[destKey].source);}
meta: 1567	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1567/21a57c95529422ce2368949824f2a5e1e321dcf0/static.js/buggy/xul/content/static.js