ForeSee.surveydefs = [{
    name: 'nci-clinicaltrials',
    invite: {
        when: 'onentry',
        url: 'invite_ct.html'
    },
    pop: {
        when: 'later',
        what: 'qualifier',
        after: 'leaving-section'
    },
    criteria: {
        sp: 100,
        lf: 4
    },
    qualifier: {
        url: {
            pop: 'qualifying_ct_pop.html',
            dhtml: 'qualifying_ct_dhtml.html'
        },
        width: '500',
        height: '500',
        buttons: false
    },
    cancel: {
        url: 'cancel_ct.html'
    },
    links: {
        cancel: [{
            tag: 'a',
            attribute: 'href',
            patterns: ['xlivehelp']
        }]
    },
    include: {
        urls: ['clinicaltrials/search', 'ResultsClinicalTrials.aspx', 'psrv.aspx', /ViewClinicalTrials.aspx/gi, 'SearchClinicalTrials.aspx', '/clinicaltrials/search-form-help']
    }
}, {
    name: 'nci-spanish',
    invite: {
        when: 'onentry',
        url: 'invite_multi.html',
        width: '625',
        buttons: false
    },
    pop: {
        when: 'later',
        after: 'leaving-section'
    },
    criteria: {
        sp: 100,
        lf: 4
    },
    qualifier: {
        url: {
            dhtml: 'qualifying_multi_en_dhtml.html'
        },
        locales: [{
            locale: 'sp',
            url: {
                dhtml: 'qualifying_multi_sp_dhtml.html'
            }
        }],
        width: '500',
        height: '500',
        buttons: false
    },
    links: {
        cancel: [{
            tag: 'a',
            attribute: 'href',
            patterns: ['xlivehelp']
        }]
    },
    include: {
        urls: ['/espanol', '/diccionario', 'lang=spanish' ]
    }
}, {
    name: 'nci-main',
    invite: {
        when: 'onentry',
        url: 'invite.html'
    },
    pop: {
        when: 'later'
    },
    criteria: {
        sp: 4,
        lf: 4
    },
    links: {
        cancel: [{
            tag: 'a',
            attribute: 'href',
            patterns: ['xlivehelp']
        }]
    },
    include: {
        urls: ['.']
    }
}];
ForeSee.properties = {
    repeatdays: 60,
    
    language: {
        locale: 'en',
        src: 'location',
        locales: [{
            match: '/espanol',
            locale: 'sp'
        }]
    },
    
    exclude: {
        local: [/ncicancerbulletin/gi, /resultscancerbulletin.aspx/gi, /cb[a-zA-Z0-9-\.]*\.aspx/gi],
        referer: []
    },
    
    invite: {
        width: '500',
        bgcolor: '#333',
        opacity: 0.7,
        x: 'center',
        y: 'center',
        delay: 0,
        buttons: {
            accept: 'Yes',
            decline: 'No thanks'
        },
        hideOnClick: false,
		css: 'foresee-dhtml.css'
    },
    
    tracker: {
        width: '500',
        height: '345',
        timeout: 3,
        url: 'tracker.html',
        locales: [{
            locale: 'sp',
            url: 'tracker_sp.html'
        }]
    },
    
    survey: {
        width: 550,
        height: 600,
        loading: true
    },
    
    qualifier: {
        width: '500',
        height: '300',
        bgcolor: '#333',
        opacity: 0.7,
        x: 'center',
        y: 'center',
        delay: 0,
        buttons: {
            accept: 'Continue'
        },
        hideOnClick: false,
		css: 'foresee-dhtml.css'
    },
    
    cancel: {
        url: 'cancel.html',
        width: '500',
        height: '300'
    },

    loading: {
        url: 'survey_loading.html',
        locales: [{
            locale: 'sp',
            url: 'survey_loading_sp.html'
        }]
    },
    
    pop: {
        what: 'survey',
        after: 'leaving-site',
        pu: false,
        tracker: true
    },
    
    mode: 'first-party'
};
