add: if ((event.target.localName == "image" && event.target.getAttribute("class") == "view-title-pop")) {  return "new-tab"; }  if (eventY > viewH) {  var tab = this.findViewTab(floatingView); if (!ASSERT(tab, "view has no tab")) return "new-tab";  if (event.screenX > tab.boxObject.screenX + (tab.boxObject.width / 2)) return "next-tab";  return "prev-tab"; }  
context: function vmgr_getdropdir (event, floatingView){    var eventX = event.screenX - floatingView.boxObject.screenX;    var eventY = event.screenY - floatingView.boxObject.screenY;    var viewW = floatingView.boxObject.width;    var viewH = floatingView.boxObject.height;    var rv;    var dir;    var m = viewH / viewW;    if (eventY < m * eventX)        dir = -1;    else        dir = 1;        m = -m;        if (eventY < m * eventX + viewH)    {        if (dir < 0)            rv = "up";        else            rv = "left";    }    else    {        if (dir < 0)            rv = "right";        else            rv = "down";    }    return rv;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0ce31a79343e29e27a5102a1ca9099fd6e804946/view-manager.js/clean/extensions/venkman/resources/content/view-manager.js