		$(document).ready(function() { 
		var a =$(".link"); 
		$.each( a, function(){ 
		if ($(this).attr('rel')=="external") { 
			$(this).wrap('<a href="http://' + $(this).attr('title') + '"></a>'); 
		} else { 
			$(this).wrap('<a href="' + $(this).attr('title') + '"></a>'); 
		} 
		}); 
		});
