// JavaScript Document

ie4 = ((navigator.appName == "Microsoft Internet Explorer") &&
           (parseInt(navigator.appVersion) >= 4 ))
                        
ns = ((navigator.appName == "Netscape") &&
           (parseInt(navigator.appVersion) >= 5 ))

ns4 = ((navigator.appName == "Netscape") &&
           (parseInt(navigator.appVersion) < 5 ))

moz = ((navigator.appName == "Gecko") &&
           (parseInt(navigator.appVersion) >= 1 ))
           

if(ns4) {
        document.write("<link rel=stylesheet type='text/css' href='stylesns4.css'>");
} 
	else if(ns) {
        document.write("<link rel=stylesheet type='text/css' href='tcs_style_ns.css'>");
} 
	else if(moz) {
        document.write("<link rel=stylesheet type='text/css' href='tcs_style_moz.css'>");
} 
	else if(ie4) {
        document.write("<link rel=stylesheet type='text/css' href='tcs_style_ie.css'>");
} 
	else {
		document.write("<link rel=stylesheet type='text/css' href='tcs_style.css'>");
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
