﻿<!--

//POPUP Menus in main navigation 
function HideContent(d) {
    if(d.length < 1) { return; }
    document.getElementById(d).style.display = "none";
}
function HideAllContent() {
    HideContent("pu_departments");
    HideContent("pu_products");
}
function ShowContent(d) {
    HideContent("pu_departments");
    HideContent("pu_products");
    if(d.length < 1) { return; }
    document.getElementById(d).style.display = "block";
}
function ReverseContentDisplay(d) {
    if(d.length < 1) { return; }
    if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
    else { document.getElementById(d).style.display = "none"; }
}


function popUpSpotlight(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=930,height=720,left = 375,top = 165');");
}

//FONT Increase/Decrease toggle item on article pages
var min=8;
var max=48;
function increaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      var s;
      if(p[i].style.fontSize) {
         s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         s = 12;
      }
      if(s!=max) {
         s += 4;
      }
      p[i].style.fontSize = s+"px"
   }
   
   var h = document.getElementsByTagName('h4');
   for(i=0;i<h.length;i++) {
      if(h[i].style.fontSize) {
         s = parseInt(h[i].style.fontSize.replace("px",""));
      } else {
         s = 12;
      }
      if(s!=max) {
         s += 4;
      }
      h[i].style.fontSize = s+"px"
   }
}

function decreaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      var s;
      if(p[i].style.fontSize) {
         s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         s = 12;
      }
      if(s!=min) {
         s -= 4;
      }
      p[i].style.fontSize = s+"px"
   }   
   
   var h = document.getElementsByTagName('h4');
   for(i=0;i<h.length;i++) {
      if(h[i].style.fontSize) {
         s = parseInt(h[i].style.fontSize.replace("px",""));
      } else {
         s = 12;
      }
      if(s!=min) {
         s -= 4;
      }
      h[i].style.fontSize = s+"px"
   } 
}
//-->