// greeklifeLoadMenus() MUST BE CALLED BEFORE mm_loadmenus()

var panels = new Array('panel1', 'panel2', 'panel3', 'panel4');
var selectedTab = null;
function showPanel(tab, name)
{
  if (selectedTab) 
  {
    selectedTab.style.backgroundColor = '';
    selectedTab.style.paddingTop = '';
    selectedTab.style.paddingBottom = '';
  }
  selectedTab = tab;
  selectedTab.style.backgroundColor = 'white';
  selectedTab.style.paddingTop = '6px';
  for(i = 0; i < panels.length; i++)
  {
    document.getElementById(panels[i]).style.display = (name == panels[i]) ? 'block':'none';
  }
  return false;
}


var theImages = new Array()

//Random-loading images
theImages[0] = '/students/greek_life/slideshow/KS2.jpg' // replace with names of images
theImages[1] = '/students/greek_life/slideshow/NPHC2.jpg' // replace with names of images
theImages[2] = '/students/greek_life/slideshow/AOII2.jpg' // replace with names of images
theImages[3] = '/students/greek_life/slideshow/SX1.jpg' // replace with names of images
theImages[4] = '/images/e-web/students/greek_life/finebymeday-016.jpg'

var j = 0
var p = theImages.length;
var preBuffer = new Array()

for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));

function showImage(){
  if(whichImage==0){
  document.write('<img src="'+theImages[whichImage]+'" border=0>');
  }
  else if(whichImage==1){
  document.write('<img src="'+theImages[whichImage]+'" border=0>');
  }
  else if(whichImage==2){
  document.write('<img src="'+theImages[whichImage]+'" border=0>');
  }
  else if(whichImage==3){
  document.write('<img src="'+theImages[whichImage]+'" border=0>');
  }
  else if(whichImage==4){
  document.write('<img src="'+theImages[whichImage]+'" border=0>');
  }
  else if(whichImage==5){
  document.write('<img src="'+theImages[whichImage]+'" border=0>');
  }
}

var theImages2 = new Array()

//Random-loading images
theImages2[0] = '/students/greek_life/slideshow/PKP2.jpg' // replace with names of images
theImages2[1] = '/students/greek_life/slideshow/GreekWeek1.jpg' // replace with names of images
theImages2[2] = '/students/greek_life/slideshow/PKP2.jpg' // replace with names of images
theImages2[3] = '/students/greek_life/slideshow/PM1.jpg' // replace with names of images
theImages2[4] = '/images/e-web/students/greek_life/100_1866.jpg'

var j2 = 0
var p2 = theImages2.length;
var preBuffer2 = new Array()

for (i = 0; i < p2; i++){
  preBuffer2[i] = new Image()
  preBuffer2[i].src = theImages2[i]
}
var whichImage2 = Math.round(Math.random()*(p2-1));

function showImage2(){
  if(whichImage2==0){
  document.write('<img src="'+theImages2[whichImage2]+'" border=0>');
  }
  else if(whichImage2==1){
  document.write('<img src="'+theImages2[whichImage2]+'" border=0>');
  }
  else if(whichImage2==2){
  document.write('<img src="'+theImages2[whichImage2]+'" border=0>');
  }
  else if(whichImage2==3){
  document.write('<img src="'+theImages2[whichImage2]+'" border=0>');
  }
  else if(whichImage2==4){
  document.write('<img src="'+theImages2[whichImage2]+'" border=0>');
  }
  else if(whichImage2==5){
  document.write('<img src="'+theImages2[whichImage2]+'" border=0>');
  }
}

