this.nzimeTooltip = function(selector)
{
    $(selector).hover(function()
    {
        var title = $(this).attr('title');
        var href = $(this).attr('rel');
        var alt = (title!="") ? '<br/>'+title : '';
        if (href.length>5)
        {
            var img = new Image(); 
            img.src = href;
            $(this).append('<p id="screenshot"><img src="'+href+'" alt="'+alt+'" />'+alt+'</p>');
            $("#screenshot").show();
            $(this).parents('tr').addClass('range-over');
        }
        else
        {
           $("#screenshot").remove(); 
        }
    },
    function()
    {
        $("#screenshot").remove();
        $(this).parents('tr').removeClass('range-over');
    });
    /*$(selector).click(function()
    {
       return false; 
    });*/
};


window.log = function(){
  log.history = log.history || [];   
  log.history.push(arguments);
  if(this.console){
    console.log( Array.prototype.slice.call(arguments) );
  }
};
(function(doc){
  var write = doc.write;
  doc.write = function(q){ 
    log('document.write(): ',arguments); 
    if (/docwriteregexwhitelist/.test(q)) write.apply(doc,arguments);  
  };
})(document);



