function CHover(layout) {
    this.iTimeout=250;
    this.iEventID=0;
    this.elemHover=null;
    this.layout=layout;
    //FeedBack=new CFeedBack();
}
CHover.prototype.OnOver=function(a) {
    if(this.layout.strLayout=="S") {
        this.doc=mainFrame.frmSrc.contentWindow.document;
        this.doc2=mainFrame.frmTgt.contentWindow.document;
    }
    else {
        this.doc=mainFrame.frmTgt.contentWindow.document;
        this.doc2=mainFrame.frmSrc.contentWindow.document;
    }
    setTimeout("Hover.Show("+(++this.iEventID)+",'"+a+"');",this.iTimeout)
}
CHover.prototype.OnOut=function(a) {
    setTimeout("Hover.Hide("+(++this.iEventID)+",'"+a+"');",this.iTimeout)
}
CHover.prototype.Show=function(f,a) {
    if(this.layout.strLayout!="S"&&this.layout.strLayout!="T")return;
    if(f!=this.iEventID)return;
    
    var b=this.doc.getElementById(a);
    if(b==null||b==this.elemHover)return;
    if(this.elemHover!=null)
    try {
        this.Hide(this.iEventID,this.elemHover.id)
    }
    catch(g){}

    var c=this.doc2.getElementById(a);
    
    if(WordShow==null)
    {
        WordShow=new CWordShow();
       
        
    }
    //初始化
    WordShow.Init(this.doc,this.doc2);
    
    //显示结果 添加在此
    WordShow.Show(a);

}
CHover.prototype.Hide=function(a) {
    if(a<this.iEventID)return;
    //隐藏
    if(WordShow!=null)
    {
        WordShow.Hide();
    }
}
CHover.prototype.RegCSS=function() {
    if(this.doc.cssRegged)return true;
    this.doc.cssRegged=true;
    var ss=this.doc.styleSheets[0];
    if(ss) {
          Util.AddRule(ss, ".hidden", "display:none;visibility:hidden;position:absolute;width:0px;height:0px;");
        return true;
    }
    return false;
}
