<!--

var foldername;
var intScrWidth = window.screen.width;
var intScrHeight = window.screen.height;
var frameWidth;
var frameHeight;
var cssCatId = 1;
	if (top.innerWidth)
	{
		frameWidth = top.innerWidth;
		frameHeight = top.innerHeight;
	}
	else if (self.innerWidth)
	{
		frameWidth = self.innerWidth;
		frameHeight = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientWidth)
	{
		frameWidth = document.documentElement.clientWidth;
		frameHeight = document.documentElement.clientHeight;
	}
	else if (document.body)
	{
		frameWidth = document.body.clientWidth;
		frameHeight = document.body.clientHeight;
	}
/*
alert (intScrWidth + " X " + frameHeight);
// 1024 x 549 // 1024 x 516
// 1024 x 373 // 1024 x 340
if (intScrWidth > 670 || intScrHeight > 516)
{	foldername = "css1024";	}
else
{	foldername = "css0800";	}
*/

//alert (frameWidth + " X " + frameHeight);
// 670 x 382 // 662 x 340
// 894 x 550 // 894 x 517
if (frameWidth > 670 || frameHeight > 382)
{	foldername = "css1024";	}
else
{	foldername = "css0800";	}
attachCss("allpg");

if (top.txtUserCatId == 0 || top.txtUserCatId == 2)
{	cssCatId = 2;	}
attachCss("catid"+cssCatId);

function attachCss(txtFilename)
{
	document.write("<link rel='stylesheet' href='../" + foldername + "/" + txtFilename + ".css' type='text/css'>");
}
//-->
