// JavaScript Document
function browserCheck() // find the browser through object and navigatior detection and manipulation
{this.b = navigator.appName; 
 this.version = navigator.appVersion;
 this.v = parseInt(this.version); // unreliable
 this.uaString = navigator.userAgent;
 this.agent_LC = this.uaString.toLowerCase();
 this.ns = (document.layers || (navigator.userAgent.indexOf('Netscape') != -1))?  1:0; // check for any netscape
 this.ie = (document.all && navigator.userAgent.indexOf('Opera') == -1)?  1:0; // check for any ie
 this.ns4 = (document.layers)?  1:0; //version 4?
 this.byID = (document.getElementById)? 1:0; // check for id using bwsr
 this.byAll = (document.all)? 1:0; // check for .all using bwsr, includes opera
 this.ns6 = (document.getElementById && document.getComputedStyle && window.GetAttention)? 1:0; //check ns 6
 this.ns7 = (document.getElementById && (navigator.userAgent.indexOf('Netscape/7.01') != -1) && (typeof navigator.appMinorVersion == 'undefined'))? 1:0; // check netscape 7
 this.ie4 = (document.all && !document.getElementById)? 1:0; // check ie4
 this.ie5 = (document.canHaveChildren && !document.canHaveHtml)?  1:0; // check ie5
 this.ie5_5 = (document.canHaveHtml)?  1:0; // check ie5.5
 this.ie6 = (document.getElementById && document.all && (navigator.userAgent.indexOf('Opera') == -1))? 1:0; // check ie6
 this.opera = (navigator.userAgent.indexOf('Opera') != -1)? 1:0; // check opera
 this.code_name = navigator.appCodeName;// check for codename
 //this.minor_vers = (this.ns7 == true)? 'Nyetscape': (navigator.appMinorVersion.indexOf('Q328676') != -1)? 1:0; // check for minor version // caused undefined error in 'mozilla/5.0 (windows; u; windows nt 5.1; en-us; rv:1.8.1.9) gecko/20071025 firefox/2.0.0.9'
 this.gecko = (this.agent_LC.indexOf('gecko') != -1)?  1:0;
 this.the_vendor = navigator.vendor; //
 this.konqueror = this.agent_LC.indexOf('konqueror');
 this.webTv = this.agent_LC.indexOf('webtv');
 //this.konqueror = ()? 1:0; // unix platforms only
}
var is = new browserCheck();
var the_css_version = (is.gecko == 1)? '<link href="css/TSH_default_gecko.css" rel="stylesheet" type="text/css" rev="stylesheet" />':'<link href="css/TSH_default_ie.css" rel="stylesheet" type="text/css" rev="stylesheet" />';

function roller(id,dir)
{
	document.getElementById(id).src = (dir == 1)? 'images/common_images/14dec2007/' + id + '_on.jpg' : 'images/common_images/14dec2007/' + id + '_off.jpg';
}