1: ContainerBox.prototype.PositionBox = function(element, borderColor, width, borderStyle) {
2:
3: var pos = J(element).offset();
4:
5: this.TopBar.style.top = pos.top;
6: this.TopBar.style.left = pos.left;
7: this.TopBar.style.width = element.offsetWidth + (width);
8: this.TopBar.style.display = "";
9: this.TopBar.style.borderTop = borderStyle + " " + width + "px " + borderColor;
10: this.TopBar.style.visibility = "visible";
11: this.TopBar.setAttribute("BorderedItemID", element.id);
12:
13:
14: this.LeftBar.style.top = pos.top;
15: this.LeftBar.style.left = pos.left + 1;
16: this.LeftBar.style.height = element.offsetHeight;
17: this.LeftBar.style.display = "";
18: this.LeftBar.style.visibility = "visible";
19: this.LeftBar.style.borderLeft = borderStyle + " " + width + "px " + borderColor;
20: this.LeftBar.setAttribute("BorderedItemID", element.id);
21:
22:
23: this.BottomBar.style.top = pos.top + element.offsetHeight - 1;
24: this.BottomBar.style.left = pos.left + 1;
25: this.BottomBar.style.width = element.offsetWidth;
26: this.BottomBar.style.display = "";
27: this.BottomBar.style.visibility = "visible";
28: this.BottomBar.style.borderTop = borderStyle + " " + width + "px " + borderColor;
29: this.BottomBar.setAttribute("BorderedItemID", element.id);
30:
31:
32: this.RightBar.style.top = pos.top;
33: this.RightBar.style.left = pos.left + element.offsetWidth;
34: this.RightBar.style.height = element.offsetHeight;
35: this.RightBar.style.display = "";
36: this.RightBar.style.visibility = "visible";
37: this.RightBar.style.borderLeft = borderStyle + " " + width + "px " + borderColor;
38: this.RightBar.setAttribute("BorderedItemID", element.id);
39: }