1function AthPaths() {
2
3};
4
5AthPaths.getRootUrl = function () {
6 if (AthPaths.rootUrl == undefined) {
7 var scripts = document.getElementsByTagName('link');
8 $.each(scripts, function (index, element) {
9 var idx = element.href.indexOf('athCms/css/athCmsCss.css', 0);
10 if (idx != -1) {
11 AthPaths.rootUrl = element.href.substring(0, idx);
12 return false;
13 };
14 });
15 };
16 return AthPaths.rootUrl;
17};