function startPageLayout() {
	var tblHTML = '<table align="center" width="800" cellpadding="0" cellspacing="0" border="0">';
	tblHTML += '<tr>';
	tblHTML += '<td colspan="2" class="borderStyle"><center><img src="http://www.carnviewfarms.com/banner2008.jpg" width="800" height="200" border="0" /></center></td>';
	tblHTML += '</tr><tr>';
	tblHTML += '<td colspan="2">&nbsp;</td>';
	tblHTML += '</tr><tr>';
	tblHTML += '<td width="190" class="borderStyle" style="border-right-style:none" bgcolor="#009933">';
	tblHTML += '<br />43 Loughmagarry Road<br />Ballymena<br />BT43 6TW<br /><br />+ 44 (0)28 2568 5340<br />+ 44 (0)7889 15 98 79<br />';
	tblHTML += '<center><img src="http://www.carnviewfarms.com/gunimagecv.gif" class="borderStyle" style="margin-top:20px; margin-bottom:20px"></center>';
	return tblHTML;
}

function createMenuSystem(currentPage) {
	var menuItems = new Array();
	menuItems[0] = new Array();
	menuItems[0][0] = "Home";
	menuItems[0][1] = "http://www.carnviewfarms.com/home.htm";
	menuItems[0][2] = "Home";
	menuItems[1] = new Array();
	menuItems[1][0] = "Fixtures/Results";
	menuItems[1][1] = "http://www.wildfiresolutions.net/clients/carnviewfarms/fixtures.php";
	menuItems[1][2] = "Fixtures/Results";
	menuItems[2] = new Array(); 
	menuItems[2][0] = "Latest News";
	menuItems[2][1] = "http://www.wildfiresolutions.net/clients/carnviewfarms/news.php";
	menuItems[2][2] = "Latest News";
	menuItems[3] = new Array();
	menuItems[3][0] = "Facilities";
	menuItems[3][1] = "http://www.carnviewfarms.com/facilities.htm";
	menuItems[3][2] = "Facilities";
	menuItems[4] = new Array(); 
	menuItems[4][0] = "Contact Us";
	menuItems[4][1] = "http://www.wildfiresolutions.net/clients/carnviewfarms/contactus.php";
	menuItems[4][2] = "Contact Us";
	menuItems[5] = new Array();
	menuItems[5][0] = "Local Attractions";
	menuItems[5][1] = "http://www.carnviewfarms.com/attractions.htm";
	menuItems[5][2] = "Local Attractions";
	menuItems[6] = new Array();
	menuItems[6][0] = "Accommodation";
	menuItems[6][1] = "http://www.carnviewfarms.com/accommodation.htm";
	menuItems[6][2] = "Accommodation";
	menuItems[7] = new Array();
	menuItems[7][0] = "Gallery";
	menuItems[7][1] = "http://www.carnviewfarms.com/gallery.htm";
	menuItems[7][2] = "Gallery";
	menuItems[8] = new Array();
	menuItems[8][0] = "Links";
	menuItems[8][1] = "http://www.carnviewfarms.com/links.htm";
	menuItems[8][2] = "Links";
	menuItems[9] = new Array();
	menuItems[9][0] = "Hall of Fame";
	menuItems[9][1] = "http://www.wildfiresolutions.net/clients/carnviewfarms/hallfame.php";
	menuItems[9][2] = "Hall of Fame"
	menuItems[10] = new Array(); 
	menuItems[10][0] = "Corporate Events";
	menuItems[10][1] = "http://www.carnviewfarms.com/corpevents.htm";
	menuItems[10][2] = "Corporate Events";
	menuItems[11] = new Array(); 
	menuItems[11][0] = "Private Coaching";
	menuItems[11][1] = "http://www.carnviewfarms.com/coaching.htm";
	menuItems[11][2] = "Coaching";
	menuItems[12] = new Array(); 
	menuItems[12][0] = "Shooting Game";
	menuItems[12][1] = "http://www.carnviewfarms.com/game.htm";
	menuItems[12][2] = "Shooting Game";

	var newTable = document.createElement("table");
	var tblBody = document.createElement("tbody");
	for (var i = 0; i < menuItems.length; i++) {
		var newRow = document.createElement("tr");
		var newCell = document.createElement("th");
		var cellContents = document.createTextNode(menuItems[i][0]);
		newCell.appendChild(cellContents);
		newRow.appendChild(newCell);
		if (currentPage == 'Carnview Farms Shooting Club - ' + menuItems[i][2]) {
			newCell.setAttribute("className", "menuButtonOpen");
		} else {
			newCell.setAttribute("className", "menuButton");
			newCell.onclick = function() {goPage(this.name)};
			newCell.onmouseover = function() {turnOn(this)};
			newCell.onmouseout = function() {turnOff(this)};
		}
		newCell.setAttribute("id", menuItems[i][2]);
		newCell.setAttribute("name", menuItems[i][1]);
		tblBody.appendChild(newRow);
	}
	newTable.appendChild(tblBody);
	newTable.setAttribute("align", "center");
	newTable.setAttribute("border", "0px");
	newTable.setAttribute("cellPadding", "0px");
	newTable.setAttribute("cellSpacing", "0px");
	newTable.setAttribute("width", "100%");
	newTable.style.marginBottom = "20px";
	document.body.lastChild.lastChild.lastChild.firstChild.appendChild(newTable);
	document.writeln('<div id="wx_module_4177" align="center">');
	document.writeln('<a href="http://www.weather.com/weather/local/UKXX1540">Ballymena Weather Forecast, United Kingdom</a>');
	document.writeln('</div>');
   /* Locations can be edited manually by updating 'wx_locID' below.  Please also update */
   /* the location name and link in the above div (wx_module) to reflect any changes made. */
   var wx_locID = 'UKXX1540';

   /* If you are editing locations manually and are adding multiple modules to one page, each */
   /* module must have a unique div id.  Please append a unique # to the div above, as well */
   /* as the one referenced just below.  If you use the builder to create individual modules  */
   /* you will not need to edit these parameters. */
   var wx_targetDiv = 'wx_module_4177';

   /* Please do not change the configuration value [wx_config] manually - your module */
   /* will no longer function if you do.  If at any time you wish to modify this */
   /* configuration please use the graphical configuration tool found at */
   /* https://registration.weather.com/ursa/wow/step2 */
   var wx_config='SZ=180x150*WX=FHW*LNK=SSNL*UNT=C*BGI=winter*MAP=null|null*DN=carnviewfarms.com*TIER=0*PID=1033841578*MD5=85132850ec39ee6d13414d32e804364e';

   document.write('<scr'+'ipt src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'&proto='+document.location.protocol+'&target='+wx_targetDiv+'"></scr'+'ipt>');  
   	document.writeln('&nbsp;');
	document.writeln('<center><img src="http://www.carnviewfarms.com/smokeinclays.gif" width="127" height="110" border="0"></center>');
	document.writeln('<p align="center">To subscribe call Clifford on: 07710100021</p>');
	document.writeln('<center><img src="http://www.carnviewfarms.com/easyhit.png" width="130" height="135" border="0"></center>');
	document.writeln('<p align="center">Ireland\'s Premier Dealer</p>');
	document.writeln('<center><a href="http://www.wildfiresolutions.net" target="blank"><img src="http://www.carnviewfarms.com/wildfirelink.gif" border="0" style="background-color:#ffffff;"></a></center>');
	document.writeln('<p align="center" style="line-height:2px;">&nbsp;</p>');
	document.writeln('</td>');
	document.writeln('<td width="610" style="padding-left:10px; padding-right:10px; border-left-style:none" class="borderStyle" bgcolor="#FFFFFF">');
}

function goPage(URL) {
	var newElem = document.createElement("<bgsound src=colt45.wav />");
	document.body.appendChild(newElem);
	window.setTimeout("window.location.href = '" + URL + "'", 950);
}

function finishPageLayout() {
	var tblHTML = '</td>';
	tblHTML += '</tr>';
	tblHTML += '</table>';
	return tblHTML;
}

function turnOn(button) {
	button.style.color = "#FF6633";
	button.style.textDecoration = "underline";
	window.defaultStatus = 'Carnview Farms Shooting Club - ' + button.id;
}

function turnOff(button) {
	button.style.color = "#FFFFFF";
	button.style.textDecoration = "none";
	window.defaultStatus = 'Done';
}

function openWindow(pageAddress) {
	var newWindow;
	width = screen.width * 0.6;
	height = screen.height * 0.6;
	window_spec = "width=" + width + ", height=" + height + "left='0px', top='0px', scrollbars, resizable";
	newWindow = window.open(pageAddress, "approvedLink", window_spec);
	newWindow.focus();
}

function focusOnFrm() {
	if (document.forms[0]) {
		document.forms[0].elements[0].focus();
	}
}
