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.mm_menu_news) return;
  window.mm_menu_news = new Menu("root",191,16,"Arial, Helvetica, sans-serif",10,"#333333","#ffffff","#c1bcbe","#FF0033","left","middle",3,0,1000,-5,7,true,true,true,0,false,true);
//  mm_menu_news.addMenuItem("2009&nbsp;MEMBERS&nbsp;DINNER","location='http://www.gia.org.uk/gia_dinner_tickets.php'");
  mm_menu_news.addMenuItem("2009&nbsp;AGM","location='http://www.gia.org.uk/2009_agm.html'");
  mm_menu_news.addMenuItem("2008&nbsp;PHOTO&nbsp;COMPETITION","location='http://www.gia.org.uk/2008_photo_comp.html'");
//  mm_menu_news.addMenuItem("2008&nbsp;AGM","location='http://www.gia.org.uk/2008_agm.html'");
//  mm_menu_news.addMenuItem("CPD&nbsp;EVENTS","location='http://www.gia.org.uk/cpd_events.html'");
  mm_menu_news.addMenuItem("MEETING&nbsp;MINUTES","location='http://www.gia.org.uk/minutes.html'");
  mm_menu_news.addMenuItem("GUDP","location='http://www.gia.org.uk/gudp.html'");
   mm_menu_news.hideOnMouseOut=true;
   mm_menu_news.menuBorder=0;
   mm_menu_news.menuLiteBgColor='#ffffff';
   mm_menu_news.menuBorderBgColor='#ffffff';
   mm_menu_news.bgColor='#ffffff';
  window.mm_menu_history = new Menu("root",191,16,"Arial, Helvetica, sans-serif",10,"#333333","#ffffff","#c1bcbe","#FF0033","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_history.addMenuItem("HISTORY&nbsp;OF&nbsp;THE&nbsp;GIA","location='http://www.gia.org.uk/history.html'");
  mm_menu_history.addMenuItem("THOMSON&nbsp;HEADSTONE","location='http://www.gia.org.uk/thomson_memorial.html'");
//  mm_menu_history.addMenuItem("THOMSON&nbsp;SCHOLARSHIP","location='http://www.gia.org.uk/thomson_scholarship.html'");
   mm_menu_history.hideOnMouseOut=true;
   mm_menu_history.menuBorder=0;
   mm_menu_history.menuLiteBgColor='#ffffff';
   mm_menu_history.menuBorderBgColor='#ffffff';
   mm_menu_history.bgColor='#ffffff';
  window.mm_menu_about_the_gia = new Menu("root",191,16,"Arial, Helvetica, sans-serif",10,"#333333","#ffffff","#c1bcbe","#FF0033","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_about_the_gia.addMenuItem("COMMUNICATIONS","location='http://www.gia.org.uk/communications.html'");
  mm_menu_about_the_gia.addMenuItem("EDUCATION","location='http://www.gia.org.uk/education.html'");
  mm_menu_about_the_gia.addMenuItem("PRACTICE/CPD","location='http://www.gia.org.uk/practice_cpd.html'");
  mm_menu_about_the_gia.addMenuItem("ARCHITECTURE, PEOPLE &amp; PLACES","location='http://www.gia.org.uk/ap_p.html'");
  mm_menu_about_the_gia.addMenuItem("PUBLICATIONS","location='http://www.gia.org.uk/publications.html'");
   mm_menu_about_the_gia.hideOnMouseOut=true;
   mm_menu_about_the_gia.menuBorder=0;
   mm_menu_about_the_gia.menuLiteBgColor='#ffffff';
   mm_menu_about_the_gia.menuBorderBgColor='#ffffff';
   mm_menu_about_the_gia.bgColor='#ffffff';
  window.mm_menu_awards = new Menu("root",191,16,"Arial, Helvetica, sans-serif",10,"#333333","#ffffff","#c1bcbe","#FF0033","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_awards.addMenuItem("2009&nbsp;WINNERS","location='http://www.gia.org.uk/awards_current.html'");
  mm_menu_awards.addMenuItem("2009&nbsp;STUDENT&nbsp;AWARDS","location='http://www.gia.org.uk/student_awards_2009.html'");
  mm_menu_awards.addMenuItem("PAST&nbsp;WINNERS","location='http://www.gia.org.uk/awards_past.php'");
  mm_menu_awards.addMenuItem("HISTORY&nbsp;OF&nbsp;AWARDS","location='http://www.gia.org.uk/awards_history.html'");
   mm_menu_awards.hideOnMouseOut=true;
   mm_menu_awards.menuBorder=0;
   mm_menu_awards.menuLiteBgColor='#ffffff';
   mm_menu_awards.menuBorderBgColor='#ffffff';
   mm_menu_awards.bgColor='#ffffff';
  window.mm_menu_links = new Menu("root",191,16,"Arial, Helvetica, sans-serif",10,"#333333","#ffffff","#c1bcbe","#FF0033","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_links.addMenuItem("LINKS","location='http://www.gia.org.uk/links.html'");
  mm_menu_links.addMenuItem("OUR&nbsp;SPONSOR","location='http://www.gia.org.uk/sikkens.html'");
  mm_menu_links.addMenuItem("GUDP","location='http://www.gia.org.uk/gudp.html'");
   mm_menu_links.hideOnMouseOut=true;
   mm_menu_links.menuBorder=0;
   mm_menu_links.menuLiteBgColor='#ffffff';
   mm_menu_links.menuBorderBgColor='#ffffff';
   mm_menu_links.bgColor='#ffffff';

  mm_menu_links.writeMenus();
}
