/*
* Url preview script 
* powered by jQuery (http://www.jquery.com)
* 
* written by Alen Grakalic (http://cssglobe.com)
* 
* for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery
*
*/


var xOffset = 10;
var yOffset = 10;
$(function() {
    hiConfig = {
        sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)
        interval: 500, // number = milliseconds for onMouseOver polling interval
        timeout: 200, // number = milliseconds delay before onMouseOut
        over: function(e) {
            this.t = this.title;
            this.title = "";
            // alert(this.id);
            $("#" + this.id).css("position", "relative");
            var f = $("#" + this.id).attr("href");
            var c = (this.t != "") ? "<br/>" + this.t : "";
            $("#" + this.id).append("<a style=\"height:260px;display:block;\" href=\"" + f + "\" id='screenshot'><img style=\"padding-bottom:10px;\" src='" + this.rel + "' alt='url preview' />" + c + "</a>");
            $("#screenshot")
			.css("top", "10px")
			.css("left", "10px")
			.fadeIn("fast");
        }, // function = onMouseOver callback (REQUIRED)
        out: function() {
            this.title = this.t;
            $("#screenshot").remove();
            $("#" + this.id).css("position", "");
        } // function = onMouseOut callback (REQUIRED)
    }
    $('.hoverHelp').hoverIntent(hiConfig)
});