function greeklifeLoadMenus() {
  if (window.mm_menu_6) return;
  
  // Interfraternity Council
  window.mm_menu_6 = new Menu("root",150,20,"Arial, Helvetica, sans-serif",12,"#000000","#000000","#ffffff","#9a3d14","left","middle",3,0,100,-5,7,true,true,true,0,true,true);
  mm_menu_6.addMenuItem("Chapter&nbsp;directory","location='http://www.elon.edu/e-web/students/greek_life/ifc_chapters.xhtml'");
  mm_menu_6.addMenuItem("Officers","location='http://www.elon.edu/e-web/students/greek_life/ifc_officers.xhtml'");
  mm_menu_6.addMenuItem("Policies","location='http://www.elon.edu/e-web/students/greek_life/policies.xhtml'");
  mm_menu_6.addMenuItem("Events","location='http://www.elon.edu/e-web/students/greek_life/events.xhtml'");
  mm_menu_6.addMenuItem("Men's&nbsp;Recruitment","location='http://www.elon.edu/e-web/students/greek_life/ifc_recruitment.xhtml'");
  //mm_menu_6.addMenuItem("NPHC Garden","location='http://www.elon.edu/e-web/students/greek_life/nphc_garden.xhtml'"); 
  //mm_menu_6.addMenuItem("GAMMA","location='http://www.elon.edu/e-web/students/greek_life/gamma.xhtml'"); 
  mm_menu_6.addMenuItem("Other&nbsp;Links","location='http://www.elon.edu/e-web/students/greek_life/other_links.xhtml'");   
  mm_menu_6.addMenuItem("Contact&nbsp;Us","location='http://www.elon.edu/e-web/students/greek_life/contact_us.xhtml'");     
  mm_menu_6.hideOnMouseOut=true;
  mm_menu_6.menuBorder=1;
  mm_menu_6.menuLiteBgColor='#9a3d14';
  mm_menu_6.menuBorderBgColor='#9a3d14';
  mm_menu_6.bgColor='#9a3d14';
  
  // Panhellenic Council
  window.mm_menu_7 = new Menu("root",150,20,"Arial, Helvetica, sans-serif",12,"#000000","#000000","#ffffff","#9a3d14","left","middle",3,0,100,-5,7,true,true,true,0,true,true);
  mm_menu_7.addMenuItem("Chapter&nbsp;Directory","location='http://www.elon.edu/e-web/students/greek_life/phc_chapters.xhtml'");
  mm_menu_7.addMenuItem("Officers","location='http://www.elon.edu/e-web/students/greek_life/phc_officers.xhtml'");
  mm_menu_7.addMenuItem("Policies","location='http://www.elon.edu/e-web/students/greek_life/policies.xhtml'");
  mm_menu_7.addMenuItem("Events","location='http://www.elon.edu/e-web/students/greek_life/events.xhtml'");
  mm_menu_7.addMenuItem("Women's&nbsp;Recruitment","location='http://www.elon.edu/e-web/students/greek_life/phc_recruitment.xhtml'");
  //mm_menu_7.addMenuItem("GAMMA","location='http://www.elon.edu/e-web/students/greek_life/gamma.xhtml'");  
  mm_menu_7.addMenuItem("Other&nbsp;Links","location='http://www.elon.edu/e-web/students/greek_life/other_links.xhtml'");  
  mm_menu_7.addMenuItem("Contact&nbsp;Us","location='http://www.elon.edu/e-web/students/greek_life/contact_us.xhtml'");    
  mm_menu_7.hideOnMouseOut=true;
  mm_menu_7.menuBorder=1;
  mm_menu_7.menuLiteBgColor='#9a3d14';
  mm_menu_7.menuBorderBgColor='#9a3d14';
  mm_menu_7.bgColor='#9a3d14';
  
  // National Pan-Hellenic Council
  window.mm_menu_8 = new Menu("root",150,20,"Arial, Helvetica, sans-serif",12,"#000000","#000000","#ffffff","#9a3d14","left","middle",3,0,100,-5,7,true,true,true,0,true,true);
  mm_menu_8.addMenuItem("Fraternities","location='http://www.elon.edu/e-web/students/greek_life/nphc_fraternities.xhtml'");
  mm_menu_8.addMenuItem("Sororities","location='http://www.elon.edu/e-web/students/greek_life/nphc_sororities.xhtml'");  
  mm_menu_8.addMenuItem("Officers","location='http://www.elon.edu/e-web/students/greek_life/nphc_officers.xhtml'");
  mm_menu_8.addMenuItem("Policies","location='http://www.elon.edu/e-web/students/greek_life/policies.xhtml'");
  mm_menu_8.addMenuItem("Events","location='http://www.elon.edu/e-web/students/greek_life/events.xhtml'");
  //mm_menu_8.addMenuItem("GAMMA","location='http://www.elon.edu/e-web/students/greek_life/gamma.xhtml'"); 
  mm_menu_8.addMenuItem("NPHC Garden","location='http://www.elon.edu/e-web/students/greek_life/nphc_garden.xhtml'"); 
  mm_menu_8.addMenuItem("Intake","location='http://www.elon.edu/e-web/students/greek_life/intake.xhtml'");   
  mm_menu_8.addMenuItem("Other&nbsp;Links","location='http://www.elon.edu/e-web/students/greek_life/other_links.xhtml'");  
  mm_menu_8.addMenuItem("Contact&nbsp;Us","location='http://www.elon.edu/e-web/students/greek_life/contact_us.xhtml'");    
  mm_menu_8.hideOnMouseOut=true;
  mm_menu_8.menuBorder=1;
  mm_menu_8.menuLiteBgColor='#9a3d14';
  mm_menu_8.menuBorderBgColor='#9a3d14';
  mm_menu_8.bgColor='#9a3d14';
  
  // Potential New Member Info
  window.mm_menu_9 = new Menu("root",150,20,"Arial, Helvetica, sans-serif",12,"#000000","#000000","#ffffff","#9a3d14","left","middle",3,0,100,-5,7,true,true,true,0,true,true);
  mm_menu_9.addMenuItem("FAQ","location='http://www.elon.edu/e-web/students/greek_life/newmem_faq.xhtml'");
  mm_menu_9.addMenuItem("Terminology","location='http://www.elon.edu/e-web/students/greek_life/terminology.xhtml'");  
  mm_menu_9.addMenuItem("Requirements","location='http://www.elon.edu/e-web/students/greek_life/requirements.xhtml'");
  mm_menu_9.addMenuItem("Registration","location='http://www.elon.edu/e-web/students/greek_life/recruitment.xhtml'");
  mm_menu_9.hideOnMouseOut=true;
  mm_menu_9.menuBorder=1;
  mm_menu_9.menuLiteBgColor='#9a3d14';
  mm_menu_9.menuBorderBgColor='#9a3d14';
  mm_menu_9.bgColor='#9a3d14';  
  
  // Parent Information
  window.mm_menu_10 = new Menu("root",150,20,"Arial, Helvetica, sans-serif",12,"#000000","#000000","#ffffff","#9a3d14","left","middle",3,0,100,-5,7,true,true,true,0,true,true);
  mm_menu_10.addMenuItem("FAQ","location='http://www.elon.edu/e-web/students/greek_life/parent_faq.xhtml'");
  mm_menu_10.addMenuItem("Costs&nbsp;of&nbsp;Membership","location='http://www.elon.edu/e-web/students/greek_life/costs.xhtml'");  
  mm_menu_10.addMenuItem("Contact&nbsp;Us","location='http://www.elon.edu/e-web/students/greek_life/contact_us.xhtml'");
  mm_menu_10.hideOnMouseOut=true;
  mm_menu_10.menuBorder=1;
  mm_menu_10.menuLiteBgColor='#9a3d14';
  mm_menu_10.menuBorderBgColor='#9a3d14';
  mm_menu_10.bgColor='#9a3d14';    
  
  // Parent Information
  window.mm_menu_11 = new Menu("root",150,20,"Arial, Helvetica, sans-serif",12,"#000000","#000000","#ffffff","#9a3d14","left","middle",3,0,100,-5,7,true,true,true,0,true,true);
  mm_menu_11.addMenuItem("Chapter&nbsp;Advisors","location='/e-web/students/greek_life/chapter_advisors.xhtml'");
  mm_menu_11.addMenuItem("Faculty&nbsp;Advisors","location='/e-web/students/greek_life/faculty_advisors.xhtml'");  
  mm_menu_11.addMenuItem("Corporation&nbsp;Board&nbsp;Officers","location='/e-web/students/greek_life/corporation_board.xhtml'");
  mm_menu_11.addMenuItem("Advising&nbsp;Manual","location='/students/greek_life/advisorsmanual.pdf'");
  mm_menu_11.addMenuItem("Contact&nbsp;Us","location='/e-web/students/greek_life/contact_us.xhtml'");  
  mm_menu_11.hideOnMouseOut=true;
  mm_menu_11.menuBorder=1;
  mm_menu_11.menuLiteBgColor='#9a3d14';
  mm_menu_11.menuBorderBgColor='#9a3d14';
  mm_menu_11.bgColor='#9a3d14';   

  // Office of Greek Life
  window.mm_menu_12 = new Menu("root",150,20,"Arial, Helvetica, sans-serif",12,"#000000","#000000","#ffffff","#9a3d14","left","middle",3,0,100,-5,7,true,true,true,0,true,true);
  mm_menu_12.addMenuItem("Housing","location='http://www.elon.edu/e-web/students/greek_life/housing.xhtml'");
  mm_menu_12.addMenuItem("Forms","location='http://www.elon.edu/e-web/students/greek_life/forms.xhtml'");  
  mm_menu_12.addMenuItem("Honoraries","location='http://www.elon.edu/e-web/students/greek_life/honoraries.xhtml'");
  mm_menu_12.addMenuItem("Chapter&nbsp;Statistics","location='http://www.elon.edu/e-web/students/greek_life/stats.xhtml'");
  mm_menu_12.addMenuItem("Recent&nbsp;Events","location='http://www.elon.edu/e-web/students/greek_life/recent_events.xhtml '");
  mm_menu_12.addMenuItem("Philanthropy&nbsp;&amp;&nbsp;Service","location='http://www.elon.edu/e-web/students/greek_life/service.xhtml'");
  mm_menu_12.addMenuItem("Annual&nbsp;Report","location='http://www.elon.edu/e-web/students/greek_life/annualreport.xhtml'");
  mm_menu_12.hideOnMouseOut=true;
  mm_menu_12.menuBorder=1;
  mm_menu_12.menuLiteBgColor='#9a3d14';
  mm_menu_12.menuBorderBgColor='#9a3d14';
  mm_menu_12.bgColor='#9a3d14';   

}
