////////////////////////////////////////////////////////////////////
// File: /include/js/testKiosk.js
// Desc: Records page info  
// $Revision: 6$
// $Date: 09/15/2003 4:50:27 PM$
// $Author: R.J. Plummer$
////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////
//  testKiosk
//
//      tests whether the page was loaded into a new window in 
//      Kiosk mode and, if so, loads an image that records 
//      this event (with the referral code if any).
////////////////////////////////////////////////////////////////////
function testKiosk() {
    if (document.body 
        && typeof(document.body) == "object"
        && document.body.offsetWidth
        && typeof(document.body.offsetWidth) == "number"
        && window.screen
        && typeof(window.screen) == "object"
        && typeof(window.screenLeft) == "number"
        && window.history
        && typeof(window.history) == "object"
        && document.images
        && typeof(document.images) == "object"
        && history.length == 0
        && ((window.screenLeft < 0 && document.body.offsetWidth > window.screen.width) 
            || (document.body.offsetHeight >= window.screen.height 
                && document.body.offsetWidth >= window.screen.width 
                && window.screenLeft <= 0 
                && window.screenTop <= 0))) {
                    GEN_load(2)
    }
    return false;
}
