// -=-=-=-=-=-=-=-=
var homepagefile = "homepage.html";
var aboutpagefile = "about.html";
var collectionpagefile = "collection.html";
var specspagefile = "specs.html";
var finishpagefile = "finishes.html";
var reppagefile = "rep.html";
var newspagefile = "news.html";
var environmentalpagefile = "environmental.html";
var custompagefile = "custom.html";
var catalogpagefile = "catalog.html";
// build a catalog item URL
function catalogURL(prodselix,iscoord) {
var querytail =
((prodselix >= 0) && (prodselix < Product.length)) ?
(((window.location.protocol == "http:") ? "?" : "#")
+ "p=" + Product[prodselix].pagetag
+ ((iscoord && (prodix >= 0)) ? ("\&c=" + Product[prodix].pagetag) : "")
) : "" ;
return catalogpagefile + querytail ;
}
// go to a specified product page, either main (false) or coordinate (true)
function gotoProduct(prodselix,iscoord) {
// got to new page and force reload
var gotoURL = catalogURL(prodselix,iscoord);
window.location.href = gotoURL;
if (window.location.protocol != "http:")
window.location.reload(false);
}
var strMenuTag2 = "";
function strMenuTag1(thispage, thatpage) {
tpmenutag1 = "";
tpmenutag2 = "";
strMenuTag2 = (thispage == thatpage) ? tpmenutag2 : "";
return (thispage == thatpage) ? tpmenutag1 : ("");
}
function showMenu(thispage) {
document.write( strMenuTag1(thispage,homepagefile) + "Home" + strMenuTag2
+ " | "
+ strMenuTag1(thispage,aboutpagefile) + "About" + strMenuTag2
+ " | "
+ strMenuTag1(thispage,collectionpagefile) + "Collection" + strMenuTag2
+ " | "
+ strMenuTag1(thispage,custompagefile) + "Custom" + strMenuTag2
+ " | "
+ strMenuTag1(thispage,specspagefile) + "Specifications" + strMenuTag2
+ " | "
+ strMenuTag1(thispage,reppagefile) + "Sales & Showrooms" + strMenuTag2
+ " | "
+ strMenuTag1(thispage,newspagefile) + "News" + strMenuTag2);
}