 					topLeft, topRight, bottomRight, bottomLeft, SIDE_RIGHT);
 			}
 	
-			if (borderWidth.bottom > 0 && borderStyle.bottom != 'none' && borderColor.bottom != 0)
+			if (borderWidth.bottom > 0 && borderStyle.bottom != 'none' && borderColor.bottom)
 			{
 				topLeft.x = 0;
 				topLeft.y = m_height;

					topLeft, topRight, bottomRight, bottomLeft, SIDE_TOP);
			}
			
			if (borderWidth.right > 0 && borderStyle.right != 'none' && borderColor.right != 0)
			{
				topLeft.x = m_width;
				topLeft.y = 0;

	
			var borderWidth : Object = 
			{
				top : m_styles.borderTopWidth,
				right : m_styles.borderRightWidth,
				bottom : m_styles.borderBottomWidth,
				left : m_styles.borderLeftWidth
			};
			
			var borderStyle : Object =
