﻿//AR 9/22/2010 - Initialize globals & culture-specific settings.
var adecco = window.adecco = window.adecco || {}
adecco.config = {
        isCanada:true,
        /* Default distance radius was changed from 10 to 20 for Canada to avoid seeing less results when searching by postal code */
        defaultDistanceRadius: 20,
        defaultAutocompleteMinChars: 2,
        jobTitlesAutocompleteService: '/_layouts/adeccov2/svc/JobTitles.ashx',
        jobTitlesAutocompleteMinChars: 3,
        cssComponent: '/_layouts/adeccov2/css/jobsearch.css',
        carouselCssComponent: '/_layouts/adeccov2/css/jquery.jcarousel.css',
        featuredMediaService: '/_layouts/adeccov2/svc/FeatureMedia.ashx',
        /*AG:01/26/2010:Commented this to check for roevin site
        searchResultPage: (window.location.href.indexOf('engineeringandtechnical') > -1 ? 			//TJF r9 10/5/09
        		    '/engineeringandtechnical/career-services/CareerServices/Pages/SearchResults.aspx?' :
        		    '/JobSeekers/JobSearch/Pages/SearchResults.aspx?'),*/
        searchResultPage: (window.location.href.indexOf('roevin') > -1 ? 			
        		    '/roevin/Job-Seekers/JobSearch/Pages/SearchResults.aspx?' :
        		    '/JobSeekers/JobSearch/Pages/SearchResults.aspx?'),		    
        insertCssComponent: false,
        animationSpeed: 'medium',
        recentJobsService: '/_layouts/adeccov2/svc/RecentJobs.ashx',
        recentJobsLocationWaterMark: '[Enter postal code]',
        recentJobsLocationWaterMark_FR: '[Entrez le code postal]',
        recentJobsNoJobsFoundMsg: 'No jobs were found',
        locationAutocompleteService: '/_layouts/adeccov2/svc/Proximity.ashx',
        carouselOpacityLevel: 0.75,        
        youtube: {
            fullscreen: {width: 480, height: 385},
            widescreen: {width: 480, height: 295}
        },
        PREF_LOCATION_COOKIE_NAME: 'prefered_location',
        PREF_LOCATION_RECENTJOBS_COOKIE_NAME: 'prefered_location_recentjobs',
        PREF_CATEGORY_COOKIE_NAME: 'prefered_category',
        PREF_FEATURED_ARTICLE_CATEGORY_COOKIE_NAME: 'prefered_featured_article_category'
    };
