﻿// Do not modify the code below!
function lh_activeCall(item, nw)
{
	if (nw == 1)
	{
		var w = window.open(encodeURI(item));
			w.focus();
	}
	else eval(['docume','nt.loc','ation.hr','ef='].join('')+"'"+encodeURI(item)+"'");
}

/*
 * @param self	 span-Element
 * @param sub	 www-Subdomain 1 = ja / 0 = nein
 * @param params teile der Ordnerstruktur, die anschließend mit dem Separator wieder zusammengefügt werden
 * @param sep	 Separator, Angabe optional, Standard: /
 */
function lh(self, sub, params, sep)
{
	var b  = self.getAttribute('base');
	var t  = self.getAttribute('type');
	var n  = self.getAttribute('nw');

	var r  = 'http'+((sub)?'://www.':'://');
		r += ((b && self.lang)?b+'.'+self.lang+'/':window.location.host+'/');
		r += params.join(((sep)?sep:'/'))+((t)?'.'+t:'');

	lh_activeCall(r,((parseInt(n))?1:0));
}
