//<script>

// Tabfade

		function globalTabOver(tabNumber){
			if (document.body.className != 'navscheme' + (tabNumber + 1)) {
				document.getElementById('globaltab'+tabNumber).className = 'on';
			}
		}
		
		function globalTabOut(tabNumber){							   
			if (document.body.className != 'navscheme' + (tabNumber + 1)) {
				document.getElementById('globaltab'+tabNumber).className = '';
			}
		}
						

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 linkifier()
{
	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_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>');
}

//</script>
