if (top.frames.length!=0)
top.location=self.document.location;

var message="";

function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")

function myVoid() { }
function myOpen() {
	windowHandle = window.open('domeny.html','myWin','toolbar=No,menubar=No,location=No,scrollbars=Yes,resizable=No,status=No,screenx=200,screeny=25,width=600,height=480,left=200,top=25');
}

var win = null;

function enlrge(picnme,title)
{
OpenWin = this.open('','CtrlWindow','toolbar=No,menubar=No,location=No,scrollbars=No,resizable=No,status=No,screenx=200,screeny=100,width=600,height=360,left=200,top=100,');
doc = OpenWin.document;
doc.write('<HTML><HEAD><TITLE>' + title + '<\/TITLE><\/HEAD><BODY bgcolor="#faf9f6" onBlur="window.close()"; onMousedown="window.close()">');
doc.write('<br />');
doc.write('<center><table cellspacing="0" cellpadding="0" width="432" border="0"><tr><td background="' + picnme + '"><IMG SRC="../shared/x0m63f.gif" width="432" height="262" alt="De Rienzi Gallery" GALLERYIMG="no"><\/td><\/tr><\/table>');
doc.write('<br />');
doc.write('<form><input type="button" value="Close" onClick="window.close()"><\/form><\/center><\/BODY><\/HTML>');
doc.close();
}

// AutoBlink
// Puts Google's Autolink on the Blink :)
// (c) 2005 Chris Ridings   http://www.searchguild.com
// Redistribute at will but leave this message intact
// -
// 5th March - Implemented speed enhancement suggested by the guy who wrote
// http://www.dougaltoolbar.com/
// -
// 5th March - Added additional elements to reduce machine load
// 5th March - Added option to not remove links but to 
// rewrite ISBN links as amazon affiliate links!
// Fill in the following
// if you wish to do this. e.g.  var amazonaffiliate="goodlookingco-20"
// Leave as is to remove links in the normal way
var amazonaffiliate="";

var linkcount;
function checklinks() {
	if (!(linkcount==document.links.length)) {
		// Something changed the links!
		// Iterate for an id of _goog
		for (i=0; i < document.links.length; i++) {
			if (document.links[i].id.substring(0,5)=="_goog") {
				// If we find an id of _goog then do something
				if (amazonaffiliate=="") { 
					// No affiliate id defined so remove the links
					var tr = document.links[i].parentTextEdit.createTextRange();
					tr.moveToElementText(document.links[i]);
					tr.execCommand("Unlink",false);
					tr.execCommand("Unselect",false);
					i--;
				} else {
					// An affiliate id defined so rewrite ISBN links
					if (document.links[i].href.indexOf("isbn")>0) {
						var isbn=document.links[i].href.substring(document.links[i].href.indexOf("text")+5,document.links[i].href.length);
						document.links[i].href="http://www.amazon.com/exec/obidos/external-search?search-type=ss&tag=" + amazonaffiliate + "&keyword=" + isbn + "&index=books";
					}
				}
			}
		}
	}
		linkcount = document.links.length;
		setTimeout("checklinks()",500);
}
if (document.getElementById && document.createElement) {
	linkcount=document.links.length;
	setTimeout("checklinks()",500);
}
