//free JavaScripts on http://www.ScriptBreaker.com

  var height = 22; // height of the menu headers
  var iheight = 16; // height of the menu_items
  
  var bgc = "FFFFFF" // background color of the item
  var tc = "#333333" // text color of the item
  
  var over_bgc = "#000000";
  var over_tc = "#FFAA00";
  
  var speed = 1;
  var timerID = "";
  var N = (document.all) ? 0 : 1;
  var width = 150
  


  var self_menu = new Array();
  
  NAVBGIMG = new Image();
  NAVBGIMG.src = "/summit/summit.nsf/AttachmentsByTitle/NavBackground.gif/$FILE/NavBackground.gif";
  NAVBGROIMG = new Image();
  NAVBGROIMG.src = "/summit/summit.nsf/AttachmentsByTitle/NavBackgroundRollover.gif/$FILE/NavBackgroundRollover.gif";

function write_menu()
{
  smc = 0; // count the position of the self_menu
  document.write("<div style='position:absolute'>");
  mn = 0;
  mni = 1;
  start = -1;
  
  for(i=0;i<Link.length;i++)
  {
   la = Link[i].split("|");

   if (la[0] == "0" || la[0] == "2")
   {
    if(start == 0) 
     {
      document.write("</div>");
      h =  csmc * iheight;
      tmn = mn; //-h
	  self_menu[smc] = new Array(tmn,h,0,-2);
      smc++;
      mn--;
     }
     csmc = 0;
    document.write("<div class='menu' style='top:"+mn+";height:"+height+"' id='down"+smc+"' onclick='pull_down("+smc+","+mni+",&quot;"+la[2]+"&quot;)'><table border='0' width='150' height='20'><tr><td id='heading"+smc+"' background="+NAVBGIMG.src+" onmouseover='bgimg(this.id)' onmouseout='unbgimg(this.id)'><font class='black8'><B>&nbsp;&nbsp;&nbsp;&nbsp;"+ la[1] + "</B></font></td></tr></table></div>");
    if (la[0] == "0") { self_menu[smc] = new Array(mn,height,0,mni); }
	else { self_menu[smc] = new Array(2,2,2,la[3]);}
	smc++;
    mni++;
    mn+=height;
    start = 1;
   }
   else
   {
    if(start == 1) 
     {
      if(N)mn+=2;
       document.write("<div class='item_panel' id='down"+smc+"' style='top:"+mn+"'>");
       start = 0;
     }
    
    document.write("<a href='"+la[2]+"'");
    if (la[3] != "") document.write(" target='" + la[3] + "' ");
    document.write("><div class='item' id='d"+i+"' style='height:"+iheight+";text-decoration:none;color:#103184");
    if (N) document.write(";width:150");
    document.write("' onmouseover='color(this.id, "+i+")' onmouseout='uncolor(this.id, "+i+")'>&nbsp;&nbsp;"+ la[1] + "</div></a>");
    csmc++;
   }
  }
  if (start == 0) 
   {
     document.write("</div>");
     h =  csmc * iheight;
     tmn = mn + 5; //-h
     self_menu[smc] = new Array(tmn,h,0);
     name = "down" + (self_menu.length-1);
     obj = document.getElementById(name);
     obj.style.borderBottomColor = 0;
     obj.style.borderBottomWidth = 0;
     obj.style.borderBottomStyle = "none";
   }
  document.write("</div>");
}
  
function bgimg(obj)
{
 document.getElementById(obj).background = NAVBGROIMG.src;
}

function unbgimg(obj)
{
 document.getElementById(obj).background = NAVBGIMG.src;
}

function color(obj, imgobj)
{
 document.getElementById(obj).style.backgroundColor = over_bgc;
 document.getElementById(obj).style.color = over_tc;
 document.getElementById(obj).style.cursor = "hand";

}

function uncolor(obj, imgobj)
{
 document.getElementById(obj).style.backgroundColor = bgc;
 document.getElementById(obj).style.color = tc;
}

