/* prefs - these are all of the options available to configure the menu
-- NOTE: in these examples the "this" should be replaced with the name of the menu.
See http://perso.wanadoo.es/mapintanel/mapbdhtml/menu.html for more info.

//behaviour
var autoHide_activate = true; // If true the menu hides after the number of
var autoHide_seconds = 6;     // seconds defined in autoHide_seconds, since
                              // 0.8.7 update it can be 0.01 or greater
//prefs
this.m_vertical = true;                         // If true menu is vertical
this.sm_width = 112;                            // Width of submenu items
this.sm_height = 25;                            // Height of submenu items
this.h_offset = -3;                             // Horizontal offset
this.v_offset = 3;                              // Vertical offset
this.sm_border = 2;                             // Submenu border. Even or 0
this.l_m_color = '#FF9933';                     // If sm_border > 0 border
// or this.l_m_color = 'url(images/fons_off.gif)'    color or image of initial menu 
this.l_sm_color = '#CCFFFF';                    // If sm_border > 0 border
                                                //    color of submenus
this.m_color  = '#3333AA';                      // Color of initial menu
this.m_a_color  = '#3333AA';                    // Initial Menu when mouseOver
this.m_txt_color  = '#FFFFCC';                  // Initial text color
this.m_txt_a_color  = '#FFFFCC';                // Initial mouseOver text color
this.m_txt_weight = 900;                        // Initial text weight
this.m_txt_link_weight = 900;                   // Mouseover link weight
this.m_txt_decoration = 'none';                 // Initial text decoration
this.m_txt_link_decoration = 'none';            // Mouseover link decoration
this.sm_color = '#FFCC99';                      // Item color of submenus
this.sm_a_color = '#FFFF99';                    // Item color when mouseOver
this.txt_color  = 'black';                      // Color del submenu
this.txt_a_color  = 'white';                    // Color of mouseover
this.txt_i_color  = 'gray';                     // Color of inactive items
this.txt_weight = 900;                          // Text weight
this.txt_link_weight = 900;                     // Mouseover link weight
this.txt_decoration = 'none';                   // Text decoration
this.txt_link_decoration = 'none';              // Mouseover link decoration
this.link_cursor = 'pointer';                   // Mouseover cursor
this.m_dec = '|';                               // Right decoration of menu
this.sm_sep = 'url(images/sep.gif)';            // Separator Image
this.sm_arrow = 'url(images/f_dreta.gif)';        // Arrow image
this.sm_a_arrow = 'url(images/f_dreta.gif)';      // Arrow image highlighted
this.sm_left_arrow = 'url(images/f_dreta.gif)';   // Arrow image
this.sm_a_left_arrow = 'url(images/f_dreta.gif)'; // Arrow image highlighted
this.menu_back_st = 'menuBackSt';                 // Style variables of font
this.submenu_back_st = 'submenuBackSt';         //     and another preferences
this.menu_st = 'menuSt';                        //     in mapb_menu_style.css
this.submenu_st = 'submenuSt';                  //
this.submenu_st_inactive = 'submenuStInactive'; //
this.sm_direction = 'right';
this.vertical_adjust = 0;
this.horizontal_adjust = 0
New in 0.8.7 Update
this.m_bottom_decor = [0,'solid','#000000']; //bottom decoration of items of menu
this.sm_bottom_decor = [2,'inset','#FFFFFF']; //bottom decoration of items of submenu
//
*/
var autoHide_activate = true; 
var autoHide_seconds = .6; 

mainMenu = new Menu ('mainMenu',310,0);
mainMenu.sm_width = 151;
mainMenu.h_offset = 0;
mainMenu.v_offset = 5;
mainMenu.m_color = '#006699';
mainMenu.m_a_color = '#0084C4';
mainMenu.m_vertical = false;
mainMenu.m_txt_color = '#ffffff';
mainMenu.m_txt_a_color  = '#ffffff';
mainMenu.m_txt_weight = 900;
mainMenu.m_txt_link_weight = 900;  
mainMenu.sm_color  = '#006699'; 
mainMenu.sm_a_color  = '#0084C4'; 
mainMenu.txt_color  = '#ffffff';  
mainMenu.txt_a_color  = '#ffffff'; 
mainMenu.txt_weight = 500;
mainMenu.txt_link_weight = 500; 
mainMenu.sm_bottom_decor = [0,'solid','#000000'];    

