var m; m=new Array();
// ----------------- dont edit above this line ----------------------

// preserve the array structure adding or deleting rows to customise the menu

// menu can have up to 3 levels
// each valus is an array as follows array(<menu item name>, <url link>, new Array)
//m[x] for level 1 menu items (main menu items) where x is the level 1 position 
//m[x][2][y] for level 2 menu items (sub menu items) where x is the level 1 position and y is the level 2 position
//m[x][2][y][2][z] for level 3 menu items (sub sub menu items) where x is level 1 position, y is level 2 position, and z is level 3 position



m[0] = new Array(			"Home",					"index.html",			new Array());							// main item 1
m[1] = new Array(			"About Us",			"administration.html",			new Array());			// main item 2
m[1][2][0] = new Array(			"Club Administration",				"administration.html",			new Array());					// sub item 2.1
m[1][2][1] = new Array(			"Club Captain",				"captain.html",			new Array());					// sub item 2.2
m[1][2][2] = new Array(			"Club Officals",				"officals.html",			new Array());					// sub item 2.3
m[1][2][3] = new Array(			"Code of Conduct",				"code-of-conduct.html",			new Array());					// sub item 2.4
m[2] = new Array(			"News",				"news2.html",		new Array());			// main item 3
m[2][2][0] = new Array(			"Joining the Club",				"news2.html",			new Array());					// sub item 3.1
m[2][2][1] = new Array(			"Queensland Sprint Champs",				"news6.html",			new Array());					// sub item 3.2
m[2][2][2] = new Array(			"Brisbane Restricted Meet",				"news4.html",			new Array());					// sub item 3.3
m[2][2][3] = new Array(			"Pelican Waters Meet",				"news5.html",			new Array());					// sub item 3.4
m[2][2][4] = new Array(			"Congratulations to our Team ",				"news7.html",			new Array());					// sub item 3.5
m[3] = new Array(			"Training",			"training.html",		new Array());						// main item 4
m[3][2][0] = new Array(			"Training Program",				"training.html",			new Array());					// sub item 4.1
m[3][2][1] = new Array(			"Message from the Coach",				"message-coach.html",			new Array());					// sub item 4.2
m[4] = new Array(			"Competition",			"club-calendar.html",		new Array());					// main item 5
m[4][2][0] = new Array(			"Club Calendar",				"club-calendar.html",			new Array());					// sub item 5.1
m[4][2][1] = new Array(			"BSA & SQ Calendar",				"open-comp.html",			new Array());					// sub item 5.2
m[5] = new Array(			"Photos",			"photos.html",		new Array());					// main item 6
m[6] = new Array(			"Results",			"records.html",		new Array());					// main item 7
m[6][2][0] = new Array(			"Junior Excellence",				"excellence.html",			new Array());					// sub item 7.1
m[6][2][1] = new Array(			"Club Records",				"records.html",			new Array());					// sub item 7.2
m[6][2][2] = new Array(			"Major Trophy",				"major-trophy.html",			new Array());					// sub item 7.3
m[7] = new Array(			"Links",			"links.html",		new Array());					// main item 8
m[7][2][0] = new Array(			"Club Sponsors",				"sponsors.html",			new Array());					// sub item 8.1
m[7][2][1] = new Array(			"Links",				"linnks.html",			new Array());					// sub item 8.2
m[8] = new Array(			"Contact Us",			"contact-us.html",		new Array());					// main item 9


// ----------------- dont edit below this line ----------------------


document.write('<div class="menu"><ul>');


var i;
var a_style = '';
for (i=0; i<m.length; i++){
  
  // give the bottom item no border
  if (i==m.length-1) { a_style = "style='border-bottom:none;' "; }
	
  if (m[i][2].length == 0) { // if the main menu item has no submenu items

  	document.write('	<li><a '+a_style+'href="'+m[i][1]+'" title="'+m[i][0]+'">'+m[i][0]+'</a></li>');
  
  } else { // if the main menu item has no submenu items
	  
    document.write('	<li><a class="hide" href="'+m[i][1]+'" title="'+m[i][0]+'">'+m[i][0]+'</a>');
	document.write('	  	<!--[if lte IE 6]>	<a href="'+m[i][1]+'">'+m[i][0]+' <table><tr><td>	<![endif]-->');

    document.write('		<ul>');
	
    var j;
    for (j=0; j<m[i][2].length; j++){
		
   		if (m[i][2][j][2].length == 0) { // if the submenu item has no submenu items
	  
	      	document.write('	<li><a href="'+m[i][2][j][1]+'" title="'+m[i][2][j][0]+'">'+m[i][2][j][0]+'</a></li>');

  	 	} else {

			document.write('	<li><a class="hide" href="'+m[i][2][j][1]+'" title="'+m[i][2][j][0]+'">'+m[i][2][j][0]+'</a>');
			document.write('	  	<!--[if lte IE 6]>	<a href="'+m[i][2][j][1]+'">'+m[i][2][j][0]+' <table><tr><td>	<![endif]-->');

    		document.write('		<ul>');
			var k;
			for (k=0; k<m[i][2][j][2].length; k++) {
				
	      		document.write('	<li><a href="'+m[i][2][j][2][k][1]+'" title="'+m[i][2][j][2][k][0]+'">'+m[i][2][j][2][k][0]+'</a></li>');
			
			}// end for loop for level 3 
   			document.write('		</ul>');
			document.write('			<!--[if lte IE 6]>	</td></tr></table>	</a>	<![endif]-->');
    		document.write('		</li>');
	 	}
	  
    }// end for loop for level 2 
    document.write('		</ul>');
	document.write('			<!--[if lte IE 6]>	</td></tr></table>	</a>	<![endif]-->');
    document.write('		</li>');
  }
}// end for loop for level 1 

