function CHighlight(scroll){
    this.scroll=scroll;
}
CHighlight.prototype={
	Init:function(){
		this.docSrc=mainFrame.frmSrc.contentWindow.document;
		this.docTgt=mainFrame.frmTgt.contentWindow.document;

		var s=this.docSrc.getElementsByTagName("span");
		for(var i=0;i<s.length;i++)
		{
			var a=s[i];
			if(a.id.substring(0,3)=="TR_"){
				var b=this.docTgt.getElementById(a.id);
				if(b!=null){
					a.onmouseover=function(){
						Highlight.Apply(this)
					};
					b.onmouseover=function(){
						Highlight.Apply(this)
					};
					a.onmouseout=function(){
						Highlight.Clear()
					};
					b.onmouseout=function(){
						Highlight.Clear()
					}
				}
			}
		}
	},
	Apply:function(o){
		var b=o.id;
		if(this.strCurHighNodeID==b)return;
		try{
			var a=this.docSrc.getElementById(b);
			var c=this.docTgt.getElementById(b);
			var f=c;
			if(o==c)f=a;
		}
		catch(e){
			return
		}
		if(a==null||c==null)return;
	    
		this.Clear();
	    
		this.strCurHighNodeID=b;
	    
		this.strHighBackground=a.style.background;
		this.strHighForeColor=a.style.color;
		this.strHighBackColor=a.style.backgroundColor;
	    
		a.style.color=c.style.color="#0F0F5F";
		a.style.backgroundColor=c.style.backgroundColor="#F0F0A0";
	    
		Hover.OnOver(b)
	},
	Clear:function(){
		if(this.strCurHighNodeID==null)return;
		try{
			Hover.OnOut(this.strCurHighNodeID);
	        
			var a=this.docSrc.getElementById(this.strCurHighNodeID);
			if(a){
				a.style.color=this.strHighForeColor;
				a.style.backgroundColor=this.strHighBackColor;
			}
			var b=this.docTgt.getElementById(this.strCurHighNodeID);
			if(b){
				b.style.color=this.strHighForeColor;
				b.style.backgroundColor=this.strHighBackColor;
			}
	        
			this.strCurHighNodeID=null
		}
		catch(c){}
	}
}
