// JavaScript Document
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function showInfoLayer(content) {
	document.getElementById("infolayer").innerHTML= content;
	showFloatingBox('infolayer');
}

function hideLayer(d) {
	hideBox(d);
}

function openPurMicrosite() {
	window.open("/pur/start", "PUR", "width=778,height=550,scrollbars=no,resizable=no,menubar=no,status=no,toolbar=no");
}

function displayTipp(selObj){ //v3.0
	id = selObj.options[selObj.selectedIndex].value;
	show_tipp(id);
}

function showFloatingBox(d) {
	if(d.length < 1) { return; }
	var dd = document.getElementById(d);
	assignPosition(dd);
	dd.style.display = "block";
}

function hideBox(d) {
	if(d.length < 1) { return; }
	document.getElementById(d).style.display = "none";
}

function toggleBox(d) {
  if(d.length < 1) { return; }
	dd = document.getElementById(d);
	if (dd.style.display == "block") {
		dd.style.display = "none";
	} else {
		dd.style.display = "block";
	}
}

function setClassName(d, className) {
	document.getElementById(d).className = className;
}

function toggleClass (d, c1, c2) {
	dd = document.getElementById(d);
	if (dd.className == c1) {
		dd.className = c2;
	} else {
		dd.className = c1;
	}
}

function assignPosition(dd) {
	dd.style.left = (cX+10) + "px";
	dd.style.top = (cY+10) + "px";
}






