// JavaScript Document
// ---------------------------------------------------------
//	TEST FOR FRAMES
// ---------------------------------------------------------
if(self==top) // true if page is outside master frameset
{
	
	qStr = (s=location.search) 
	? s.substring(1) : '' ;
	if (!qStr) 
	{
		href = "../index.php";
	}else
	{
		href = "javascript: window.close();";
	}

	document.write('<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><div id="nav_noflash"><img src="../media/images/ruxley_nav_noflash.gif"><a href="'+href+'" target="_self">Go to the main site</a></div>');
} else
{
	document.write('<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="setiframe()" onUnload="resetiframe()">');
}

// ---------------------------------------------------------
//  -- SCREEN SIZE DETECTION TO ADJUST ARTICLE IFAME HEIGHT
// ---------------------------------------------------------
function setiframe()
{
	//alert('call P; '+platform);
	HC = false;
	//	IF POSSIBLE, CHECK CONTENT DEPTH
	if (document.documentElement && document.documentElement.scrollTop)// true in IE6 win
	{
		H = document.documentElement.scrollHeight;
		HC = true;
		//alert('IE6');
	} else if (document.documentElement && (platform=="other" || platform=="mac") && !document.documentElement.scrollHeight)// true in mac IE5
	{
		H = document.body.offsetHeight;
		//H = H*1.1;
		HC = true;
		//alert('IE5 mac :'+H);
	} else if (document.body) // true in IE5 win and Mac Safari(and Mac IE5, but we've isolated that already so it won't reach this far)
	{
		H = document.body.scrollHeight;
		HC = true;
		//alert('IE5 win / safari Mac');
	} else if( self.screen ) // true in N4
	{
		H = screen.height;
		// alert('N4');
	} else if( self.java ) // for N3, true if LiveConnect enabled
	{
		dtk = java.awt.Toolkit.getDefaultToolkit();
		ss = dtk.getScreenSize();
		H = ss.height;
		// alert('N3');
	} else if( self.theBody ) // here should come E4
	{
		H = theBody.offsetHeight;
		// alert('IE4');
	} else // N2, E3, N3 w/Java off, probably Opera and WebTV
	{
		H = 720;
	}
	if(H == 600){
		H = 800;
	}
	if(HC == false) // true if could not assess height of content
	{
		// 	REMOVE 124 FOR HEIGHT OF FLASH NAV
		H = H - 124;
		//alert('No H :'+H);
	}
	//H = H - 480;
	//alert('HC:'+HC+' H:'+H);
	W = 740;
	if(parent.document.getElementById)
	{
		var obj_iframe = parent.document.getElementById('main_iframe');
		var obj_footer = parent.document.getElementById('footer');
		if(self != top)
		{
			obj_iframe.style.width = W;
			obj_iframe.style.height = H;
			obj_footer.style.visibility = "visible";
		}
	}
	///alert(H);
}
// ---------------------------------------------------------
//	MAKE IFRAME SMALL ON UNLOAD SO ON LOAD RESIZES ACCURATELY FOR SMALLER PAGES
// ---------------------------------------------------------
function resetiframe()
{
	if(document.getElementById)
	{
		var obj_iframe = parent.document.getElementById('main_iframe');
		var obj_footer = parent.document.getElementById('footer');
		if(self != top)
		{
			obj_iframe.style.height = 10;
			obj_footer.style.visibility = "hidden";
		}
	}
}

-->




// -->