// Applies different CSS files according to browser in use and the branding area
// Runs at load time in header
// Requires preloading of  browser.js
// N.B. assumes ie5 css file is loaded  as the default
//
// The variable 'brand' must be set prior to calling this script to permit alternative
// colour schemes for different brand areas, e.g. undergraduate.

var browser=browsername() ;

// keep browsers to a minimum; we'll add them as and when it becomes necessary
if (browser=="ns") 
 { 
 browser="ns4"
 }
else
 { 
 browser="ie5"
 }
// Standard ie5 css loads by default -- load subsidiary ie5 style sheet as required for different branding areas.
if (browser=="ie5" && brand!="corporate-red") 
 { 
 document.write ('<link rel="stylesheet" href="'+siteroot+'css/bs_ie5_'+brand+'.css" type="text/css">') ;
 }
 // If the browser isn't IE5 compatible, load alternative browser style sheet as required for different branding areas.
if (browser!="ie5") 
 { 
 document.write ('<link rel="stylesheet" href="'+siteroot+'css/bs_'+browser+'_'+brand+'.css" type="text/css">') ;
 }
