//This sets CSS requirements for various browsers in context-layout

var myBrowser = navigator.userAgent;

if (myBrowser.indexOf("Opera") != -1)  {
document.write('<style type="text/css" media="screen">#fa-footer {width: 100%;} #fa-content {right: 0; width: auto;} #fa-toc {position: absolute; height:auto; }</style>')
} else {
if (myBrowser.indexOf("Firefox") != -1) {
document.write('<style type="text/css" media="screen">#fa-footer {width: 100%; position: fixed;} #fa-content {height: auto; width: auto; right: 0; position: fixed;}</style>')
} else {
if (myBrowser.indexOf("Netscape") != -1) {
document.write('<style type="text/css" media="screen">#fa-footer {width: 100%; position: fixed;} #fa-content {width: auto; right: 0; position: fixed;} #fa-toc {height:auto;}</style>')
} else {
if (myBrowser.indexOf("MSIE") != -1) {
//i.e. Internet Explorer
document.write('<style type="text/css" media="screen">.fa-inner {width: 100%;} #fa-footer {width:expression(document.body.clientWidth - 180)} #fa-content {width:expression(document.body.clientWidth - 180)}</style>')
} else {
if (myBrowser.indexOf("KHTML") != -1) {

} else {
//Mozilla navigator must be last to avoid false hits on other browsers
if (myBrowser.indexOf("Mozilla") != -1) {
document.write('<style type="text/css" media="screen">#fa-footer {width: 100%; position: fixed;} #fa-content {width: auto; right: 0; position: fixed;} #fa-toc {height:auto;}</style>')
} else {
document.write('<style type="text/css" media="screen">#fa-footer {width: 100%; position: fixed;} #fa-content {width: auto; right: 0; position: fixed;} #fa-toc {height:auto;}</style>')
alert('Note: Your browser may not support the advanced display features of this page. For best results, use one of the following browsers:\n\nFirefox 1.5+\nInternet Explorer 6+\nMozilla Suite 1.7+\nNetscape 7.2+\nOpera8.5+\n')
}
}
}
}
}
}







