/***********************************************************************************
*	(c) Ger Versluis 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)
*	For info write to menus@burmees.nl		          *
*	You may remove all comments for faster loading	          *		
***********************************************************************************/

	var NoOffFirstLineMenus=7;		   // Number of first level items
	var LowBgColor='#5388BE';			// Background color when mouse is not over
	var LowSubBgColor='#5388BE';	   // Background color when mouse is not over on subs
	var HighBgColor='#5179A5';		   // Background color when mouse is over
	var HighSubBgColor='#5179A5';	   // Background color when mouse is over on subs
	var FontLowColor='#ffffff';		// Font color when mouse is not over
	var FontSubLowColor='#ffffff';	   // Font color subs when mouse is not over
	var FontHighColor='#ffffff';		   // Font color when mouse is over
	var FontSubHighColor='#ffffff';	   // Font color subs when mouse is over
	var BorderColor='#A4B1C9';		         // Border color
	var BorderSubColor='#A4B1C9';	         // Border color for subs
	var BorderWidth=1;				   // Border width
	var BorderBtwnElmnts=1;			   // Border between elements 1 or 0
	var FontFamily="tahoma, arial, helvitica, sans serif"	// Font family menu items
	var FontSize=9;				      // Font size menu items
	var FontBold=0;				      // Bold menu items 1 or 0
	var FontItalic=0;				      // Italic menu items 1 or 0
	var MenuTextCentered='left';		// Item text position 'left', 'center' or 'right'
	var MenuCentered='center';			// Menu horizontal position 'left', 'center' or 'right'
	var MenuVerticalCentered='top';	// Menu vertical position 'top', 'middle','bottom' or static
	var ChildOverlap=0;				   // horizontal overlap child/ parent
	var ChildVerticalOverlap=0;		// vertical overlap child/ parent
	var StartTop=154;				      // Menu offset x coordinate
	var StartLeft=110;		         // Menu offset y coordinate
	var VerCorrect=90;			      // Multiple frames y correction
	var HorCorrect=0;				      // Multiple frames x correction
	var LeftPaddng=9;				      // Left padding
	var TopPaddng=2;				      // Top padding
	var FirstLineHorizontal=1;			// SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
	var MenuFramesVertical=1;			// Frames in cols or rows 1 or 0
	var DissapearDelay=1000;			// delay before menu folds in
	var TakeOverBgColor=1;		      // Menu frame takes over background color subitem frame
	var FirstLineFrame='navig';      // Frame where first level appears
	var SecLineFrame='space';	      // Frame where sub levels appear
	var DocTargetFrame='space';      // Frame where target documents appear
	var TargetLoc='';		            // span id for relative positioning
	var HideTop=0;			            // Hide first level when loading new document 1 or 0
	var MenuWrap=1;		            // enables/ disables menu wrap 1 or 0
	var RightToLeft=0;	            // enables/ disables right to left unfold 1 or 0
	var UnfoldsOnClick=0;            // Level 1 unfolds onclick/ onmouseover
	var WebMasterCheck=0;            // menu tree checking on or off 1 or 0
	var ShowArrow=1;		            // Uses arrow gifs when 1
	var KeepHilite=1;		            // Keep selected path highligthed
	var Arrws=['/images/tri.gif',5,10,'/images/tridown.gif',10,5,'/images/trileft.gif',5,10];	// Arrow source, width and height

function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}

function getCookie(cookieName) {
   var theCookie=""+document.cookie;
   var ind=theCookie.indexOf(cookieName);
   if (ind==-1 || cookieName=="") return "";
   var ind1=theCookie.indexOf(';',ind);
   if (ind1==-1) ind1=theCookie.length;
   return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
}

function setCookie(cookieName,cookieValue,nDays) {
	var today = new Date();
	var expire = new Date();
	if (nDays==null || nDays==0) nDays=1;
	expire.setTime(today.getTime() + 3600000*24*nDays);
	document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString();
}

function deleteCookie (cookieName) {
	var today = new Date();
	var expired = new Date(today.getTime() - 48 * 60 * 60 * 1000); // less 2 days
	document.cookie=cookieName + "=null; expires=" + expired.toGMTString();
}

// Menu tree
//	MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
//	For rollover images set "Text to show" to:  "rollover:Image1.jpg:Image2.jpg"

Menu1=new Array("About Us","/about.shtml","",4,19,90);
   Menu1_1=new Array("What is TEKA?","/about.shtml","",0,19,120);
   Menu1_2=new Array("The Committee","/committee.shtml","",0,19,120);
   Menu1_3=new Array("Newsletters","/newsletters.shtml","",0,19,120);
   Menu1_4=new Array("Contact Us","/contact.shtml","",0,19,120);

Menu2=new Array("The Series","/calendar.shtml","",3,19,90);
   Menu2_1=new Array("2010 Calendar","/calendar.shtml","",0,19,120);
   Menu2_2=new Array("2010 Series Points","/series_points.shtml","",0,19,120);
   Menu2_3=new Array("2010 Race Reports","/race_reports.shtml","",0,19,120);	


Menu3=new Array("Rules","/rules.shtml","",2,19,90);
   Menu3_1=new Array("Chapter 51","/chapter51.shtml","",0,19,120);
   Menu3_2=new Array("Supp Regs","/suppregs.shtml","",0,19,120);

Menu4=new Array("Forms","/forms.shtml","",2,19,90);
   Menu4_1=new Array("Licence Forms","/forms.shtml","",0,19,120);
   Menu4_2=new Array("Event Forms","/event_forms.shtml","",0,19,120);

Menu5=new Array("For Sale","/forsale.shtml","",5,19,90);
   Menu5_1=new Array("New Karts","/forsale_new.shtml","",0,19,120);
   Menu5_2=new Array("Used Karts","/forsale.shtml","",0,19,120);
   Menu5_3=new Array("Other Items","/forsale_other.shtml","",0,19,120);
   Menu5_4=new Array("Wanted Items","/wanted.shtml","",0,19,120);
   Menu5_5=new Array("Member Services","/member_services.shtml","",0,19,120);

Menu6=new Array("Teams","/teams.shtml","",1,19,90);
   Menu6_1=new Array("Team Canberra","http://www.endurancekarting.com.au/","",0,19,120);

Menu7=new Array("Links","/links.shtml","",0,19,90);



