/******************************************************************************
  Crossday Discuz! Board - Common Modules for Discuz!
  Modified by: Crossday Studio (http://crossday.com)
  Based upon:  http://www.cnzzz.com
*******************************************************************************/

tPopWait=20;
showPopStep=20;
popOpacity=100;

sPop_a=null;
curShow_a=null;
tfadeOut_a=null;
tFadeIn_a=null;
tFadeWaiting_a=null;

document.write("<style type='text/css'id='defaultPopStyle_a'>");
document.write(".cPopText_a { font-family: Verdana, Tahoma; background-color: #FFFFCC; border: 1px #000000 solid; font-size: 11px; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; filter: Alpha(Opacity=0)}");

document.write("</style>");
document.write("<div id='popLayer_a' style='position:absolute;z-index:1000;' class='cPopText_a'></div>");


function showPopupText_a(){
	var o_a=event.srcElement;
	MouseX_a=event.x;
	MouseY_a=event.y;
	if(o_a.alt!=null && o_a.alt!="") { o_a.pop=o_a.alt;o_a.alt="" }
        if(o_a.title!=null && o_a.title!=""){ o_a.pop=o_a.title;o_a.title="" }
        if(o_a.pop) { o_a.pop=o_a.pop.replace("\n","<br>"); o_a.pop=o_a.pop.replace("\n","<br>"); }
	if(o_a.pop!=sPop_a) {
		sPop_a=o_a.pop;
		clearTimeout(curShow_a);
		clearTimeout(tfadeOut_a);
		clearTimeout(tFadeIn_a);
		clearTimeout(tFadeWaiting_a);	
		if(sPop_a==null || sPop_a=="") {
			popLayer_a.innerHTML="";
			popLayer_a.style.filter="Alpha()";
			popLayer_a.filters.Alpha.opacity=0;	
		} else {
			if(o_a.dyclass!=null) popStyle_a=o_a.dyclass 
			else popStyle_a="cPopText_a";
			curShow_a=setTimeout("showIt_a()",tPopWait);
		}
	}
}

function showIt_a() {
	popLayer_a.className=popStyle_a;
	popLayer_a.innerHTML=sPop_a;
	popWidth=popLayer_a.clientWidth;
	popHeight=popLayer_a.clientHeight;
	if(MouseX_a+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24
		else popLeftAdjust=0;
	if(MouseY_a+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24
		else popTopAdjust=0;
	popLayer_a.style.left=MouseX_a+12+document.body.scrollLeft+popLeftAdjust;
	popLayer_a.style.top=MouseY_a+12+document.body.scrollTop+popTopAdjust;
	popLayer_a.style.filter="Alpha(Opacity=0)";
	fadeOut_a();
}

function fadeOut_a(){
	if(popLayer_a.filters.Alpha.opacity<popOpacity) {
		popLayer_a.filters.Alpha.opacity+=showPopStep;
		tfadeOut_a=setTimeout("fadeOut_a()",1);
	}
}




document.onmouseover=showPopupText_a;