var toolTipDialog={
classNameShow:'toolTip',
classNameHide:'toolTip-Hide',
leftHolder:'s-box left-align',
rightHolder:'s-box right-align',
toolTip:'tip_',
toolTipDialog:'t_',
toolTipHolder:null,
widgetInfo:null,
widgetInfoName:'toolbox-widgetInfo',
showToolTip:function(id){
	var link=document.getElementById(id);
	var toolTip=document.getElementById(this.toolTip+id);
	//this.toolTipHolder=toolTip.parentNode.parentNode.parentNode.parentNode;
	var child=document.createElement('Div');
	child.id=this.toolTipDialog+id;
	if(toolTip.parentNode.parentNode.parentNode.parentNode.className==this.leftHolder){
		this.toolTipHolder=document.getElementById('searchBoxRight');
		if(document.all){
		child.style.left=link.getBoundingClientRect().left+50+'px';
		child.style.top=link.getBoundingClientRect().top+20+'px';
		}
		else{
		child.style.left=link.offsetLeft+50+'px';
		child.style.top=link.offsetTop+20+'px';
		}
		child.className='toolTipDialog-left';
		child.style.zIndex=4;
	}
	else{
		this.toolTipHolder=document.getElementById('searchBoxLeft');
		if(document.all){
		child.style.left=link.getBoundingClientRect().left+50+'px';
		child.style.top=link.getBoundingClientRect().top+20+'px';
		}
		else{
		child.style.left=link.offsetLeft+50+'px';
		child.style.top=link.offsetTop+20+'px';
		}
		child.className='toolTipDialog-right';
		child.style.zIndex=4;
	}
	
	child.innerHTML=toolTip.innerHTML;
	this.toolTipHolder.appendChild(child);
		
		
},
hideToolTip:function(id){	
	try{
	var toolTip=document.getElementById(this.toolTip+id);
	toolTip.className=this.classNameHide;
	var child=document.getElementById(this.toolTipDialog+id);
	this.toolTipHolder.removeChild(child);
	}
	catch(e){
	
	}	
},
showWidgetInfo:function(id){
	var toolTip=document.getElementById(this.toolTip+id);
	this.widgetInfo=document.getElementById(this.widgetInfoName);
	this.widgetInfo.className='widgetInfo';
	var child=document.createElement('Div');
	child.id=this.toolTipDialog+id;
	child.innerHTML=toolTip.innerHTML;
	this.widgetInfo.appendChild(child);
},
hideWidgetInfo:function(id){
	var toolTip=document.getElementById(this.toolTip+id);
	toolTip.className=this.classNameHide;
	var child=document.getElementById(this.toolTipDialog+id);
	this.widgetInfo.removeChild(child);
	this.widgetInfo.className='widgetInfo-hide';
	
}
}


