function initLayerNl(){

	var top = 314;
	if(navigator.userAgent.indexOf("Macintosh") != -1)
		top = 311;

	document.write('<div onMouseOver=\"divOnNl()\" onMouseOut=\"toHideDivNl(\'newLecture\')\" id=\"newLecture\" style=\"top: ' + top + 'px; left: 0;background-color: #517c9e; position:absolute; width:178px; height:90px; z-index:1; visibility:hidden\">');
	document.write('<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">');
	document.write('<tr><td>&nbsp;</td></tr>');
	document.write('<tr><td class=\"white\" style="padding-top: 5px; padding-bottom: 5px; padding-left: 23px"><strong><a href=\"/mdct/eng/e-lectures/index.html\">Listed by Topic</a></strong></td></tr>');
	document.write('<tr><td class=\"white\" style="padding-top: 5px; padding-bottom: 5px; padding-left: 23px"><strong><a href=\"/mdct/eng/e-lectures/indexBySymp.html\">Listed by Symposia</a></strong></td></tr>');
	document.write('</table>');
	document.write('</div>');
}

function showDivNl(d){

	divOnNl();
	
	shLeft = setLeft() + 681;
	document.getElementById(d).style.left = shLeft + "px";
	document.getElementById(d).style.visibility= "visible";
}

function toHideDivNl(d){
	eval("nlTimeout = setTimeout(\"hideDivNl('" + d + "')\", 40);");
}

function hideDivNl(d){
	document.getElementById(d).style.visibility = "hidden";
}

function divOnNl(){
	toType = typeof(nlTimeout);
	if(toType != "undefined"){
		clearTimeout(nlTimeout);
	}
}

function setLeft(){

            if(navigator.appName.indexOf("Netscape")!=-1){
                    if(window.innerWidth < 860)
                            return 0;
                    else if (navigator.userAgent.indexOf("Safari") != -1){
                            return ((window.innerWidth - 860)/2) + 1;
		    }else{
			    return ((window.innerWidth - 860)/2) - 7;
		    }
            }
            else{
                    if(window.innerWidth < 860)
                            return 0;
                    else
                            return ((document.body.offsetWidth - 860)/2) + 1;

            }
    }
