var timeOn = null;var numMenus = 50;var currentMenuNo = 0;var menuActive = new Array(numMenus);var tier = new Array(numMenus);var borderMod = new Array(numMenus);var offClass = new Array(numMenus);var onClass = new Array(numMenus);var offColours = new Array(numMenus);var onColours = new Array(numMenus);var labelBulletName = new Array(numMenus);var menuType = new Array(numMenus);var menus = new Array(numMenus);function bulletPoint(offURL, onURL) {		this.offImage = new Image();	this.offImage.src = offURL;	this.onImage = new Image();	this.onImage.src = onURL;	this.URL = String(offURL);}function openMe(newin) {        flyout=window.open(newin,"flyout","")}function borderCell(B) {	return '<td width="1" bgcolor="' + B + '"><img src="images/spacer.gif" width="1" height="1" border="0"></td>';}function borderRow(B, C) {	return '<tr><td height="1" colspan="' + C + '" bgcolor="' + B + '"><img src="images/spacer.gif" width="1" height="1" border="0"></td></tr>';}function menuOver() {	clearTimeout(timeOn);}function menuOut() {	timeOn = setTimeout("hideAllMenus()", 1000);}function showMenu(m_No, eventObj) {	hideAllMenusTier(tier[m_No]-1);	var borderModSize = borderMod[m_No];	if (ns4) {		changeBGColour('menuLabel' + m_No, onColours[m_No]);	} else {		changeBGColour('labelCell' + m_No, onColours[m_No]);		changeClass('menuLink' + m_No, onClass[m_No]);	}	if (labelBulletName[m_No] != null){		changeImage('menuBullet' + m_No, labelBulletName[m_No] + '.onImage');	}	menuActive[m_No] = true;	if (menuType[m_No] != 'blank') {		if (ns4) labelObj = 'menuLabel'+m_No;		else labelObj = 'labelCell'+m_No;				x = getElementLeft(labelObj)-borderModSize;		y = getElementTop(labelObj) + getElementHeight(labelObj);		if (menus[m_No].align == 'center')  x = x + ((getElementWidth(labelObj)-getElementWidth('menu'+m_No))/2);		if (menus[m_No].align == 'right') x = x + ((getElementWidth(labelObj)-getElementWidth('menu'+m_No))) + (borderModSize*2);		moveXY('menu' + m_No, x, y);		if(changeObjectVisibility('menu' + m_No, 'visible')) return true;    	else return false;	}}function showMenuSide(m_No, eventObj, myTier) {	hideAllMenusTier(tier[m_No]-1);	var borderModSize = borderMod[m_No];	if (ns4) {		changeBGColour('menuLabel' + m_No, onColours[m_No]);	} else {		changeBGColour('labelCell' + m_No, onColours[m_No]);		changeClass('menuLink' + m_No, onClass[m_No]);	}	if (labelBulletName[m_No] != null) changeImage('menuBullet' + m_No, labelBulletName[m_No] + '.onImage');	menuActive[m_No] = true;	if (menuType[m_No] != 'blank') {		if (ns4) {			labelObj = 'menuLabel'+m_No;		} else {			labelObj = 'labelCell'+m_No;			if (mac_ie) labelObj = 'labelRow'+m_No;		}		x = getElementLeft(labelObj);		y = getElementTop(labelObj) - borderModSize;		if (menus[m_No].align=='right') x = x + getElementWidth(labelObj);		else x = x - getElementWidth('menu'+m_No);		moveXY('menu' + m_No, x, y);			if(changeObjectVisibility('menu' + m_No, 'visible')) return true;	    else return false;	}}function hideAllMenus() {	for (var i = 1; i < (currentMenuNo+1); i++) {		if(menuActive[i] == true) hideMenu(i);	}}function hideAllMenusTier(myTier) {	for (var i = 1; i < (currentMenuNo+1); i++) {		if( tier[i] > myTier && menuActive[i] == true) hideMenu(i);	}}function hideMenu(m_No) {	if (ns4) {		changeBGColour('menuLabel' + m_No, offColours[m_No]);	} else {		changeBGColour('labelCell' + m_No, offColours[m_No]);		changeClass('menuLink' + m_No, offClass[m_No]);	}	if (labelBulletName[m_No] != null){		changeImage('menuBullet' + m_No, labelBulletName[m_No] + '.offImage');	}	menuActive[m_No] = false;		if(changeObjectVisibility('menu' + m_No, 'hidden'))  return true;    else return false;}function menuBar(barName, barWidth, orientation, i_Bor, o_Bor) {	this.numLabels = 0;	this.i_Bor = i_Bor;		this.o_Bor = o_Bor;		this.height = 15;	this.orientation = orientation;	this.labelText = new Array();	this.rowText = new Array();	this.offClass = 'MenuLabelLink';	this.onClass = 'MenuLabelLinkOn';	this.bulletAlign = 'left';	this.targetType = 'self'; // self, iframe, frame, new	this.targetFrame = '_self'; // _self, _blank or (i)frame name			this.addLabel = function(bullet, labelText, menuNo, labelWidth, offColour, onColour, labelURL, align) {		this.numLabels += 1;		tier[menuNo] = 0;				if (this.o_Bor != null) borderMod[menuNo] = 1;			else borderMod[menuNo] = 0;			if (menuNo != null) {			onColours[menuNo] = onColour;			offColours[menuNo] = offColour;			onClass[menuNo] = this.onClass;			offClass[menuNo] = this.offClass;			labelBulletName[menuNo] = bullet;		}				temp = new String('');		this.rowText[this.numLabels] = new String('');		if (this.orientation == 'vertical') this.rowText[this.numLabels] += '<tr id="labelRow'+ menuNo + '">';		temp += '<td id="labelCell' + menuNo + '" width="'+ labelWidth + '" bgcolor="' + offColour + '" valign="middle" height="' + this.height + '" ';				if (!ns4) {			temp += ' onmouseout="menuOut(); "onmouseover="menuOver(); ';			if (this.orientation == 'vertical') temp += 'return !showMenuSide(' + menuNo + ', event, tier[' + menuNo + ']);" ';			else temp += 'return !showMenu(' + menuNo + ', event);" ';			if (this.targetType=='self') temp += ' onclick="document.location.href=\'' + labelURL + '\';" ';			if (this.targetType=='new') temp += ' onclick="openMe(\'' + labelURL + '\'); return false;" ';			if (this.targetType=='frame') temp += ' onclick="parent.' + this.targetFrame + '.document.location.href=\'' + labelURL + '\';" ';			if (this.targetType=='iframe') temp += ' onclick="' + this.targetFrame + '.location.href=\'' + labelURL + '\';" ';		} 				temp +='>';				if (ns4) {			temp +='<ilayer><layer onmouseout="menuOut();" onmouseover="menuOver(); ';			if (this.orientation == 'vertical') temp +='return !showMenuSide(' + menuNo + ', event, tier[' + menuNo + ']);" ';			else temp +='return !showMenu(' + menuNo + ', event);" ';		} else {			temp +='<div ';		}				temp += ' class="myMenuLabel' + align + '" width="' + labelWidth + '"  id="menuLabel' + menuNo +'"><a href="' + labelURL +'" target="' + this.targetFrame + '" class="' + this.offClass + '" id="menuLink' + menuNo +'">';				if (bullet != null) temp += '<img src="' + eval(bullet + ".URL") + '" border="0" align="' + this.bulletAlign + '" id="menuBullet' + menuNo + '" name="menuBullet' + menuNo + '">';					temp += labelText + '</a>';				if (ns4) temp += '</layer></ilayer>';		else temp += '</div>';				temp += '</td>';				this.labelText[this.numLabels] = new String(temp);	}		this.writeMenuBar = function() {		o_Bor = this.o_Bor;		i_Bor = this.i_Bor;		menuBarStr = new String();		menuBarStr += '<div id="' + barName + '"><table border="0" cellpadding="0" cellspacing="0">';		if (this.orientation == 'vertical') {			if (o_Bor != null) menuBarStr += borderRow(o_Bor, 3);			for (var count = 0; count < this.numLabels; count++) {						menuBarStr += this.rowText[count+1];				if (o_Bor != null) menuBarStr += borderCell(o_Bor);				menuBarStr += this.labelText[count+1];				if (o_Bor != null) menuBarStr += borderCell(o_Bor);								menuBarStr += '</tr>';				if (i_Bor != null && count < (this.numLabels-1)) {					if (o_Bor != null) menuBarStr += '<tr>' + borderCell(o_Bor) + borderCell(i_Bor) + borderCell(o_Bor) + '</tr>';					else menuBarStr += borderRow(i_Bor, 1);				}			}			if (o_Bor != null) menuBarStr += borderRow(o_Bor, 3);		} else {			if (o_Bor != null) {				if (i_Bor != null) menuBarStr += borderRow(o_Bor, ((this.numLabels*2)+1));				else menuBarStr += borderRow(o_Bor, (this.numLabels+2));			}			menuBarStr += '<tr>';			if (o_Bor != null) menuBarStr += borderCell(o_Bor); 			for (var count = 0; count < this.numLabels; count++) {						menuBarStr += this.rowText[count+1];							menuBarStr += this.labelText[count+1];				if (i_Bor != null && count < (this.numLabels-1)) {					menuBarStr += borderCell(i_Bor);				}			}			if (o_Bor != null) {				menuBarStr += borderCell(o_Bor);				if (i_Bor != null) menuBarStr += borderRow(o_Bor, ((this.numLabels*2)+1));				else menuBarStr += borderRow(o_Bor, (this.numLabels+2)); 			}			menuBarStr +=  '</tr>';		}		menuBarStr += '</table></div>';		document.write(menuBarStr);	}}function menu(menuWidth, orientation, i_Bor, o_Bor) {	currentMenuNo += 1;	this.numItems = 0;	this.i_Bor = i_Bor;		this.o_Bor = o_Bor;		this.height = 15;	this.itemText = new Array();	this.rowText = new Array();	this.align = 'left';	this.offClass = 'MenuItemLink';	this.onClass = 'MenuItemLinkOn';	this.orientation = orientation;	this.bulletAlign = 'left';	this.targetType = 'self'; // self, iframe, frame, new	this.targetFrame = '_self'; // _self, _blank or (i)frame name	this.addItem = function(bullet, itemText, menuNo, itemWidth, offColour, onColour, itemURL, align) {		this.numItems += 1;				var tempId = currentMenuNo + '_' + this.numItems;			if (menuNo != null) {			tier[menuNo] = tier[currentMenuNo] + 1;			onColours[menuNo] = onColour;			offColours[menuNo] = offColour;			onClass[menuNo] = this.onClass;			offClass[menuNo] = this.offClass;			labelBulletName[menuNo] = bullet;			if (this.o_Bor != null) borderMod[menuNo] = 1;				else borderMod[menuNo] = 0;			}				temp = new String('');		this.rowText[this.numItems] = new String('');				if (menuNo != null) {			if (this.orientation =='vertical') this.rowText[this.numItems] += '<tr id="labelRow'+ menuNo + '">';			temp += '<td id="labelCell'+ menuNo + '" width="'+ itemWidth + '" bgcolor="' + offColour + '" valign="middle" height="' + this.height + '" ';		} else {			if (this.orientation =='vertical') this.rowText[this.numItems] += '<tr>';			temp += '<td id="itemCell' + tempId + '" width="'+ itemWidth + '" bgcolor="' + offColour + '" valign="middle" height="' + this.height + '" class="' + align + 'Menu"';		}				if (!ns4) {			if (this.targetType=='self') temp += ' onclick="document.location.href=\'' + itemURL + '\';" ';			if (this.targetType=='new') temp += ' onclick="openMe(\'' + itemURL + '\'); return false;" ';			if (this.targetType=='frame') temp += ' onclick="parent.' + this.targetFrame + '.document.location.href=\'' + itemURL + '\';" ';			if (this.targetType=='iframe') temp += ' onclick="' + this.targetFrame + '.location.href=\'' + itemURL + '\';" ';			if (menuNo != null) {							if (this.orientation =='vertical') temp += ' onmouseover="menuOver(); return !showMenuSide(' + menuNo + ', event, tier[' + menuNo + ']); " onmouseout=" menuOut(); "';				else temp += ' onmouseover="menuOver(); return !showMenu(' + menuNo + ', event); " onmouseout=" menuOut(); "';			} else {				temp += ' onmouseover="changeClass(\'menuLink' + tempId + '\',\'' + this.onClass + '\'); hideAllMenusTier(tier[' + currentMenuNo + ']); menuOver();  changeBGColour(\'itemCell' + tempId + '\', \'' + onColour + '\'); changeImage(\'menuItemBullet' + tempId + '\', \'' + bullet + '.onImage\'); " onmouseout="menuOut(); changeClass(\'menuLink' + tempId + '\',\'' + this.offClass + '\'); changeBGColour(\'itemCell' + tempId + '\', \'' + offColour + '\'); changeImage(\'menuItemBullet' + tempId + '\', \'' + bullet + '.offImage\'); "';			}		} 		temp += '>';						if (ns4) {			temp += '<ilayer><layer ';			if(menuNo != null) { 				if (this.orientation == 'vertical') temp += 'onmouseover="menuOver(); return !showMenuSide(' + menuNo + ', event, tier[' + menuNo + ']);" onmouseout="menuOut();"';				else temp += 'onmouseover="menuOver(); return !showMenu(' + menuNo + ', event);" onmouseout="menuOut();"';			} else {				temp += 'onmouseover="hideAllMenusTier(tier[' + currentMenuNo + ']); menuOver(); changeBGColour(\'menuItem' + tempId + '\', \'' + onColour + '\'); changeImage(\'menuItemBullet' + tempId + '\', \'' + bullet + '.onImage\'); " onmouseout="menuOut(); changeBGColour(\'menuItem' + tempId + '\', \'' + offColour + '\'); changeImage(\'menuItemBullet' + tempId + '\', \'' + bullet + '.offImage\'); "';			}		} else {			temp +='<div ';		}		temp += ' class="myMenuItem' + align + '" width="' + itemWidth + '"';			if (menuNo != null) temp += ' id="menuLabel' + menuNo +'"';		else temp += ' id="menuItem' + tempId +'"';				temp += '><a href="' + itemURL +'" target="' + this.targetFrame + '" class="' + this.offClass + '"';		if (menuNo != null) temp += 'id="menuLink' + menuNo +'"';		else temp += 'id="menuLink' + tempId +'"';		temp +='>';				if (bullet != null) {			if (menuNo != null) temp += '<img src="' + eval(bullet + ".URL") + '" border="0" align="' + this.bulletAlign + '" id="menuBullet' + menuNo + '" name="menuBullet' + menuNo + '">';			else temp += '<img src="' + eval(bullet + ".URL") + '" border="0" align="' + this.bulletAlign + '" id="menuItemBullet' + tempId + '" name="menuItemBullet' + tempId + '">';		}					temp += itemText + '</a>';				if (ns4) temp += '</layer></ilayer>';		else temp += '</div>';		temp += '</td>';			this.itemText[this.numItems] = new String(temp);	}		this.writeMenu = function() {		var menuStr = new String();		o_Bor = this.o_Bor;		i_Bor = this.i_Bor;		if (this.numItems == 0) menuType[currentMenuNo] = 'blank';		else menuType[currentMenuNo] = 'default';		menuStr += '<div id="menu' + currentMenuNo + '" name="menu' + currentMenuNo + '" class="myMenu" width="' + menuWidth + '"';		if (!ns4) menuStr += ' style="width:' + menuWidth + ';"';		menuStr+= '><table border="0" cellpadding="0" cellspacing="0" width="' + menuWidth + '">';		if (this.orientation == 'vertical') {			if (o_Bor != null) menuStr += borderRow(this.o_Bor, 3);			for (var count = 0; count < this.numItems; count++) {				menuStr += this.rowText[count+1];				if (o_Bor != null) menuStr += borderCell(o_Bor);				menuStr += this.itemText[count+1];				if (o_Bor != null) menuStr += borderCell(o_Bor);				menuStr += '</tr>';				if (i_Bor != null && count < (this.numItems-1)) {					if (o_Bor != null) menuStr += '<tr>' + borderCell(o_Bor) + borderCell(i_Bor) + borderCell(o_Bor) + '</tr>';					else menuStr += borderRow(i_Bor, 1);				}			}			if (o_Bor != null) menuStr += borderRow(o_Bor, 3);		} else {			if (o_Bor != null) {				if (i_Bor != null) menuStr += borderRow(o_Bor, ((this.numItems*2)+1));				else menuStr += borderRow(o_Bor, (this.numItems+2));			}			menuStr += '<tr>';			if (o_Bor != null) menuStr += borderCell(o_Bor); 			for (var count = 0; count < this.numItems; count++) {						menuStr += this.rowText[count+1];							menuStr += this.itemText[count+1];				if (i_Bor != null && count < (this.numItems-1)) {					menuStr += borderCell(i_Bor);				}			}			if (o_Bor != null) {				menuStr += borderCell(o_Bor);				if (i_Bor != null) menuStr += borderRow(o_Bor, ((this.numItems*2)+1));				else menuStr += borderRow(o_Bor, (this.numItems+2)); 			}			menuStr +=  '</tr>';		}		menuStr += '</table></div>';		document.write(menuStr);	}}var menu1=new Array()menu1[0]='<a href="about-us.php">About Dancers in Touch</a>'menu1[1]='<a href="contact-details.php">Contact details</a>'var menu2=new Array()menu2[0]='<a href="bluebell-girls.php">The Bluebell Girls</a>'menu2[1]='<a href="tiller-girls.php">The Tiller Girls</a>'menu2[2]='<a href="rockettes.php">The Rockettes</a>'menu2[3]='<a href="dorriss-girls.php">The Dorriss Girls</a>'menu2[4]='<a href="george-mitchell-minstrels.php">The George Mitchell Minstrels</a>'menu2[5]='<a href="mitchell-maids.php">The Mitchell Maids</a>'menu2[6]='<a href="palace-people.php">Palace People</a>'menu2[7]='<a href="rudas-acro-dancers.php">The Rudas Acro Dancers</a>'menu2[8]='<a href="young-generation.php">The Young Generation</a>'menu2[9]='<a href="second-generation.php">2nd Generation</a>'menu2[10]='<a href="dougie-squires-dancers.php">Dougie Squires Dancers</a>'menu2[11]='<a href="margaret-kelly-dancers.php">Margaret Kelly Dancers</a>'menu2[12]='<a href="jackson-girls.php">The Jackson Girls</a>'menu2[13]='<a href="hot-jocks.php">Hot Jocks</a>'var menu3=new Array()menu3[0]='<a href="hampden-press.php">Press Releases</a>'menu3[1]='<a href="#">Bulletins</a>'menu3[2]='<a href="#">Auctions</a>'menu3[3]='<a href="#">Forthcoming Events</a>'menu3[4]='<a href="#">Links</a>'var menu4=new Array()menu4[0]='<a href="media-kit.php">Media Resources</a>'menu4[1]='<a href="#">Recent Articles</a>'var menu5=new Array()menu5[0]='<a href="why-lloyds2.php">Why Lloyds?</a>'var menuwidth='165px' //default menu widthvar menubgcolor=''  //menu bgcolorvar disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)var hidemenu_onclick="yes" //hide menu when user clicks within menu?/////No further editing neededvar ie4=document.allvar ns6=document.getElementById&&!document.allif (ie4||ns6)document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')	function getposOffset(what, offsettype){		var totaloffset=(offsettype=="left")? what.offsetLeft+20 : what.offsetTop;		var parentEl=what.offsetParent;		while (parentEl!=null){			totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft-2 : totaloffset+parentEl.offsetTop;			parentEl=parentEl.offsetParent;		}		return totaloffset;	}	function showhide(obj, e, visible, hidden, menuwidth){		if (ie4||ns6)		dropmenuobj.style.left=dropmenuobj.style.top=-500			if (menuwidth!=""){			dropmenuobj.widthobj=dropmenuobj.style			dropmenuobj.widthobj.width=menuwidth			}		if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")		obj.visibility=visible		else if (e.type=="click")		obj.visibility=hidden		}	function iecompattest(){		return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body	}	function clearbrowseredge(obj, whichedge){		var edgeoffset=0			if (whichedge=="rightedge"){			var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15			dropmenuobj.contentmeasure=dropmenuobj.offsetWidth			if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)			edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth			}			else{				var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset				var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18				dropmenuobj.contentmeasure=dropmenuobj.offsetHeight			if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?			edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight			if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?			edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge			}		}		return edgeoffset	}	function populatemenu(what){		if (ie4||ns6)		dropmenuobj.innerHTML=what.join("")	}	function dropdownmenu(obj, e, menucontents, menuwidth){		if (window.event) event.cancelBubble=true			else if (e.stopPropagation) e.stopPropagation()		clearhidemenu()		dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv		populatemenu(menucontents)			if (ie4||ns6){			showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)			dropmenuobj.x=getposOffset(obj, "left")			dropmenuobj.y=getposOffset(obj, "top")			dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"			dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"		}		return clickreturnvalue()	}	function clickreturnvalue(){		if (ie4||ns6) return false		else return true	}	function contains_ns6(a, b) {		while (b.parentNode)		if ((b = b.parentNode) == a)		return true;		return false;	}	function dynamichide(e){		if (ie4&&!dropmenuobj.contains(e.toElement))		delayhidemenu()		else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))		delayhidemenu()	}	function hidemenu(e){		if (typeof dropmenuobj!="undefined"){		if (ie4||ns6)		dropmenuobj.style.visibility="hidden"		}	}	function delayhidemenu(){		if (ie4||ns6)		delayhide=setTimeout("hidemenu()",disappeardelay)	}	function clearhidemenu(){		if (typeof delayhide!="undefined")		clearTimeout(delayhide)	}	if (hidemenu_onclick=="yes")	document.onclick=hidemenu