function toggleDiv(id,flagit) {
	if (flagit=="1"){
		if (document.layers) document.layers[''+id+''].visibility = "show"
		else if (document.all) document.all[''+id+''].style.visibility = "visible"
		else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
	}
		else
		if (flagit=="0"){
		if (document.layers) document.layers[''+id+''].visibility = "hide"
		else if (document.all) document.all[''+id+''].style.visibility = "hidden"
		else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
	}
}

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") == "external") 
     anchor.target = "_blank"; 
 } 
} 
window.onload = externalLinks;




if (document.images) {

  var consumer_off = new Image();
  var consumer_on = new Image();

  var medical_off = new Image();
  var medical_on = new Image();

  var industrial_off = new Image();
  var industrial_on = new Image();

  var architecture_off = new Image();
  var architecture_on = new Image();

  var transport_off = new Image();
  var transport_on = new Image();
}

function loadImages() {
  if (document.images) {

    consumer_off.src = "../images/icons/consumer-black.gif";
    consumer_on.src = "../images/icons/consumer-red.gif";

    medical_off.src = "../images/icons/medical-black.gif";
    medical_on.src = "../images/icons/medical-red.gif";

    industrial_off.src = "../images/icons/industrial-black.gif";
    industrial_on.src = "../images/icons/industrial-red.gif";

    architecture_off.src = "../images/icons/architecture-black.gif";
    architecture_on.src = "../images/icons/architecture-red.gif";

    transport_off.src = "../images/icons/transport-black.gif";
    transport_on.src = "../images/icons/transport-red.gif";

  }
}

function activate(imgName) {
  if (document.images) {
    if ( eval(imgName + "_on.complete") ) {
      document.images[imgName].src =  eval(imgName + "_on.src");
    }
  }
}

function deactivate(imgName) {
  if (document.images) {
    if ( eval(imgName + "_off.complete") ) {
      document.images[imgName].src = eval(imgName + "_off.src");
    }
  }
}