function newPromo() {
    increment = Math.floor(Math.random() * promoImage.length);
    document.getElementById("rotatingPromo").innerHTML = "<a href='"+promoImage[increment][0]+"' title='"+promoImage[increment][2]+"' rel='"+promoImage[increment][3]+"'><img src='images/"+promoImage[increment][1]+"' alt='"+promoImage[increment][2]+"'></a>";
};

function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "newWindow")
     anchor.target = "_blank";
 }
}

function initProducts() {
    shelffx = new fx.Height("productsList", {duration: 0});
    shelffx.hide();
}
function initBrands() {
    shelffx2 = new fx.Height("brandsList", {duration: 0});
    shelffx2.hide();
}
function initPromotions() {
    shelffx3 = new fx.Height("promotionsList", {duration: 0});
    shelffx3.hide();
}
function initSupports() {
    shelffx4 = new fx.Height("supportList", {duration: 0});
    shelffx4.hide();
}

function initQuickLinks() {
    shelffx5 = new fx.Height("quicklinksList", {duration: 0});
    shelffx5.hide();
}
