// JavaScript Document

 this.screenshotPreview = function()
 {	
		xOffset = 10;
		yOffset = 30;
		
	$("area.tooltip").mouseover(function(e)
	{
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "" + this.t : "";
		$("body").append("<p id='screenshot'>"+ c +"</p>");								 
		$("#screenshot")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn(450);						
    });
	$("area.tooltip").mouseout(function(){
		this.title = this.t;	
		$("#screenshot").remove();
    });	
	
	$("area.tooltip").mousemove(function(e){
		$("#screenshot")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};


// starting the script on page load
$(document).ready(function()
	{
		screenshotPreview();
	});


// JavaScript Document

 this.jewelryPreview = function()
 {	
		xOffset = 10;
		yOffset = 30;
		
	$("area.jewelryshot").mouseover(function(e)
	{
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		$("body").append("<p id='jewelryshot'><img src='" + this.alt + "' alt='url preview' />"+ c +"</p>");								 
		$("#jewelryshot")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn(450);						
    });
	$("area.jewelryshot").mouseout(function(){
		this.title = this.t;	
		$("#jewelryshot").remove();
    });	
	
	$("area.jewelryshot").mousemove(function(e){
		$("#jewelryshot")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};


// starting the script on page load
$(document).ready(function()
	{
		jewelryPreview();
	});


