this.imagePreview = function(){	
		xOffset = 10;
		yOffset = 30;

	$("#thumbs a").hover(function(e){
		this.t = this.title;
		this.title = "";
		var c = (this.t != "") ? "<br/>" + this.t : "";
		$("#wrapper").append("<p id='preview'><img src='"+ this.href +"' alt='Image preview' />"+ c +"</p>");								 
		$("#preview")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");						
    },
	function(){
		this.title = this.t;	
		$("#preview").remove();
    });	
	$("#thumbs a").mousemove(function(e){
		$("#preview")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};

$(document).ready(function(){
	imagePreview();
});

this.BiggerImage = function(){	
		xOffset = 5;
		yOffset = 5;

	$(".i").hover(function(e){
		this.t = this.title;
		this.title = "";
		var c = (this.t != "") ? "<br/>" + this.t : "";
		$("#wrapper").append("<p id='i'><img src='"+ this.src +"' alt='Image preview' />"+ c +"</p>");								 
		$("#i")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");						
    },
	function(){
		this.title = this.t;	
		$("#i").remove();
    });	
	$(".i").mousemove(function(e){
		$("#i")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};

$(document).ready(function(){
	BiggerImage();
});

function lookup(find) {

		if(find.length == 0) {
		} else {
		//alert(find);
			$.post("/design/lookup.php", {lookfor: ""+find+""}, function(data){
			
				if(data.length >0) {
					$('.ListWrap').html(data);
					$('.ListWrap').fadeIn("slow");
				}
			});
		}
}

