// browser detection
var isGecko;
ua = navigator.userAgent;
if (ua.indexOf ("Gecko") != -1) {
isGecko = true;
}
// obj MainMenu
function MainMenu (name, id, loginPic, logoutLink) {
this.name = name;
this.id = id;
this.items = new Array();
this.addMenuItem = addMainMenuItem;
this.noMoreItems = endItem;
this.returnMainMenuItem = retItem;
this.height = 26;
this.beginGif = "/C1256F0A0048C79A/m2_begin.gif";
this.paddingGif = "/C1256F0A0048C79A/m2_padding.gif";
this.delimiterGif = "/C1256F0A0048C79A/m2_delimiter.gif";
this.bottomGif = "/C1256F0A0048C79A/m2_bottom.gif"
this.bottomQSGif = "/C1256F0A0048C79A/qs_bckg2.gif"
this.loginGif = "/C1256F0A0048C79A/left_" + loginPic + "_i.gif"
this.loginGifmo = "/C1256F0A0048C79A/left_" + loginPic + "_mo.gif"
//this.registerGif = "/C1256F0A0048C79A/left_register_i.gif"
//this.registerGifmo = "/C1256F0A0048C79A/left_register_mo.gif"
document.writeln("
");
//document.writeln ("  | ")
document.writeln(" ");
document.writeln (" ");
document.writeln ("  | ");
//document.writeln ("  | ");
document.writeln ("
| ");
}
function addMainMenuItem (name, id, activeGif, inactiveGif, link) {
var ix = this.items.length;
this.items[ ix ] = new MainMenuItem (this, ix, name, id, activeGif, inactiveGif, link);
}
function endItem () {
document.writeln("  | ");
document.writeln(" " + drawQuickSearch ('C1256F0A0048C79A') + " | ");
document.writeln("
 | ");
document.writeln("
");
for (i=0; i");
if (link) document.write("");
document.write("
");
if (link) document.write("");
document.writeln(" ");
this.UIObj = document.getElementById (id);
}
function addSubMenu (id, openDirection) {
this.subMenu = new SubMenu (this, id, openDirection);
return this.subMenu;
}
// obj SubMenu
function SubMenu (parent, id, openDirection) {
this.parent = parent;
this.name = id;
this.id = id;
this.openDirecton = openDirection;
// this.openOffset = openOffset;
if (openDirection == "horizontal") { this.locX = this.parent.locX + this.parent.parent.myWidth - 1; }
else this.locX = this.parent.locX - 1;
if (openDirection == "vertical") this.locY = this.parent.locY + this.parent.parent.height - 10;
else this.locY = this.parent.locY - 1;
this.items = new Array();
this.addSubMenuItem = addSubMenuItem;
this.noMoreItems = endSubMenuItem;
this.returnSubMenuItem = retItem;
document.write ("");
document.write ("
");
}
function addSubMenuItem (name, id, menuHref, menuTarget) {
var ix = this.items.length;
this.items[ ix ] = new SubMenuItem (this, ix, name, id, menuHref, menuTarget);
}
function endSubMenuItem () {
document.writeln ("
");
for (i=0; i";
if (!menuHref) {
link = name;
myCursor = " cursor: default;";
puscica += "
";
puscica += "";
document.write ("");
}
else {
myWindow = "\"" + menuHref + "\", ";
if (!menuTarget) { myWindow += "\"_top\""; }
else { myWindow += "\"" + menuTarget + "\""; }
link = name;
puscica += " ";
puscica += "";
myCursor = " cursor: pointer;";
document.write ("
");
}
document.write ("");
document.write ("| " + puscica + " | ");
document.writeln ("");
this.UIObj = document.getElementById (id);
}
// shared functions
function locateY (obj) {
var curtop = 0;
if (obj.offsetParent)
{
while (obj.offsetParent)
{
curtop += obj.offsetTop;
obj = obj.offsetParent;
}
}
else if (obj.y) { curtop += obj.y; }
return curtop;
}
function locateX (obj) {
var curleft = 0;
if (obj.offsetParent)
{
while (obj.offsetParent)
{
curleft += obj.offsetLeft;
obj = obj.offsetParent;
}
}
else if (obj.x) {
curleft += obj.x;
}
return curleft;
}
function showSubMenu (objName) {
getObj = objName;
htmlObj = document.getElementById (getObj);
if (htmlObj) {
jsObj = eval(objName);
while (jsObj.parent) {
htmlObj = document.getElementById (jsObj.id);
htmlObj.style.visibility = "visible";
jsObj = jsObj.parent;
if (jsObj.parent) jsObj = jsObj.parent;
}
}
}
function hideSubMenu (objName) {
getObj = objName;
htmlObj = document.getElementById (getObj);
if (htmlObj) {
jsObj = eval(objName);
while (jsObj.parent) {
htmlObj = document.getElementById (jsObj.id);
htmlObj.style.visibility = "hidden";
jsObj = jsObj.parent;
if (jsObj.parent) jsObj = jsObj.parent;
}
}
}
function highlightSubMenu (objName) {
var obj = document.getElementById (objName);
var objTD = document.getElementById (objName+"TD");
obj.style.backgroundColor = "#A5BAD5";
obj.style.color = "#ffffff";
objTD.style.color = "#ffffff";
obj = document.getElementById (objName+"Gif");
if (obj) {
obj.src = obj.alternate.src;
}
}
function normalSubMenu (objName) {
var obj = document.getElementById (objName);
var objTD = document.getElementById (objName+"TD");
obj.style.backgroundColor = "#F8F8F7";
obj.style.color = "#000000";
objTD.style.color = "#000000";
obj = document.getElementById (objName+"Gif");
if (obj) {
obj.src = obj.original.src;
}
}
function preloadImg (obj, activeGif, inactiveGif) {
obj.alternate = new Image();
obj.alternate.src = activeGif;
obj.original = new Image();
obj.original.src = inactiveGif;
}
function reCalc () {
var k;
//alert(navigator.userAgent);
if (isGecko) {
for (k=0; k 1000) {
obj = document.getElementById(id+'1');
styleObject = obj.style;
styleObject.display = '';
obj = document.getElementById(id+'2');
styleObject = obj.style;
styleObject.display = '';
}
}