var bugRiddenCrashPronePieceOfJunk = (
	navigator.userAgent.indexOf('MSIE 5.2') != -1
	&&
	navigator.userAgent.indexOf('Mac') != -1
);

var  ModernBrowser = (document.getElementById);

function BrowserInfo()
{
  this.screenWidth = screen.width;
  this.screenHeight = screen.height;
}

var b = new BrowserInfo();
var width = (b.screenWidth);

if ((width >= 1024)&&(ModernBrowser))
{
	var URL = location.href;
	var LastSlash = location.href.lastIndexOf("/");
	var FirstBit = URL.substr(0,LastSlash+1);
	var LastBit = URL.substr(LastSlash+1);
	var NewURL = FirstBit + "new" + LastBit;
	window.location.href = NewURL;
}
else
{
	var str = location.search;
	var writeFrames = (str.indexOf("nowritefs")) && (top.window.length == 0);
	
	if (writeFrames)
	{
		if (str == "")
		{
		var bodyFrame = window.location + "?nowritefs";
		}
		else
		{
		var bodyFrame = window.location + "&nowritefs";
		}
		document.write(
		  '<frameset rows="32,1*" frameborder="NO" border="0" framespacing="0" bordercolor="#333333"> ',
				'<frame name="topFrame" scrolling="NO" noresize src="oldsite/topmnew.html" >',
				'<frameset cols="*,720,*" frameborder="NO" border="0" framespacing="0" bordercolor="#333333"> ',
					'<frame  scrolling="NO" noresize src="oldsite/sideleft.html" >',
					'<FRAME SRC="', bodyFrame, '" NAME="bodyframe">',
					'<frame  scrolling="NO" noresize src="oldsite/sideright.html" >',
				'</frameset>',
		  '</frameset>'
		 );			
	}
}