//          Copyright 27 Aug 2000, Cavalry Outpost Publications

// This program incorporates an overall security test routine to thwart
// the pirating of original works of literary, dramatic, musical, graphical
// and computer syntax that are incorporated into HTML program elements.

// 1.0 INHIBIT LINKING FROM UNAUTHORIZED HOST - [URLCheck.js]
//     Host Names (Domains of Internet Providers) are identified and
//     validated for authorized use.

// 2.0 INHIBIT MICROSOFT EXPLORER BROWSER IMAGE TOOLBAR
//     Prevents the operation of the MicroSoft Explorer Browser (Ver 6.0)
//     ToolBar feature that allows the viewer to "Print", "Save", "eMail"
//     or "Opening" MyPictures Folder for hosted images.

// 3.0 NAVIGATOR BROWSER REVISION CHECK
//     Revisions of visitor navigator browsers are checked. Visitors
//     using browsers with revisions less than 4.0 are redirected.

// 4.0 INHIBIT REMOTE FRAME CAPTURE
//     Layer position of the HTML file is identified as it is being loaded.
//     If the file is enclosed in a "FRAME", providing the appearance that
//     the creator of the "FRAME" has control over the embodied HTML, the
//     location of the file is moved to the "top" location of the main window.

// 5.0 RECORD WEBSITE VISITOR ON LOGGING MODULE
//     As the URL is being loaded for viewing, the Cavalry Scout Tracker
//     embeds a small, transparent ("1" X "1") image in it for use in
//     redirecting a call to the Tracker Log Module which records visitor
//     unique identification data in the file database.
     
// 6.0 DISPLAYS A RANDOMIZED POP-UP BANNERET
//     This subroutine may be used to call up a JS File to display small
//     popup advertising or headliner banners used to promote the visiting
//     a specific URL of interest.

// *********************************************************************
// **********     Program Name = URLAudit.js Rev 03.12.06     **********
// *********************************************************************

// 1.0 INHIBIT LINKING FROM UNAUTHORIZED HOST - [URLCheck.js]
   document.write('<SCRIPT LANGUAGE="JavaScript" SRC="http://www.first-team.us/js_files/urlcheck.js">');
   document.write('<\/SCRIPT>');

// 2.0 INHIBIT MICROSOFT EXPLORER BROWSER IMAGE TOOLBAR
document.write('<META HTTP-EQUIV="imagetoolbar" CONTENT="no" />');

// 3.0 CHECK NAVIGATOR BROWSER VERSION & REDIRECT IF < VER 4.0
if ((navigator.appName.indexOf("WebTV") != -1) && (parseInt(navigator.appVersion)) >= 3) {
        alert ('\n'
             + 'This WebSite has been redesigned\n'
             + 'to accommodate WebTV Browsers\n'
             + 'detected as Versions 3.00 or above\n'
             + '\t       By\n'
             + '   Cavalry OutPost Sentry Systems\n'
             + '\n'
             + '     Go ahead and enjoy the site !!');
}
else    {
        if (parseInt(navigator.appVersion) < 4) {
                location.href = "http://www.first-team.us/upgrade/"; 
        } 
}

// 4.0 INHIBIT REMOTE FRAME CAPTURE
if (self.parent.frames.length != 0) {
        self.parent.location=document.location;
}

// 5.0 RECORD WEBSITE VISITOR ON LOGGING MODULE
// 5.1 Select Random Image For CGI Redirection
var nbrImages = 999;      // this example selects from 999 Tracking Images
var randomnumber = Math.random();
var ran = Math.round((nbrImages - 1) * randomnumber) + 1;
// document.write(ran);   // Remove comment lines to print random number

// 5.2 Embed Random Image In Loading URL
document.write('<IMG SRC="http://www.first-team.us/cgi_perl/urltrack/axs_log.cgi?img_' + ran +'.gif&ref=' + document.referrer +' " border="0" width="1" height="1">');

// 6.0 CALL REMOTE POPUP WINDOW JS FILE
document.write('<SCRIPT LANGUAGE="JavaScript" SRC="http://www.first-team.us/js_files/banneret/popupwin.js">');
document.write('<\/SCRIPT>');
