﻿function DisplayHeader() {
    var postHeader =
        '<div class="TopContentContainer">\n' +
            '<div class="PreContent"></div>\n' +
            '<div class="LocatorContainer">\n' +
                '<div class="Content">Find SmartStrand<sup>&reg;</sup></div>\n' +
                '<div class="Form">\n' +
                    '<form target="_blank" method="get" action="http://www.mohawkflooring.com/mohawk-retailer/default.aspx">\n' +
                        '<div class="TextBox"><input type="text" maxlength="10" name="zipcode" id="zipcode" value="Zip Code" onfocus="setText(\'zipcode\', \'Zip Code\');" onblur="setText(\'zipcode\', \'Zip Code\');" /></div>\n' +
                        '<div class="GoButton"><input type="image" src="Images/buttonGo.gif" alt="Go" title="Go" /></div>\n' +
                    '</form>\n' +
                '</div>\n' +
            '</div>\n' +
        '</div>\n' +
         '<div class="GlobalNav">\n' +
            '<a href="SmartStrandDemo.html" onclick="pageTracker._trackEvent(\'Button\', \'Navigation\', \'SmartStrand Demo\');">SmartStrand Demo</a>\n' +
            '<a href="http://www.mohawkflooring.com/smartstrand/" target="_blank"  onclick="pageTracker._trackEvent(\'Button\', \'Navigation\', \'More on SmartStrand\');">More on SmartStrand</a>\n' +
            '<a href="FeaturingMohawk.html" onclick="pageTracker._trackEvent(\'Button\', \'Navigation\', \'Featuring Mohawk\');">Featuring Mohawk</a>\n' +
            '<a href="PDF/SmartSolutions.pdf" target="_blank"  onclick="pageTracker._trackEvent(\'Button\', \'Navigation\', \'SmartSolutions for Fall\');">SmartSolutions for Fall</a>\n' +
            '<a href="SignUp.html"  onclick="pageTracker._trackEvent(\'Button\', \'Navigation\', \'SmartStrand Sample Request \');">SmartStrand Sample Request</a>\n' +
        '</div>';
  document.write(postHeader);
}
function DisplayPostHeader() {
    var postHeader =
        '<div class="TopContentContainer">\n' +
            '<div class="PreContent"></div>\n' +
            '<div class="LocatorContainer">\n' +
                '<div class="Content">Find SmartStrand<sup>&reg;</sup></div>\n' +
                '<div class="Form">\n' +
                    '<form target="_blank" method="get" action="http://www.mohawkflooring.com/mohawk-retailer/default.aspx">\n' +
                        '<div class="TextBox"><input type="text" maxlength="10" name="zipcode" id="zipcode" value="Zip Code" onfocus="setText(\'zipcode\', \'Zip Code\');" onblur="setText(\'zipcode\', \'Zip Code\');" /></div>\n' +
                        '<div class="GoButton"><input type="image" src="Images/buttonGo.gif" alt="Go" title="Go" /></div>\n' +
                    '</form>\n' +
                '</div>\n' +
            '</div>\n' +
        '</div>\n' +
         '<div class="GlobalNav">\n' +
            '<a href="SmartStrandDemo.html" onclick="pageTracker._trackEvent(\'Button\', \'Navigation\', \'SmartStrand Demo\');">SmartStrand Demo</a>\n' +
            '<a href="http://www.mohawkflooring.com/smartstrand/" target="_blank"  onclick="pageTracker._trackEvent(\'Button\', \'Navigation\', \'More on SmartStrand\');">More on SmartStrand</a>\n' +
            '<a href="FeaturingMohawk.html" onclick="pageTracker._trackEvent(\'Button\', \'Navigation\', \'Featuring Mohawk\');">Featuring Mohawk</a>\n' +
            '<a href="PDF/SmartSolutions.pdf" target="_blank"  onclick="pageTracker._trackEvent(\'Button\', \'Navigation\', \'SmartSolutions for Fall\');">SmartSolutions for Fall</a>\n' +
            '<a href="SignUp.html"  onclick="pageTracker._trackEvent(\'Button\', \'Navigation\', \'SmartStrand Sample Request \');">SmartStrand Sample Request</a>\n' +
        '</div>';
    document.write(postHeader);
}
function DisplayFooter() {
    var footer =
        '<div class="FooterLinks">\n' +
            '<a href="http://www.mohawkflooring.com/about-mohawk/privacy-policy.aspx" target="_blank"  onclick="pageTracker._trackEvent(\'Link\', \'Footer\', \'Privacy Policy\');">privacy policy</a><span>&bull;</span>\n' +
            '<a href="http://www.mohawkflooring.com/about-mohawk/legal-notice.aspx" target="_blank"  onclick="pageTracker._trackEvent(\'Link\', \'Footer\', \'Terms and Conditions\');">terms &amp; conditions</a>\n' +
        '</div>\n' +
        '<div class="FooterLogo"><img src="Images/logoFooterDuPont.gif" alt="DuPont Sorona renewably sourced polymer" title="DuPont Sorona renewably sourced polymer" /></div>';
    
    document.write(footer);
}
function setText(textID, text) {
    var id = document.getElementById(textID);

	if (id.value == text)
		id.value = "";
	else if (id.value == "")
	    id.value = text;
}
