--- /dev/null
+/**\r
+ * QLIB 1.0 Box Resource\r
+ * Copyright (C) 2002 2003, Quazzle.com Serge Dolgov\r
+ * This program is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU General Public License\r
+ * as published by the Free Software Foundation; either version 2\r
+ * of the License, or (at your option) any later version.\r
+ * http://qlib.quazzle.com\r
+ */\r
+\r
+function QBoxRes(t, r, b, l, tc, tr, mr, br, bc, bl, ml, tl, bgcolor, bgtile, effects, opacity) { \r
+ var args = QBoxRes.arguments.length;\r
+ this.T = t;\r
+ this.R = r;\r
+ this.B = b;\r
+ this.L = l;\r
+ this.TC = new Image();\r
+ this.TC.src = tc;\r
+ this.TR = new Image(r, t);\r
+ this.TR.src = tr;\r
+ this.MR = new Image();\r
+ this.MR.src = mr;\r
+ this.BR = new Image(r, b);\r
+ this.BR.src = br;\r
+ this.BC = new Image();\r
+ this.BC.src = bc;\r
+ this.BL = new Image(l, b);\r
+ this.BL.src = bl;\r
+ this.ML = new Image();\r
+ this.ML.src = ml;\r
+ this.TL = new Image(l, t);\r
+ this.TL.src = tl;\r
+ this.bgcolor = bgcolor || "#FFFFFF";\r
+ if (bgtile) {\r
+ this.bgtile = new Image();\r
+ this.bgtile.src = bgtile;\r
+ } else {\r
+ this.bgtile = false;\r
+ }\r
+ this.effects = (args > 13) ? effects : null;\r
+ this.opacity = (args > 14) ? opacity : null;\r
+}\r