rem: temp = href.split(':'); 
add: temp = href ? href.split(':') : new Array('',''); 
context: function show_zmenu( caption, e_x, e_y, menu_items, zmn ) {  ZM = ego('zmenus');  if( zmn ) {    child=ego(zmn);    if(child) { show(child);m2(child,e_x,e_y); return }  } else {    zmn = 'zmenu';    child = ego(zmn);    if(child) { ZM.removeChild(child) }   }  nz = dce( 'div' );  sa( nz, 'id', zmn );  ac( ZM, nz );  nz.className = 'zmenu';  t = dce( 'table' );  t.style.backgroundColor = '#ffffff'  t.style.borderCollapse  = 'collapse';  t.style.borderWidth     = '0px';  t.style.width           = '200px';  t_h=dce('thead');t_r=dce('tr');  t_h1=dce('th');t_h2=dce('th');t_h3=dce('th');  t_h1.onmousedown = drag_start;  t_h1.style.width = '170px';  t_h2.style.width = '15px';  t_h3.style.width = '15px';  ac( t_h1, dtn( caption ) );cl = dce( 'a' );var mn = dce( 'a' );  mn.onclick = function() {    var N = this.parentNode.parentNode.parentNode.parentNode.getElementsByTagName('tbody')[0];    var I = this.getElementsByTagName('img')[0];    if(N.style.display=='none') {      N.style.display=''      I.src = '/img/dd_menus/up.gif';    } else {       N.style.display='none'      I.src = '/img/dd_menus/down.gif';    }  }  sa( cl, 'href', 'javascript:void(hide_zmenu("'+ zmn +'"))' );  im2 = dce( 'img' );  im2.style.borderWidth = 0;  im2.height = 12  im2.width  = 12  im2.src = '/img/dd_menus/up.gif';  im2.className = 'right';  im = dce( 'img' );  im.style.borderWidth = 0;  im.height = 12  im.width  = 12  im.src = '/img/dd_menus/close.gif';  im.className = 'right';  sa( im, 'alt',   'X' );  sa( im, 'title', 'Close zmenu' );    sa( im2, 'alt', 'v' );  sa( im2, 'title', 'Min zmenu' );  ac(mn,im2);  ac(cl,im);  ac(t_h2,mn);  ac(t_h3,cl);  ac(t_r,t_h1);  ac(t_r,t_h2);  ac(t_r,t_h3);  ac(t_h,t_r);  ac(t,t_h);  t_b=dce('tbody');  ac(t,t_b);ac(nz,t);show(nz);  for(i=0;i<menu_items.length;i++) {    it=menu_items[i]    caption=it[0];href=it[1];target=it[2]    ro = dce('tr');    t_b.appendChild(ro);    ce = dce('td');    ce.colSpan = 3;    ro.appendChild(ce);    o=dtn(caption);    temp = href.split(':');    if( temp[0] == 'pfetch' ) {      o=dce('span');      sa(o,'id','pfetch_'+zmn);      ac(o,dtn('Pfetching...'));      pfetch( 'pfetch_'+zmn, temp[1] );    } else if( href ) {      to=dce('a');ac(to,o);o=to;sa(o,'href',href)      if(target) sa(o,'rel','external')    }    ac(ce,o);  }    m2(nz, e_x, e_y )}
meta: 7290	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7290/7822fa57d302395277293f593d07ac92e4168a0b/new_zmenu.js/clean/htdocs/js/new_zmenu.js