UNMAINTAINED -- Javascript file to allow 9 patch images on the web. For a more detailed explanation of 9-patch images read here: http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch
Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
in function NinePatchGetStyle, you may need to add try catch..
var computedStyle = window.getComputedStyle(element, "");
The original test 9patch image I used was a repeated and not stretched image. I believe stretching is the more appropriate method for implementation. We may want to support both.