var bEnteredSubNav = false;
function getNavigation(sPage) { //Reset subnav sensor.
bEnteredSubNav = false;
sPage = sPage.toLowerCase();  //Normalize for conditional.
var aLinkTitles = new Array();  //Array objects to store dynamic navigation items.
var aLinkHrefs = new Array();
setNavigation(sPage);  //Roll over top nav.
switch (sPage) {   //Conditional based on tab selected.
case "home":
aLinkTitles[0] = "Home Page";
aLinkHrefs[0] =  "index.html";
aLinkTitles[1] = "FAQ";
aLinkHrefs[1] =  "faq.html";
aLinkTitles[2] = "Request Samples";
aLinkHrefs[2] =  "samplesrequest.html";
aLinkTitles[3] = "Upload Arwork";
aLinkHrefs[3] =  "uploadartwork.html";
aLinkTitles[4] = "Contact Us / Email";
aLinkHrefs[4] =  "contactus.html";
break;
case "woven":
aLinkTitles[0] = "Information";
aLinkHrefs[0] =  "wovenlabels.html";
aLinkTitles[1] = "Custom Woven Labels";
aLinkHrefs[1] =  "custom_woven_labels.html";
aLinkTitles[2] = "Stock Woven Labels";
aLinkHrefs[2] =  "stock_woven_labels.html";
aLinkTitles[3] = "Woven Label Samples";
aLinkHrefs[3] =  "woven_label_samples.html";
aLinkTitles[4] = "Free Woven Label Quote";
aLinkHrefs[4] =  "woven_quote.html";
break;
case "printed":
aLinkTitles[0] = "Information";
aLinkHrefs[0] =  "printedlabels.html";
aLinkTitles[1] = "Printed Label Samples";
aLinkHrefs[1] =  "printed_fabric_label_samples.html";
aLinkTitles[2] = "Free Printed Label Quote";
aLinkHrefs[2] =  "printed_fabric_label_quote.html";
break;
case "forms":
aLinkTitles[0] = "Information";
aLinkHrefs[0] =  "businessforms.html";
aLinkTitles[1] = "Free Form Quote";
aLinkHrefs[1] =  "forms_quote.html";
break;
case "decals":
aLinkTitles[0] = "Information";
aLinkHrefs[0] =  "decals.html";
aLinkTitles[1] = "Decal Samples";
aLinkHrefs[1] =  "decal_samples.html";
aLinkTitles[2] = "Free Decal Quote";
aLinkHrefs[2] =  "decal_quote.html";
break;
case "property":
aLinkTitles[0] = "Information";
aLinkHrefs[0] =  "idlabels.html";
aLinkTitles[1] = "Anodized Aluminum";
aLinkHrefs[1] =  "anodized_aluminum_property_labels.html";
aLinkTitles[2] = "Polyester";
aLinkHrefs[2] =  "polyester_property_labels.html";
aLinkTitles[3] = "Paper";
aLinkHrefs[3] =  "paper_property_labels.html";
aLinkTitles[4] = "Destructive Vinyl";
aLinkHrefs[4] =  "destructive_vinyl_property_labels.html";
aLinkTitles[5] = "Void Tamper Evident";
aLinkHrefs[5] =  "void_tamper_evident_property_labels.html";
aLinkTitles[6] = "Stock ID";
aLinkHrefs[6] =  "stock_property_id_labels.html";
aLinkTitles[7] = "Free Quote";
aLinkHrefs[7] =  "property_id_label_quote.html";
break;
case "stickers":
aLinkTitles[0] = "Information";
aLinkHrefs[0] =  "stickers.html";
aLinkTitles[1] = "Sticker Samples";
aLinkHrefs[1] =  "sticker_samples.html";
aLinkTitles[2] = "UPC Codes";
aLinkHrefs[2] =  "upc_codes.html";
aLinkTitles[3] = "ID Validation Stickers";
aLinkHrefs[3] =  "validation_stickers.html";
aLinkTitles[4] = "Free Sticker Quote";
aLinkHrefs[4] =  "sticker_quote.html";
break;
case "admission":
aLinkTitles[0] = "Information";
aLinkHrefs[0] =  "admissiontabs.html"; 
aLinkTitles[1] = "Metal Tabs / Buttons";
aLinkHrefs[1] =  "metal_tabs.html";  
aLinkTitles[2] = "Plastic Admission Tabs";
aLinkHrefs[2] =  "admission_tabs.html"; 
aLinkTitles[3] = "Pressure Sensitive Stickers";
aLinkHrefs[3] =  "pressure_sensitive_admission_stickers.html";
aLinkTitles[4] = "Hang Tags";
aLinkHrefs[4] =  "custom_printed_hang_tags.html";
aLinkTitles[5] = "Free Quote";
aLinkHrefs[5] =  "admission_badges_quote.html";
break;
case "carpet":
aLinkTitles[0] = "Information";
aLinkHrefs[0] =  "carpetlabels.html";
aLinkTitles[1] = "Carpet Label Samples";
aLinkHrefs[1] =  "carpet_label_samples.html";
aLinkTitles[2] = "Free Carpet Label Quote";
aLinkHrefs[2] =  "carpet_label_quote.html";
break;
case "hangtags":
aLinkTitles[0] = "Information";
aLinkHrefs[0] =  "hangtags.html";
aLinkTitles[1] = "Hangtag Samples";
aLinkHrefs[1] =  "hangtag_samples.html";
aLinkTitles[2] = "Free Hangtag Quote";
aLinkHrefs[2] =  "hangtag_quote.html";
break;
case "brochures":
aLinkTitles[0] = "Information";
aLinkHrefs[0] =  "brochures.html";
aLinkTitles[1] = "Free Brochure Quote";
aLinkHrefs[1] =  "brochure_quote.html";
break;
default:break;}

//Clear the navigation area.
oNavDiv = document.getElementById("navigationContent")
oNavDiv.innerHTML = "";
for (var i = 0; i <= (aLinkTitles.length - 1); i++) {
oNavDiv.innerHTML += "<a href=\"" + aLinkHrefs[i] + "\" class=\"subnav\">" + aLinkTitles[i] + "</a>";
//Insert divider unless last element in array.
if (i != aLinkTitles.length - 1) {
oNavDiv.innerHTML += "&nbsp; | &nbsp;";}}}
function setNavigation(sPage) { //Roll over top nav.
document.getElementById("imgTopNavBar").src = document.getElementById("Nav" + sPage).src;}
function writePreloader() {
document.write("<div style=\"visibility:hidden; position:absolute; width:1px; height:1px; overflow:hidden;\">");
document.write("<img id=\"Navhome\" src=\"images2/navbar_home.gif\" width=\"982\" height=\"22\" alt=\"\" />");
document.write("<img id=\"Navwoven\" src=\"images2/navbar_woven.gif\" width=\"982\" height=\"2\" alt=\"\" />");
document.write("<img id=\"Navprinted\" src=\"images2/navbar_printed.gif\" width=\"982\" height=\"22\" alt=\"\" />");
document.write("<img id=\"Navdecals\" src=\"images2/navbar_decals.gif\" width=\"982\" height=\"22\" alt=\"\" />");
document.write("<img id=\"Navproperty\" src=\"images2/navbar_property.gif\" width=\"982\" height=\"22\" alt=\"\" />");
document.write("<img id=\"Navstickers\" src=\"images2/navbar_stickers.gif\" width=\"982\" height=\"22\" alt=\"\" />");
document.write("<img id=\"Navadmission\" src=\"images2/navbar_admission.gif\" width=\"982\" height=\"22\" alt=\"\" />");
document.write("<img id=\"Navcarpet\" src=\"images/navbar_carpet.gif\" width=\"982\" height=\"22\" alt=\"\" />");
document.write("<img id=\"Navhangtags\" src=\"images2/navbar_hangtags.gif\" width=\"982\" height=\"22\" alt=\"\" />");
document.write("<img id=\"Navforms\" src=\"images2/navbar_forms.gif\" width=\"982\" height=\"22\" alt=\"\" />");
document.write("<img id=\"Navbrochures\" src=\"images2/navbar_brochures.gif\" width=\"982\" height=\"22\" alt=\"\" />");
document.write("</div>");}


function DoBlur(fld) {
    fld.className='normalfld';
}

function DoFocus(fld) {
    fld.className = 'focusfld';
}

