var ie=document.all
var ns6=document.getElementById && !document.all

if (ie||ns6){
	var tipobj=document.all? document.all["channel_tip"] : document.getElementById? document.getElementById("channel_tip") : ""
	var tip_pointer=document.all? document.all["channel_pointer"] : document.getElementById? document.getElementById("channel_pointer") : ""

}

function findPosY(obj)
{
	var current_top = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			current_top += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		current_top += obj.y;
	return current_top;
}

function create_tip(thetext, anchor_object){
	if (ns6||ie){
		var object_y = 0;
		object_y = findPosY(anchor_object);
		
		//if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
		
		tipobj.innerHTML=thetext;
		
		tipobj.style.visibility="visible";
		tip_pointer.style.visibility="visible";
		
		tipobj.style.left=(580-tipobj.offsetWidth)+"px"
		tip_pointer.style.left=(579)+"px"
		
		if(ie){
			object_y += 30;
		}
		tipobj.style.top=(object_y)+"px";
		tip_pointer.style.top=(object_y)+"px";
		
		return false
		}
}


function hide_tip(){
	if (ns6||ie){
		enabletip=false
		
		tipobj.style.visibility="hidden"
		tip_pointer.style.visibility="hidden"
		
		tipobj.style.top="-1000px"	
		tipobj.style.backgroundColor=''
		tipobj.style.width=''
	}
}
