
window.onerror=fnErrorTrap;
function fnErrorTrap(sMsg,sUrl,sLine)
{
   return false;
}

if( window == window.top && window.location.protocol == 'http:' )
{
	var newUrl = '' + window.location.pathname;
	if( window.location.search != null )
		newUrl += window.location.search;
	if( window.location.hash != null )
		newUrl += window.location.hash;
	var frame = '' + window.location.pathname;

	var pos;
	if( (pos=frame.lastIndexOf( '/SRD/' )) >= 0 || (pos=frame.lastIndexOf( '/Fantasy/' )) >= 0 )
		frame = frame.substring( 0, pos ) + "/SRD/";
	else if( (pos=frame.lastIndexOf( '/MRD/' )) >= 0 || (pos=frame.lastIndexOf( '/Modern/' )) >= 0 )
		frame = frame.substring( 0, pos ) + "/MRD/";
	else if( (pos=frame.lastIndexOf( '/Contents/' )) >= 0 )
	{
		if( frame.lastIndexOf( 'MRD' ) >= 0 )
			frame = frame.substring( 0, pos ) + "/MRD/";
		else
			frame = frame.substring( 0, pos ) + "/SRD/";
	}

	frame += '?content=' + escape( newUrl )
	document.write( '<A TARGET="_top" HREF="' + frame + '">[Open with navigation frame]</A><BR />' );
}

function expand_seealso( link )
{
	var obj;
	var links = document.getElementsByName( "seelink" );

	for( var i=0; i<links.length; i++ )
	{
		var last = links[i];
		obj = document.getElementById( last.innerHTML );
		obj.style.display = 'none';
		last.style.fontWeight = 'normal';
	}

	obj = document.getElementById( link.innerHTML );
	obj.style.display = 'inline';
	link.style.fontWeight = 'bold';
}

function no_ads()
{}

