DHTML progress bar for glacial rate adding and editing, closes: Bug#1100
[freeside.git] / httemplate / elements / qlib / boxres.js
1 /**\r
2  * QLIB 1.0 Box Resource\r
3  * Copyright (C) 2002 2003, Quazzle.com Serge Dolgov\r
4  * This program is free software; you can redistribute it and/or\r
5  * modify it under the terms of the GNU General Public License\r
6  * as published by the Free Software Foundation; either version 2\r
7  * of the License, or (at your option) any later version.\r
8  * http://qlib.quazzle.com\r
9  */\r
10 \r
11 function QBoxRes(t, r, b, l, tc, tr, mr, br, bc, bl, ml, tl, bgcolor, bgtile, effects, opacity) { \r
12     var args = QBoxRes.arguments.length;\r
13     this.T = t;\r
14     this.R = r;\r
15     this.B = b;\r
16     this.L = l;\r
17     this.TC = new Image();\r
18     this.TC.src = tc;\r
19     this.TR = new Image(r, t);\r
20     this.TR.src = tr;\r
21     this.MR = new Image();\r
22     this.MR.src = mr;\r
23     this.BR = new Image(r, b);\r
24     this.BR.src = br;\r
25     this.BC = new Image();\r
26     this.BC.src = bc;\r
27     this.BL = new Image(l, b);\r
28     this.BL.src = bl;\r
29     this.ML = new Image();\r
30     this.ML.src = ml;\r
31     this.TL = new Image(l, t);\r
32     this.TL.src = tl;\r
33     this.bgcolor = bgcolor || "#FFFFFF";\r
34     if (bgtile) {\r
35         this.bgtile = new Image();\r
36         this.bgtile.src = bgtile;\r
37     } else {\r
38         this.bgtile = false;\r
39     }\r
40     this.effects = (args > 13) ? effects : null;\r
41     this.opacity = (args > 14) ? opacity : null;\r
42 }\r