function Popup(aurl, aname) {
	if (aname == '') aname = 'defpop';
	var nw;
	nw = window.open(aurl, aname, "height=300,width=550,status=no,toolbar=no,menubar=no,location=no");
	nw.focus();
}

function HoverDetails(bannerid, show) {
  if (document.getElementById) {
    document.getElementById(bannerid).style.display=show;
    return;
  }

  if (document.all) {
    document.all[bannerid].style.display=show;
    return;
  }

  if (document.layers) {
    document.layers[bannerid].display=show;
    return;
  }
}


function SetCookie(name, value, expires, path, domain, secure) {
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;
}


function DeleteCookie(name, path, domain) {
  document.cookie = name + "=" +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    "; expires=Thu, 01-Jan-70 00:00:01 GMT";
}


function SwitchDetails(sender, bannerid) {
  var state;
  if (document.getElementById) {
    if (document.getElementById(bannerid).style.display == "none")
      document.getElementById(bannerid).style.display="block";
    else
      document.getElementById(bannerid).style.display="none";
    state=document.getElementById(bannerid).style.display;
  }

  else if (document.all) {
    if (document.all[bannerid].style.display == "none")
      document.all[bannerid].style.display="block";
    else
      document.all[bannerid].style.display="none";
    state = document.all[bannerid].style.display;
  }

  else if (document.layers) {
    if (document.layers[bannerid].display == "none")
      document.layers[bannerid].display="block";
    else
      document.layers[bannerid].display="none";
    state = document.layers[bannerid].display;
  }

  if (state == "none") {
    //document.cookie = bannerid + "=" + state;
    if (sender)
      sender.style.color = "#AAAAAA";
//    SetCookie(bannerid, state, '', '/', '');

  }
  else {
    //document.cookie = bannerid + "=";
    if (sender)
      sender.style.color = "#FFFFFF";
//    DeleteCookie(bannerid, '/', '');

  }
}

