/* 
 * jQuery Tooltip for WLM
 * Author: Andy
 * version: 1.0
 */

jQuery(document).ready(function($) {

    $(".help").tooltip({
        track: true,
        showURL: false,
        fade:250,
         extraClass: "pretty",
        fixPNG: true,
        opacity: 0.95,
        left: -120,
        bodyHandler: function() {
         return $($(this).attr("rel")).html();
        }
    });

    $(".help").click(function(){
            helpBaseUrl="http://www.wishlistproducts.com/help/";
            thislink=$(this).attr("href");
            return false; // we dont want handel click on the help link for now! if we remove this user will nevigate to WLM website to read more help!
            
            if (thislink!=null){
                thisHelpUrl=helpBaseUrl + thislink;
                $(this).attr({ href: thisHelpUrl });
                $(this).attr({ target: "_blank" });
            }else{
                return false;
            }
    });

});


