﻿// JScript File
    function SwapImage(index)
    {
      for (i = 0; i < arImages.length; i++)
      {
        if (i == index)
        {
          if (document.images['accordionImages_' + i].src.indexOf("Up") > -1)
            document.images['accordionImages_' + i].src = '../images/whiteDown.gif';
          else
            document.images['accordionImages_' + i].src = '../images/whiteUp.gif';
        }
        else
          document.images['accordionImages_' + i].src = '../images/whiteDown.gif';
      }
    }

function toggleMe(a){
  var e=document.getElementById(a);
  if(!e)return true;
  if(e.style.display=="none"){
    e.style.display="block"
  } else {
    e.style.display="none"
  }
  return true;
}

function mouseover(id) 
{
  var nodeObj = document.getElementById(id);
  nodeObj.style.display = 'inline';
  nodeObj.style.fontStyle = 'normal';
  nodeObj.style.color = 'red';
}

function mouseout(id) 
{
  var nodeObj = document.getElementById(id);
  nodeObj.style.display = 'none';
}

function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
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 A1_onclick() {
}
//use to open link windows eg company links
function popup(url, width, height, name) {
    if (width == null) {
        width = 600;
    }
    if (height == null) {
        height = 425;
    }
    if (name == null) {
        name = "details";
    }
    var props = "toolbar=yes,location=no,status=no,scrollbars=yes,resizable=yes,titlebar=yes,menubar=yes,width=" + width + ",height=" + height;
    w = window.open(url, name, props);
    if (w) {
        w.focus();
    }
}


//here you place the ids of every element you want.
var ids=new Array('a1','a2','a3','a4');

function switchid(id){    
    hideallids();
    showdiv(id);
}

function hideallids(){
    //loop through the array and hide each element by id
    for (var i=0;i<ids.length;i++){
        hidediv(ids[i]);
    }          
}

function hidediv(id) {
    //safe function to hide an element with a specified id
    if (document.getElementById) { // DOM3 = IE5, NS6
        document.getElementById(id).style.display = 'none';
    }
    else {
        if (document.layers) { // Netscape 4
            document.id.display = 'none';
        }
        else { // IE 4
            document.all.id.style.display = 'none';
        }
    }
}

function showdiv(id) {
    //safe function to show an element with a specified id
          
    if (document.getElementById) { // DOM3 = IE5, NS6
        document.getElementById(id).style.display = 'block';
    }
    else {
        if (document.layers) { // Netscape 4
            document.id.display = 'block';
        }
        else { // IE 4
            document.all.id.style.display = 'block';
        }
    }
}




