/*
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.target = "_blank";

if (anchor.title.indexOf('otworzy się w nowym oknie') == -1)
{
	anchor.title = (anchor.title != "") ? anchor.title+" (otworzy się w nowym oknie)" : "otworzy się w nowym oknie";
}
anchor.className = (anchor.className != '') ? anchor.className+' external' : 'external';}}
*/

function externalLinks()
{

if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) 
 {
   var anchor = anchors[i];
//   alert (anchor.href);
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }



}
