function secondlevelmenu()
{
	// Breite der li holen, damit a mit position:absolute an gleicher Stelle bleibt
		$$("#secondlevelmenu a.lvl1").each(function(slm_el){
			slm_el.up(0).style.width = slm_el.getWidth() + 1 + "px";
			if  ( slm_el.next(0) ){
				if ( slm_el.next(0).match("ul") )
				slm_el.next(0).style.width = "auto";
			}
		})

	// Level 3 entfernen
		$$("#secondlevelmenu a.lvl3").each(function(slm3_el){
			slm3_el.up(1).remove();
		})
}
function emptyfield(my_el, my_value) {
	my_el = $(my_el);
	if (my_el) {
		this.value = my_value;
		my_el.onfocus = function(){
			this.value = (this.value == my_value) ? '' : this.value;
		}
		my_el.onblur = function(){
			this.value = (this.value.match(/\S/)) ? this.value : my_value;
		}
	}
}

function trackGA(url)
{
	if (pageTracker) pageTracker._trackPageview(url);
	document.location.href= url;
}


function init()
{
		emptyfield("quicksearchtoken","Search");
		secondlevelmenu();
/*
	if ( !Prototype.Browser.IE6 ) {
	}
*/
}
document.observe("dom:loaded", function()
{
	init();
});
