learnandwin_path = function() { var oServerConfig = { aTypeExForumId : { "recruitment":"5" } }, serverPath = "",hostForum = "http://www.toitl.com", publicPath = serverPath+"/public/", //"../", // appliPath = serverPath+"", oFilePathLangue = { uk : { help_php : publicPath+"l/learnandwin_help.php" }, fr : { help_php : publicPath+"l/learnandwin_help_fr.php" } }, appliPathNoServer = "/public/recruitment/", appliPath = serverPath+appliPathNoServer, oApplicationFilePathLangue = { uk : { displayAgencies_php : appliPath+"displayAgencies.php" }, fr : { displayAgencies_php : appliPath+"displayAgencies_fr.php" } }, getFile = function(sTag,l) { var oFPL = (oApplicationFilePathLangue !== undefined) ? oApplicationFilePathLangue : oFilePathLangue; if (l === undefined) { l = "uk"; } //alert(l); if (oFPL === undefined || oFPL.uk === undefined || oFPL.uk[sTag] === undefined) { oFPL = oFilePathLangue; } if (oFPL[l] !== undefined && oFPL[l][sTag] !== undefined) { sRet = oFPL[l][sTag]; } else { sRet = oFPL.uk[sTag]; } return sRet; }, getServerConfig = function(sTag) { var oRet = {}; if (oServerConfig !== undefined) { oRet = oServerConfig[sTag]; } return oRet; }; return { serverPath : serverPath, dataPath : "data/", rootPath : serverPath+"", //"../../", publicPath : publicPath, fGetFile : getFile, recruitmentPath : serverPath+"/public/recruitment/", //"", hostForum : hostForum, appliPathNoServer : appliPathNoServer, appliPath : appliPath, fGetServerConfig : getServerConfig }; }(); // end of function learnandwin_path