 var ScriptLoader ={LoadIntoBody : {Load : function(arg){for ( var i = 0;  i < arguments.length;  i++){try{ var script = document.createElement("script"); script.type="text/javascript"; script.src = arguments[i]; document.body.appendChild(script); }catch(e){alert("Error loading script files " + e.message); }}}},LoadIntoHead :{Load : function(arg){for ( var i = 0;  i < arguments[1].length;  i++){try{ var ran = Math.floor(Math.random()*10000);  var script = document.createElement('script'); script.src = arguments[0] + arguments[1][i] + "?" + ran; script.type = 'text/javascript'; script.defer = 'defer'; script.id = 'scrpt' + i;  var head = document.getElementsByTagName('head').item(0); head.appendChild(script); }catch(e){alert("LoadIntoHead:Load() Error loading script files " + e.message); }}}},loadAllIntoHead : function(){ScriptLoader.LoadIntoHead.Load(sUrlPath + scriptPath, arrOfScripts); }};  var scriptPath = "scripts/";  var subpagesPath = "subpages/";  var root = "root/";  var strPatEduMaduleImgPath = "http://206.135.51.247/drugimages/";  var arrOfScripts = ["Variables.js", "prototype.js", "Global.js", "PharmacySearch.js", "PriceAtPharmacy.js", "Document.js", "Menu.js", "DrugSearch.js", "oWindows.js", "AgelityCookieList.js", "Enroll.js", "MailOrder.js"];  var tmpArrScripts = [];  var sUrlPath = window.location.href.toLowerCase(); sUrlPath = sUrlPath.substring(0,sUrlPath.lastIndexOf("/")) + "/";  var sUrlImagePath = sUrlPath + root + "images/";  var sURL = window.location.href.toLowerCase();  var sDomain = window.location.hostname.toLowerCase();  var ScriptsStatus ={ScriptsLoadStatus : function(){ var sStatus = ""; sStatus += " - " + ((typeof(isScriptLoaderLoaded) === 'undefined') ? "Loading Loader..." : "Loader loading done"); sStatus += " - " + ((typeof(isCookieListLoaded) === 'undefined') ? "Loading Cookie..." : "Cookie loading done"); sStatus += " - " + ((typeof(isoWindowsLoaded) === 'undefined') ? "Loading PopUp..." : "PopUp loading done"); sStatus += " - " + ((typeof(isDocumentLoaded) === 'undefined') ? "Loading Document..." : "Document loading done"); sStatus += " - " + ((typeof(isDrugSearchLoaded) === 'undefined') ? "Loading Drug Search..." : "Drug Search loading done"); sStatus += " - " + ((typeof(isEnrollLoaded) === 'undefined') ? "Loading Enroll..." : "Enroll loading done"); sStatus += " - " + ((typeof(isGlobalLoaded) === 'undefined') ? "Loading Global..." : "Global loading done"); sStatus += " - " + ((typeof(isMailOrderLoaded) === 'undefined') ? "Loading Mail Order..." : "Mail Order loading done"); sStatus += " - " + ((typeof(isMenuLoaded) === 'undefined') ? "Loading Menu..." : "Menu loading done"); sStatus += " - " + ((typeof(isPhramacySearchLoaded) === 'undefined') ? "Loading Pharmacy Search..." : "Pharmacy Search loading done"); sStatus += " - " + ((typeof(isPriceAtPharmacyLoaded) === 'undefined') ? "Loading Pricing..." : "Pricing loading done"); sStatus += " - " + ((typeof(isPrototypeLoaded) === 'undefined') ? "Loading Prototype..." : "Prototype loading done"); sStatus += " - " + ((typeof(isVariablesLoaded) === 'undefined') ? "Loading Variables..." : "Variables loading done"); return sStatus; },ScriptsLoadStatusSimple : function(){ var sStatus = 0; sStatus += ((typeof(isScriptLoaderLoaded) === 'undefined') ? 0 : 1); sStatus += ((typeof(isCookieListLoaded) === 'undefined') ? 0 : 1); sStatus += ((typeof(isoWindowsLoaded) === 'undefined') ? 0 : 1); sStatus += ((typeof(isDocumentLoaded) === 'undefined') ? 0 : 1); sStatus += ((typeof(isDrugSearchLoaded) === 'undefined') ? 0 : 1); sStatus += ((typeof(isEnrollLoaded) === 'undefined') ? 0 : 1); sStatus += ((typeof(isGlobalLoaded) === 'undefined') ? 0 : 1); sStatus += ((typeof(isMailOrderLoaded) === 'undefined') ? 0 : 1); sStatus += ((typeof(isMenuLoaded) === 'undefined') ? 0 : 1); sStatus += ((typeof(isPhramacySearchLoaded) === 'undefined') ? 0 : 1); sStatus += ((typeof(isPriceAtPharmacyLoaded) === 'undefined') ? 0 : 1); sStatus += ((typeof(isPrototypeLoaded) === 'undefined') ? 0 : 1); sStatus += ((typeof(isVariablesLoaded) === 'undefined') ? 0 : 1);  var r = (sStatus*100)/15 + " "; if (r.indexOf(".") > 0){ var sR = r.split("."); return sR[0] + "." + sR[1].substring(0,2) + "% loading..."; } else {return r + "% loaded"; }},areLoaded : function(){if(typeof(isScriptLoaderLoaded) === 'undefined' || typeof(isCookieListLoaded) === 'undefined' ||  typeof(isoWindowsLoaded) === 'undefined' || typeof(isDocumentLoaded) === 'undefined' ||  typeof(isDrugSearchLoaded) === 'undefined' ||  typeof(isEnrollLoaded) === 'undefined' ||  typeof(isGlobalLoaded) === 'undefined' ||  typeof(isMailOrderLoaded) === 'undefined' ||  typeof(isMenuLoaded) === 'undefined' ||  typeof(isPhramacySearchLoaded) === 'undefined' ||  typeof(isPriceAtPharmacyLoaded) === 'undefined' ||  typeof(isPrototypeLoaded) === 'undefined' ||  typeof(isVariablesLoaded) === 'undefined')return false;  else return true; },logReport : function(){if(typeof(flb) !== 'undefined'){ var str = "&url=" + window.location + "&key=Key&os='" + escape('<%=sBrwsr%>'); obj =  new  AjaxQueue(); obj.url = root + "initialLoad.aspx"; obj.para = str; obj.callBack = function(data){}; arrAjaxQueues[arrAjaxQueues.length] = obj; if (arrAjaxQueues.length <= 1) AjaxQueueFlush(); }}};  var isScriptLoaderLoaded = true; 

