//BEGIN CUSTOMER-SPECIFIC VARIABLES:
        //rejectVal can be -1 for a popup every reload, 0 for every session, >0 for #days
        var rejectVal=0;
        var splashPop = "http://download.cometsystems.com/popupsplash.asp";
//END CUSTOMER-SPECIFIC VARIABLES
        
        var popupURL= splashPop + "?RejectDuration=" + rejectVal + "&RefererSite=popup&Referer=" + escape(document.location);
        window.onerror=isError;        
        function isError(){return true;}
        function Is () {        // Browser Sniffer
            var agt=navigator.userAgent.toLowerCase();           
            this.major = parseInt(navigator.appVersion);
            this.nav  = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1) && 
                (agt.indexOf('compatible') == -1)));
            this.nav3 = (this.nav && (this.major == 3));
            this.nav4 = (this.nav && (this.major >= 4));
            this.win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1));
            this.ie   = (agt.indexOf("msie") != -1);
            this.ie3  = (this.ie && (this.major == 2));
            this.ie4  = (this.ie && (this.major >= 4));        
            this.win98 = ((agt.indexOf("win98")!=-1)||(agt.indexOf("windows 98")!=-1));
            this.winnt = ((agt.indexOf("winnt")!=-1)||(agt.indexOf("windows nt")!=-1));
            this.win32 = this.win95 || this.winnt || this.win98 || 
                ((this.major >= 4) && (navigator.platform == "Win32")) || 
                (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1);
            //Check for Comet Compatibility        
            this.compatibleIE = ( this.win32 && (this.ie4 || this.ie3));
            this.compatibleNS = ( this.win32 && (this.nav3||this.nav4));
            this.compatible = (this.compatibleIE || this.compatibleNS);
        }
        var is = new Is();                
        function NSEmbed(cursorTag) {
                if (is.compatibleNS) {
                        if (navigator.mimeTypes["application/x-comet"]) {
                           document.writeln('<embed name="CurNS" type="application/x-comet" width=2 height=1');
                           document.write(cursorTag);
                           document.writeln('></embed>');
                        }
                        else if(!GetCookie("RejectedCursor")) showPopUp();
                }
        }
        function showPopUp() {
                if (is.compatible) popupWin=window.open(popupURL,"popupwindow","resizable=yes,location=no,toolbar=no,scrollbars=no,height=300,width=300");
        }
        function GetCookie(name) {
                var arg = name+"=";
                var arglength=arg.length;
                var cookielength=document.cookie.length;
                var i=0;
                while(i<cookielength) {
                        var valStart=i+arglength;
                        if(document.cookie.substring(i,valStart)==arg) {
                                var end=document.cookie.indexOf (";",valStart);
                                if(end==-1) end=document.cookie.length;
                                return unescape(document.cookie.substring(valStart,end));
                        }
                        i=document.cookie.indexOf(" ",i)+1;
                        if(i==0) break;
                }
                return null;
        }
        
        function setReject(days) {      // creates a reject cookie which expires <days> days from now.
                if (days) {             // if no days specified, default is the life of browser session
                        if (days < 0) return;
                        else if (days > 0 ) {
                                var expirationDate = new Date();
                                expirationDate.setDate(expirationDate.getDate() + days);
                        }       
                        else days = false;
                }
                document.cookie = "RejectedCursor=true"  + ((days) ? "; expires=" + expirationDate.toGMTString() : "");
        }



