/*
Fisher right window script!
*/

/*
Browser Sniffer
*/

function BrowserInfo()
{
	this.ver=navigator.appVersion;
	this.dom=document.getElementById?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns6=(this.dom && parseInt(this.ver) >= 5 && parseInt(this.ver) < 7)?1:0;
	this.ns7=(this.dom && parseInt(this.ver) >= 7 && parseInt(this.ver) < 8)?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.w3c=(this.ie5 || this.ie6 || this.ns6);
	this.ie=(this.ie4 || this.ie5 || this.ie6);
	this.ns=(this.ns4 || this.ns6);
	this.bw=(this.ie4 || this.ie5 || this.ie6 || this.ns4 || this.ns6);
	this.dhtml=(this.ie || this.ns7);
	return this;
}

var UserBrowser = new BrowserInfo();

/*
Works out browser and decides if its goin to add IFrame
*/

iWidth = 0;
if (UserBrowser.ns) window.onresize = handleResize;


if(document.body)
{
	GetWindowWidth();
}


if(UserBrowser.ie || (UserBrowser.ns && iWidth > 994))
{
	document.write('<SPAN id=explorerSpan style="LEFT: 780px; POSITION: absolute; TOP: 0px">' +
		'<TABLE cellSpacing="0" cellPadding="0" width="223" bgColor="#ffffff" border="0">' +
		'<TBODY>' +
		'<TR>' +
		'<TD vAlign=left align=middle>' +
		'<DIV align=left>' +
		'<IFRAME name="iframe2" align="top" src="right.php" frameBorder="0" width="223" scrolling="no" height="620"></IFRAME>' +
		'</DIV>' +
		'</TD>' +
		'</TR>' +
		'</TBODY>' +
		'</TABLE>' +
		'</SPAN>');
}

function showHideExplorer()
{
	GetWindowWidth();

	if(iWidth > 994)
	{
		document.all.explorerSpan.style.display = "";
	}
	else
	{
		document.all.explorerSpan.style.display = 'none';
	}

}


function handleResize()
{
	location.reload();
} 
 
 
function GetWindowWidth()
{
	if(UserBrowser.ie)
		iWidth = document.body.clientWidth;
	else
		iWidth = window.innerWidth ;
}

if (UserBrowser.ie)
	 showHideExplorer();
	 
/*
Bottom of page bit
*/

 showHideExplorer();

//=========================================================