var isNav4, isNav6, isIE4, isOpera, isMac;function setBrowser(){		if (navigator.userAgent.indexOf("Mac") >= 0) isMac = true;		if (navigator.appName.indexOf("Opera") >= 0) isOpera = true;		else if (navigator.userAgent.indexOf("iCab") >= 0) isNav4 = true;		else if (navigator.appVersion.charAt(0) == "4")		{				if (navigator.appName.indexOf("Explorer") >= 0) isIE4 = true;				else isNav4 = true;		}		else if (navigator.appVersion.charAt(0) > "4") isNav6 = true;}function getStyleBySelector( selector ){    if (!isNav6 && !isOpera)    {        return null;    }    var sheetList = document.styleSheets;    var ruleList;    var i, j;    for (i=sheetList.length-1; i >= 0; i--)    {        ruleList = sheetList[i].cssRules;        for (j=0; j<ruleList.length; j++)        {            if (ruleList[j].type == CSSRule.STYLE_RULE &&                ruleList[j].selectorText == selector)            {                return ruleList[j].style;            }           }    }    return null;}function getIdProperty( id, property ){    if (isNav6 || isOpera)    {        var styleObject = document.getElementById( id );        if (styleObject != null)        {            styleObject = styleObject.style;            if (styleObject[property])            {                return styleObject[ property ];            }        }        styleObject = getStyleBySelector( "#" + id );        return (styleObject != null) ? styleObject[property] : null;    }    else if (isNav4)    {        return document[id][property];    }    else    {        return document.all[id].style[property];    }}function setIdProperty( id, property, value ){    if (isNav6 || isOpera)    {        var styleObject = document.getElementById( id );        if (styleObject != null)        {            styleObject = styleObject.style;            styleObject[ property ] = value;        }    }    else if (isNav4)    {        document[id][property] = value;    }    else if (isIE4)    {         document.all[id].style[property] = value;    }}function generic_move( id, xValue, yValue, additive ){    var left = getIdProperty(id, "left");    var top = getIdProperty(id, "top");    var leftMatch, topMatch;    if (isNav4)    {        return null;    }		var splitexp = /([-0-9.]+)(\w+)/;		leftMatch = splitexp.exec( left );		topMatch = splitexp.exec( top );		if (leftMatch == null || topMatch == null)		{				leftMatch = new Array(0, 0, "px");				topMatch = new Array(0, 0, "px");		}    left = ((additive) ? parseFloat( leftMatch[1] ) : 0) + xValue;    top = ((additive) ? parseFloat( topMatch[1] ) : 0) + yValue;    setIdProperty( id, "left", left + leftMatch[2] );    setIdProperty( id, "top", top + topMatch[2] );}function moveTo( id, x, y ){    generic_move( id, x, y, false );}function moveBy( id, x, y){    generic_move( id, x, y, true );}// Added additional functions below on 31/10/01  --Chatfunction getPosition( id ) {		if (isNav4)		{				return null;		}				var coordinates = new Object();		var x=0;		var y=0;			 	if (isIE4) 	 	{				x = getOffsetLeft( document.all[id] ) - 2;				y = getOffsetTop( document.all[id] ) + 24; // hard-coded for CB				if (isMac) 				{ 						if (self.location.href.indexOf("/nba/template.html") != '-1' || 								self.location.href.substring(self.location.href.length - 1, self.location.href.length) == '/')						{								x += -3;						}						else						{							x += -3;						}				}		}		else if (isNav6 || isOpera) 		{				o = document.getElementById( id );				x = getOffsetLeft( o ) - 2;				y = getOffsetTop( o ) + 12; // hard-coded for CB		}		else 		{				x = 0; 				y = 0;		}				coordinates.x = x;		coordinates.y = y;		return coordinates;}function getOffsetLeft( o ) {		var x = o.offsetLeft;		while ((o = o.offsetParent) != null) 		{ 				x += o.offsetLeft; 		}		return x;}function getOffsetTop( o ) {		var y = o.offsetTop;		while((o = o.offsetParent) != null) 		{ 				y += o.offsetTop; 		}		return y;}function MM_openBrWindow(theURL,winName,features) { //v2.0  window.open(theURL,winName,features);}