  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-2354610-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

function menutop(){
document.write("<ul id='nav_rounded_white'>");
document.write("<li><a href='index.htm'>HOME</a></li>");
document.write("<li><a href='about.htm'>INFO</a></li>");
document.write("<li><a href='accommodation.php'>STAY</a></li>");
document.write("<li><a href='go.htm'>EXPLORE</a></li>");
document.write("<li><a href='activities.htm'>ACTIVITIES</a></li>");
document.write("<li><a href='eat.htm'>DINE</a></li>");
document.write("<li><a href='weddings-in-cumbria.htm'>WEDDINGS</a></li>");
document.write("<li><a href='events/index.htm'>EVENTS</a></li>");
document.write("<li><a href='visit-cumbria.htm'>VISIT</a></li>");
document.write("<li><a href='contact.htm'>CONTACT</a></li>");
document.write("</ul>");
}

function menutop2(){
document.write("<ul id='nav_rounded_white'>");
document.write("<li><a href='../index.htm'>HOME</a></li>");
document.write("<li><a href='../about.htm'>INFO</a></li>");
document.write("<li><a href='../accommodation.php'>STAY</a></li>");
document.write("<li><a href='../go.htm'>EXPLORE</a></li>");
document.write("<li><a href='../activities.htm'>ACTIVITIES</a></li>");
document.write("<li><a href='../eat.htm'>DINE</a></li>");
document.write("<li><a href='../weddings-in-cumbria.htm'>WEDDINGS</a></li>");
document.write("<li><a href='../events/index.htm'>EVENTS</a></li>");
document.write("<li><a href='../visit-cumbria.htm'>VISIT</a></li>");
document.write("<li><a href='../contact.htm'>CONTACT</a></li>");
document.write("</ul>");
}
function menutop3(){
document.write("<ul id='nav_rounded_white'>");
document.write("<li><a href='kids.htm'>FOR KIDS</a></li>");
document.write("<li><a href='crafthall.htm'>CRAFT HALL</a></li>");
document.write("<li><a href='market.htm'>FOOD HALL</a></li>");
document.write("<li><a href='shopping.htm'>SHOP</a></li>");
document.write("<li><a href='local.htm'>TRADES</a></li>");
document.write("<li><form action='http://www.google.com/cse' id='cse-search-box' target='_blank'>");
document.write("<div>");
document.write("<input type='hidden' name='cx' value='003548964086167961480:-6qgs3fq5q0'/>");
document.write("<input type='hidden' name='ie' value='UTF-8'/>");
document.write("<input type='text' class='txt' name='q' size='28'/>");
document.write("<input type='image' src='main_images/search.gif' name='sub_but' class='btn' value='Search' alt='Search' width='62' height='28'/>");
document.write("</div></form>");
document.write("</ul></div>");
}

function menutop4(){
document.write("<ul id='nav_rounded_white'>");
document.write("<li><a href='../kids.htm'>FOR KIDS</a></li>");
document.write("<li><a href='../crafthall.htm'>CRAFT HALL</a></li>");
document.write("<li><a href='../market.htm'>FOOD HALL</a></li>");
document.write("<li><a href='../shopping.htm'>SHOP</a></li>");
document.write("<li><a href='../local.htm'>TRADES</a></li>");
document.write("<li><form action='http://www.google.com/cse' id='cse-search-box' target='_blank'>");
document.write("<div>");
document.write("<input type='hidden' name='cx' value='003548964086167961480:-6qgs3fq5q0'/>");
document.write("<input type='hidden' name='ie' value='UTF-8'/>");
document.write("<input type='text' class='txt' name='q' size='28'/>");
document.write("<input type='image' src='../main_images/search.gif' name='sub_but' class='btn' value='Search' alt='Search' width='62' height='28'/>");
document.write("</div></form>");
document.write("</ul></div>");
}


function menubottom(){
document.write("<table><tr>");
document.write("<td><a href='aboutus.htm'>About Us</a></td>");
document.write("<td><a href='terms.htm'>Terms</a></td>");
document.write("<td><a href='privacy.htm'>Privacy</a></td>");
document.write("<td><a href='sitemap.htm'>Site Map</a></td>");
document.write("<td><a href='latest.htm'>LATEST</a></td>");
document.write("<td><a href='contact.htm'>CONTACT</a></td>");
document.write("</tr></table>");
}

