<!-- Hide script from older browsers

/*	csm2001bCSS.js
	Function that detects browser & platform, and serves up 
	the correct stylesheet. Used on every page of 2003 redesign. */
/*	when transfering this js live, make the hrefs absolute  */

var browser = navigator.appName;
var version = parseFloat(navigator.appVersion);
var platform = navigator.platform;
var vendor = navigator.vendor;
var isIE = false;
var isPC = false;
var isLinux = false;
var isUnix = false;
var isFIVEO = false;
var isMac = false;

// testing

var infoToParse = navigator.appVersion;
var pattern = /((\d\.\d)\s\(([a-z]+)\W\s([a-z]+\s)(\d\.\d)\W)/i;
var result = infoToParse.match(pattern);
if (result != null) var ie_real_version_number = result[5];
if ((ie_real_version_number >= 5.0) || (version >= 5.0)) isFIVEO = true;

if (browser == "Microsoft Internet Explorer") {
	isIE = true;
} else if (browser == "Netscape") {
	if (vendor == "Apple Computer, Inc.") {
		isIE = true;
	} else {
		isIE = false;
	}
}

if ((platform == "Win32") || (platform == "Win16")) {
	isPC = true;
} else if (platform == "MacPPC") {
	isMac = true;
}

var StringToParse = platform;
var pattern = /linux/i; // regular expression
var result = StringToParse.match(pattern);
if (result != null) isLinux = true;	
pattern = /unix/i; // regular expression
result = StringToParse.match(pattern);
if (result != null) isUnix = true;
if (!(isPC) && !(isLinux) && !(isUnix)) {
	isMac = true;
} 

// writing

if ((isPC) && (isIE)) {
	document.write("<LINK rel=\"stylesheet\" href=\"/lib/css/csmpc_ie2001b.css\" type=\"text/css\">");
} else if ((isPC) && !(isIE)) {
	document.write("<LINK rel=\"stylesheet\" href=\"/lib/css/csmpc_ns2001b.css\" type=\"text/css\">");
} else if ((isMac) && (isIE) && (isFIVEO)) {
	document.write("<LINK rel=\"stylesheet\" href=\"/lib/css/csmmac_ie2001b.css\" type=\"text/css\">");
} else if ((isMac) && (isIE) && !(isFIVEO)) {
	document.write("<LINK rel=\"stylesheet\" href=\"/lib/css/csmmac_ns2001b.css\" type=\"text/css\">");
} else if ((isMac) && !(isIE)) {
	document.write("<LINK rel=\"stylesheet\" href=\"/lib/css/csmmac_ns2001b.css\" type=\"text/css\">");
} else if ((isLinux) || (isUnix)) {
	document.write("<LINK rel=\"stylesheet\" href=\"/lib/css/csmux_ns2001b.css\" type=\"text/css\">");
} else { 
	document.write("<LINK rel=\"stylesheet\" href=\"/lib/css/csmpc_ie2001b.css\" type=\"text/css\">"); //default is PC IE for all other browsers, platforms.

} // end else ifs

// end style sheet picker

// start BURST ad code

<!-- /* Copyright 1997-2003 BURST! Media, LLC. All Rights Reserved. (Version 1.0A) */ 
function ShowAdDesktopAd(adcode, width, height, sizingParam, keywordParam, bgColor, background) {
 var bN = navigator.appName;
 var bV = parseInt(navigator.appVersion);   
 var base='http://ads.addesktop.com/';   
 var Tv='';
 var fontString;
 var size;
 var keyword;
 var bkgd='';
 var vr='v=1.0A';
 var agt=navigator.userAgent.toLowerCase();   

 if (sizingParam == '') {size = '';} else {size = '/SZ=' + sizingParam;}
 if (keywordParam == '') {keyword = '';} else {keyword = '/kw=' + keywordParam;}
 if (bgColor == '') {fontString = '';} else {fontString = '/zg' + bgColor;}
 if (background.length!=0) {bkgd='/bgi='+(escape(escape(background))).replace(/\//gi,'%252F');} else {bkgd='';}

 if (bV>=4)  
 {ts=window.location.pathname+window.location.search;
  i=0; Tv=0; while (i< ts.length)
    { Tv=Tv+ts.charCodeAt(i); i=i+1; } Tv="/"+Tv;}
  else   {Tv=escape(window.location.pathname);
  if( Tv.charAt(0)!='/' ) Tv="/"+Tv; 
    else if (Tv.charAt(1)=="/")
 Tv="";     
 if( Tv.charAt(Tv.length-1) == "/")
   Tv = Tv + "_";} 
 var fCode='<ifr'+'ame id="BURST" src="'+base+'cgi-bin/ads/'+ adcode + '.cgi/if/' + vr + fontString + size + keyword + bkgd + Tv + '/CNW/RETURN-CODE/" width="' + width + '" height="' + height + '"' + 'marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no">';   
 var gCode = '<a href="'+base+'ads/' + adcode + '-map.cgi/'+ vr + fontString + size + keyword +Tv+'" target="_top"> <img src="' + base + 'cgi-bin/ads/' + adcode + '.cgi/'+ vr + fontString + size + keyword + Tv + '" border="0" alt="Click Here"></a>';
 var fCodeEnd = '</ifr'+'ame>';

 if (agt.indexOf("mac")==-1) {
  document.write(fCode+gCode+fCodeEnd);
 } else {
  document.write(gCode);
 }
}
//-->

// End BURST ad code

// Start Urchin UTM code

<!-- //-Urchin Tracking Module(UTM),$Revision: 1.3 $,Copyright 2002 Urchin Software Corporation-
var __utm1,__utm2,__utm3,__utmi,__utmn,__utmd,__utmu,__utmp,__utmr;
__utm1 = document.cookie.indexOf("__utm1=");
__utm2 = document.cookie.indexOf("__utm2=");
__utm3 = document.cookie.indexOf("__utm3=");
__utmn = Math.round(Math.random() * 4294967295);
__utmd = new Date();
__utmu = Math.round(__utmd.getTime()/1000);
if ((__utm1 < 0) || (__utm2 < 0)) {
 document.cookie="__utm1="+__utmn+"."+__utmu+"; path=/; expires=Sun, 18 Jan 2038 00:00:00 GMT";
 document.cookie="__utm2="+__utmu+"; path=/; expires=Sun, 18 Jan 2038 00:00:00 GMT";
 document.cookie="__utm3="+__utmu+"; path=/;";
} else if (__utm3 < 0) {
 document.cookie="__utm2="+__utmu+"; path=/; expires=Sun, 18 Jan 2038 00:00:00 GMT";
 document.cookie="__utm3="+__utmu+"; path=/;";
}
__utmr = document.referrer;
if (!__utmr) {__utmr = "-";}
else {
 __utmp = __utmr.indexOf(document.domain);
 if ((__utmp >= 0) && (__utmp <= 8)) __utmr = 0;
}
var __utmi = new Image(1,1);
__utmi.src ="/__utm.gif?utmn="+__utmn+"&utmr="+__utmr;

//-->

// End Urchin UTM code

// End hiding script -->




