//-------------------------------------------------------------------
// hover popups
// 
//  USAGE:
//   <a href="#" onmouseover="popup('Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis non ante. Curabitur sit amet tellus. Duis nisi. Quisque convallis, felis et dignissim varius, metus turpis fringilla leo, vel convallis neque sem eu augue. Sed elit tellus, pretium vel, commodo non, fermentum eu, elit. Nulla sem. Curabitur ullamcorper posuere pede. Donec condimentum. Aliquam tempor, justo ac porttitor molestie, orci felis semper justo, vel consequat quam purus quis erat. Donec bibendum ligula eu nisi.')" onmouseout="popout()">Link number 1</a><br>
//
//  SOURCE:
//   http://labs.mininova.org/hoverpopups/ 
//

var pop = document.getElementById('popup');

var xoffset = 15;
var yoffset = 10;

//-------------------------------------------------------------------
document.onmousemove = function(e) {
  var x, y, right, bottom;
  
  try { x = e.pageX; y = e.pageY; } // FF
  catch(e) { x = event.x; y = event.y; } // IE

  right = (document.documentElement.clientWidth || document.body.clientWidth || document.body.scrollWidth);
  bottom = (window.scrollY || document.documentElement.scrollTop || document.body.scrollTop) + (window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight || document.body.scrollHeight);

  x += xoffset;
  y += yoffset;

  if(x > right-pop.offsetWidth)
    x = right-pop.offsetWidth;
 
  if(y > bottom-pop.offsetHeight)
    y = bottom-pop.offsetHeight;
  
  pop.style.top = y+'px';
  pop.style.left = x+'px';

}

//-------------------------------------------------------------------
function popup(text) {
  pop.innerHTML = text;
  pop.style.display = 'block';
}

//-------------------------------------------------------------------
function popout() {
  pop.style.display = 'none';
}


//-------------------------------------------------------------------
// 
//  Miscellaneous
//

function inpopwo(url,o)
{
hwnd = window.open(url,"",o);
if (navigator.appName == "Netscape") { hwnd.focus() }
}

function major(url)
{
hwnd = window.open(url,"","")
if (navigator.appName == "Netscape") { hwnd.focus() }
}

function inpop(url)
{
hwnd = window.open(url,"","width=640,height=450")
if (navigator.appName == "Netscape") { hwnd.focus() }
}

function poplog()
{
hwnd = window.open("cp_login.php","","width=640,height=450")
if (navigator.appName == "Netscape") { hwnd.focus() }
}

function popcal()
{
hwnd = window.open("http://www.jannelsonlandscapedesign.com/phpicalendar","","width=768,height=650,scrollbars")
if (navigator.appName == "Netscape") { hwnd.focus() }
}

function popsurvey()
{
hwnd = window.open("survey rev 2.5.htm","","width=768,height=650,scrollbars")
if (navigator.appName == "Netscape") { hwnd.focus() }
}

// <!-- 2094008847
// This script is (C) Copyright 2004 Jim Tucek
// Leave these comments alone!  For more info, visit
// www.jracademy.com/~jtucek/email/

function fall(approval,murderer,sky) {
approval += ' ';
var notice = approval.length;
var corporation = 0;
var crystal = '';
for(var debate = 0; debate < notice; debate++) {
corporation = 0;
while(approval.charCodeAt(debate) != 32) {
corporation = corporation * 10;
corporation = corporation + approval.charCodeAt(debate)-48;
debate++;
}
crystal += String.fromCharCode(overdo(corporation,murderer,sky));
}
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+crystal;
}

function kneel(discovery,emotion,time) {
discovery += ' ';
var scene = discovery.length;
var stomach = 0;
for(var family = 0; family < scene; family++) {
stomach = 0;
while(discovery.charCodeAt(family) != 32) {
stomach = stomach * 10;
stomach = stomach + discovery.charCodeAt(family)-48;
family++;
}

//document.write('&');
//document.write('#');
//document.write(overdo(stomach,emotion,time));
document.write(String.fromCharCode(overdo(stomach,emotion,time)));
}
}

function overdo(gesture,book,mother) {
if (mother % 2 == 0) {
hand = 1;
for(var same = 1; same <= mother/2; same++) {
doctor = (gesture*gesture) % book;
hand = (doctor*hand) % book;
}
} else {
hand = gesture;
for(var obstetrics = 1; obstetrics <= mother/2; obstetrics++) {
doctor = (gesture*gesture) % book;
hand = (doctor*hand) % book;
}
}
return hand;
}
 <!-- -SCRIPTS END- - - - - - - - - - - - - - - - - - - - - - - - - -  -->