function menubottom2(){
document.write("<table><tr>");
document.write("<td><a href='../aboutus.htm'>About Us</a></td>");
document.write("<td><a href='../terms.htm'>Terms</a></td>");
document.write("<td><a href='../privacy.htm'>Privacy</a></td>");
document.write("<td><a href='../sitemap.htm'>Site Map</a></td>");
document.write("<td><a href='../latest.htm'>LATEST</a></td>");
document.write("<td><a href='../contact.htm'>CONTACT</a></td>");
document.write("</tr></table>");
}


function footerads(){
// for pages in root folder
document.write("<center><p>&nbsp;<p><a href='facebook.htm'><img src='facebook.gif' border=0></p></center>");
document.write("<center><p>&nbsp;<p><a href='http://www.addthis.com/bookmark.php?v=250&pub=xa-4a475716358dcb8b' onmouseover=\"return addthis_open(this, '', '[URL]', '[TITLE]')\" onmouseout=\"addthis_close()\" onclick=\"return addthis_sendto()\"><img src=\"http://s7.addthis.com/static/btn/lg-share-en.gif\" width=125 height=16 alt=\"Bookmark and Share\" style=\"border:0\"/></a><script type=\"text/javascript\" src=\"http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a475716358dcb8b\"></script></center>");
document.write("<div id='news_alert'><div class='news_alert_title'><a href='its.htm'>Online multimedia rich health and safety training for only £14.95 </a></div></div>");
// document.write("<div class='news_alert_title'><p><a href='accommodation.htm'>Do you want somewhere to stay?</a> </div></div>");
google_ad_client = "pub-5954860223687009";
google_ad_slot = "6314709479";
google_ad_width = 728;
google_ad_height = 90;
google_color_border = "386035";
google_color_bg = "f3f6f6";
google_color_link = "386035";
google_color_url = "434343";
google_color_text = "929292";
IncludeJavaScript("http://pagead2.googlesyndication.com/pagead/show_ads.js")
}
function headerads(){
document.write("<br>");
google_ad_client = "pub-5954860223687009";
google_ad_slot = "6314709479";
google_ad_width = 728;
google_ad_height = 90;
google_color_border = "386035";
google_color_bg = "f3f6f6";
google_color_link = "386035";
google_color_url = "434343";
google_color_text = "929292";
IncludeJavaScript("http://pagead2.googlesyndication.com/pagead/show_ads.js")
}
function footerads2(){
// for pages not in root folder
document.write("<center><p>&nbsp;<p><a href='../facebook.htm'><img src='../facebook.gif' border=0></p></center>");
document.write("<center><p>&nbsp;<p><a href='http://www.addthis.com/bookmark.php?v=250&pub=xa-4a475716358dcb8b' onmouseover=\"return addthis_open(this, '', '[URL]', '[TITLE]')\" onmouseout=\"addthis_close()\" onclick=\"return addthis_sendto()\"><img src=\"http://s7.addthis.com/static/btn/lg-share-en.gif\" width=125 height=16 alt=\"Bookmark and Share\" style=\"border:0\"/></a><script type=\"text/javascript\" src=\"http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a475716358dcb8b\"></script></center>");
document.write("<div id='news_alert'><div class='news_alert_title'><a href='../its.htm'>Online multimedia rich health and safety training for only £14.95 </a></div></div>");
// document.write("<div class='news_alert_title'><p><a href='../accommodation.htm'>Do you want somewhere to stay?</a> </div></div>");
google_ad_client = "pub-5954860223687009";
google_ad_slot = "6314709479";
google_ad_width = 728;
google_ad_height = 90;
google_color_border = "386035";
google_color_bg = "f3f6f6";
google_color_link = "386035";
google_color_url = "434343";
google_color_text = "929292";
IncludeJavaScript("http://pagead2.googlesyndication.com/pagead/show_ads.js")
}

function IncludeJavaScript(jsFile)
{
  document.write('<script type="text/javascript" src="'
    + jsFile + '"></scr' + 'ipt>'); 
}

