
//if((homeBannerParent==null)||(homeBannerParent==this)){alert(this.style.backgroundImage+'--'+'url("+ResolveUrl(objSB.HoverImgUrl)+")');homeBannerParent=this;homeBannerSource=this;this.style.background='url("+ResolveUrl(objSB.HoverImgUrl)+") no-repeat';}
function ManageOnMouesOver(evntObj,args)
{
	var imgUrl=args[0];
	var sourceObj=args[1];
	if(isMouseLeaveOrEnter(evntObj,sourceObj)==true)
	{		
		sourceObj.style.background='transparent url('+imgUrl+') no-repeat';
		//alert('in');
	}
}

//if((homeBannerParent==null)||(homeBannerParent==homeBannerSource)){alert(this.style.backgroundImage+'--'+'url("+ResolveUrl(objSB.StartImgUrl)+")');homeBannerParent=null;homeBannerSource=null;this.style.background='url("+ResolveUrl(objSB.StartImgUrl)+")  no-repeat';}
function ManageOnMouseOut(evntObj,args)
{
	var imgUrl=args[0];
	var sourceObj=args[1];
	if(isMouseLeaveOrEnter(evntObj,sourceObj)==true)
	{		
		sourceObj.style.background='transparent url('+imgUrl+')  no-repeat';
		//alert('out');
	}
}

// this function determines whether the event is the equivalent of the microsoft
// mouseleave or mouseenter events.
function isMouseLeaveOrEnter(e, handler)
{		
	if ((e.type != 'mouseout') && (e.type != 'mouseover')) 
	{
		return false;
	}
	
	var reltg = e.relatedTarget ? e.relatedTarget : e.type == 'mouseout' ? e.toElement : e.fromElement;
	while (reltg && reltg != handler) reltg = reltg.parentNode;
	
	return (reltg != handler);
}
