<!--

// initTips()
// display DHTML tip on mouseover

Xoffset = 20;
Yoffset = 20;
var isIE = (document.all);
var isNS4 = document.layers?true:false;
var isNS6 = navigator.userAgent.indexOf("Gecko") != -1 ? true : false;
// old is set to be not IE, NS4 or NS6
var old = !(isIE||isNS4||isNS6);
var yyy = +10;
var skn; // holds the div/layer object
function initTips() {
  if(!old) {
    if(isNS4) skn = document.d11;
    else if(isNS6) skn = document.getElementById("d11");
    else if(isIE) skn = document.all.d11.style;
    if(isNS4) document.captureEvents(Event.MOUSEMOVE);
    if(isNS6) document.addEventListener("mousemove", get_mouse, true);
    if(isNS4||isIE) document.onmousemove = get_mouse;
  }
}
function popupTips( s ) {
  if(old) {
    alert(msg);
    return;
  } else {
    yyy=Yoffset;
    if(isNS4) {
      skn.document.open();
      skn.document.write( s );
      skn.document.close();
      skn.visibility="visible";
    } else if(isNS6) {
      skn.innerHTML= s;
      skn.style.visibility="visible";
    } else if(isIE) {
      document.all("d11").innerHTML= s;
      skn.visibility="visible";
    }
  }
}
function get_mouse(e) {
  var x=(isNS4||isNS6)?e.pageX:event.x+document.body.scrollLeft;
  if(isNS4||isNS6) var y=e.pageY;
  if(isIE) {
    y=event.y;
    if(navigator.appVersion.indexOf("MSIE 4")==-1) y+=document.body.scrollTop;
  }
  if(isIE||isNS4) {
    skn.top=y+yyy;
    skn.left=x+Xoffset;
  }
  if(isNS6) {
    skn.style.top=y+yyy;
    skn.style.left=x+Xoffset;
  }
}
function removeTips() {
  if(!old) {
    yyy=-1000;
    skn.visibility="hidden";
  }
}


//--- no menubar etc.
function openWindow(url,x,y) {
  mywin = window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + x + ',height=' + y + ',screenX=50,screenY=50,top=50,left=50');
  mywin.focus();
}

function closewindow() {
  window.close();
}

function printWindow() {
   if (window.print)
     {
     window.print();
     }
}

function roll(img_name1, img_src1) {
  document[img_name1].src = img_src1;
}


//-->