function pull_down(nr,c,urllink)
{
 if (!self_menu[nr+1] || self_menu[nr][0] == "2") gotourl(urllink,self_menu[nr][3]);
 else
 {
 if (timerID == "")
 {
 to = self_menu[nr+1][1]
 begin = nr + 2;
 if (timerID != "") clearTimeout(timerID);
 if (self_menu[nr+1][2] == 0)
 {
  if(nr == self_menu.length-2) {to++;}
  checkifdown(begin);
  epull_down(begin,to,0);
  self_menu[nr+1][2] = 1;
 }
 else
 {
  to = 0;
  self_menu[nr+1][2] = 0;
  name = "down"+(nr+2);
  open_item = 0;
  for(i=0;i<nr;i++)
  {
   if(self_menu[i][2] == 1) 
    {open_item += self_menu[i][1];
    }
  }
  if (N == false) {open_item-= (c*1)};
  if (nr== self_menu.length-2) {val = self_menu[self_menu.length-1][1];to=-1;}
  else  val = parseInt(document.getElementById(name).style.top) -(open_item)-(c*height);
  // epull_up(begin,to,val);
  gotourl(urllink,"");
 }
 }
 }
}

function gotourl(urllink,urltarget)
{
	if (urltarget == "blank") {
		reWin=window.open(urllink,'_blank');
	} else {
		window.location = urllink;
	}
}

function checkifdown(nr) {
 yy=-2;
 for(zz=0;zz<Link.length;zz++)
 {
  la = Link[zz].split("|");
  if (la[0] == "0" || la[0] == "2")
  {
   yy = yy + 2;
   if (self_menu[yy+1]) {
   if (self_menu[yy+1][2] == 1)
   {
    lbegin = yy + 2;
    lc = lbegin/2;
    lto = 0;
    lname = "down"+(yy+2);
    lopen_item = 0;
    for(i=0;i<yy;i++)
    {
     if(self_menu[i][2] == 1) 
      {lopen_item += self_menu[i][1];
      }
    }
    if (N == false) {lopen_item-= (lc*1)};
    if (yy== self_menu.length-2) {lval = self_menu[self_menu.length-1][1];lto=-1;}
    else  lval = parseInt(document.getElementById(lname).style.top) -(lopen_item)-(lc*height);
    epull_up(lbegin,lto,lval);
    self_menu[yy+1][2] = 0;
   }
  }
 }
 }
}

function epull_down(nr,to,nowv)
{
 name = "down" + (nr-1);
 obj = document.getElementById(name).style.clip = "rect(0,"+width+","+(nowv+1)+",0)";
 for (i=nr;i<self_menu.length;i++)
 {
  name = "down" + i;
  obj = document.getElementById(name);
  obj.style.top = parseInt(obj.style.top)+8;
 }
 nowv = nowv + 8;
 if(nowv <= to) timerID = setTimeout("epull_down("+nr+","+to+","+nowv+")",speed);
 else timerID = "";
 name = "down" + (nr-2);
 document.getElementById(name).style.cursor = "hand";
}

function epull_up(nr,to,nowv)
{
 name = "down" + (nr-1);
 obj = document.getElementById(name).style.clip = "rect(0,"+width+","+nowv+",0)";
 for (i=nr;i<self_menu.length;i++)
 {
  name = "down" + i;
  obj = document.getElementById(name);
  obj.style.top = parseInt(obj.style.top)-8;
 }
 nowv = nowv - 8;
 if(nowv > to) timerID = setTimeout("epull_up("+nr+","+to+","+nowv+")",speed);
 else timerID = "";
 name = "down" + (nr-2);
 document.getElementById(name).style.cursor = "default";
}

function startup(nr)
{
 write_menu();
 if (nr != 0)
 {
 tdno=2*(nr-1);
 tdid="heading"+tdno;
 document.getElementById(tdid).background = NAVBGROIMG.src;
 document.getElementById(tdid).onmouseover = "";
 document.getElementById(tdid).onmouseout = "";
 for(i=0;i<self_menu.length;i++)
 {
  if(self_menu[i][3] == nr)
  {
	pull_down(i,nr,"dummy");
	i==self_menu.length;
  }
 }
 }
}  