var JDWMinNS4 = (navigator.appName.indexOf("Netscape") >= 0 &&
parseFloat(navigator.appVersion) >= 4) ? 1 : 0; var JDWMinNS6 =
(navigator.appName.indexOf("Netscape") >= 0 &&
parseFloat(navigator.appVersion) == 6) ? 1 : 0; var JDWMinIE4 = (document.all) ? 1 : 0;
var JDWMinIE5 = (JDWMinIE4 && navigator.appVersion.indexOf("5.") >=
0) ? 1 : 0; var JDWMinIE55 = (JDWMinIE5 &&
navigator.appVersion.indexOf("5.5") >= 0) ? 1 : 0; function hideLayer(layer)
{ if (JDWMinNS4) layer.visibility = "hide"; if (JDWMinIE4)
layer.style.visibility = "hidden"; } function showLayer(layer) { if (JDWMinNS4)
layer.visibility = "show"; if (JDWMinIE4) layer.style.visibility =
"visible"; } function inheritLayer(layer) { if (JDWMinNS4) layer.visibility =
"inherit"; if (JDWMinIE4) layer.style.visibility = "inherit"; }
function getVisibility(layer) { if (JDWMinNS4) { if (layer.visibility == "show")
return "visible"; if (layer.visibility == "hide") return
"hidden"; return layer.visibility; } if (JDWMinIE4) return
layer.style.visibility; return ""; } function moveLayerTo(layer, x, y) { if
(JDWMinNS4) layer.moveTo(x, y); if (JDWMinIE4) { layer.style.left = x; layer.style.top =
y; } } function moveLayerBy(layer, dx, dy) { if (JDWMinNS4) layer.moveBy(dx, dy); if
(JDWMinIE4) { layer.style.pixelLeft += dx; layer.style.pixelTop += dy; } } function
getLeft(layer) { if (JDWMinNS4) return layer.left; if (JDWMinIE4) return
layer.style.pixelLeft; return -1; } function getTop(layer) { if (JDWMinNS4) return
layer.top; if (JDWMinIE4) return layer.style.pixelTop; return -1; } function
getRight(layer) { if (JDWMinNS4) return layer.left + getWidth(layer); if (JDWMinIE4)
return layer.style.pixelLeft + getWidth(layer); return -1; } function getBottom(layer) {
if (JDWMinNS4) return layer.top + getHeight(layer); if (JDWMinIE4) return
layer.style.pixelTop + getHeight(layer); return -1; } function getPageLeft(layer) { var x;
if (JDWMinNS4) return layer.pageX; if (JDWMinIE4) { x = 0; while (layer.offsetParent !=
null) { x += layer.offsetLeft; layer = layer.offsetParent; } x += layer.offsetLeft; return
x; } return -1; } function getPageTop(layer) { var y; if (JDWMinNS4) return layer.pageY;
if (JDWMinIE4) { y = 0; while (layer.offsetParent != null) { y += layer.offsetTop; layer =
layer.offsetParent; } y += layer.offsetTop; return y; } return -1; } function
getWidth(layer) { if (JDWMinNS4) { if (layer.document.width) return layer.document.width;
else return layer.clip.right - layer.clip.left; } if (JDWMinIE4) { if
(layer.style.pixelWidth) return layer.style.pixelWidth; else return layer.clientWidth; }
return -1; } function getHeight(layer) { if (JDWMinNS4) { if (layer.document.height)
return layer.document.height; else return layer.clip.bottom - layer.clip.top; } if
(JDWMinIE4) { if (layer.style.pixelHeight) return layer.style.pixelHeight; else return
layer.clientHeight; } return -1; } function getzIndex(layer) { if (JDWMinNS4) return
layer.zIndex; if (JDWMinIE4) return layer.style.zIndex; return -1; } function
setzIndex(layer, z) { if (JDWMinNS4) layer.zIndex = z; if (JDWMinIE4) layer.style.zIndex =
z; } function clipLayer(layer, clipleft, cliptop, clipright, clipbottom) { if (JDWMinNS4)
{ layer.clip.left = clipleft; layer.clip.top = cliptop; layer.clip.right = clipright;
layer.clip.bottom = clipbottom; } if (JDWMinIE4) layer.style.clip = 'rect(' + cliptop + '
' + clipright + ' ' + clipbottom + ' ' + clipleft +')'; } function getClipLeft(layer) { if
(JDWMinNS4) return layer.clip.left; if (JDWMinIE4) { var str = layer.style.clip; if (!str)
return 0; var clip = getIEClipValues(layer.style.clip); return(clip[3]); } return -1; }
function getClipTop(layer) { if (JDWMinNS4) return layer.clip.top; if (JDWMinIE4) { var
str = layer.style.clip; if (!str) return 0; var clip = getIEClipValues(layer.style.clip);
return clip[0]; } return -1; } function getClipRight(layer) { if (JDWMinNS4) return
layer.clip.right; if (JDWMinIE4) { var str = layer.style.clip; if (!str) return
layer.style.pixelWidth; var clip = getIEClipValues(layer.style.clip); return clip[1]; }
return -1; } function getClipBottom(layer) { if (JDWMinNS4) return layer.clip.bottom; if
(JDWMinIE4) { var str = layer.style.clip; if (!str) return layer.style.pixelHeight; var
clip = getIEClipValues(layer.style.clip); return clip[2]; } return -1; } function
getClipWidth(layer) { if (JDWMinNS4) return layer.clip.width; if (JDWMinIE4) { var str =
layer.style.clip; if (!str) return layer.style.pixelWidth; var clip =
getIEClipValues(layer.style.clip); return clip[1] - clip[3]; } return -1; } function
getClipHeight(layer) { if (JDWMinNS4) return layer.clip.height; if (JDWMinIE4) { var str =
layer.style.clip; if (!str) return layer.style.pixelHeight; var clip =
getIEClipValues(layer.style.clip); return clip[2] - clip[0]; } return -1; } function
getIEClipValues(str) { var clip = new Array(); var i; i = str.indexOf("(");
clip[0] = parseInt(str.substring(i + 1, str.length), 10); i = str.indexOf(" ", i
+ 1); clip[1] = parseInt(str.substring(i + 1, str.length), 10); i = str.indexOf("
", i + 1); clip[2] = parseInt(str.substring(i + 1, str.length), 10); i =
str.indexOf(" ", i + 1); clip[3] = parseInt(str.substring(i + 1, str.length),
10); return clip; } function scrollLayerTo(layer, x, y, bound) { var dx =
getClipLeft(layer) - x; var dy = getClipTop(layer) - y; scrollLayerBy(layer, -dx, -dy,
bound); } function scrollLayerBy(layer, dx, dy, bound) { var cl = getClipLeft(layer); var
ct = getClipTop(layer); var cr = getClipRight(layer); var cb = getClipBottom(layer); if
(bound) { if (cl + dx <0) dx="-cl;" else if (cr + dx> getWidth(layer)) dx = getWidth(layer) - cr; if (ct + dy <0) dy="-ct;" else if (cb + dy>
getHeight(layer)) dy = getHeight(layer) - cb; } clipLayer(layer, cl + dx, ct + dy, cr +
dx, cb + dy); moveLayerBy(layer, -dx, -dy); } function setBgColor(layer, color) { if
(JDWMinNS4) layer.bgColor = color; if (JDWMinIE4) layer.style.backgroundColor = color; }
function setBgImage(layer, src) { if (JDWMinNS4) layer.background.src = src; if
(JDWMinIE4) layer.style.backgroundImage = "url(" + src + ")"; }
function getLayer(name) { if (JDWMinNS4) return findLayer(name, document); if (JDWMinIE4)
return eval('document.all.' + name); return null; } function findLayer(name, doc) { var i,
layer; for (i = 0; i
' + '
\n' + '
\n'; // Build HTML for the headers. for (i = 0; i '; if (JDWMinNS4) str += ' ' + norm + this.menus[i].items[0].text + end + ' \n' + ' ' + high + this.menus[i].items[0].text + end + ' \n' + ' '; if (JDWMinIE55) str += ' '; str += ' \n'; } } if (JDWMinNS4) { str += '\n'; this.baseLayer = new Layer(this.width);
this.baseLayer.document.open(); this.baseLayer.document.write(str);
this.baseLayer.document.close(); } if (JDWMinIE4) { str += ' \n'; str = ' \n' + str + ' \n'; document.body.insertAdjacentHTML("beforeEnd", str); this.baseLayer =
getLayer("JDWITEM" + this.index); } // Position and G6JDWinitialize each header.
width = 0; height = 0; for (i = 0; i '; for (i = 0; i \n' + ' \n' + ' \n'; } } if (JDWMinNS4) { this.menus[i].baseLayer = new
Layer(this.menus[i].width); this.menus[i].baseLayer.document.open();
this.menus[i].baseLayer.document.write(str); this.menus[i].baseLayer.document.close(); }
if (JDWMinIE4) { str = ' \n'; document.body.insertAdjacentHTML("beforeEnd", str);
this.menus[i].baseLayer = getLayer("JDWITEM" + this.index + "_menu" +
i); } } // Restore original scroll position in IE4. if (JDWMinIE4 && !JDWMinIE5)
window.scrollTo(x, y); // Position and G6JDWinitialize each menu. for (i = 0; i ' + '';
high = '
0 ? ' width=' + this.menus[i].hdrWidth : '') + '>
' + '';
end = '
' + '';
high = '
' + '';
end = '