/* constants.js * Author: Devin Teske <devinteske@hotmail.com> * Date: March 17th, 2002 *//* define constants in this file that you want other JS files to be able to use. * note though that to use these constants you should include this file before the * other JS files. Include the file like so... * * <script type="text/javascript" src="include/js/constants.js"></script> */var d = document; //this is for shorthand programming (to use 'd' instead of 'document')var objectTimeout = 5000; //1.5 seconds//browser sniffervar agt=navigator.userAgent.toLowerCase();var is_major = parseInt(navigator.appVersion);var is_minor = parseFloat(navigator.appVersion);var is_nav = ((agt.indexOf('mozilla')!=-1)    && (agt.indexOf('spoofer')==-1)    && (agt.indexOf('compatible') == -1)    && (agt.indexOf('opera')==-1)    && (agt.indexOf('webtv')==-1));var is_nav2 = (is_nav && (is_major == 2));var is_nav3 = (is_nav && (is_major == 3));var is_nav4 = (is_nav && (is_major == 4));var is_nav4up = (is_nav && (is_major >= 4));var is_navonly = (is_nav && ((agt.indexOf(";nav") != -1) ||    (agt.indexOf("; nav") != -1)) );var is_nav5 = (is_nav && (is_major == 5));var is_nav5up = (is_nav && (is_major >= 5));var is_ie = (agt.indexOf("msie") != -1);var is_ie3 = (is_ie && (is_major < 4));var is_ie4 = (is_ie && (is_major == 4) &&    (agt.indexOf("msie 5.0")==-1) );var is_ie4up = (is_ie && (is_major >= 4));var is_ie5 = (is_ie && (is_major == 4) &&    (agt.indexOf("msie 5.0")!=-1) );var is_ie5up = (is_ie && !is_ie3 && !is_ie4);var is_aol = (agt.indexOf("aol") != -1);var is_aol3 = (is_aol && is_ie3);var is_aol4 = (is_aol && is_ie4);var is_opera = (agt.indexOf("opera") != -1);var is_webtv = (agt.indexOf("webtv") != -1);// os detectionvar is_pc=(navigator.platform.substring(0,3)=='Win');var is_mac=(navigator.platform.substring(0,3) == 'Mac')// resolution checkvar sw=screen.width;var sh=screen.height;function verifyCompatibleBrowser(){    this.ver=navigator.appVersion    this.dom=document.getElementById?1:0    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;    this.ie4=(document.all && !this.dom)?1:0;    this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;    this.ns4=(document.layers && !this.dom)?1:0;    this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)    return this}bw=new verifyCompatibleBrowser()
