
var aV = navigator.appVersion.toLowerCase();

var isMsie45 = aV.indexOf("msie 4.5");
var isMsie = aV.indexOf("msie");
var isNn = navigator.appName.toLowerCase().indexOf("netscape");

var isCompVersion = parseFloat(navigator.appVersion);
var isGenVersion = parseInt(navigator.appVersion);
var isVersion = isCompVersion - isGenVersion;

var cssFile = "default.css";

cssFile = (aV.indexOf("win")!= -1)?cssFile = (isMsie != -1 && isVersion == 0 && document.all)?"winmac_ie_5+.css":(isNn != -1)?(isGenVersion >= 5 && document.getElementById)?"winmac_nn_6+.css":(isCompVersion >= 4.08)?"win_nn_4.08-mac_ie_4.5.css":cssFile:cssFile:(aV.indexOf("mac")!= -1)?cssFile = (isMsie45!= -1)?"win_nn_4.08-mac_ie_4.5.css":(isMsie != -1 && isVersion == 0 && document.all)?"winmac_ie_5+.css":(isNn!= -1)?(isVersion == 0 && document.getElementById)?"winmac_nn_6+.css":(isCompVersion <= 4.7)?"mac_nn_4.7-.css":"mac_nn_4.72.css":cssFile:cssFile;

//alert(cssFile)

document.writeln('<link rel="stylesheet" href="/css/' + cssFile + '" type="text/css" />');

//add patch global patch for 1/2004 redesign
document.writeln('<link rel="stylesheet" href="/css/1.2004.patch_global.css" type="text/css" />');

//add patch 5+ patch for 1/2004 redesign
if ((isMsie != -1 && isVersion == 0 && document.all) || (isGenVersion >= 5 && document.getElementById) || (isVersion == 0 && document.getElementById)) {
  document.writeln('<link rel="stylesheet" href="/css/1.2004.patch_5+.css" type="text/css" />');
}

/*
// Survey Form Code. *** START.
var sCookieName = "c1";

// Create a cookie with the specified name and value.
// The cookie expires at the end of the 20th century.
function SetCookie(sName, sValue)
{
  date = new Date();
  
  date.setFullYear("3000");
  
  //document.cookie = sName + "=" + escape(sValue) + "; expires=" + date.toGMTString();
  
  document.cookie =  sName + "=" + escape(sValue) + "; expires=" + date.toGMTString()
  
} 

function GetCookie(sName)
{
  // cookies are separated by semicolons
  var aCookie = document.cookie.split("; ");

  for (var i=0; i < aCookie.length; i++)
  {
		// a name/value pair (a crumb) is separated by an equal sign
		var aCrumb = aCookie[i].split("=");
		
		if (sName == aCrumb[0]) {
		  return unescape(aCrumb[1]);
		}
   }

   // a cookie with the requested name does not exist
   return "";
}

// Delete the cookie with the specified name.
function DeleteCookie(sName)
{
  document.cookie = sName + "= ; expires=Fri, 31 Dec 1999 23:59:59 GMT;";
}

var timerId;
  
function fnTimeOut()
{

	SetCookie(sCookieName, "visited");
	clearTimeout(timerId);
	
	//var hwnd = window.open('')
	
}

function startTimer()
{
	//50000 milli second = 50 seconds
   timerId = setTimeout("fnTimeOut()", 50000);
}

var strCookie = GetCookie(sCookieName);

if (strCookie == "")
{
	startTimer();
}
else
{
	//alert("You have already participated in the Survey--" + strCookie + "<<")
}


// Survey Form Code. *** END.
*/