//<script>
function globaltabs_toggle(e) {
	if (!this.id||!this.id.indexOf("globaltab")==0) return;
	var ev = e || event; if (!ev) return;
	var cs = ev.type=="mouseover" ? "tabhover" : "";
	this.className = cs;
}

function ToggleNext(el) {
	if (!el) return false;
	var orgEl = el;
	while (el && (el=el.nextSibling)) if ( el.nodeType==1 ) break;
	if (!el||!el.style) return false;
	var bActive = el.style.display!="block";
	el.style.display = bActive ? "block" : "none";
	orgEl.className = bActive ? "active" : "";
	return false
}

function gccc_extend() {
	var d=document,g="getElementById",o="offsetHeight",r="onresize";
	var glbcntl = d[g]("globalcontentleft")
	var glbcntc = d[g]("globalcontentcentercontent")
	var glbcnth = d[g]("sectionhead")
	var glbcntf = d[g]("globalcontentcenterfooter")
	var glbcntr = d[g]("globalcontentright")
	if (glbcntl&&glbcntc&&glbcnth&&glbcntf&&glbcntr) {
		var realH = parseInt(glbcntc[o] + glbcnth[o] + glbcntf[o]);
		var m = Math.max( glbcntl[o], realH, glbcntr[o] );
		var diff = (m - realH), newHeight = (glbcntc[o] + diff);
		if(newHeight) glbcntc.style.height = newHeight;
		glbcntl[r] = glbcntc[r] = glbcntr[r] = gccc_extend;
		l_done.gc = 1;
	}
}

function Lycos_hookevents() {
	if (!window.l_done) l_done = {gt:0,gc:0}
	if (!l_done.gt) {
		var gt = document.getElementById("globaltabs"), els;
		if (gt && (els=gt.childNodes)) {
			for (var i=0, il=els.length; i<il; i++) {
				if (!els[i]) break;
				els[i].onmouseover = els[i].onmouseout = globaltabs_toggle;
			}
			if (i==il) l_done.gt = 1;
		}
	}
	if (!l_done.gc){
		gccc_extend();
	}
	if (!l_done.gt||!l_done.gc) setTimeout("Lycos_hookevents()",10);
}
if (document.getElementById) Lycos_hookevents();

