(function($) 
{

   $.fn.svVote = function(settings) {
     var config = { 
    		 		'ac' : '2',
    		 		'uid' : ''
    		 	  };
     
     if (settings) $.extend(config, settings);
     var vote_str = "<img src=\"http://analytics.strateg.nu/" + config.uid + "/" + config.ac + "/?uri=" + encodeURIComponent(document.URL)
     					+ "&title="+ encodeURIComponent(document.title)+"\" alt=\"\" border=\"0\" />";
     this.each(function() 
     {
    	 $(this).replaceWith( vote_str ); 
     });
     
     return this;
   };
   
   $.fn.svStat = function(settings) {
	     var config = { 
	    		 		'ac' : '1',
	    		 		'uid' : ''
	    		 	  };
	     
	     if (settings) $.extend(config, settings);
	     
	     var stat_str = "uri="+ encodeURIComponent(document.URL) 
	     					+ '&title=' + encodeURIComponent(config.title) 
	     					+ '&image=' + encodeURIComponent(config.image) 
	     					+ '&description=' + encodeURIComponent(config.descr) 
	     					+ '&resolution=' + screen.width + 'x' + screen.height;
	     
	     var vote_str = "<img src=\"http://analytics.strateg.nu/" + config.uid + "/" + config.ac + "/?" + stat_str + "\" alt=\"\" border=\"0\" />";
	     
	     this.each(function() 
	     {
	    	 $(this).replaceWith( vote_str ); 
	     });
	     return this;
  };
  
})(jQuery);
