// JavaScript Document
function initArea(){
	new PopArea("faxArea","FAX:86-10-62237723");
	new PopArea("telArea","TEL:86-10-62238700");
	new PopArea("leadArea","立特校园文化传播（北京）有限公司");
}
function PopArea(entity,content){
	this.entity=$(entity);
	this.content=content;
	this.init();
	this.initEvent();
}
PopArea.prototype={
	init:function(){
		this.floatDiv=document.createElement("div");
		this.floatDiv.style.cssText="padding:20px;border:1px solid #ccc;background:#eee;position:absolute;display:none;z-index:999;filter:alpha (opacity:90);-moz-opacity:0.9;opacity:0.9;"
		this.floatDiv.innerHTML=this.content;
		this.entity.parentNode.appendChild(this.floatDiv);
	},initEvent:function(){
		var _this=this;
		addEvent(this.entity,function(){_this.show()},"mouseover");
		addEvent(this.floatDiv,function(){_this.hidden()},"mouseout");
	},
	show:function(){
		var t=parseInt(GetCurrentStyle(this.entity,"top"));
		var r=parseInt(GetCurrentStyle(this.entity,"right"));
		this.floatDiv.style.top=(t-20)+"px"
		this.floatDiv.style.right=(r-10)+"px"
		this.floatDiv.style.display="block";
	},
	hidden:function(){
		this.floatDiv.style.display="none";
	}
}