function fCreateTitanWEB() { // properties this.version = '1.0.081304'; this.webtrendsID = ''; this.sPageContentGroups = ''; // methods this.loadWebtrends = fWebtrendsLive; // this.pageFocus = fPageFocus(); function fWebtrendsLive() { if(this.webtrendsID.length == 6) { var SERVER= ""; var CONTENTGROUP = this.sPageContentGroups; var wtl_URL= document.URL; var wtl_Title= document.title; //alert(CONTENTGROUP); function D8(d) { var fwd = 0, seed = new Date('01/01/2000'), key = "0123456789ABCDEFGHIJKLMNOPQRSTUVsWebtrendsDataXYZabcdefghijklmnopqrstuvwxyz"; var s = key.charAt(d.getFullYear() - 2000) + key.charAt(d.getMonth() + 1) + key.charAt(d.getDate()); s += key.charAt(d.getHours()) + key.charAt(d.getMinutes()) + key.charAt(d.getSeconds()); while(seed.getDay() != fwd) seed = new Date(seed.getTime() + 86400000); var w = Math.floor((d.getTime() - (seed.getTime() + 86400000)) / 604800000); s += key.charAt((w-(w%16))/16); s += key.charAt(w%16); return s; } function A(B, C) { sWebtrendsData += "&" + B + "=" + escape(C); } var t = new Date(); sWebtrendsData = "http" + (document.URL.indexOf('https:') == 0 ? 's' : '') + "://statse.webtrendslive.com/S" + this.webtrendsID + "/button5.asp?tagver=5&si=" + this.webtrendsID + "&fw=0"; A("server", typeof(SERVER) == "string" ? SERVER : ""); A("Group", typeof(CONTENTGROUP) == "string" ? CONTENTGROUP : ""); A("tz", t.getTimezoneOffset()); A("ch", t.getHours()); A("cl", D8(t)); A("ti", typeof(wtl_Title) == "string" ? wtl_Title : document.title); A("url", typeof(wtl_URL) == "string" ? wtl_URL : document.URL); A("rf", window.document.referrer); A("js", "Yes"); A("ul", navigator.appName == "Netscape" ? navigator.language : navigator.userLanguage); if(typeof(screen) == "object") { A("sr", screen.width + "x" + screen.height); A("cd", screen.colorDepth); A("jo", navigator.javaEnabled() ? "Yes" : "No"); } if(sWebtrendsData.length > 2048 && navigator.userAgent.indexOf('MSIE') >= 0) sWebtrendsData = sWebtrendsData.substring(0, 2043) + "&tu=1"; var elBody = document.body; var elDiv = document.createElement('div'); elBody.appendChild(elDiv); elDiv.innerHTML = ''; } } function fPageFocus() { // this will be used to set page focus on fields .. by form number. } this.load = function () { if(window.fCustom) { fCustom(); } if(window.gsl) { gsl.load(); } if(window.hydra) { hydra.load(); } if(window.khronos) { khronos.load(); } if(window.sponsors) { sponsors.load(); } if(this.webtrendsID) { this.loadWebtrends(); } fPageFocus(); if(window.fCustomLoad) { fCustomLoad(); } } } var titanWEB = new fCreateTitanWEB(); /**************************************************************************************************************************************/ function fCustom() { if(window.bWebtrendsFilter) { if(bWebtrendsFilter == 'yes') { titanWEB.webtrendsID = '152639'; } } else { titanWEB.webtrendsID = '152639'; } // gsl.siteWidth = 768; // fHNSCustom(); } function fCustomLoad() { } function fHNSCustom() { } function wrapTopLevel(){ var asTopItems = sHydraData.split('^1'); for(var iCounter = 0; iCounter < asTopItems.length; iCounter++) { if(iCounter < 4) { var sBGOverride = '~|' + document.location.protocol + '//www.albertadoctors.org/bcm/ama/ama-website.nsf/bg.cnmmain' + (iCounter + 1) + '.jpg^'; asTopItems[iCounter] = asTopItems[iCounter].replace('~^', sBGOverride); } asTopItems[iCounter] = asTopItems[iCounter].slice(0, asTopItems[iCounter].lastIndexOf(' ', asTopItems[iCounter].indexOf('|'))) + '
' + asTopItems[iCounter].slice(asTopItems[iCounter].lastIndexOf(' ', asTopItems[iCounter].indexOf('|')), asTopItems[iCounter].length); // alert(asTopItems[iCounter].slice(0, asTopItems[iCounter].lastIndexOf(' ', asTopItems[iCounter].indexOf('|'))) + '
') } sHydraData = asTopItems.join('^1'); }