var header = function() {
function createHeader(currentPage) {
document.write(' \
');
var currentElement = document.getElementById(currentPage);
if (currentElement == null) currentElement = document.getElementById("menuHome");
currentElement.className = "current";
}
return {
/*
PUBLIC METHOD
*/
/**
* currentPage parameter supports the following values:
* "menuHome", "menuProduct", "menuPurchase", "menuAbout", "menuHelp", "menuContact" and "menuMore"
**/
createHeader: function(currentPage) {
createHeader(currentPage);
}
}
}();
var footer = function() {
function createFooter() {
document.write(' \
');
createTwitterWidget(document, "script", "twitter-wjs");
}
function createTwitterWidget(doc, tag, id) {
var js, fjs = doc.getElementsByTagName(tag)[0];
var protocol = /^http:/.test(doc.location) ? 'http' : 'https';
if (!doc.getElementById(id)) {
js = doc.createElement(tag);
js.id = id;
js.src = protocol + "://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
}
}
return {
/*
PUBLIC METHOD
*/
createFooter: function() {
createFooter();
}
}
}();