private static int GetBorderEdge(jQueryObject element, Edge edge)
{
if (Script.IsNullOrUndefined(element)) return 0;
string value = element.GetCSS(string.Format("border-{0}-width", edge.ToString().ToLocaleLowerCase()));
if (string.IsNullOrEmpty(value)) return 0;
if (!value.EndsWith(Px)) return 0;
return Int32.Parse(value);
}