diff -r 1e40b33f2e3e -r c949e82b8f49 includes/functions.php --- a/includes/functions.php Mon Apr 13 12:32:36 2009 -0400 +++ b/includes/functions.php Mon Apr 13 14:43:28 2009 -0400 @@ -2155,6 +2155,27 @@ } /** + * Generate HTML for a sprite image. + * @param string Path to sprite image + * @param int Width of resulting image + * @param int Height of resulting image + * @param int X offset + * @param int Y offset + * @return object HTMLImageElement + */ + +function gen_sprite($path, $width, $height, $xpos, $ypos) +{ + $html = '