var imgNum = 0;
function makeTable(line) {
var ColTable = '';
ColTable += '
';
ColTable += '';
ColTable += ' | ';
ColTable += '
';
return ColTable;
}
var activeNavigation = null;
var activeProduct = null;
var timeoutId = 0;
var currentSection = "";
function showTable(idName) {
var element = '';
if (activeProduct != null){
element = returnDhtmlFeature(activeProduct);
if (element) {
element.visibility = changeElementVisibility(activeProduct, 'disable');
}
}
if (validateArg(idName)) {
activeProduct = idName;
element = returnDhtmlFeature(activeProduct);
if (element) {
element.visibility = changeElementVisibility(activeProduct, 'enable');
}
}
}
function returnDhtmlFeature(arg) {
var feature = null;
if (document.all) { // IE 4/5
feature = document.all(arg).style;
}
else if (document.layers) { // N4
feature = document.layers[arg];
}
else if (document.getElementById) { // NS
feature = document.getElementById(arg).style;
}
return feature;
}
function changeElementVisibility(idName, state) { // change visibility of passed element
var changeVisibilityTo = "";
if (document.all || document.getElementById) { // IE & NS
if (state == "enable" )
changeVisibilityTo = "visible";
else changeVisibilityTo = "hidden";
}
else if (document.layers) { // N4
if (state == "enable")
changeVisibilityTo = "show";
else changeVisibilityTo = "hide";
}
return changeVisibilityTo;
}
function swapImg(imgname, imgpath) { // rollover script
if (document.images) {
if ((document.layers) && (!validateArg(document.images[imgname]))) {
var obj = parseLayers(document, imgname, 'images');
obj.src = imgpath;
}
else {
eval('document.images.' + imgname + '.src="' + imgpath +'"');
}
}
}
function validateArg(arg) { // get boolean values for function arguments
if ((arg == "undefined") || (arg == null)) return false;
else return true;
}
function parseLayers(obj, name, type) {
var typeObj = null;
for (var i = 0; i < obj.layers.length; i++) {
if (type == 'images') typeObj = obj.layers[i].document.images;
else if (type == 'anchors') typeObj = obj.layers[i].document.anchors;
for (var j = 0; j < typeObj.length; j++) {
if (typeObj[j].name == name) {
return typeObj[j];
break;
}
}
parseLayers(obj.layers[i], name, type);
}
}