var imgNum = 0;
function makeTable(line) {
var PanelTable = '';
PanelTable += '
';
PanelTable += '';
PanelTable += ' | ';
PanelTable +=' | ' + Panels[line].title + ' Details '; // name of product
PanelTable += ' '; // space between name & text
PanelTable += Panels[line].text; // product description
PanelTable += ' |
|
';
return PanelTable;
}
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) { // NS7.1
feature = document.getElementById(arg).style;
}
return feature;
}
function changeElementVisibility(idName, state) { // change visibility of passed element
var changeVisibilityTo = "";
if (document.all || document.getElementById) { // IE & NS7.1
if (state == "enable" )
changeVisibilityTo = "visible";
else changeVisibilityTo = "hidden";
}
else if (document.layers) { // N4
if (state == "enable")
changeVisibilityTo = "show";
else changeVisibilityTo = "hide";
}
return changeVisibilityTo;
}
function validateArg(arg) { // get boolean values for function arguments
if ((arg == "undefined") || (arg == null)) return false;
else return true;
}
function PanelLine(title, url, text) {
this.title = title;
this.url = url;
this.text = text;
}
var Panels = new Object();
Panels.objNames = ["camisole", "europleat" ,"frenchpleat","rodpocket","tabtop"
,"unpleatedringtop","hourglassrtb","reversehourglassrtb","rodtopbottomrtb"
];
Panels.camisole = new PanelLine(
"Camisole Panel",
"",
"| The slim camisole straps give the Camisole Panel a distinctive, designer look. |
| This style is best suited for panels that are primarily stationary or tied back. |
"
);
Panels.europleat = new PanelLine(
"Euro Pleat Panel",
"",
"| The Euro Pleat Panel features elegant triple-fold pinch pleats, tacked at the top, suspended from rings for a dramatic look. More classic than other styles, but equally at home in any décor. Rings allow easy opening and closing. |
| The Euro Pleat panel is good for decorative arrangements such as bishop's sleeves, puddling, or \"breaking\" the draperies on the floor. |
"
);
Panels.frenchpleat = new PanelLine(
"French Pleat Panel",
"",
"| The classic French Pleat Panel has a luxurious, rich look, and is the most traditional of our panel styles. This highly versatile style can be used in the most formal of settings, but is suitable for use in many other design situations as well. |
| This style is often used on standard traversing hardware, but can also be used with baton-operated decorative hardware, or as stationary panels or tie backs. |
"
);
Panels.rodpocket = new PanelLine(
"Rod Pocket Panel",
"",
"| This simple style features a fabric pocket that is slipped over any of our wood or iron rods and gathered, creating a soft, unstructured drape. An optional ruffle at the top adds flair and softness. |
| This style is best suited for panels that will remain stationary. |
"
);
Panels.tabtop = new PanelLine(
"Tab Top Panel",
"",
"| Casual tabs give this style a comfortable feel. The panel falls loosely from a decorative rod, creating a soft, unstructured look. Best for panels that won't be opened and closed very often. Tabs are sewn in at intervals of 9\" 11\". |
"
);
Panels.unpleatedringtop = new PanelLine(
"Unpleated Ring Top Panel",
"",
"| This popular style has a clean, simple design and rings that allow easy opening and closing. This style is perfect for casual or formal design situations. |
"
);
Panels.hourglassrtb = new PanelLine(
"Hourglass RTB",
"",
"Normally used on French doors or on side light windows, the Hourglass RTB uses sash rods to gather the panel at both top and bottom.| The panel is pulled together in the middle with a fabric tie band. |
| Optional ruffles at top, or at both top and bottom, add decorative flair and softness to the overall look. |
"
);
Panels.reversehourglassrtb = new PanelLine(
"Reverse Hourglass RTB",
"",
"| Normally used on French doors or on side light windows, the Reverse Hourglass RTB uses sash rods to gather the panel at both the top and bottom. |
| Each panel is pulled to the side with a fabric tie band. |
| Optional ruffles at top, or at both top and bottom, add decorative flair and softness to the overall look. |
"
);
Panels.rodtopbottomrtb = new PanelLine(
"Rod Top & Bottom RTB",
"",
"| The RTB panel is a fabric panel with pockets sewn at the top and bottom for mounting under slight tension on two rods. This style adds privacy, neatness, and insulation to stationary applications such as French doors or narrow side light windows on entry doors. |
| Optional ruffles at top, or at both top and bottom, add decorative flair and softness to the overall look. |
"
);