try {
  document.execCommand('BackgroundImageCache', false, true);
} catch(e) {}

function externalLinks() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (
			anchor.getAttribute("href") && ( 
			anchor.getAttribute("rel") == "external" || 
			anchor.getAttribute("rel") == "external nofollow" || 
			anchor.getAttribute("rel") == "nofollow external" )
			)
		anchor.target = "_blank";
	}
}
window.onload = function() {
	externalLinks();
	/*
	var parent_location = new String(parent.location);
	var top_location = new String(top.location);
	var cur_location = new String(location);
	parent_location = parent_location.toLowerCase();
	top_location = top_location.toLowerCase();
	cur_location = cur_location.toLowerCase();
	if ( ( top_location != cur_location ) && parent_location.indexOf('{$home_url}') != 0 )	{
		top.location.href = document.location.href;
	}
	*/
}

/* popełnione przez ird.pl */