function linkifier() {
	if(document.getElementById("globalcontentleft")) {
		var present = document.location.href;
		var gcl = document.getElementById("globalcontentleft");
		var els = gcl.getElementsByTagName("A");
		var numLinks = els.length;
		var pEL = null;
		for (iL = 0;iL < numLinks;iL++)	{
			if (els[iL].href == present) {
				pEL = els[iL]
				while (pEL&&(pEL=pEL.parentNode)!=null) {
					if (pEL&&pEL.tagName&&pEL.tagName.toUpperCase()=="UL"&&pEL.style) pEL.style.display = "block";
				}
				linkTxt = els[iL].innerHTML;
				newTxt = "<span class=\"active\">" + linkTxt + "</span>";
				els[iL].outerHTML = newTxt;
				numLinks--;
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", linkifier);

function popIt(w,h,u) {
	winProp = "width="+w+",height="+h+",scrollbars=yes";
	window.open(u,"popwin",winProp)
}

function lea_adgetter(refurl,other,cc) {
	var adsrv;
	switch(cc) {
		case "at":
			adsrv="http://fe.lea.lycos.at/";
			break;
		case "be":
			adsrv="http://fe.lea.lycos.be/";
			break;
		case "ch":
			adsrv="http://fe.lea.lycos.ch/";
			break;
		case "de":
			adsrv="http://fe.lea.lycos.de/";
			break;
		case "dk":
			adsrv="http://ads2.jubii.dk/";
			break;
		case "es":
			adsrv="http://fe.lea.lycos.es/";
			break;
		case "fr":
			adsrv="http://fe.lea.lycos.fr/";
			break;
		case "it":
			adsrv="http://fe.lea.lycos.it/";
			break;
		case "nl":
			adsrv="http://fe.lea.lycos.nl/";
			break;
		case "no":
			adsrv="http://fe.lea.nettavisen.no/";
			break;
		case "se":
			adsrv="http://fe.lea.spray.se/";
			break;
		case "ru":
			adsrv="http://fe.lea.lycos.ru/";
			break;
		case "uk":
			adsrv="http://fe.lea.lycos.co.uk/";
			break;
		default:
			adsrv="http://ads.lycos-europe.com/";
	}
	now = new Date();
	var ts = now.getTime();
	var alldiv=document.body.getElementsByTagName('div');
	var adstring=adsrv+'getad.php?adinfo=';
	for (i=0;i<alldiv.length;i++) {
		if (alldiv[i].id.indexOf('lea_') == 0) {
			adstring += alldiv[i].id + "|";
		} 
	}
	document.write('<scr'+'ipt src="'+adstring+other+'|'+escape(refurl)+'|'+ts+'"></scr'+'ipt>');
}

function lea_getter(refurl,other,cc) {
	var adsrv, i;
	switch(cc) {
		case "dk":
			adsrv="http://ads2.jubii.dk/ats/";
			break;
		case "no":
			adsrv="http://fe.lea.nettavisen.no/ats/";
			break;
		case "se":
			adsrv="http://fe.lea.spray.se/ats/";
			break;
		case "uk":
			adsrv="http://fe.lea.lycos.co.uk/ats/";
			break;
		case "test":
			adsrv="http://devadclient01.st1.spray.net/ats/";
			break;
		case "stage":
			adsrv="http://ats.vip.spray.net/testads/";
			break;
		case "fail":
			adsrv="http://adclient81.st1.spray.net/testads/";
			break;
		default:
			adsrv="http://fe.lea.lycos."+cc+"/ats/";
	}
	now = new Date();
	var ts = now.getTime();
	var alldiv=document.body.getElementsByTagName('div');
	var adstring=adsrv+'getad.php?adinfo=';
	for (i=0;i<alldiv.length;i++) { if (alldiv[i].id.indexOf('lea_') == 0) { adstring += alldiv[i].id + "|"; } }
	document.write('<scr'+'ipt src="'+adstring+other+'|'+escape(refurl)+'|'+ts+'"></scr'+'ipt>');
}

function changeSearchAc() {
	var mainform = document.forms["mainform"];
	var check = document.mainform.query.value;
	if (mainform.cat[2].checked == true) {
		document.mainform.action = "http://shopping.lycos.co.uk/scripts/lu/query.php?query=" + check + "&pc=GBP";
		document.mainform.submit();
	} else if (mainform.cat[3].checked == true) {
		document.domain_form.domain.value = check;
		document.domain_form.tld.value = document.mainform.dom.value;
		document.domain_form.submit();
	} else if (mainform.cat[4].checked == true) {
		document.location.href= "http://www.lycos.co.uk/search/touch.html?ts=" + check;
	} else {
		document.mainform.action = "http://search.lycos.co.uk/cgi-bin/pursuit";	
		document.mainform.submit();
	}
}

function checkRad()	{
	var domlabel= document.getElementById('domlabel');
	var domdiv = document.getElementById('domdiv');
	var searchdiv = document.getElementById('searchdiv');
	if (document.forms.mainform.cat[3].checked == true) {
		document.forms["mainform"].query.style.width = 196;
		domdiv.style.width = 70;
		domlabel.style.width = 50;
		domlabel.style.visibility = 'visible';
		searchdiv.style.width = 355;	
	} else {
		document.forms["mainform"].query.style.width = 330;
		domdiv.style.width = 0;	
		domlabel.style.width = 0;
		domlabel.style.visibility = 'hidden';
		searchdiv.style.width = 440;
	}
}

function changeLoginRedirect() {
	var option_value = document.lycoslogin.product.selectedIndex;
	var redirect_param = document.lycoslogin.product.options[option_value].text;
	//temp cookie
	var timeCurrent = new Date(); var Verfall = 1000*60*60; // 60 min
	var Auszeit = new Date(timeCurrent.getTime() + Verfall);
	document.cookie = "logged_in=true; expires="+Auszeit.toGMTString()+"; path=/; domain=.lycos.co.uk;"+";";
	if (redirect_param == "Email") {
		//document.lycoslogin.redirect.value = "http://mail.lycos.co.uk";
		document.lycoslogin.service.value = "MAIL";
		document.lycoslogin.action = "http://secure.mail.lycos.co.uk/lsu/signin/action.jsp";
	} else if (redirect_param == "Chat") {
		document.lycoslogin.redirect.value = "http://chat.lycos.co.uk/lsu/lsu_sendtochat.aspx";
		document.lycoslogin.service.value = "CHAT";
	} else if (redirect_param == "Love@Lycos") {
		document.lycoslogin.redirect.value = "http://love.lycos.co.uk/";
		document.lycoslogin.target_url.value = "http://love.lycos.co.uk/";
		document.lycoslogin.fail_url.value = "http://www.love.lycos.co.uk/lovelycos/login.jsp";
		document.lycoslogin.format.value = "spraydate2";
		document.lycoslogin.service.value = "Love";
	} else if (redirect_param == "Tripod") {
		document.lycoslogin.redirect.value = "http://www.tripod.lycos.co.uk";
		document.lycoslogin.service.value = "Tripod";
	} else if (redirect_param == "My Lycos") {
		var Test = "http://my.lycos.co.uk";
		//var URL = "http://login.my.lycos.co.uk/defaultw.sc?operation=1&service=OPP&language=16&"+Test;
		document.lycoslogin.redirect.value = Test;
		document.lycoslogin.service.value = "OPP";
	} else if (redirect_param == "SMS") {
		//document.lycoslogin.redirect.value = "http://sms.lycos.co.uk/mobile/message_center/message_center.jsp";
		document.lycoslogin.service.value = "MOBILE";
		document.lycoslogin.action = "http://secure.mobile.lycos.co.uk/lsu/signin/action.jsp";
	} else if (redirect_param == "WebCentre") {
		document.lycoslogin.action = "http://webcentre.lycos.co.uk/account/";
		document.lycoslogin.service.value = "WEBCENTER";
		document.lycoslogin.membername.name = "_loginName";
		document.lycoslogin.password.name = "_loginPass";
	} else {
		document.lycoslogin.redirect.value = "http://secure-uk.imrworldwide.com/cgi-bin/a/ci_800017/et_2/cg_800061/pi_1000083/ai_800841";
		document.lycoslogin.service.value = "Freemail";
	}
}

function getUserName() {
	var cookieName = "lsua";
	var allCookies = document.cookie;
	var start = allCookies.indexOf(cookieName + "=");
	if (start!=-1) {
		start = start + cookieName.length + 1;
		var end = allCookies.indexOf(";", start);
		if (end == -1) {
			end = allCookies.length;
		}
		var cookieVal = allCookies.substring(start, end);
		username = cookieVal.split("+");
		document.write(username[0]);
	}
}

function openme1(URL,name,width,height,toolbar) {
	window.open(URL,name,'toolbar='+toolbar+',scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+width+',height='+height +'');
}

function doredir(urltoopen) {
	location.href=urltoopen;
	return false;
}
