var browserName = navigator.appName;
var browserVer = parseInt(navigator.appVersion);
var version = "";
var msie4 = (browserName == "Microsoft Internet Explorer" && browserVer >= 4);
if ((browserName == "Netscape" && browserVer >= 3) || msie4 || browserName=="Konqueror" || browserName=="Opera") {
	version = "n3";
} else {
	version = "n2";
}


// Blurring links:
function blurLink(theObject) {	
	if (msie4) {
		theObject.blur();
	}
}






function addSemRow(semAktiv, semTitle, semSSID, semGroupID, semSID, semCID, semSearch, sessionID) {
var efecto=0;
// semaktiv: 0 ... link 1 ... info 2 ... anmeldung
var semTable = 'seminare';
var rows=document.getElementById(semTable).getElementsByTagName('tr');
var index=1;
var clone=rows[index-1].cloneNode(true);
var divs=clone.getElementsByTagName('div');
var semref = "seminar_view.asp?SSID=" + semSSID + "&SID=" + semSID + "&search=" + semSearch + "&sessionid=" + sessionID + "&efecto=" + efecto;
var iH = "";
//semTitle = semTitle.replace(/%96/g, "-");
var semStatus = semTitle.replace(/%3Cbr%3E/g, " %2D ");

if (semAktiv == 0) {
	iH = "<a class=linkw id=link" + semGroupID + " href='" + semref + "' onfocus='blurLink(this);' target='_self' ";
	iH += "onmouseover=\"window.status=unescape('" + semStatus + "'); return true;\" onmouseout=\"window.status=''; return true;\">";
	iH += "<table cellspacing=0 style='cursor:hand;margin:0px 4px 0px 4px;'>";
	iH += "<tr><td>";
	iH += "<div onClick=\"location.href='" + semref + "';return false;\">";		
	iH += "<b>" + unescape(semTitle) + "</b>";
	iH += "</div>";
	iH += "</td></tr>";
	iH += "</table>"; 
	iH += "<table cellspacing=0 style='cursor:hand;margin:0px 4px 0px 4px;'>";
	iH += "<tr><td>";
	iH += "<div onClick=\"location.href='" + semref + "';return false;\"";		
	iH += "onmouseover=\"this.style.color='black'; return true;\" onmouseout=\"this.style.color=''; return true;\">";
	iH += "weitere Infos & PDF";
	iH += "</div>";
	iH += "</td><td>&nbsp;|&nbsp;</td><td>";
	iH += "<div onClick=\"location.href='" + semref + "&CID=" + semCID + "';return false;\"";
	iH += "onmouseover=\"this.style.color='black'; return true;\" onmouseout=\"this.style.color=''; return true;\">";
	iH += "Anmeldung";
	iH += "</div>";
	iH += "</td></tr></table>"; 
	iH += "</a>";
} else {
	iH = "<a id=linkaktiv ";
	iH += "onmouseover=\"window.status=unescape('" + semStatus + "'); return true;\" onmouseout=\"window.status=''; return true;\">";
	iH += "<table cellspacing=0 style='cursor:default;margin:0px 4px 0px 4px;'>";
	iH += "<tr><td><div>";
	iH += "<b>" + unescape(semTitle) + "</b>";
	iH += "</div>";
	iH += "</td></tr>";
	iH += "</table>"; 
	iH += "<table cellspacing=0 style='cursor:default;margin:0px 4px 0px 4px;'>";
	iH += "<tr><td>";
	if (semAktiv == 1) {
		iH += "<div>";
		iH += "weitere Infos & PDF";
		iH += "</div>";
		iH += "</td><td>&nbsp;|&nbsp;</td><td>";
		iH += "<div onClick=\"location.href='" + semref + "&CID=" + semCID + "';return false;\"";
		iH += "onmouseover=\"this.style.color='black'; this.style.cursor='hand'; return true;\" onmouseout=\"this.style.color=''; this.style.cursor='default'; return true;\">";
		iH += "Anmeldung";
		iH += "</div>";
	} else {
		iH += "<div onClick=\"location.href='" + semref + "';return false;\"";
		iH += "onmouseover=\"this.style.color='black'; this.style.cursor='hand'; return true;\" onmouseout=\"this.style.color=''; this.style.cursor='default'; return true;\">";
		iH += "weitere Infos & PDF";
		iH += "</div>";
		iH += "</td><td>&nbsp;|&nbsp;</td><td>";
		iH += "<div>";
		iH += "Anmeldung";
		iH += "</div>";
	}
	iH += "</td></tr></table>"; 
	iH += "</a>";
}

divs[0].innerHTML = iH;
divs[0].style.visibility = "";
divs[0].className="nav3sub";

var tbo=document.getElementById(semTable).getElementsByTagName('tbody')[0];
tbo.appendChild(clone);

}

