I am using tooltip plug in on a site and when I use it on a blank template, it works then when I transfer it to the page I want to use it on it does not work.

The site is

Here is they javascript code:

this.imagePreview = function(){	
	/* CONFIG */
		xOffset = 10;
		yOffset = 30;
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		$("body").append("<p id='preview'><img src='../"+ this.href +"' alt='Image preview' />"+ c +"</p>");								 
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
		this.title = this.t;	
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");

// starting the script on page load
Here is the HTML code.

		<li><a href="mailto:rragon@cumberland.k12.il.us">Mr. Russell Ragon</a>&nbsp;<a href="../../Images/staffbios/rragon.gif" class="preview"><img src="1s.jpg" alt="BIO" /></a></li>
Here is the CSS code:
	border:1px solid #ccc;
	background-color: #333;

This is my first post on this forum so I hope the code is clear you can check out the site up above just hover over one of the names. I am only getting image preview instead of the image I want. Ont thing I did do was I took out the image so I could get the Alternate code.

My objective here is to have a name and when you hover over it an image pops up and on the image will be a biography of the teacher.

Thanks for any help.