// This script builds the Breadcrumb.

var sn, ssn;
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

document.write("<table width='580' border='0' cellpadding='0' cellspacing='0'>");
document.write("<tr>");
document.write("<td width='10' height='5' class='breadcrumb'><img src='transparent.gif' width='10' height='5'></td>");
document.write("<td width='420' height='5' class='breadcrumb'><img src='transparent.gif' width='420' height='5'></td>");
document.write("<td width='60' height='5' class='breadcrumb'><img src='transparent.gif' width='60' height='5'></td>");
document.write("<td width='80' height='5' class='breadcrumb'><img src='transparent.gif' width='80' height='5'></td>");
document.write("<td width='10' height='5' class='breadcrumb'><img src='transparent.gif' width='10' height='5'></td>");
document.write("</tr>");

document.write("<tr>");
document.write("<td width='10' class='breadcrumb'><img src='transparent.gif' width='10' height='10'></td>");
document.write("<td width='420' class='breadcrumb'>");

// BUILD BREADCRUMB
if (top.section == "0.0") document.write("Home");
else {
  sn = parseInt(top.section);
  ssn = top.section.substring(2,3);
  document.write("<a href='javascript:top.gotoPage(&quot;0020&quot;)'>Home</a>");
  if (ssn == 0) document.write(" / " + top.SectionNames[sn][0]);
  else {
    document.write(" / <a href='javascript:top.gotoPage(&quot;" + top.SectionDests[sn][0] + "&quot;)'>" + top.SectionNames[sn][0]+ "</a>");
    document.write(" / " + top.SectionNames[sn][ssn]);
  }
}
document.write("</td>");

// draw page count
document.write("<td width='60' class='breadcrumb'>&nbsp;");
//if (top.sectionPageNum != "0") document.write("Pg " + top.sectionPageNum + "/" + top.sectionPageCount);
//else document.write("&nbsp;");
document.write("</td>");

// draw Back and Next buttons
document.write("<td width='80' class='nav'>");
if (top.backDest != "0") document.write("<a href='javascript:top.gotoPage(&quot;" + top.backDest + "&quot;)' onMouseOut='MM_swapImgRestore()' onMouseOver='MM_swapImage(&quot;Back1&quot;,&quot;&quot;,&quot;../images/top_back_o.gif&quot;,1)'><img name='Back1' border='0' src='../images/top_back_n.gif' width='40' height='20'></a>");
else document.write("<img src='transparent.gif' width='40' height='20'>");
if (top.nextDest != "0") document.write("<a href='javascript:top.gotoPage(&quot;" + top.nextDest + "&quot;)' onMouseOut='MM_swapImgRestore()' onMouseOver='MM_swapImage(&quot;Next1&quot;,&quot;&quot;,&quot;../images/top_next_o.gif&quot;,1)'><img name='Next1' border='0' src='../images/top_next_n.gif' width='40' height='20'></a>");
else document.write("<img src='transparent.gif' width='40' height='20'>");
document.write("</td>");

//document.write("<td width='50' class='breadcrumb'><div align='right'>" + top.thisPage + "</div></td>");
document.write("<td width='10' class='breadcrumb'><img src='transparent.gif' width='10' height='10'></td>");
document.write("</tr>");

document.write("<tr>");
document.write("<td width='10' height='5' class='breadcrumb'><img src='transparent.gif' width='10' height='5'></td>");
document.write("<td width='420' height='5' class='breadcrumb'><img src='transparent.gif' width='420' height='5'></td>");
document.write("<td width='60' height='5' class='breadcrumb'><img src='transparent.gif' width='60' height='5'></td>");
document.write("<td width='80' height='5' class='breadcrumb'><img src='transparent.gif' width='80' height='5'></td>");
document.write("<td width='10' height='5' class='breadcrumb'><img src='transparent.gif' width='10' height='5'></td>");
document.write("</tr>");
document.write("</table>");

// DEBUG
//debugwin = window.open("", "dwin","width='300', height='200', resizable");
//debugwin.document.open("text/plain");
//debugwin.document.writeln("section = ", top.section);
//debugwin.document.writeln("sn = ", sn);
//debugwin.document.writeln("ssn = ", ssn);