//Menu definition

mainMenu.addItem ('<a href="plays.htm" class="menu">THE&nbsp;PLAYS</a>',{'url':'','background':'#336699','backgroundA':'#6699cc','theWidth':80},false);
        mainMenu.addItem ('Now&nbsp;Playing',{'url':'plays.htm','background':'#336699','backgroundA':'#6699cc','theWidth':110},false);
        mainMenu.addItem ('Play&nbsp;Auditions',{'url':'play_auditions.htm','background':'#336699','backgroundA':'#6699cc','theWidth':110},false);
        mainMenu.addItem ('Events&nbsp;&amp;&nbsp;Workshops',{'url':'events.htm','background':'#336699','backgroundA':'#6699cc','theWidth':110},false);
        mainMenu.addItem ('Calendar',{'url':'calendar.htm','background':'#336699','backgroundA':'#6699cc','theWidth':110},true);

mainMenu.addItem ('<a href="tickets.htm" class="menu">TICKETS</a>',{'url':'','background':'#663366','backgroundA':'#996699','theWidth':75},false);
	mainMenu.addItem ('Prices',{'url':'tickets.htm#prices','background':'#663366','backgroundA':'#996699','theWidth':120},false);
	mainMenu.addItem ('Where&nbsp;to&nbsp;Buy',{'url':'tickets.htm#where','background':'#663366','backgroundA':'#996699','theWidth':120},false);
	mainMenu.addItem ('&nbsp;',{'url':'tickets.htm#groupdisc','background':'#663366','backgroundA':'#996699','theWidth':120},true);
		
mainMenu.addItem ('<a href="about.htm" class="menu">ABOUT&nbsp;US</a>',{'url':'','background':'#ff6600','backgroundA':'#ff9966','theWidth':75},false);
	mainMenu.addItem ('Who&nbsp;We&nbsp;Are',{'url':'about.htm#whoweare','background':'#ff6600','backgroundA':'#ff9966','theWidth':120},false);
	mainMenu.addItem ('Our&nbsp;History',{'url':'ourhistory.htm','background':'#ff6600','backgroundA':'#ff9966','theWidth':120},false);
	mainMenu.addItem ('Directions&nbsp;&amp;&nbsp;Map',{'url':'directions.htm','background':'#ff6600','backgroundA':'#ff9966','theWidth':120},true);

	mainMenu.addItem ('<a href="interact.htm" class="menu">INTERACT</a>',{'url':'','background':'#006600','backgroundA':'#99cc99','theWidth':80},false);
	mainMenu.addItem ('Join&nbsp;Us',{'url':'interact.htm#join','background':'#006600','backgroundA':'#99cc99','theWidth':120},false);
	mainMenu.addItem ('Join&nbsp;our&nbsp;E-mail&nbsp;List',{'url':'interact.htm#maillist','background':'#006600','backgroundA':'#99cc99','theWidth':120},false);
	mainMenu.addItem ('Newsletters',{'url':'newsletters.htm','background':'#006600','backgroundA':'#99cc99','theWidth':120},false);
	mainMenu.addItem ('Contact&nbsp;&nbsp;Us',{'url':'contact.htm','background':'#006600','backgroundA':'#99cc99','theWidth':120},true);
	
//	mainMenu.addItem ('<a href="playwriting-info.htm" class="menu">&nbsp;PLAYWRITING&nbsp;FESTIVAL</a>',{'url':'','background':'#dc143c','backgroundA':'#fa8072','theWidth':140},false);
//    mainMenu.addItem ('Information',{'url':'playwriting-info.htm','background':'#dc143c','backgroundA':'#fa8072','theWidth':140},false);
//	mainMenu.addItem ('Application Form',{'url':'playwriting-entry_form.htm','background':'#dc143c','backgroundA':'#fa8072','theWidth':140},true);
	
mainMenu.addItem ('HOME',{'url':'home.htm','background':'#333399','backgroundA':'#9999cc','theWidth':75},true);

mainMenu.doMenu();
/*
mainMenu.youAreHere ('yah',15,95,110,25,'You are here','');
*/

//control
if (document.layers){
	document.onMouseDown = hideMenus;
} else {
	document.body.onclick = hideMenus;
}

