_allowedURIs = new Array(
	"[^\.]*\.?byteleak\.com[^\[]*",
	"[^\.]*\.?google\.[^\[]",
	"[^\.]*\.?microsoft\.[^\[]",
	"[^\.]*\.?bing\.[^\[]",
	"[^\.]*\.?yahoo\.[^\[]",
	"[^\.]*\.?facebook\.com[^\[]*",
	"[^\.]*\.?itnews.sk[^\[]*",
	"[^\.]*\.?dsl.sk[^\[]*",
	"[^\.]*\.?imageshack.us[^\[]*",
	"[^\.]*\.?martinus.sk[^\[]*",
	"[^\.]*\.?muziker.sk[^\[]*"
);

function makeURI(uri, title)
{
	for (i in _allowedURIs) {
		var re = new RegExp("^[a-zA-Z0-9]{1,5}\:\/\/" + _allowedURIs[i]);
		
		if (uri.match(re)) {
			document.write('<a href="' + uri + '"');
			
			if (i != 0)
				document.write(' target="_blank" rel="nofollow"');
			
			document.write('>');
			document.write((title) ? title : uri);
			document.write('</a>');			
			
			return;
		}
	}
	
	if (title && title.substr(0, 4) != "<img")
		document.write(title + ' (' + uri + ')');
	else
		document.write(uri);
}