function today() {
// will display the current date within the document
var months=new Array(12);
 months[0]="January";
 months[1]="February";
 months[2]="March";
 months[3]="April";
 months[4]="May";
 months[5]="June";
 months[6]="July";
 months[7]="August";
 months[8]="September";
 months[9]="October";
 months[10]="November";
 months[11]="December";

var time=new Date();
var day=time.getDate();
var lmonth=months[time.getMonth()];
// var month=time.getMonth() + 1;
var year=time.getYear();
if (year < 2000) {
// some browsers use years since 1900
// while others contain the full 4 digit year
year += 1900;
}
document.write(day + " " + lmonth + ", " + year);
}  
function viewthumb(img_url,img_width,img_height,title,description)
{
if (parseInt(navigator.appVersion) >= 4)
	{
	var window_width = (img_width + 20);
	var window_height = (img_height + 62);
	var sw = screen.width;
	var sh = screen.height;
	var window_left = ((sw/2) - (window_width/2) - 16);
	var window_top = ((sh/2) - (window_height/2) - 20);
	newwin = open("","newwindow","width="+ window_width +",height="+ window_height +",scrollbars=no,toolbar=no,directories=no,menubar=no,resizable=no,status=no,left="+ window_left +",top="+ window_top +",screenx="+ window_left +",screeny="+ window_top);
	}
	
else
	{
	var window_width = (img_width + 25);
	var window_height = (img_height + 65);
	newwin= open("","newwindow","width="+ window_width +",height="+ window_height +",scrollbars=no,toolbar=no,directories=no,menubar=no,resizable=no,status=no,left=200,top=100,screenx=200,screeny=100");
	}
	
newwin.document.open();

var newpage = '<HTML><HEAD><TITLE>'+title+'</TITLE></HEAD><BODY BGCOLOR="#FFFFFF" MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" TOPMARGIN="0">';

newpage += '<CENTER><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD COLSPAN="3"><IMG SRC="images/td_spacer_three.gif" WIDTH=1 HEIGHT=1 BORDER="0"></TD></TR><TR><TD COLSPAN="3"><IMG SRC="space1.gif" WIDTH=1 HEIGHT=1 BORDER="0"></TD></TR><TR><TD BGCOLOR="#FABB04" COLSPAN="3" VALIGN="BOTTOM"><IMG SRC="space1.gif" WIDTH=1 HEIGHT=1 BORDER="0"></TD></TR><TR><TD BGCOLOR="#FABB04" ALIGN="RIGHT"><IMG SRC="space1.gif" WIDTH=1 HEIGHT=1 BORDER="0"></TD><TD BGCOLOR="#FFFFFF"><TABLE><TR><TD><IMG SRC="'+img_url+'" WIDTH='+img_width+' HEIGHT='+img_height+' ALT="'+title+'" BORDER="0"></TD></TR></TABLE></TD><TD BGCOLOR="#FABB04" ALIGN="LEFT"><IMG SRC="space1.gif" WIDTH=1 HEIGHT=1 BORDER="0"></TD></TR><TR><TD BGCOLOR="#FABB04" VALIGN="TOP" COLSPAN="3"><IMG SRC="space1.gif" WIDTH=1 HEIGHT=1 BORDER="0"></TD></TR>';

newpage += '<TR><TD COLSPAN="3"><FONT FACE="Arial,Helvetica" SIZE="-1"><P ALIGN="CENTER">'+description+'</P></FONT></TD></TR>';

newpage += '<TR><TD COLSPAN="3"><IMG SRC="space3.gif" WIDTH=1 HEIGHT=1 BORDER="0"></TD></TR>';

newpage += '<TR><TD COLSPAN="3"><CENTER><FORM><INPUT TYPE="BUTTON" VALUE="Close Window" onClick="self.close()" STYLE="cursor: hand;"></FORM></CENTER></TD></TR></TABLE></CENTER></BODY></HTML>';

newwin.document.write(newpage);
newwin.document.close();  
newwin.focus();
}


function emaddress(){
var mailaddress1='julian';
var mailaddress2='@';
var mailaddress3='visitcumbria.com';
document.write("<A HREF=mailto:"+mailaddress1+mailaddress2+mailaddress3+">"+mailaddress1+mailaddress2+mailaddress3+"</A>");
}
function emaddress2(){
var mailaddress1='vanessa';
var mailaddress2='@';
var mailaddress3='visitcumbria.com';
document.write("<A HREF=mailto:"+mailaddress1+mailaddress2+mailaddress3+">"+mailaddress1+mailaddress2+mailaddress3+"</A>");
}
