//hide email addresses
emailE='sheernylons.co.uk'
emailE=('enquiry' + '@' + emailE)

//highlight menu
var ready;
varPage1 = ""
varPage2 = ""
varPage3 = ""
varPage4 = ""
varPage5 = ""
varPage6 = ""

if 	(self.location.href.indexOf('default')!= -1)	{ varPage1 = 'active' }
if 	(self.location.href.indexOf('about')!= -1)	{ varPage2 = 'active' }
if 	(self.location.href.indexOf('CAT_ID=117')!= -1)	{ varPage3 = 'active' }
if 	(self.location.href.indexOf('help')!= -1)	{ varPage4 = 'active' }
if 	(self.location.href.indexOf('news')!= -1)	{ varPage5 = 'active' }
if 	(self.location.href.indexOf('contact.asp')!= -1)	{ varPage6 = 'active' }
ready=true;

// end highlight menu



function PopUp(theURL,winName,features) {
	window.open(theURL,winName,features);
}

function ToggleItem(myItem) {
	if (myItem.style.visibility != 'hidden') {
		HideItem(myItem);
	} else {
		ShowItem(myItem);
	}
	return false;
}
function ShowItem(myItem) {
	myItem.style.visibility = 'visible';
	myItem.style.display = '';
}
function HideItem(myItem) {
	myItem.style.visibility = 'hidden';
	myItem.style.display = 'none';
}





//suckerfish customer services

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



//suckerfish - category menu

sfHover = function() {
	var sfEls = document.getElementById("categorymenu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

