function hideMe(objDisplay,objHide,objImage) {

	if (objDisplay.style.display == '' ) {
		//alert('hiding');
		objDisplay.style.display = 'none'; 
		writeSessionCookie ('openCat', 'hide');
		objImage.src = '/border/show_cat-main000005.jpg';
		if(document.all){
			objHide.innerText = 'Show Categories';
		} else{
			objHide.textContent = 'Show Categories';
		}
	} else if ( objDisplay.style.display == 'none' ) {
		//alert('showing');
		objDisplay.style.display = ''; 
		writeSessionCookie ('openCat', 'show');
		objImage.src = '/border/hide_cat-main000005.jpg';
		if(document.all){
			objHide.innerText = 'Hide Categories';
		} else{
			objHide.textContent = 'Hide Categories';
		}
	}
	
}

function hideContact(objDisplay,objHide,objImage) {

	var stCookieName = 'openContact';

	if (objDisplay.style.display == '' ) {
		//alert('hiding');
		objDisplay.style.display = 'none'; 
		writeSessionCookie (stCookieName, 'hide');
		objImage.src = '/border/show_contact-main000005.jpg';
		if(document.all){
			objHide.innerText = 'View Contact Details';
		} else{
			objHide.textContent = 'View Contact Details';
		}
	} else if ( objDisplay.style.display == 'none' ) {
		//alert('showing');
		objDisplay.style.display = ''; 
		writeSessionCookie (stCookieName, 'show');
		objImage.src = '/border/hide_contact-main000005.jpg';
		if(document.all){
			objHide.innerText = 'Hide Contact Details';
		} else{
			objHide.textContent = 'Hide Contact Details';
		}
	}
}

function pageInit(){
	
	var openCat = getCookieValue ('openCat') || 'hide';
	
	if ( openCat == 'show' && document.getElementById('ProdCatTag') != undefined ){
		hideMe(document.getElementById('ProdCatTag'),document.getElementById('ProdCatLink'),document.getElementById('show_hide_img'));
	}
}

