var url = "http://www.cape.edu/";                 // your main directory URL
var headerWidth = "763";                               // header weight
var headerHeight = "67";							   // header height
var spacerImg = url + "images/spacer.gif";             // spacer image URL 
var menuHeight ="18";                                  // menu table height
var menu1Name = "home";                                 // menu 1 name -> not work without it.
var menu1Url = url + "index.html";                     // menu 1 url
var menu1Img = url + "images/home.jpg";                // menu 1 image url
var menu1Over = url + "images/home-1.jpg";                // menu 1 image url
var menu1Width = "105";                                // menu 1 width
var menu2Name = "about";                                 // menu 1 name -> not work without it.
var menu2Url = url + "about.html";                     // menu 1 url
var menu2Img = url + "images/about.jpg";                // menu 1 image url
var menu2Width = "149";                                // menu 1 width
var menu3Name = "programs";                            // menu 2 
var menu3Url = url + "programs.html";
var menu3Img = url + "images/programs.jpg";
var menu3Width = "130";
var menu4Name = "newsletter";                            // menu 4
var menu4Url = url + "resources.html";
var menu4Img = url + "images/newsletter.jpg";
var menu4Width = "150";
var menu5Name = "qanda";                               // menu 5 
var menu5Url = url + "qanda.html";
var menu5Img = url + "images/qanda.jpg";
var menu5Width = "102";
var menu6Name= "map";   					       // menu 6 
var menu6Url = url + "map.html";
var menu6Img = url + "images/map.jpg";
var menu6Width = "127";	
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 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 mmLoadMenus() {
  if (window.main1) return;
  window.main1= new Menu("root",128,20,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#336699","#6495ed","left","middle",4,0,1000,-5,7,true,false,true,1,false,true);
   main1.addMenuItem("President's&nbsp;Message","location='http://www.cape.edu/cape/Jai-Ho_Yoo.html'");
   main1.addMenuItem("History","location='http://www.cape.edu/cape/history.html'");
   main1.addMenuItem("Purpose","location='http://www.cape.edu/cape/purpose.html'");
   main1.addMenuItem("Accreditation","location='http://www.cape.edu/cape/accreditation.html'");
   main1.hideOnMouseOut=true;
   main1.menuBorder=0;
   main1.menuLiteBgColor='#ffffff';
   main1.menuBorderBgColor='#555555';
   main1.bgColor='#555555';
  window.main2= new Menu("root",149,20,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#336699","#6495ed","left","middle",4,0,1000,-5,7,true,false,true,1,false,true);
   main2.addMenuItem("Membership","location='http://www.cape.edu/cape/membership.html'");
   main2.addMenuItem("Scholarship","location='http://www.cape.edu/cape/scholarship.html'");
   main2.addMenuItem("Faculty","location='http://www.cape.edu/cape/faculty.html'");
   main2.addMenuItem("Alumni Contacts","location='http://www.cape.edu/cape/alumni.html'");
   main2.addMenuItem("Advisory Council","location='http://www.cape.edu/cape/advisory_council.html'");
   main2.addMenuItem("Board of Directors","location='http://www.cape.edu/cape/board_of_directors.html'");
   main2.addMenuItem("Cape's Contributions","location='http://www.cape.edu/cape/contributions.html'");
   main2.addMenuItem("Cooperative&nbsp;Research","location='http://www.cape.edu/cape/research.html'");
   main2.addMenuItem("Location","location='http://www.cape.edu/cape/location.html'");
   main2.hideOnMouseOut=true;
   main2.menuBorder=0;
   main2.menuLiteBgColor='#ffffff';
   main2.menuBorderBgColor='#555555';
   main2.bgColor='#555555';
  window.main3= new Menu("root",173,20,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#336699","#6495ed","left","middle",4,0,1000,-5,7,true,false,true,1,false,true);
   main3.addMenuItem("American&nbsp;Studies&nbsp;Forum","location='http://www.cape.edu/programs/american/index.html'");
   main3.addMenuItem("Asia&nbsp;Today&nbsp;Series","location='http://www.cape.edu/programs/asiatoday/index.html'");
   main3.addMenuItem("Language&nbsp;&amp;&nbsp;Culture","location='http://www.cape.edu/programs/lang&cult/index.html'");
   main3.addMenuItem("Nursing/Health&nbsp;Care","location='http://www.cape.edu/programs/health/index.html'");
   main3.addMenuItem("Teachers&nbsp;of&nbsp;English","location='http://www.cape.edu/programs/teachers/index.html'");
   main3.addMenuItem("College&nbsp;Students","location='http://www.cape.edu/programs/college/index.html'");
   main3.addMenuItem("College&nbsp;Nursing&nbsp;Students","location='http://www.cape.edu/programs/nursing-col/index.html'"); 
   main3.addMenuItem("Middle/High&nbsp;School&nbsp;Students","location='http://www.cape.edu/programs/middlehigh/index.html'");
   main3.addMenuItem("Other&nbsp;Programs&nbsp;...","location='http://www.cape.edu/programs/other_programs.html'");
   main3.hideOnMouseOut=true;
   main3.menuBorder=0;
   main3.menuLiteBgColor='#ffffff';
   main3.menuBorderBgColor='#555555';
   main3.bgColor='#555555';
  window.main4 = new Menu("root",150,20,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#336699","#6495ed","left","middle",4,0,1000,-5,7,true,false,true,1,false,true);
   main4.addMenuItem("CAPE&nbsp;News&nbsp;Letter","location='http://www.cape.edu/newsletter.html'");
   main4.addMenuItem("Teacher&nbsp;Talk","location='http://www.cape.edu/teachertalk.html'");
   main4.addMenuItem("CAPE&nbsp;English","location='http://english.cape.edu/index.html'");   
   main4.addMenuItem("Listening&nbsp;Practice","location='http://www.cape.edu/listening.html'");      
   main4.addMenuItem("Web-Enhanced&nbsp;Teaching","location='http://www2.hawaii.edu/~dwkang/cape/'");
   main4.addMenuItem("Dr.&nbsp;Yang's&nbsp;Speeches","location='http://www.cape.edu/dryangspeeches.html'");      
   main4.hideOnMouseOut=true;
   main4.menuBorder=0;
   main4.menuLiteBgColor='#ffffff';
   main4.menuBorderBgColor='#555555';
   main4.bgColor='#555555';
  window.main5 = new Menu("root",110,20,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#336699","#6495ed","center","middle",4,0,1000,-5,7,true,false,true,1,false,true);
   main5.addMenuItem("Contact&nbsp;CAPE","location='http://www.cape.edu/contact.html'");
   main5.hideOnMouseOut=true;
   main5.menuBorder=0;
   main5.menuLiteBgColor='#ffffff';
   main5.menuBorderBgColor='#555555';
   main5.bgColor='#555555';
  window.main6 = new Menu("root",127,20,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#336699","#6495ed","center","middle",4,0,1000,-5,7,true,false,true,1,false,true);
   main6.addMenuItem("Site&nbsp;Search","location='http://www.cape.edu/search.html'");
   main6.hideOnMouseOut=true;
   main6.menuBorder=0;
   main6.menuLiteBgColor='#ffffff';
   main6.menuBorderBgColor='#555555';
   main6.bgColor='#555555';
   main6.writeMenus();
} // mmLoadMenus()
function createMenuTable(headerImgFile) {
  document.write("<table  align='center' border='0' cellpadding='0' cellspacing='0' width='" + headerWidth + "'>");   // start table
  document.write("<tr><td><img src='"+ spacerImg + "' width='" + menu1Width +"' height='1' border='0' alt=''></td>"); // start first row: Structure Wrapper
  document.write("<td><img src='"+ spacerImg + "' width='" + menu2Width +"' height='1' border='0' alt=''></td>");
  document.write("<td><img src='"+ spacerImg + "' width='" + menu3Width +"' height='1' border='0' alt=''></td>");
  document.write("<td><img src='"+ spacerImg + "' width='" + menu4Width +"' height='1' border='0' alt=''></td>");
  document.write("<td><img src='"+ spacerImg + "' width='" + menu5Width +"' height='1' border='0' alt=''></td>");
  document.write("<td><img src='"+ spacerImg + "' width='" + menu6Width +"' height='1' border='0' alt=''></td>");
  document.write("<td><img src='"+ spacerImg + "' width='1' height='1' border='0' alt=''></td></tr>");                // end first row
  document.write("<tr><td colspan='6'><a href='" + menu1Url + "'><img name='header' src='" + url + "images/" + headerImgFile + "' width='" + headerWidth + "' height='" + headerHeight +
                 "' border='0' alt=''></a></td></tr>");		  // second row: Header Image   // From BELOW LINE:  start third row: MENU 			 
  document.write("<tr><td><a href='" + menu1Url + 
                 "' onMouseOut=\"MM_swapImgRestore();MM_startTimeout();\" onMouseOver=\"MM_showMenu(window.main1,0,20,null,'home');MM_swapImage('home','', 'http://www.cape.edu/images/home-1.jpg', 1);\">" +
				 "<img name='" + menu1Name +"' src='" + menu1Img + "' width='" + menu1Width +"' height='" + menuHeight +"' border='0' alt='" + menu1Name +"'></a></td>");
  document.write("<td><a href='" + menu2Url + 
                 "' onMouseOut=\"MM_swapImgRestore();MM_startTimeout();\" onMouseOver=\"MM_showMenu(window.main2,0,20,null,'about');MM_swapImage('about','','http://www.cape.edu/images/about-1.jpg',1);\">" + 
				 "<img name='" + menu2Name +"' src='" + menu2Img + "' width='" + menu2Width +"' height='" + menuHeight +"' border='0' alt='" + menu2Name +"'></a></td>");
  document.write("<td><a href='" + menu3Url + 
                 "' onMouseOut=\"MM_swapImgRestore();MM_startTimeout();\" onMouseOver=\"MM_showMenu(window.main3,0,20,null,'programs');MM_swapImage('programs','','http://www.cape.edu/images/programs-1.jpg',1);\">" + 
				 "<img name='" + menu3Name +"' src='" + menu3Img + "' width='" + menu3Width +"' height='" + menuHeight +"' border='0' alt='" + menu3Name +"'></a></td>");
  document.write("<td><a href='" + menu4Url + 
                 "' onMouseOut=\"MM_swapImgRestore();MM_startTimeout();\" onMouseOver=\"MM_showMenu(window.main4,0,20,null,'newsletter');MM_swapImage('newsletter','','http://www.cape.edu/images/newsletter-1.jpg',1);\">" + 
				 "<img name='" + menu4Name +"' src='" + menu4Img + "' width='" + menu4Width +"' height='" + menuHeight +"' border='0' alt='" + menu4Name +"'></a></td>");
  document.write("<td><a href='" + menu5Url + 
                 "' onMouseOut=\"MM_swapImgRestore();MM_startTimeout();\" onMouseOver=\"MM_showMenu(window.main5,0,20,null,'qanda');MM_swapImage('qanda','','http://www.cape.edu/images/qanda-1.jpg', 1);\">" + 
				 "<img name='" + menu5Name +"' src='" + menu5Img + "' width='" + menu5Width +"' height='" + menuHeight +"' border='0' alt='" + menu5Name +"'></a></td>");
  document.write("<td><a href='" + menu6Url + 
                 "' onMouseOut=\"MM_swapImgRestore();MM_startTimeout();\" onMouseOver=\"MM_showMenu(window.main6,0,20,null,'map');MM_swapImage('map','','http://www.cape.edu/images/map-1.jpg',1);\">" + 
				 "<img name='" + menu6Name +"' src='" + menu6Img + "' width='" + menu6Width +"' height='" + menuHeight +"' border='0' alt='" + menu6Name +"'></a></td>");
  document.write("<td><img src='" + spacerImg + "' width='1' height='" + menuHeight +"' border='0' alt=''></td></tr>");  // end third row: menu
  document.write("</table>");  // end table  
}
function preloadImg() {
  MM_preloadImages('http://www.cape.edu/images/home-1.jpg','http://www.cape.edu/images/porgrams-1.jpg','http://www.cape.edu/images/newsletter-1.jpg','http://www.cape.edu/images/qanda-1.jpg','http://www.cape.edu/images/map-1.jpg');
}
function loadCopyright() {
  document.write("<font style='color:#333; background:#d3d3d3; font-size:11px;letter-spacing:0.5px;'><a href='http://www.cape.edu'>The Center for Asia-Pacific Exchange</a> • 1616 Makiki Street, Honolulu, HI 96822 • Tel: (808) 942-8553</br>Fax: (808) 941-9575 • Email: <a href='mailto:cape@cape.edu'>cape@cape.edu</a> • Copyright &copy;  2009 • <a href='http://www.cape.edu/contact.html'>Contact</a> | <a href='http://www.cape.edu/map.html'>Site Map</a> | <a href='http://www.cape.edu/search.html'>Search</a> </font>");
}