function menuOn(id,a)
{
  if (a=='') document.getElementById(id).src='/images/menuicons/'+id+'_a.gif';
}

function menuOff(id,a)
{
  if (a=='') document.getElementById(id).src='/images/menuicons/'+id+'.gif';
}

function openWin(href,w,h)
{
  if (openWin.arguments[3]!=null) {
    n=openWin.arguments[3];
  } else {
    n=(new Date()).getTime();
  }
  window.open(href,n,'toolbar=0,status=0,resizable=0,scrollbars=0,width='+(w+20)+',height='+(h+20));
}
function openWinS(href,w,h)
{
  if (openWinS.arguments[3]!=null) {
    n=openWinS.arguments[3];
  } else {
    n=(new Date()).getTime();
  }
  window.open(href,n,'toolbar=0,status=0,resizable=0,scrollbars=1,width='+(w+20)+',height='+(h+20));
}

function openIMChat(href,name)
{
  return window.open(href,name,'toolbar=0,status=0,resizable=1,scrollbars=0,width=550,height=450');
}
function openIM(href)
{
  return window.open(href,'s2im','toolbar=0,status=0,resizable=1,scrollbars=1,width=250,height=450');
}
function openKiss(href)
{
  return window.open(href,'s2kiss','toolbar=0,status=0,resizable=1,scrollbars=1,width=450,height=300');
}
function openMsg(href)
{
  return window.open(href,'s2msg','toolbar=0,status=0,resizable=1,scrollbars=1,width=450,height=550');
}





function noRightClick(e) {
  var msg = "All images are property of Single2.com";
  if (navigator.appName == 'Netscape' && e.which == 3) {
    alert(msg);
    return false;
  }
  if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
    alert(msg);
    return false;
  }
  else return true;
}

function trapClicks() {
  if(document.images)
    for(i=0;i<document.images.length;i++)
      document.images[i].onmousedown = noRightClick;
}

