//'程序开发：梦乐标本
//'最后更新时间：16:12 2007-3-15
//'成员变量命名规则：__test
//'函数命名规则：jf_test()
function jf_init()
{
this.__src="http://www.xmyw.cn/e/e1.gif";
this.__eid=null;
this.__company=null;
this.__more=null;
this.__width=110;
this.__height=145;
this.__marginright=3;
this.__marginbottom=300;
this.__click=null;
this.__flash=false;
this.__div="ad1RightFloat";
}
var jf=new jf_init()
function jf_judge(divid)
{
	var _judge = navigator.userAgent;
	if (_judge.indexOf("Firefox") >= 0 || _judge.indexOf("Opera") >= 0)
	{
		document.getElementById(divid).style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - jf.__height - jf.__marginbottom + 'px';
		document.getElementById(divid).style.left = ((document.body.clientWidth > document.documentElement.clientWidth)?document.body.clientWidth:document.documentElement.clientWidth) - jf.__width - jf.__marginright + 'px';
	}
	else
	{
		document.getElementById(divid).style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight) - jf.__height - jf.__marginbottom + 'px';
		document.getElementById(divid).style.left = ((document.documentElement.clientWidth == 0)?document.body.clientWidth:document.documentElement.clientWidth) - jf.__width - jf.__marginright + 'px';
	}
}
function jf_closediv(divid)
{
	var dv = document.getElementById(divid);
	dv.style.visibility="hidden";
	dv.style.display="none";
}
function jf_showdiv(divid)
{
	var _click = "javascript:window.open('http://wise.etelephone.cn/dial_select.jsp?pid=100000000&wid="+jf.__eid+"&rid=&udinfo=&name="+jf.__company+"','_media','width=330,height=305,menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no')";
	if (jf.__src != "") {
		if (jf.__flash) {
			document.write("<div id=\""+divid+"\" style=\"position: absolute;width:" + jf.__width + ";\"><a onclick=\"" + _click +"\"><embed src=\"" + jf.__src + "\" quality=\"high\"  width=\"" + jf.__width + "\" height=\"" + jf.__height + "\" type=\"application/x-shockwave-flash\" id=\"ccc\" style=\"cursor:hand;\" "+jf.__more+"></a></embed><br><A href='javascript:jf_closediv(\""+divid+"\")'><u></u></a></div>");
		}
		else{
			document.write("<div id=\""+divid+"\" style=\"position: absolute;width:" + jf.__width + ";\"><a onclick=\"" + _click +"\" style=\"cursor:hand;\" "+jf.__more+"><img src=\"" + jf.__src + "\"   width=\"" + jf.__width + "\" height=\"" + jf.__height + "\"\></a><br><A href='javascript:jf_closediv(\""+divid+"\")'><u></u></a></div>");
		}
	}
}
function jf_load(){
	jf_changeinit(jf);
	jf_showdiv(jf.__div);
	jf_judge(jf.__div);
	jf_move();
}
function jf_move() {
	jf_judge(jf.__div);
	setTimeout("jf_move();",100)
}
jf_load();

