/*!
* MartinCollege Config
*/

// register namespace
if (!window.MartinCollege) {
    window.MartinCollege = {};
}

MartinCollege.config = function () {

	return {
		websiteId:			3,
		cookieExpiryDays:	30,
		profileCookieKey:	"MartinCollege.profile",
		shortlistMaxItems:	5,
		questionMaxChars:	500,
		brandId :			7,
		australiaCountryId:	13,
		
		eloquaConfig: {
			extraFields: {
				"Brand": "Martin College",
				"elqSiteID": 1292,
				"elqFormName": "MainEnquiry",
				"Enquiryrecordtype": "012200000001CYz",
				"Destinationcountry": "Australia",
				"Websitesource": "www.martincollege.edu.au"
			},
			fieldMap: [
				{ id: "australianCitizen", eid: "citizenship", converter: "citizenshipConverter" },
				{ id: "cart", eid: "Preferredcourse", converter: "cartCourseConverter" },
				{ id: "cart", eid: "Centre", converter: "cartCentreConverter" },
				{ id: "cart", eid: "Startdate", converter: "cartStartDateConverter" },
				{ id: "question", eid: "Comments", converter: "cartConverter" },			
				{ id: "nameGiven", eid: "Firstname" },
				{ id: "nameFamily", eid: "Lastname" },
				{ id: "studentEmail", eid: "Email" },
				{ id: "studentPhone", eid: "1stcontacttelephone" },
				{ id: "addressCountry", eid: "Countryofresidence" },
				{ id: "marketingSubscribe", eid: "Subscribe" }
			]
		}			
	};

} ();

MartinCollege.config.urls = function () {

	return {
		/* Centres */
		centresGet:			"/Centre/CentreData",

		/* Course Data */
		articlesPost:		"/CentreArticle/ArticleData",
		articleGet:			"/CentreArticle/ArticleData", 
		centreArticleGet:	"/CentreArticle/CentreArticleData", 
		
		/* Disciplines, skill sets */
		disciplinesGet:		"/Discipline/Disciplines",
		subjectsGet:		"/Discipline/Articles",
		
		/* Profile */
		profileGet:			"/Visitor/GetProfile",
		profilePut: "/Visitor/SaveProfile",

		/* Agents */
		getAgents: "/Agent/ActiveAgents",		

		/* MISC DATA SERVICES */
		getCountries: "/Placement/Countries",		
		feesXml:			"/data/fees.xml",
		
		/* Eloqua */
		eloquaPost: "/eloqua/f.aspx",

		/* Internal URLs. May be overridden by values passed in from CMS */	
		enquiryThankYou:    "EnquiryFormSubmitted.aspx",
		applicationThankYou: "ApplicationFormSubmitted.aspx",
		searchResults: "/searchresults.htm",
		applicationCart: "/admission/apply-online.aspx",
		
        /* Search */
        search: "/The/Search/search"		
	};
} ();

/*
Base parameters sent to the Old Google Mini search web service.
This is to access the old google mini search appliance that has been setup differently to the new google installation
*/
MartinCollege.config.oldGoogleMiniParameters = function() {
    return {
        site: "studygroup",
        client: "studygroup", //when search is called with a language parameter, the language is appended to this field e.g. "taylorscollege-chinese"
        output: "xml_no_dtd",
        num: "6", //default
        filter: "0",
        ie: "utf8",
        oe: "utf8",
        start: "0", //default, pagination changes this value
        restrict: "martin_ENG",
        proxystylesheet: "studygroup"
    }
} ();