document.write('</ul></div>');

/* example of what the document.write loops should produce


 <div class="menu">
<ul>
<li><a class="hide" href="index.html">Home</a>

	<!--[if lte IE 6]>	<a href="index.html">Home <table><tr><td>	<![endif]-->
	
	<ul>
	<li><a href="index.html" title="sub 1.1">sub 1.1</a></li>
	<li><a href="index.html" title="sub 1.2">sub 1.2</a></li>
	<li><a href="index.html" title="sub 1.3">sub 1.3</a></li>
	<li><a href="index.html" title="sub 1.4">sub 1.5</a></li>
	<li><a class="hide" href="index.html" title="sub 1.5">sub 1.5</a>
	
		<!--[if lte IE 6]>
		<a class="sub" href="index.html" title="sub 1.5">sub 1.5
		<table><tr><td>
		<![endif]-->

		<ul>
		<li><a href="index.html" title="sub 1.4.1">sub 1.4.1</a></li>
		<li><a href="indexhtml" title="sub 1.4.2">sub 1.4.2</a></li>
		<li><a href="index.html" title="sub 1.4.3">sub 1.4.3</a></li>
		</ul>

		<!--[if lte IE 6]>
		</td></tr></table>
		</a>
		<![endif]-->

	</li>	
	<li><a href="index.html" title="sub 1.4">sub 1.4</a></li>
	<li><a href="index.html" title="sub 1.5">sub 1.5</a></li>
	<li><a href="index.html" title="sub 1.6">sub 1.6</a></li>
	</ul>

	<!--[if lte IE 6]>	</td></tr></table>	</a>	<![endif]-->

</li>

<li><a class="hide" href="contact.html">Contact Us</a>

	<!--[if lte IE 6]>
	<a href="contact.html">Contact Us
	<table><tr><td>
	<![endif]-->

	<ul>
	<li><a href="index.html" title="sub 2.1">sub 2.1</a></li>
	<li><a href="index.html" title="sub 2.2">sub 2.2</a></li>
	<li><a href="index.html" title="sub 2.3">sub 2.3</a></li>

	</ul>

	<!--[if lte IE 6]>
	</td></tr></table>
	</a>
	<![endif]-->

</li>

<li><a class="hide" href="products.html">Products</a>

	<!--[if lte IE 6]>
	<a href="products.html">Products
	<table><tr><td>
	<![endif]-->

	<ul>
	<li><a href="index.html" title="sub 3.1">sub 3.1</a></li>
	<li><a href="index.html" title="sub 3.2">sub 3.2</a></li>
	<li><a href="index.html" title="sub 3.3">sub 3.3</a></li>
	</ul>

	<!--[if lte IE 6]>
	</td></tr></table>
	</a>
	<![endif]-->

</li>

<li><a href="faq.html">FAQ</a></li>

<li><a href="warranty.html">Warranty</a></li>

<li><a href="pricing.html">Pricing & Estimator</a></li>

<li><a class="hide" href="book.html">Book Online</a>

	<!--[if lte IE 6]>
	<a href="book.html">Book Online
	<table><tr><td>
	<![endif]-->

	<ul>
	<li><a href="index.html" title="sub 7.1">sub 7.1</a></li>
	<li><a href="index.html" title="sub 7.2">sub 7.2</a></li>
	<li><a href="index.html" title="sub 7.3">sub 7.3</a></li>
	<li><a href="index.html" title="sub 7.4">sub 7.4</a></li>
	</ul>

	<!--[if lte IE 6]>
	</td></tr></table>
	</a>
	<![endif]-->

</li>

<li><a href="career.html" title="career">Career</a></li>


</ul>
</div>   


*/
