jQuery(document).ready(function(){
	jQuery(".textads br").remove();
	jQuery(".textads").each(function(){
		$urlhref = jQuery(this).find("a").attr('href');
		if($urlhref != undefined){
			$url = jQuery(this).find("img").attr('alt');
			if($url == ""){
				$urlfull = $urlhref.match(/maxdest=(.+)$/);
				$url = $urlfull[1];
			}
			jQuery(this).children("a:first").next("a").wrap("<strong></strong>");
			jQuery(this).append("<a href='"+$urlhref+"'>"+$url+"</a>");
			jQuery(this).children(":not(a:has(img)):not(script)").wrapAll("<div class=\"textads_text\"></div>");
		}
		jQuery(this).show();
	});
});