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);

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";
	}
	
	if ((width >= 1024)&&(ModernBrowser))
	{
	document.write(
		'<frameset cols="*,1276,*" frameborder="NO" border="0"> ',
			'<frame src="newsite/spacer.html" name="sideleft" scrolling="NO" noresize marginwidth="0" marginheight="0"> ',
			
			'<frameset rows="*,60,500,28,*" frameborder="NO" border="0"> ',
				'<frame src="newsite/spacer.html" name="sidetop" scrolling="NO" noresize marginwidth="0" marginheight="0"> ',
				'<frame src="newsite/logo.html" name="logo" scrolling="NO" noresize marginwidth="0" marginheight="0"> ',
				'<frame src="newsite/newhome.html"  name="body" scrolling="NO" noresize marginwidth="0" marginheight="0"> ',
				'<frame src="newsite/breadcrumb.html" name="bottom" scrolling="NO" noresize marginwidth="0" marginheight="0"> ',
				'<frame src="newsite/spacer.html" name="sidebot" scrolling="NO" noresize marginwidth="0" marginheight="0"> ',
			'</frameset> ',			
			
			'<frame src="newsite/spacer.html" name="sideright" scrolling="NO" noresize marginwidth="0" marginheight="0"> ',
		'</frameset>'
	  );
	}
	else
	{
	document.write(
		  '<frameset cols="*,600,*" frameborder="NO" border="0" framespacing="0">',
			  '<frame name="leftFrame" src="oldsite/homeside.html">',
			  '<frame name="mainFrame" Scrolling=no noresize src="oldsite/home.html" marginwidth="0" marginheight="0">',
			  '<frame name="rightFrame" src="oldsite/homeside.html">',
		  '</frameset>'
	  );
	}	
}
