<!--//--><![CDATA[//><!--
// Menu rollover behavior for IE
sfHover = function() {
	var sfEls = document.getElementById("navlist").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

sfHover2 = function() {
	var sfEls2 = document.getElementById("navlist_bottom").getElementsByTagName("LI");
	for (var i=0; i<sfEls2.length; i++) {
		sfEls2[i].onmouseover=function() {
			this.className+=" sfhover2";
		}
		sfEls2[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover2\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover2);

//--><!]]>



// Prints the date in long text format.
function prtDate(){
   now = new Date();
   day = new Array("Sunday","Monday","Tuesday","Wednesday",
           "Thursday","Friday","Saturday");
   month = new Array("Jan.","Feb.","March","April","May",
           "June","July","Aug.","Sept.","Oct.",
           "Nov.","Dec.");

   var date = day[now.getDay()] + ", " + month[now.getMonth()] + " " +
              now.getDate() + ", " + now.getFullYear() ;

   return (date);
}



// This script pops up all external links in a new window.
function popLinks(){
  var serverone = document.location.hostname;
  // Enter an additional domain that you *don't* want in new windows here 
  var servertwo = "asp5.secure-shopping.com";
  
  if (!document.getElementsByTagName) return null;
  var anchors = document.getElementsByTagName("a");
  for(var i=0; i < anchors.length; i++){
    var a = anchors[i];
    var href = a.href;
    if ((href.indexOf("http") != -1) && (href.indexOf(serverone) == -1) && (href.indexOf(servertwo) == -1)) { 
	  a.setAttribute("title","This link will open in a new window.");  
	  
	  // Change the width/height of the popup window below, if you wish
	  a.onclick = function() { window.open(this.getAttribute('href'), "popUp", "toolbar,location,resizable,scrollbars,width=500,height=400"); return false; }
    }
  }
}

