// Snatched from babian.se. Property is theft.
// Shows a link to the appropriate parent frameset
// if the page is displayed out of its context.

var parentUrl = "http://babian.se/nr11/";  // must be absolute url
var linkText  = "Till tidningen";
var altText   = "babian.se";
var imgLink   = "logo.gif";   //relative or absolute src to image, may be left blank

tmpParentUrl = parentUrl+"index.html";
if ((parent.location.href != parentUrl) && (parent.location.href != tmpParentUrl)) {
	theCode = "<a href=\"" + parentUrl + "\" target=\"_parent\">";
	if (imgLink != "") {
		theCode = theCode + "<img src=\"" + imgLink + "\" alt=\"" + altText + "\" style=\"border:0;\" /></a><br />" + theCode + linkText + "</a>";
	} else {
		theCode = theCode + linkText + "</a>";
	}
	document.write(theCode);
}