<!--
function clickCount(table, recordId, siteId) {
 var image = new Image();
 var today = new Date();
 image.src=("/" + siteId + "/graphics/1pix.gif?table=" + table + "&id=" + recordId + "&ord=" + today.getTime());
}
function readCookie(name) {
 var nameEQ = name + "=";
 var ca = document.cookie.split(';');
 for (var i = 0; i < ca.length; i++) {
  var c = ca[i];
  while (c.charAt(0) == ' ') c = c.substring(1, c.length);
  if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
 }
 return "";
}
function setCookie(name, value, days) {
 var expires = "";
 if (days) {
  var date = new Date();
  date.setTime(date.getTime() + (days*24*60*60*1000));
  expires = "; expires=" + date.toGMTString();
 }
 document.cookie = name + "=" + value + expires + "; path=/";
}
function getOption(value, preselect, label) {
 var option = "<option ";
 if (value == preselect) option += "selected ";
 option += "value=\"" + value + "\">" + label + "\n";
 return option;
}
function downloadCount(table, recordId, siteId) {
 var image = new Image();
 var today = new Date();
 image.src=("/" + siteId + "/graphics/downloadcount.gif?table=" + table + "&id=" + recordId + "&ord=" + today.getTime());
}
function getStatsLine(siteId) {
 var image = new Image();
 var today = new Date();
 image.src=("/" + siteId + "/graphics/stats.gif?url=" + escape(document.URL) + "&ord=" + today.getTime());
}
function scaleUpArea(obj, noOfCols, noOfRows) {
 if (obj) {
  obj.cols = noOfCols;
  obj.rows = noOfRows;
 }
 return false;
}
function utf8Decode(utftext) {
 // From http://www.webtoolkit.info/javascript-url-decode-encode.html
 utftext = unescape(utftext);
 var result = "";
 var i = 0;
 var c = c1 = c2 = 0;
 while (i < utftext.length) {
  c = utftext.charCodeAt(i);
  if (c < 128) {
   result += String.fromCharCode(c);
   i++;
  }
  else if((c > 191) && (c < 224)) {
   c2 = utftext.charCodeAt(i+1);
   result += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
   i += 2;
  }
  else {
   c2 = utftext.charCodeAt(i+1);
   c3 = utftext.charCodeAt(i+2);
   result += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
   i += 3;
  }
 }
 return result;
}
function changeCss(myClass, element, value) {
 //documentation for this script at http://www.shawnolson.net/a/503/
 var cssRules;
 if (document.all) {
  cssRules = 'rules';
 } else {
  if (document.getElementById) cssRules = 'cssRules';
 }
 if (document.styleSheets) {
  for (var i = 0; i < document.styleSheets.length; i++){
   if (document.styleSheets[i][cssRules]) {
    for (var j = 0; j < document.styleSheets[i][cssRules].length; j++) {
     if (document.styleSheets[i][cssRules][j].selectorText == myClass) {
      document.styleSheets[i][cssRules][j].style[element] = value;
     }
    }
   }
  }
 }	
}
function printableVersion() { 
 var nonPrintEl = document.getElementsByName("noprint");
 if (nonPrintEl) {
  for (var i = 0; i < nonPrintEl.length; i++) {
   nonPrintEl[i].style.display = "none";
  }
 }
 var backBut = document.getElementById("backToNormalViewButton");
 if (backBut) backBut.style.display = "";
 if (window.print) setTimeout("window.print()", 1000);   // Time out required for FireFox.
};
function normalVersion() {
 normalVersion(1);
}
function normalVersion(siteId) {
 var nonPrintEl = document.getElementsByName("noprint");
 if (nonPrintEl) {
  for (var i = 0; i < nonPrintEl.length; i++) {
   nonPrintEl[i].style.display = "";
  }
 }
 var backBut = document.getElementById("backToNormalViewButton");
 if (backBut) backBut.style.display = "none";
};
function getBackgroundColor(styleType, siteId) {
   return "white";
}
// RFI tool tips
// http://www.bitterpill.org/bp/2004-10/alt-alt-text.html
var rfitt_bgcol = "#FFFFFF";
var rfitt_brdr = " solid #DDDDDD 1px";
var padding = "5px 5px 5px 5px";
var live = new Object();
var nofade = new Object();
var fastfade = false;
var moz_opacity = false;
var ie_opacity = false;
var nodes = new Object();
var tempX = 0;
var tempY = 0;
var ison = false;
var IE = document.all?true:false
// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)
// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;
function setOff(altid) {
 var nodeInst = nodes[altid];
 nodeInst['on'] = false;
 ison = false;
}
function onMouseOutSetOffAndHide(node, altid) {
 node.onmouseout = function offnhide() { setOff(altid); hideAltAlt(altid); };
}
function showAltAlt(node, altid, width) {
    showAltAlt2(node, altid, width, 2000); // 2000 = time in millis before info fades
}
function showAltAlt2(node, altid, width, hidetime) {
 if (hidetime == null) hidetime = 2000;
 var status = true;
 var nodeInst = nodes[altid];
 if(nodeInst && nodeInst['on'] == true) {
  status = false;
 }
 if(browserDetect() && status) {
  var nodeInst = new Object();
  nodeInst['altid'] = altid;
  nodeInst['width'] = width;
  nodeInst['on'] = true;
  nodes[altid] = nodeInst;  
  node.onmouseout = function offit() { setOff(altid); };
  setTimeout("run('" + altid + "'," + hidetime + ")", 500); 
 }
}
function run(altid, hidetime) {
 var nodeInst = nodes[altid];
 if(nodeInst['on'] == true) {
  altalt(nodeInst['altid'], nodeInst['width'], hidetime);
 }
}
function hideAltAlt(altid) {
 fadeit(altid, 3);
}
function altalt(altid, width, hidetime) {
 nid = altid + '-altalt'; 
 try {    
  if(live[nid]) {
   return;
  } else {
   live[nid] = true;
  }
  leftx = tempX + 5; // show box a short distance away from the mouse pointer, so that the user can still click checkbox/radio inputs
  bottomy = tempY + 5; 
  var span = document.getElementById(altid).getElementsByTagName("span")[0];
  var newDiv = document.createElement("DIV");
  newDiv.setAttribute("id", nid);
  newDiv.style.position = "absolute";
  newDiv.style.visibility = "hidden"
  newDiv.style.overflow = "hidden";
  newDiv.style.top = bottomy + "px";
  newDiv.style.left = leftx + "px";
  newDiv.style.border = rfitt_brdr;
  newDiv.style.width = width + "px";
  newDiv.style.padding = padding;
  newDiv.style.paddingRight = "3px";
  newDiv.style.backgroundColor = rfitt_bgcol;
  var newSpan = document.createElement("SPAN");
  newSpan = span.cloneNode(true);
  newDiv.appendChild(newSpan);  
  var body = document.getElementsByTagName("body")[0]; 
  body.appendChild(newDiv);     
  newDiv.style.visibility = 'visible';
  setTimeout('fadeit("' + altid + '", 100)', hidetime);
 } catch(err) { 
  alert(err);
 }
}
function fadeit(altid, op) {
 nid = altid + '-altalt';
 var node = document.getElementById(nid);  
 if(nofade[nid] == true) {
  node.style.opacity = "1";
  nofade[nid] = false;
  return;
 }
 if(op > 0 && fastfade == false) {
  op = op - 1;
  if(ie_opacity) {
   var ieop = op * 10;  
   if (node) node.style.filter = "alpha(opacity="+ ieop + ")";
  } else if (moz_opacity) {
   //alert('mozo');
   var mozop = op * 10;
   if (node) node.style.MozOpacity= mozop + "/100";
  } else {
   if (node) node.style.opacity = "." + op;
  }
  fadefunct = 'fadeit("' + altid + '", ' + op + ')';
  setTimeout(fadefunct, 30);
 } else {
  var node = document.getElementById(nid);
  if (node) node.style.visibility = 'hidden';   
  var body = document.getElementsByTagName("body")[0];
  if (node) body.removeChild(node); 
  live[nid] = false;
 } 
}
function browserDetect() {
 var isgood = false;
 var agt=navigator.userAgent.toLowerCase();
 var is_major = parseInt(navigator.appVersion); 
 if(agt.indexOf('safari')!=-1) {
  isgood = true;
 } else if((agt.indexOf('mozilla')!=-1) && (agt.indexOf('gecko')!=-1)) {
  var rvindex = agt.indexOf("rv:");
  var rv2end = agt.substring(rvindex + 3, agt.length);
  var parenIndex = rv2end.indexOf(")");
  var rev = rv2end.substring(0, parenIndex); 
  if(rev < 1.7) {
   fastfade = true;
   //alert( moz_opacity );
  }
  isgood = true;
 } else if(agt.indexOf('opera')!=-1) {
  fastfade = true;
  isgood = true;
  //moz_opacity = true;
 } else if(agt.indexOf('msie')!=-1) {
  if(agt.indexOf('mac')!=-1) { 
   ie_opacity = false;
   fastfade = true;
  } else {
   ie_opacity = true;
  }
  isgood = true;
 }
 return isgood;
}
function getMouseXY(e) {
 if (IE) { // grab the x-y pos.s if browser is IE
   tempX = event.clientX;
   if ((document.body) && (document.body.scrollLeft)) {
     tempX += document.body.scrollLeft;
   } else {
     if ((document.documentElement) && (document.documentElement.scrollLeft)) {
        tempX += document.documentElement.scrollLeft;
     }
   }
   tempY = event.clientY;
   if ((document.body) && (document.body.scrollTop)) {
     tempY += document.body.scrollTop;
   } else {
     if ((document.documentElement) && (document.documentElement.scrollTop)) {
        tempY += document.documentElement.scrollTop;
     }
   }
  } else { // grab the x-y pos.s if browser is NS
   tempX = e.pageX;
   tempY = e.pageY;
  }
} 
function setSearchTerm() {
 setSearchTerm(20);
}
function setSearchTerm(siteId) {
 var kw = readCookie("SEARCHTERM");
 if (kw == "") {
  var myRef = document.referrer;
  if ((myRef != null) && (myRef != "")) {
   if (myRef.indexOf(".google.") != -1) {
    var qIndex = myRef.indexOf("?q=");
    if (qIndex == -1) qIndex = myRef.indexOf("&q=");
    if (qIndex != -1) {
     kw = myRef.substring(qIndex + 3, myRef.length);
     var nextVarIndex = kw.indexOf("&");
     if (nextVarIndex != -1) kw = kw.substring(0, nextVarIndex);
     kw = utf8Decode(kw);
     kw = kw.replace(/\+/g, " ");
    }
   }
  }
 }
 kw = unescape(kw);
 if (document.getElementById("search_field")) document.getElementById("search_field").value = kw;
}
var stats_div = "bps_stat_html";
var SUM_COMP = 0;
var SUM_FILE = 1;
var SUM_NEWS = 2;
var SUM_PROD = 3;
var summaryIds = new Array();
summaryIds[SUM_COMP] = new Array();
summaryIds[SUM_FILE] = new Array();
summaryIds[SUM_NEWS] = new Array();
summaryIds[SUM_PROD] = new Array();
var stats_timestamp = null;
function getTimestamp() {
  if (!stats_timestamp) stats_timestamp = new Date().getTime();
  return stats_timestamp;
}
function bps_stats_bv_no_time(bps_object, bps_id) {
  bps_stats_image(null, "bps_bv.gif", bps_object, bps_id, null, getTimestamp());
}
function bps_stats_cd_no_time(bps_object, bps_id, bps_companyId) {
  bps_stats_image(null, "bps_cd.gif", bps_object, bps_id, bps_companyId, getTimestamp());
}
function bps_stats_cl_no_time(bps_object, bps_id, bps_companyId) {
  bps_stats_image(null, "bps_cl.gif", bps_object, bps_id, bps_companyId, getTimestamp());
}
function bps_stats_dl_no_time(bps_object, bps_id, bps_companyId) {
  bps_stats_image(null, "bps_dl.gif", bps_object, bps_id, bps_companyId, getTimestamp());
}
function bps_stats_em_no_time(bps_object, bps_id, bps_companyId) {
  bps_stats_image(null, "bps_em.gif", bps_object, bps_id, bps_companyId, getTimestamp());
}
function bps_stats_pv_no_time(bps_object, bps_id) {
  bps_stats_image(stats_div, "bps_pv.gif", bps_object, bps_id, null, getTimestamp());
}
function bps_stats_pv_no_time(bps_object, bps_id, bps_companyId) {
  bps_stats_image(stats_div, "bps_pv.gif", bps_object, bps_id, bps_companyId, getTimestamp());
}
function bps_stats_sv_no_time(bps_object, bps_id, bps_companyId) {
  addToArray(bps_object, bps_id, bps_companyId);
}
function addToArray(bps_object, bps_id, bps_companyId) {
  if (bps_object) {
    var summaryTypeId = getSummaryTypeId(bps_object);
    if (summaryTypeId >= 0) {
      if (!bps_id) bps_id = "0";
      if (!bps_companyId) bps_companyId = "0";
      var newIndex = summaryIds[summaryTypeId].length;
      summaryIds[summaryTypeId][newIndex] = new Array(2);
      summaryIds[summaryTypeId][newIndex][0] = bps_id;
      summaryIds[summaryTypeId][newIndex][1] = bps_companyId;
    }
  }
}
function getSummaryTypeId(bps_object) {
  if (bps_object == "comp") {
    return SUM_COMP;
  } else {
    if (bps_object == "file") {
      return SUM_FILE;
    } else {
      if (bps_object == "news") {
        return SUM_NEWS;
      } else {
        if (bps_object == "prod") {
          return SUM_PROD;
        } else {
          return -1;
        }
      }
    }
  }
}
function getSummaryTypeStr(summaryTypeId) {
  switch(summaryTypeId) {
  case SUM_COMP: return "comp";
  case SUM_FILE: return "file";
  case SUM_NEWS: return "news";
  case SUM_PROD: return "prod";
  default: return "";
  }
}
function bps_summary_views(bps_div, bps_timestamp) {
  var bps_img = "bps_sv.gif";
  for (var i = 0; i < summaryIds.length; i++) {
    if (summaryIds[i].length > 0) {
      var bps_object = getSummaryTypeStr(i);
      var imgSrc1 = "/" + bps_img + "?bps_object=" + bps_object + "&bps_id=";
      var imgSrc2 = "&bps_companyid=";
      for (var j = 0; j < summaryIds[i].length; j++) {
        if (j > 0) {
          imgSrc1 += ",";
          imgSrc2 += ",";
        }
        imgSrc1 += summaryIds[i][j][0];
        imgSrc2 += summaryIds[i][j][1];
      }
      var imgSrc = imgSrc1 + "&time=" + bps_timestamp + imgSrc2 + "&e=1";
      document.getElementById(bps_div).innerHTML += "<img src='" + imgSrc + "' width='1' height='1'>";
    }
  }
}
function bps_stats_image(bps_div, bps_img, bps_object, bps_id, bps_companyId, bps_timestamp) {
  if (bps_object) {
    if (!bps_timestamp) bps_timestamp = getTimestamp();
    if (bps_img == "bps_pv.gif") {
      // Count summary views before page views
      bps_summary_views(bps_div, bps_timestamp);
    }
    if (!bps_id) bps_id = "0";
    if (!bps_companyId) bps_companyId = "0";
    var imgSrc = "/" + bps_img + "?bps_object=" + bps_object + "&bps_id=" + bps_id + "&time=" + bps_timestamp + "&bps_companyid=" + bps_companyId + "&e=1";
    if (bps_div) {
      document.getElementById(bps_div).innerHTML += "<img src='" + imgSrc + "' width='1' height='1'>";
    } else {
      var myImage = new Image();
      myImage.src = imgSrc;
    }
  }
}


//-->
