// DHTML MENUS AND OTHER UTILITY JAVA SCRIPTS FOR NEP KAPSI
// THIS SCRIPT IS FOR PAGES ON ROOT LEVEL

//
function mmLoadMenus() {
  if (window.mm_menu_0102230045_0) return;
      window.mm_menu_0102230045_0 = new Menu("root",145,18,"Verdana, Arial, Helvetica, sans-serif",10,"#363333","#363333","#F5F4EE","#E7E1B7","left","middle",4,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0102230045_0.addMenuItem("› The&nbsp;Fraternity","location='http://www.kapsinep.com/province/fraternity.html'");
  mm_menu_0102230045_0.addMenuItem("› About&nbsp;NEP","location='http://www.kapsinep.com/province/about.html'");
  mm_menu_0102230045_0.addMenuItem("› Past&nbsp;Polemarchs","location='http://www.kapsinep.com/province/pastpolemarchs.html'");
  mm_menu_0102230045_0.addMenuItem("› Officers","location='http://www.kapsinep.com/province/officers.html'");
  mm_menu_0102230045_0.addMenuItem("› Chapters","location='http://www.kapsinep.com/province/chapters.html'");
  mm_menu_0102230045_0.addMenuItem("› Committees","location='http://www.kapsinep.com/province/committees.html'");
  mm_menu_0102230045_0.addMenuItem("› Resolutions","location='http://www.kapsinep.com/province/resolutions.html'");
  mm_menu_0102230045_0.addMenuItem("› Guide&nbsp;Right","location='http://www.kapsinep.com/guideright/index.html'");
  mm_menu_0102230045_0.addMenuItem("› The&nbsp;Diamond","location='http://www.kapsinep.com/newsletter/index.html'");
   mm_menu_0102230045_0.hideOnMouseOut=true;
   mm_menu_0102230045_0.bgColor='#D2C59C';
   mm_menu_0102230045_0.menuBorder=1;
   mm_menu_0102230045_0.menuLiteBgColor='#D2C59C';
   mm_menu_0102230045_0.menuBorderBgColor='';
window.mm_menu_0102230350_0 = new Menu("root",260,18,"Verdana, Arial, Helvetica, sans-serif",10,"#363333","#363333","#F5F4EE","#E7E1B7","left","middle",4,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0102230350_0.addMenuItem("›&nbsp;Membership&nbsp;Intake","location='http://www.kapsinep.com/business/intake.html'");
  mm_menu_0102230350_0.addMenuItem("›&nbsp;Province&nbsp;Polemarch's&nbsp;Checklist","location='http://www.kapsinep.com/business/ppchecklist.html'");
  mm_menu_0102230350_0.addMenuItem("›&nbsp;NEP&nbsp;Executive&nbsp;Orders","location='http://www.kapsinep.com/business/nep_executiveorders.html'");
  mm_menu_0102230350_0.addMenuItem("›&nbsp;Grand&nbsp;Chapter&nbsp;Executive&nbsp;Orders","location='http://www.kapsinep.com/business/gc_executiveorders.html'");
  mm_menu_0102230350_0.addMenuItem("›&nbsp;Forms","location='http://www.kapsinep.com/forms/index.html'");
  mm_menu_0102230350_0.addMenuItem("›&nbsp;Due&nbsp;Dates","location='http://www.kapsinep.com/business/duedates.html'");
  mm_menu_0102230350_0.addMenuItem("›&nbsp;Deadlines","location='http://www.kapsinep.com/business/deadlines.html'");
   mm_menu_0102230350_0.hideOnMouseOut=true;
   mm_menu_0102230350_0.bgColor='#D2C59C';
   mm_menu_0102230350_0.menuBorder=1;
   mm_menu_0102230350_0.menuLiteBgColor='#D2C59C';
   mm_menu_0102230350_0.menuBorderBgColor='';
window.mm_menu_0102230505_0 = new Menu("root",203,18,"Verdana, Arial, Helvetica, sans-serif",10,"#363333","#363333","#F5F4EE","#E7E1B7","left","middle",4,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0102230505_0.addMenuItem("›&nbsp;Calendar","location='http://www.kapsinep.com/events/index.html'");
  mm_menu_0102230505_0.addMenuItem("›&nbsp;Province&nbsp;Council&nbsp;Meeting","location='http://www.kapsinep.com/events/pcm.html'");
  mm_menu_0102230505_0.addMenuItem("›&nbsp;CRWLC","location='http://www.kapsinep.com/events/crwlc.html'");
  mm_menu_0102230505_0.addMenuItem("›&nbsp;Polemarch's&nbsp;Roundtable","location='http://www.kapsinep.com/events/polemarchsroundtable.html'");
   mm_menu_0102230505_0.hideOnMouseOut=true;
   mm_menu_0102230505_0.bgColor='#D2C59C';
   mm_menu_0102230505_0.menuBorder=1;
   mm_menu_0102230505_0.menuLiteBgColor='#D2C59C';
   mm_menu_0102230505_0.menuBorderBgColor='';
window.mm_menu_0102230700_0 = new Menu("root",90,18,"Verdana, Arial, Helvetica, sans-serif",10,"#363333","#363333","#F5F4EE","#E7E1B7","left","middle",4,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0102230700_0.addMenuItem("›&nbsp;Archives","location='http://www.kapsinep.com/news/archives.html'");
   mm_menu_0102230700_0.hideOnMouseOut=true;
   mm_menu_0102230700_0.bgColor='#D2C59C';
   mm_menu_0102230700_0.menuBorder=1;
   mm_menu_0102230700_0.menuLiteBgColor='#D2C59C';
   mm_menu_0102230700_0.menuBorderBgColor='';
window.mm_menu_0102230739_0 = new Menu("root",115,18,"Verdana, Arial, Helvetica, sans-serif",10,"#363333","#363333","#F5F4EE","#E7E1B7","left","middle",4,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0102230739_0.addMenuItem("›&nbsp;Officers","location='http://www.kapsinep.com/province/officers.html'");
  mm_menu_0102230739_0.addMenuItem("›&nbsp;Committees","location='http://www.kapsinep.com/province/committees.html'");
  mm_menu_0102230739_0.addMenuItem("›&nbsp;Feedback","location='http://www.kapsinep.com/contacts/feedback.html'");
   mm_menu_0102230739_0.hideOnMouseOut=true;
   mm_menu_0102230739_0.bgColor='#D2C59C';
   mm_menu_0102230739_0.menuBorder=1;
   mm_menu_0102230739_0.menuLiteBgColor='#D2C59C';
   mm_menu_0102230739_0.menuBorderBgColor='';

mm_menu_0102230739_0.writeMenus();
} // mmLoadMenus()
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_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_findObj(n, d) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); 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];}
}

function spawn(expr,qty,reversed){
var spawnee=[expr];
for(s=1;s<qty;s++){
spawnee[s]=expr+spawnee[s-1];
}
return reversed? spawnee.reverse() : spawnee();
}
// Code for Breadcrumbs
function breadCrumbs(base,delStr,defp,cStyle,tStyle,dStyle,nl) {
loc=window.location.toString();subs=loc.substr(loc.indexOf(base)+base.length+1).split("/");
 document.write('<a href="'+getLoc(subs.length-1)+defp+'" class="'+cStyle+'">Home</a>'+'<span class="'+dStyle+'">'+delStr+'</span>');
 a=(loc.indexOf(defp)==-1)?1:2;for (i=0;i<(subs.length-a);i++) { subs[i]=makeCaps(unescape(subs[i]));
 document.write('<a href="'+getLoc(subs.length-i-2)+defp+'" class="'+cStyle+'">'+subs[i]+'</a>'+'<span class="'+dStyle+'">'+delStr+'</span>');}
 if (nl==1) document.write("<br>");document.write('<span class="'+tStyle+'">'+document.title+'</span>');
}
function makeCaps(a) {
  g=a.split(' ');for (l=0;l<g.length;l++) g[l]=g[l].toUpperCase().slice(0,1)+g[l].slice(1);
  return g.join(" ");
}
function getLoc(c) {
  var d="";if (c>0) for (k=0;k<c;k++) d=d+"../"; return d;
}
//End Breadcrumbs code


// cross browser bookmark site

function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}