var cssfile = 'default';
var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
var browser=navigator.appName;
var version = -1;
var sVersion='';
var redirect = false;
//if (screen.width <=1024 && screen.height<=768)
//	cssfile  = '1024x768';
	
if (browser == 'Microsoft Internet Explorer')
{
  var ua = navigator.userAgent;
  var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
  if (re.exec(ua) != null)
	 version = parseFloat( RegExp.$1 );
	 
	if (version ==6)
		sVersion= '.win-ie6';	
	else if(version <6)
		redirect=true;
}

//alert(window.location.pathname);
if (redirect)
	window.location='404.php';
else
document.write('<link rel="stylesheet" type="text/css" href="http://'+window.location.hostname +'/css/'+cssfile+sVersion+'.css"/>');


