  var firstcol = new Array();
  var secondcol = new Array();
  var banners = new Array();

function openWin(e){
  if (!e) var e = window.event;
  if (e.target) targ = e.target;
  else if (e.srcElement) targ = e.srcElement;
  if (targ.nodeType == 1)
    targ = targ.parentNode;
  targ = targ.parentNode.parentNode;

  while(targ.nodeName != "A") 
    targ = targ.parentNode;

  var win = window.open(targ.href, '', 'left=100,right=100,width=750,height=500,toolbar=1,scrollbars=1');
  if (!e) var e = window.event;
    e.cancelBubble = true;


  if (e.stopPropagation) 
    e.stopPropagation();
  return false;
}
function openBanWin(e){
  if (!e) var e = window.event;
  if (e.target) targ = e.target;
  else if (e.srcElement) targ = e.srcElement;
  if (targ.nodeType == 1)

    targ = targ.parentNode;

  while(targ.nodeName != "A") 
    targ = targ.parentNode;

  var win = window.open(targ.href, '', 'left=100,right=100,width=750,height=500,toolbar=1,scrollbars=1');
  if (!e) var e = window.event;
    e.cancelBubble = true;
  if (e.stopPropagation) 
    e.stopPropagation();
  return false;
}
function rotateBanners() {
  var bimg = document.getElementById("bannerimage");
  var blink = document.getElementById("bannerlink");
  var btext = document.getElementById("bannertext");
  blink.href = "javascript: var nm = window.open('"+banners[bannerIndex][2]+"')";

  if(banners[bannerIndex][0] == 'image') {
    btext.style.visibility = "hidden";
    btext.style.position = "absolute";
    bimg.src = banners[bannerIndex][1];
    bimg.style.visibility = "visible";
    bimg.style.position = "static";
    btext.innerHTML = "";
  } else {
    bimg.style.visibility = "hidden";
    bimg.style.position = "absolute";
    btext.innerHTML = banners[bannerIndex][1];
    btext.style.visibility = "visible";
    btext.style.position = "static";
  }
  ++bannerIndex;
  if(bannerIndex == banners.length)
    bannerIndex = 0;
  setTimeout("rotateBanners()", bannerRotationTime);
}


function rotateColumn(adCol) {
  eval("var ads = "+adCol+";");
  eval("var adIndex = "+adCol+"Index;");
  if (ads.length == 0) return;
  if (howManyAdsToShow > ads.length) howManyAdsToShow = ads.length;
  var startHere = document.getElementById(adCol);

  for(var i = 0; i < howManyAdsToShow; i++) {
    if(adIndex == ads.length) adIndex = 0;
    var newAd = document.createElement('a');
    newAd.id = adCol + i;
    newAd.className = 'adLink';
    var text = document.createElement('div');
    text.className = 'adText';
    newAd.appendChild(text);
    newAd.href = "http://"+ads[adIndex][2];
   
    if(ads[adIndex][0] == 'image') {
      text.innerHTML = "<img width='80' onclick='javascript: var nm = window.open(\"http://"+ads[adIndex][2]+"\");return false;' class='adImage' src='http://" + ads[adIndex][1]+"'>";
    } else {
      text.innerHTML = "<div onclick='var nm = window.open(\"http://"+ads[adIndex][2]+"\");return false;'>"+ads[adIndex][1]+"</div>";
    }
    ++adIndex;
    eval(adCol+"Index = adIndex;");
    var oldAd = document.getElementById(adCol + i);

    if(oldAd == null)  {
      startHere.appendChild(newAd);
    } else  {
      oldAd.removeChild(oldAd.firstChild);
      startHere.replaceChild(newAd, oldAd);
    }
  }

  if(ads.length == howManyAdsToShow) { 
    if(adIndex == ads.length) 
      eval(adCol+"Index = 1;");
    else
      eval("++"+adCol+"Index;");
  }
  window.setTimeout("rotateColumn(\""+adCol+"\")" , colRotationTime);
}

function emailus() {
  var dmn = 'gmail.com';
  var at = '@';
  var m2b= '<a href="mailto:';
  var m2m = '">'; 
  var m2e = '</a>';
  document.write("email us:<br/>");    
  document.write(m2b+"robertafallon"+at+dmn+m2m+"roberta"+m2e);
  document.write(" and ");
  document.write(m2b+"libbyrosof"+at+dmn+m2m+"libby"+m2e);
}
