Event.observe(window, 'load', function() {
			var config = {
				defaultIcon: 'default_favicon.png',
				append: 'after'
			};
			
			/* Find all external links (begin with absolute URL) */
			$$('a[href^="http://"]').each(function(link) {
				
				if (!$(link).hasClassName('nofav')) {

					var favicon	= new Element('img', {
							src: (link.href).replace(/^(http:\/\/[^\/]+).*$/, '$1') + '/favicon.ico',
							alt: 'external link',
							onError: "javascript:Element.remove(this)"
					});
					
					$(favicon).addClassName('favicon');
					$(link).insert($(favicon), {position: config.append});

				}
				
			});
			
		});