/*<![CDATA[*/
//<!--

defaultStatus = "Genealogia italiana di Stefania Fangarezzi";
if (parent != self)
top.location.href = location.href;

// Evita che il sito venga incluso in un Frameset
if (parent.frames.length > 0) {
	window.top.location.href = location.href;
}

function Window(mypage, myname, w, h) { 
			winprops = 'height='+h+',width='+w+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no';
			win = window.open(mypage, myname, winprops);
}

// Sostituisce l'argomento target delle ancore, che in xhml non è previsto.
function externalLinks() {
         if (!document.getElementsByTagName) return;
         var anchors = document.getElementsByTagName("a");
         for (var i=0; i<anchors.length; i++) {
	            var anchor = anchors[i];
		    // Versione italiana.
	            if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "esterno") {
		              anchor.target = "_blank";
		              if (anchor.title) anchor.title += " (Il link apre una nuova finestra)";
		              if (!anchor.title) anchor.title = "Il link apre una nuova finestra";
	            }
		    // Versione inglese.
		    if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") {
		              anchor.target = "_blank";
		              if (anchor.title) anchor.title += " (Il link apre una nuova finestra in inglese)";
		              if (!anchor.title) anchor.title = "Il link apre una nuova finestra in inglese";
	            }
         }
}

// Splash screen "sto arrivando)
//document.write("<div id='loading'>&nbsp;</div>");

window.onload = function() {
	externalLinks(); // Per i links, vedi sopra.
	//document.getElementById("loading").style.display="none";
}
//-->
/*]]>*/
