Best JavaScript code snippet using ts-auto-mock
s_code.js
Source:s_code.js
1/* SiteCatalyst code version: H.24.2.2Copyright 1996-2012 Adobe, Inc. All Rights Reserved3More info available at http://www.omniture.com */4/* Set report suite ID dynamically based on domain */5function cfCheckRSID(cvURL) {6 var cvHostName = cfUtility(cvURL,'server');7 switch ( cvHostName ) {8 case "www.mathworks.com": 9 case "mathworks.com": 10 ReportSuiteID = "mathwgbl,mathwmain";11 break;12 case "www.mathworks.com.au": 13 case "mathworks.com.au": 14 ReportSuiteID = "mathwgbl,mathwau";15 break;16 case "www.mathworks.ch": 17 case "mathworks.ch": 18 ReportSuiteID = "mathwgbl,mathwch";19 break; 20 case "www.mathworks.cn": 21 case "mathworks.cn": 22 ReportSuiteID = "mathwgbl,mathwcn";23 break;24 case "www.mathworks.de": 25 case "mathworks.de": 26 ReportSuiteID = "mathwgbl,mathwde";27 break;28 case "www.mathworks.es": 29 case "mathworks.es": 30 ReportSuiteID = "mathwgbl,mathwes";31 break;32 case "www.mathworks.fr": 33 case "mathworks.fr": 34 ReportSuiteID = "mathwgbl,mathwfr";35 break;36 case "www.mathworks.in": 37 case "mathworks.in": 38 ReportSuiteID = "mathwgbl,mathwin";39 break;40 case "www.mathworks.it": 41 case "mathworks.it": 42 ReportSuiteID = "mathwgbl,mathwit";43 break;44 case "www.mathworks.co.jp": 45 case "mathworks.co.jp": 46 ReportSuiteID = "mathwgbl,mathwjp";47 break;48 case "www.mathworks.co.kr": 49 case "mathworks.co.kr": 50 ReportSuiteID = "mathwgbl,mathwkr";51 break;52 case "www.mathworks.nl": 53 case "mathworks.nl": 54 ReportSuiteID = "mathwgbl,mathwnl";55 break;56 case "www.mathworks.se": 57 case "mathworks.se": 58 ReportSuiteID = "mathwgbl,mathwnordic";59 break;60 case "www.mathworks.co.uk": 61 case "mathworks.co.uk": 62 ReportSuiteID = "mathwgbl,mathwuk";63 break;64 default:65 ReportSuiteID = "mathwgbl,mathwmain";66 break;67 }68 69 ReportSuiteID = ReportSuiteID.toLowerCase();70 return ReportSuiteID;71}72function cfUtility(cvURL,cvAction) {73 cvURL = unescape(cvURL.toLowerCase());74 cvURL=cvURL.replace("searchresults?","searchresults/?");75 switch (cvAction) {76 case "server": 77 var a = cvURL.split(/\/+/g)[1];78 if (typeof(a) !== 'undefined') {79 var b = a.split("."); if (b.length == 2) { var c = 'www.' + a; } else { c = a; } TheResult = c;80 } else {81 TheResult = "";82 }83 break;84 case "domain": 85 var a = cfUtility(cvURL,"server")86 if (typeof(a) !== 'undefined') {87 var b = a.split("."); b_len = b.length;88 var TheResult = String(b[b_len - 2] + '.' + b[b_len - 1]);89 } else {90 TheResult = "";91 }92 break;93 94 case "filename":95 //var a = cvURL.split("?")[0];96 var a = cvURL.split(/\#|;jsessionid=|\?/)[0]; var b = a.substring(a.lastIndexOf('/')+1); // 100013 CG: edited this line to split on # & jsessionid as well97 TheResult = b;98 break;99 case "pagename":100 //var a = cvURL.split("?")[0];101 var a = cvURL.split(/\#|;jsessionid=|\?/)[0]; // 100013 CG: edited this line to split on # & jsessionid as well102 a = a.replace("http://",""); 103 a = a.replace("https://","");104 a = a.replace(cfUtility(cvURL,"server"),"");105 var b = a.substring(a.lastIndexOf('/')+1);106 a = a.replace(b,"");107 //a=cfUtility(cvURL,"server").replace("www.mathworks","")+a+cfUtility(cvURL,"filename"); 108 a= a+cfUtility(cvURL,"filename"); 109 if ((cfUtility(cvURL,"filename") == "") || (!cfUtility(cvURL,"filename"))){110 if (cvURL.search("searchresults/?")<0 && cvURL.search("/company/jobs/")<0 && cvURL.search("/matlabcentral/")<0 && cvURL.search("/downloads/web_downloads/")<0 && cvURL.search("/support/bugreports/")<0 && cvURL.search("/training-schedule/")<0 && cvURL.search("blogs.mathworks.")<0) {111 a= a+"index.html"; //adding index.html when filename not present112 }113 }114 TheResult = a; 115 break; 116 case "channel":117 //var a = cvURL.split("?")[0];118 var a = cvURL.split(/\#|;jsessionid=|\?/)[0]; // 100013 CG: edited this line to split on # & jsessionid as well119 a = a.replace("http://","");120 a = a.replace("https://","");121 a = a.replace(cfUtility(cvURL,"server"),""); 122 var b = a.substring(a.lastIndexOf('/')+1);123 if (a !='/downloads') { a = a.replace(b,"");} //100113 CG: added the if statement to prevent downloads page being capture as homepage124 //a = a.replace(cvURL.split(/\/+/g)[1],cfUtility(cvURL,"server"));125 TheResult = a;126 break; 127 case "filenameparameters":128 var cvParamPos = cvURL.indexOf("?"); if (cvParamPos != -1) { var cvParam = cvURL.substring(cvParamPos); } else { var cvParam = ""; }129 TheResult = cfUtility(cvURL,"filename") + cvParam;130 break; 131 case "se":132 var cvReferrer_Server = cvURL.split(/\/+/g)[1]; 133 var cvReferrer_Server_Splitted = cvReferrer_Server.split("."); 134 cvReferrer_Server_Splitted_Length = cvReferrer_Server_Splitted.length;135 var TheResult = String('.' + cvReferrer_Server_Splitted[cvReferrer_Server_Splitted_Length - 2] + '.');136 break;137 case "ext":138 var TheResult = cvURL.substring(cvURL.lastIndexOf('/') + 1, cvURL.length).substring(cvURL.substring(cvURL.lastIndexOf('/') + 1, cvURL.length).lastIndexOf('.') + 1, cvURL.substring(cvURL.lastIndexOf('/') + 1, cvURL.length).length);139 break;140 default:141 var TheResult = "";142 }143 return TheResult;144}145function undorewrite(origurl) {146 147 omniurl=unescape(origurl.toLowerCase());148 domain=cfUtility(omniurl,'server');149 if (domain.indexOf("mathworks.de")>-1 || domain.indexOf("mathworks.in")>-1 || domain.indexOf("mathworks.co.jp")>-1 || domain.indexOf("mathworks.co.uk")>-1 || domain.indexOf("mathworks.fr")>-1150 || domain.indexOf("mathworks.cn")>-1 || domain.indexOf("mathworks.nl")>-1 || domain.indexOf("mathworks.se")>-1 || domain.indexOf("mathworks.it")>-1 || domain.indexOf("mathworks.com.au")>-1151 || domain.indexOf("mathworks.co.kr")>-1 || domain.indexOf("mathworks.es")>-1 || domain.indexOf("mathworks.ch")>-1){152 if(omniurl.indexOf("mathworks.de/de/")>-1 || omniurl.indexOf("mathworks.in/in/")>-1 || omniurl.indexOf("mathworks.co.uk/uk/")>-1 || omniurl.indexOf("mathworks.co.jp/jp/")>-1 || omniurl.indexOf("mathworks.fr/fr/")>-1 || omniurl.indexOf("mathworks.cn/cn/")>-1 || omniurl.indexOf("mathworks.nl/nl/")>-1 || omniurl.indexOf("mathworks.se/se/")>-1 || omniurl.indexOf("mathworks.it/it/")>-1 || omniurl.indexOf("mathworks.com.au/au/")>-1 || omniurl.indexOf("mathworks.co.kr/kr/")>-1 || omniurl.indexOf("mathworks.es/es/")>-1 || omniurl.indexOf("mathworks.ch/ch/")>-1){ 153 channel=cfUtility(omniurl,'channel');154 foldersplit = channel.split("/");155 omniurl= omniurl.replace("/"+foldersplit[1]+"/","/");156 }157 }158 return omniurl;159}160function cfGetQParam(a, b) { // Custom Function to Get Query Parameters161 var c = a.indexOf('?'); var d = a.indexOf('#');162 if (c < 0) { return ""; }163 var e = a.substr(c + 1);164 if (d > 0) { e = a.substring(c + 1, d); }165 var f = e.split('&');166 for (var i = 0; i < f.length; i++) {167 var g = f[i].split('=');168 g[0] = unescape(g[0]);169 if (g[0] == b) {170 g[1] = unescape(g[1]);171 if (g[1].indexOf('"') > -1) {172 var h = /"/g;173 g[1] = g[1].replace(h, '\\"')174 }175 if (g[1].indexOf('+') > -1) {176 var j = /\+/g;177 g[1] = g[1].replace(j, ' ')178 }179 return g[1]180 }181 }182 return ""183}184function cfLeft(str, n){185 if (n <= 0) { return ""; } else if (n > String(str).length) { return str; } else { return String(str).substring(0,n); }186}187function cfRight(str, n){188 if (n <= 0) { return ""; } else if (n > String(str).length) { return str; } else { var iLen = String(str).length; return String(str).substring(iLen, iLen - n); }189}190function cfClean(cvURL) {191 if (cvURL) {192 cvURL = cvURL.replace("http://","/");193 cvURL = cvURL.replace("https://","/");194 }195 return cvURL;196}197function removeHTMLTags(strInputCode) {198 if (strInputCode) {199 strInputCode = strInputCode.replace(/&(lt|gt);/g, function (strMatch, p1) {200 return (p1 == "lt") ? "<" : ">";201 });202 var strTagStrippedText = strInputCode.replace(/<\/?[^>]+(>|$)/g, "");203 return strTagStrippedText;204 }205}206function chnlshrink(chnl) {207 chan=chnl.toLowerCase();208 switch (chan) {209 case "paid search": 210 chanl = "ppc";211 break;212 case "paid social ad":213 chanl = "psb";214 break;215 case "paid social media":216 chanl = "psm";217 break;218 case "external promotion":219 chanl = "pep";220 break;221 case "partner promotion":222 chanl = "prp";223 break;224 case "direct load":225 chanl = "dl";226 break;227 case "email":228 chanl = "eml";229 break;230 case "paid non-search":231 chanl = "pns";232 break;233 case "natural search":234 chanl = "nats";235 break;236 case "referrers":237 chanl = "ref";238 break;239 default:240 chanl = "unk";241 break;242 }243 return chanl;244}245function prodassign(type){246 if (type=='urly'){247 if (s.prop4.indexOf('products/curvefitting/')>-1 || s.prop4.indexOf('/help/curvefit/')>-1 || s.prop4.indexOf('/help/toolbox/curvefit/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/curvefit/')>-1)) {prod="Curve Fitting Toolbox";}248 else if (s.prop4.indexOf('products/communications/')>-1 || s.prop4.indexOf('/help/ja_JP/comm/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/comm/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/comm/')>-1)) {prod="Communications System Toolbox";}249 else if (s.prop4.indexOf('products/communications/')>-1 || s.prop4.indexOf('/help/comm/')>-1 || s.prop4.indexOf('/help/toolbox/comm/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/comm/')>-1)) {prod="Communications System Toolbox";}250 else if (s.prop4.indexOf('products/compiler/')>-1 || s.prop4.indexOf('/help/ja_JP/compiler/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/compiler/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/compiler/')>-1)) {prod="MATLAB Compiler";}251 else if (s.prop4.indexOf('products/compiler/')>-1 || s.prop4.indexOf('/help/compiler/')>-1 || s.prop4.indexOf('/help/toolbox/compiler/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/compiler/')>-1)) {prod="MATLAB Compiler";}252 else if (s.prop4.indexOf('products/control/')>-1 || s.prop4.indexOf('/help/ja_JP/control/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/control/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/control/')>-1)) {prod="Control System Toolbox";}253 else if (s.prop4.indexOf('products/control/')>-1 || s.prop4.indexOf('/help/control/')>-1 || s.prop4.indexOf('/help/toolbox/control/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/control/')>-1)) {prod="Control System Toolbox";}254 else if (s.prop4.indexOf('products/daq/')>-1 || s.prop4.indexOf('/help/daq/')>-1 || s.prop4.indexOf('/help/toolbox/daq/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/daq/')>-1)) {prod="Data Acquisition Toolbox";}255 else if (s.prop4.indexOf('products/database/')>-1 || s.prop4.indexOf('/help/database/')>-1 || s.prop4.indexOf('/help/toolbox/database/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/database/')>-1)) {prod="Database Toolbox";}256 else if (s.prop4.indexOf('products/derivatives/')>-1 || s.prop4.indexOf('/help/finderiv/')>-1 || s.prop4.indexOf('/help/toolbox/finderiv/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/finderiv/')>-1)) {prod="Financial Derivatives Toolbox";}257 else if (s.prop4.indexOf('products/datafeed/')>-1 || s.prop4.indexOf('/help/datafeed/')>-1 || s.prop4.indexOf('/help/toolbox/datafeed/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/datafeed/')>-1)) {prod="Datafeed Toolbox";}258 else if (s.prop4.indexOf('products/gauges/')>-1 || s.prop4.indexOf('/help/gauges/')>-1 || s.prop4.indexOf('/help/toolbox/gauges/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/gauges/')>-1)) {prod="Gauges Blockset";}259 else if (s.prop4.indexOf('products/dsp-system/')>-1 || s.prop4.indexOf('/help/dsp/')>-1 || s.prop4.indexOf('/help/toolbox/dsp/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/dsp/')>-1)) {prod="DSP System Toolbox";}260 else if (s.prop4.indexOf('products/embedded-coder/')>-1 || s.prop4.indexOf('/help/ecoder/')>-1 || s.prop4.indexOf('/help/toolbox/ecoder/')>-1 || (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ecoder/')>-1)) {prod="Embedded Coder";}261 else if (s.prop4.indexOf('products/excellink/')>-1 || s.prop4.indexOf('/help/exlink/')>-1 || s.prop4.indexOf('/help/toolbox/exlink/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/exlink/')>-1)) {prod="Spreadsheet Link EX";}262 else if (s.prop4.indexOf('products/finance/')>-1 || s.prop4.indexOf('/help/finance/')>-1 || s.prop4.indexOf('/help/toolbox/finance/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/finance/')>-1)) {prod="Financial Toolbox";}263 else if (s.prop4.indexOf('products/fuzzy-logic/')>-1 || s.prop4.indexOf('/help/fuzzy/')>-1 || s.prop4.indexOf('/help/toolbox/fuzzy/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/fuzzy/')>-1)) {prod="Fuzzy Logic Toolbox";}264 else if (s.prop4.indexOf('products/instrument/')>-1 || s.prop4.indexOf('/help/instrument/')>-1 || s.prop4.indexOf('/help/toolbox/instrument/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/instrument/')>-1)) {prod="Instrument Control Toolbox";}265 else if (s.prop4.indexOf('products/sysid/')>-1 || s.prop4.indexOf('/help/ident/')>-1 || s.prop4.indexOf('/help/toolbox/ident/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ident/')>-1)) {prod="System Identification Toolbox";}266 else if (s.prop4.indexOf('products/image/')>-1 || s.prop4.indexOf('/access/helpdesk/help/images/')>-1 || s.prop4.indexOf('/access/helpdesk/help/toolbox/images/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/helpdesk/help/images/')>-1)) {prod="Image Processing Toolbox";}267 else if (s.prop4.indexOf('products/image/')>-1 || s.prop4.indexOf('/help/ja_JP/images/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/images/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/images/')>-1)) {prod="Image Processing Toolbox";}268 else if (s.prop4.indexOf('products/mapping/')>-1 || s.prop4.indexOf('/help/map/')>-1 || s.prop4.indexOf('/help/toolbox/map/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/map/')>-1)) {prod="Mapping Toolbox";}269 else if (s.prop4.indexOf('products/mpc/')>-1 || s.prop4.indexOf('/help/mpc/')>-1 || s.prop4.indexOf('/help/toolbox/mpc/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/mpc/')>-1)) {prod="Model Predictive Control Toolbox";}270 else if (s.prop4.indexOf('products/ML_reportgenerator/')>-1 || s.prop4.indexOf('/help/rptgen/')>-1 || s.prop4.indexOf('/help/toolbox/rptgen/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/rptgen/')>-1)) {prod="MATLAB Report Generator";}271 else if (s.prop4.indexOf('products/neural-network/')>-1 || s.prop4.indexOf('/help/nnet/')>-1 || s.prop4.indexOf('/help/toolbox/nnet/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/nnet/')>-1)) {prod="Neural Network Toolbox";}272 else if (s.prop4.indexOf('products/optimization/')>-1 || s.prop4.indexOf('/help/ja_JP/optim/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/optim/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/optim/')>-1)) {prod="Optimization Toolbox";}273 else if (s.prop4.indexOf('products/optimization/')>-1 || s.prop4.indexOf('/help/optim/')>-1 || s.prop4.indexOf('/help/toolbox/optim/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/optim/')>-1)) {prod="Optimization Toolbox";}274 else if (s.prop4.indexOf('products/pde/')>-1 || s.prop4.indexOf('/help/pde/')>-1 || s.prop4.indexOf('/help/toolbox/pde/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/pde/')>-1)) {prod="Partial Differential Equation Toolbox";}275 else if (s.prop4.indexOf('products/simpower/')>-1 || s.prop4.indexOf('/help/ja_JP/physmod/powersys/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/physmod/powersys/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/physmod/powersys/')>-1)) {prod="SimPowerSystems";}276 else if (s.prop4.indexOf('products/simpower/')>-1 || s.prop4.indexOf('/help/physmod/powersys/')>-1 || s.prop4.indexOf('/help/toolbox/physmod/powersys/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/physmod/powersys/')>-1)) {prod="SimPowerSystems";}277 else if (s.prop4.indexOf('products/robust/')>-1 || s.prop4.indexOf('/help/robust/')>-1 || s.prop4.indexOf('/help/toolbox/robust/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/robust/')>-1)) {prod="Robust Control Toolbox";}278 else if (s.prop4.indexOf('products/simulink-coder/')>-1 || s.prop4.indexOf('/help/ja_JP/rtw/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/rtw/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/rtw/')>-1)) {prod="Simulink Coder";}279 else if (s.prop4.indexOf('products/simulink-coder/')>-1 || s.prop4.indexOf('/help/rtw/')>-1 || s.prop4.indexOf('/help/toolbox/rtw/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/rtw/')>-1)) {prod="Simulink Coder";}280 else if (s.prop4.indexOf('products/stateflow/')>-1 || s.prop4.indexOf('/help/ja_JP/stateflow/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/stateflow/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/stateflow/')>-1)) {prod="Stateflow";}281 else if (s.prop4.indexOf('products/stateflow/')>-1 || s.prop4.indexOf('/help/stateflow/')>-1 || s.prop4.indexOf('/help/toolbox/stateflow/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/stateflow/')>-1)) {prod="Stateflow";}282 else if (s.prop4.indexOf('products/signal/')>-1 || s.prop4.indexOf('/help/ja_JP/signal/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/signal/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/signal/')>-1)) {prod="Signal Processing Toolbox";}283 else if (s.prop4.indexOf('products/signal/')>-1 || s.prop4.indexOf('/help/signal/')>-1 || s.prop4.indexOf('/help/toolbox/signal/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/signal/')>-1)) {prod="Signal Processing Toolbox";}284 else if (s.prop4.indexOf('products/simulink/')>-1 || s.prop4.indexOf('/help/ja_JP/simulink/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/simulink/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/simulink/')>-1)) {prod="Simulink";}285 else if (s.prop4.indexOf('products/simulink/')>-1 || s.prop4.indexOf('/help/simulink/')>-1 || s.prop4.indexOf('/help/toolbox/simulink/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/simulink/')>-1)) {prod="Simulink";}286 else if (s.prop4.indexOf('products/symbolic/')>-1 || s.prop4.indexOf('/help/ja_JP/symbolic/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/symbolic/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/symbolic/')>-1)) {prod="Symbolic Math Toolbox";}287 else if (s.prop4.indexOf('products/symbolic/')>-1 || s.prop4.indexOf('/help/symbolic/')>-1 || s.prop4.indexOf('/help/toolbox/symbolic/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/symbolic/')>-1)) {prod="Symbolic Math Toolbox";}288 else if (s.prop4.indexOf('products/SL_reportgenerator/')>-1 || s.prop4.indexOf('/help/rptgenext/')>-1 || s.prop4.indexOf('/help/toolbox/rptgenext/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/rptgenext/')>-1)) {prod="Simulink Report Generator";}289 else if (s.prop4.indexOf('products/statistics/')>-1 || s.prop4.indexOf('/help/ja_JP/stats/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/stats/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/stats/')>-1)) {prod="Statistics Toolbox";}290 else if (s.prop4.indexOf('products/statistics/')>-1 || s.prop4.indexOf('/help/stats/')>-1 || s.prop4.indexOf('/help/toolbox/stats/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/stats/')>-1)) {prod="Statistics Toolbox";}291 else if (s.prop4.indexOf('products/3d-animation/')>-1 || s.prop4.indexOf('/help/sl3d/')>-1 || s.prop4.indexOf('/help/toolbox/sl3d/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/sl3d/')>-1)) {prod="Simulink 3D Animation";}292 else if (s.prop4.indexOf('products/wavelet/')>-1 || s.prop4.indexOf('/help/wavelet/')>-1 || s.prop4.indexOf('/help/toolbox/wavelet/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/wavelet/')>-1)) {prod="Wavelet Toolbox";}293 else if (s.prop4.indexOf('products/rtwt/')>-1 || s.prop4.indexOf('/help/rtwin/')>-1 || s.prop4.indexOf('/help/toolbox/rtwin/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/rtwin/')>-1)) {prod="Real-Time Windows Target";}294 else if (s.prop4.indexOf('products/xpcembedded/')>-1 || s.prop4.indexOf('/help/xpc/')>-1 || s.prop4.indexOf('/help/toolbox/xpc/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/xpc/')>-1)) {prod="xPC Target Embedded Option";}295 else if (s.prop4.indexOf('products/xpctarget/')>-1 || s.prop4.indexOf('/help/xpc/')>-1 || s.prop4.indexOf('/help/toolbox/xpc/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/xpc/')>-1)) {prod="xPC Target";}296 else if (s.prop4.indexOf('products/aeroblks/')>-1 || s.prop4.indexOf('/help/aeroblks/')>-1 || s.prop4.indexOf('/help/toolbox/aeroblks/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/aeroblks/')>-1)) {prod="Aerospace Blockset";}297 else if (s.prop4.indexOf('products/matlabxl/')>-1 || s.prop4.indexOf('/help/matlabxl/')>-1 || s.prop4.indexOf('/help/toolbox/matlabxl/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/matlabxl/')>-1)) {prod="MATLAB Builder EX";}298 else if (s.prop4.indexOf('products/simmechanics/')>-1 || s.prop4.indexOf('/help/physmod/sm/')>-1 || s.prop4.indexOf('/help/toolbox/physmod/sm/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/physmod/sm/')>-1)) {prod="SimMechanics";}299 else if (s.prop4.indexOf('products/mbc/')>-1 || s.prop4.indexOf('/help/mbc/')>-1 || s.prop4.indexOf('/help/toolbox/mbc/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/mbc/')>-1)) {prod="Model-Based Calibration Toolbox";}300 else if (s.prop4.indexOf('products/imaq/')>-1 || s.prop4.indexOf('/help/imaq/')>-1 || s.prop4.indexOf('/help/toolbox/imaq/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/imaq/')>-1)) {prod="Image Acquisition Toolbox";}301 else if (s.prop4.indexOf('products/fixedincome/')>-1 || s.prop4.indexOf('/help/finfixed/')>-1 || s.prop4.indexOf('/help/toolbox/finfixed/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/finfixed/')>-1)) {prod="Fixed-Income Toolbox";}302 else if (s.prop4.indexOf('products/bioinfo/')>-1 || s.prop4.indexOf('/help/bioinfo/')>-1 || s.prop4.indexOf('/help/toolbox/bioinfo/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/bioinfo/')>-1)) {prod="Bioinformatics Toolbox";}303 else if (s.prop4.indexOf('products/filterhdl/')>-1 || s.prop4.indexOf('/help/hdlfilter/')>-1 || s.prop4.indexOf('/help/toolbox/hdlfilter/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/hdlfilter/')>-1)) {prod="Filter Design HDL Coder";}304 else if (s.prop4.indexOf('products/fixed/')>-1 || s.prop4.indexOf('/help/ja_JP/fixedpoint/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/fixedpoint/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/fixedpoint/')>-1)) {prod="Fixed-Point Toolbox";}305 else if (s.prop4.indexOf('products/fixed/')>-1 || s.prop4.indexOf('/help/fixedpoint/')>-1 || s.prop4.indexOf('/help/toolbox/fixedpoint/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/fixedpoint/')>-1)) {prod="Fixed-Point Toolbox";}306 else if (s.prop4.indexOf('products/simfixed/')>-1 || s.prop4.indexOf('/help/ja_JP/fixpoint/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/fixpoint/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/fixpoint/')>-1)) {prod="Simulink Fixed Point";}307 else if (s.prop4.indexOf('products/simfixed/')>-1 || s.prop4.indexOf('/help/fixpoint/')>-1 || s.prop4.indexOf('/help/toolbox/fixpoint/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/fixpoint/')>-1)) {prod="Simulink Fixed Point";}308 else if (s.prop4.indexOf('products/simverification/')>-1 || s.prop4.indexOf('/help/slvnv/')>-1 || s.prop4.indexOf('/help/toolbox/slvnv/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/slvnv/')>-1)) {prod="Simulink Verification and Validation";}309 else if (s.prop4.indexOf('products/simcontrol/')>-1 || s.prop4.indexOf('/help/ja_JP/slcontrol/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/slcontrol/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/slcontrol/')>-1)) {prod="Simulink Control Design";}310 else if (s.prop4.indexOf('products/simcontrol/')>-1 || s.prop4.indexOf('/help/slcontrol/')>-1 || s.prop4.indexOf('/help/toolbox/slcontrol/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/slcontrol/')>-1)) {prod="Simulink Control Design";}311 else if (s.prop4.indexOf('products/opc/')>-1 || s.prop4.indexOf('/help/opc/')>-1 || s.prop4.indexOf('/help/toolbox/opc/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/opc/')>-1)) {prod="OPC Toolbox";}312 else if (s.prop4.indexOf('products/simrf/')>-1 || s.prop4.indexOf('/help/simrf/')>-1 || s.prop4.indexOf('/help/toolbox/simrf/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/simrf/')>-1)) {prod="SimRF";}313 else if (s.prop4.indexOf('products/rftoolbox/')>-1 || s.prop4.indexOf('/help/rf/')>-1 || s.prop4.indexOf('/help/toolbox/rf/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/rf/')>-1)) {prod="RF Toolbox";}314 else if (s.prop4.indexOf('products/computer-vision/')>-1 || s.prop4.indexOf('/help/vision/')>-1 || s.prop4.indexOf('/help/toolbox/vision/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/vision/')>-1)) {prod="Computer Vision System Toolbox";}315 else if (s.prop4.indexOf('products/simdrive/')>-1 || s.prop4.indexOf('/help/physmod/sdl/')>-1 || s.prop4.indexOf('/help/toolbox/physmod/sdl/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/physmod/sdl/')>-1)) {prod="SimDriveline";}316 else if (s.prop4.indexOf('products/parallel-computing/')>-1 || s.prop4.indexOf('/help/distcomp/')>-1 || s.prop4.indexOf('/help/toolbox/distcomp/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/distcomp/')>-1)) {prod="Parallel Computing Toolbox";}317 else if (s.prop4.indexOf('products/distriben/')>-1 || s.prop4.indexOf('/help/mdce/')>-1 || s.prop4.indexOf('/help/toolbox/mdce/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/mdce/')>-1)) {prod="MATLAB Distributed Computing Server";}318 else if (s.prop4.indexOf('products/simbiology/')>-1 || s.prop4.indexOf('/help/simbio/')>-1 || s.prop4.indexOf('/help/toolbox/simbio/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/simbio/')>-1)) {prod="SimBiology";}319 else if (s.prop4.indexOf('products/systemtest/')>-1 || s.prop4.indexOf('/help/systemtest/')>-1 || s.prop4.indexOf('/help/toolbox/systemtest/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/systemtest/')>-1)) {prod="SystemTest";}320 else if (s.prop4.indexOf('products/simevents/')>-1 || s.prop4.indexOf('/help/simevents/')>-1 || s.prop4.indexOf('/help/toolbox/simevents/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/simevents/')>-1)) {prod="SimEvents";}321 else if (s.prop4.indexOf('products/netbuilder/')>-1 || s.prop4.indexOf('/help/dotnetbuilder/')>-1 || s.prop4.indexOf('/help/toolbox/dotnetbuilder/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/dotnetbuilder/')>-1)) {prod="MATLAB Builder NE";}322 else if (s.prop4.indexOf('products/simhydraulics/')>-1 || s.prop4.indexOf('/help/physmod/hydro/')>-1 || s.prop4.indexOf('/help/toolbox/physmod/hydro/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/physmod/hydro/')>-1)) {prod="SimHydraulics";}323 else if (s.prop4.indexOf('products/aerotb/')>-1 || s.prop4.indexOf('/help/aerotbx/')>-1 || s.prop4.indexOf('/help/toolbox/aerotbx/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/aerotbx/')>-1)) {prod="Aerospace Toolbox";}324 else if (s.prop4.indexOf('products/javabuilder/')>-1 || s.prop4.indexOf('/help/javabuilder/')>-1 || s.prop4.indexOf('/help/toolbox/javabuilder/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/javabuilder/')>-1)) {prod="MATLAB Builder JA";}325 else if (s.prop4.indexOf('products/hdl-coder/')>-1 || s.prop4.indexOf('/help/hdlcoder/')>-1 || s.prop4.indexOf('/help/toolbox/hdlcoder/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/hdlcoder/')>-1)) {prod="HDL Coder";}326 else if (s.prop4.indexOf('products/simscape/')>-1 || s.prop4.indexOf('/access/helpdesk/help/physmod/simscape/')>-1 || s.prop4.indexOf('/access/helpdesk/help/toolbox/physmod/simscape/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/helpdesk/help/physmod/simscape/')>-1)) {prod="Simscape";}327 else if (s.prop4.indexOf('products/sldesignverifier/')>-1 || s.prop4.indexOf('/help/sldv/')>-1 || s.prop4.indexOf('/help/toolbox/sldv/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/sldv/')>-1)) {prod="Simulink Design Verifier";}328 else if (s.prop4.indexOf('products/polyspaceclientc/')>-1 || s.prop4.indexOf('/help/polyspace/')>-1 || s.prop4.indexOf('/help/toolbox/polyspace/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/polyspace/')>-1)) {prod="Polyspace Client for C/C++";}329 else if (s.prop4.indexOf('products/polyspaceclientada/')>-1 || s.prop4.indexOf('/help/polyspace/')>-1 || s.prop4.indexOf('/help/toolbox/polyspace/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/polyspace/')>-1)) {prod="Polyspace Client for Ada";}330 else if (s.prop4.indexOf('products/polyspaceserverc/')>-1 || s.prop4.indexOf('/help/polyspace/')>-1 || s.prop4.indexOf('/help/toolbox/polyspace/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/polyspace/')>-1)) {prod="Polyspace Server for C/C++";}331 else if (s.prop4.indexOf('products/polyspaceserverada/')>-1 || s.prop4.indexOf('/help/polyspace/')>-1 || s.prop4.indexOf('/help/toolbox/polyspace/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/polyspace/')>-1)) {prod="Polyspace Server for Ada";}332 else if (s.prop4.indexOf('products/polyspacemodelsl/')>-1 || s.prop4.indexOf('/help/polyspace/')>-1 || s.prop4.indexOf('/help/toolbox/polyspace/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/polyspace/')>-1)) {prod="Polyspace Model Link SL";}333 else if (s.prop4.indexOf('products/polyspacemodeltl/')>-1 || s.prop4.indexOf('/help/polyspace/')>-1 || s.prop4.indexOf('/help/toolbox/polyspace/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/polyspace/')>-1)) {prod="Polyspace Model Link TL";}334 else if (s.prop4.indexOf('products/polyspaceumlrh/')>-1 || s.prop4.indexOf('/help/polyspace/')>-1 || s.prop4.indexOf('/help/toolbox/polyspace/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/polyspace/')>-1)) {prod="Polyspace UML Link RH";}335 else if (s.prop4.indexOf('products/simelectronics/')>-1 || s.prop4.indexOf('/help/physmod/elec/')>-1 || s.prop4.indexOf('/help/toolbox/physmod/elec/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/physmod/elec/')>-1)) {prod="SimElectronics";}336 else if (s.prop4.indexOf('products/econometrics/')>-1 || s.prop4.indexOf('/help/econ/')>-1 || s.prop4.indexOf('/help/toolbox/econ/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/econ/')>-1)) {prod="Econometrics Toolbox";}337 else if (s.prop4.indexOf('products/vehicle-network/')>-1 || s.prop4.indexOf('/help/vnt/')>-1 || s.prop4.indexOf('/help/toolbox/vnt/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/vnt/')>-1)) {prod="Vehicle Network Toolbox";}338 else if (s.prop4.indexOf('products/sl-design-optimization/')>-1 || s.prop4.indexOf('/help/sldo/')>-1 || s.prop4.indexOf('/help/toolbox/sldo/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/sldo/')>-1)) {prod="Simulink Design Optimization";}339 else if (s.prop4.indexOf('products/do-178/')>-1 || s.prop4.indexOf('/help/qualkitdo/')>-1 || s.prop4.indexOf('/help/toolbox/qualkitdo/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/qualkitdo/')>-1)) {prod="DO Qualification Kit";}340 else if (s.prop4.indexOf('products/iec-61508/')>-1 || s.prop4.indexOf('/help/certkitiec/')>-1 || s.prop4.indexOf('/help/toolbox/certkitiec/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/certkitiec/')>-1)) {prod="IEC Certification Kit";}341 else if (s.prop4.indexOf('products/hdl-verifier/')>-1 || s.prop4.indexOf('/help/edalink/')>-1 || s.prop4.indexOf('/help/toolbox/edalink/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/edalink/')>-1)) {prod="HDL Verifier";}342 else if (s.prop4.indexOf('products/matlab/')>-1 || s.prop4.indexOf('/help/ja_JP/techdoc/')>-1 || s.prop4.indexOf('/help/ja_JP/techdoc/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/techdoc/')>-1)) {prod="MATLAB";}343 else if (s.prop4.indexOf('products/matlab/')>-1 || s.prop4.indexOf('/help/matlab/')>-1 || s.prop4.indexOf('/help/techdoc/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/techdoc/')>-1)) {prod="MATLAB";}344 else if (s.prop4.indexOf('products/sl-plc-coder/')>-1 || s.prop4.indexOf('/help/plccoder/')>-1 || s.prop4.indexOf('/help/toolbox/plccoder/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/plccoder/')>-1)) {prod="Simulink PLC Coder";}345 else if (s.prop4.indexOf('products/global-optimization/')>-1 || s.prop4.indexOf('/help/gads/')>-1 || s.prop4.indexOf('/help/toolbox/gads/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/gads/')>-1)) {prod="Global Optimization Toolbox";}346 else if (s.prop4.indexOf('products/matlab-coder/')>-1 || s.prop4.indexOf('/help/coder/')>-1 || s.prop4.indexOf('/help/toolbox/coder/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/coder/')>-1)) {prod="MATLAB Coder";}347 else if (s.prop4.indexOf('products/phased-array/')>-1 || s.prop4.indexOf('/help/phased/')>-1 || s.prop4.indexOf('/help/toolbox/phased/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/phased/')>-1)) {prod="Phased Array System Toolbox";}348 else if (s.prop4.indexOf('products/simulink-code-inspector/')>-1 || s.prop4.indexOf('/help/slci')>-1 || s.prop4.indexOf('/help/toolbox/slci')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/slci/')>-1)) {prod="Simulink Code Inspector";}349//100113 CG: Added last OR statement above to account for changes in the URL of previous doc version & below 6 lines for new products. updated queryval and prodgroup for new products as well. 350 else if (s.prop4.indexOf('products/polyspace-code-prover/')>-1 || s.prop4.indexOf('help/codeprover/')>-1 || s.prop4.indexOf('/help/toolbox/codeprover/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/codeprover/')>-1)) {prod="Polyspace Code Prover";}351 else if (s.prop4.indexOf('products/polyspace-bug-finder/')>-1 || s.prop4.indexOf('/help/bugfinder/')>-1 || s.prop4.indexOf('/help/toolbox/bugfinder/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/bugfinder/')>-1)) {prod="Polyspace Bug Finder";}352 else if (s.prop4.indexOf('products/financial-instruments/')>-1 || s.prop4.indexOf('/help/fininst/')>-1 || s.prop4.indexOf('/help/toolbox/fininst/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/fininst/')>-1)) {prod="Financial Instruments Toolbox";}353 else if (s.prop4.indexOf('products/trading/')>-1 || s.prop4.indexOf('help/trading/')>-1 || s.prop4.indexOf('/help/toolbox/trading/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/trading/')>-1)) {prod="Trading Toolbox";}354 else if (s.prop4.indexOf('products/fixed-point-designer/')>-1 || s.prop4.indexOf('/help/fixedpoint/')>-1 || s.prop4.indexOf('/help/toolbox/fixedpoint/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/fixedpoint/')>-1)) {prod="Fixed-Point Designer";} /*doc shares same URL as old FP tb*/355 else if (s.prop4.indexOf('products/matlab-production-server/')>-1 || s.prop4.indexOf('help/mts/')>-1 || s.prop4.indexOf('/help/toolbox/mts/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/mts/')>-1)) {prod="MATLAB Production Server"}356 else prod = "unknown";357 prod = prod.toLowerCase();358 return prod; 359 }360 else {361 queryval=s.getQueryParam(type);362 queryval=queryval.toLowerCase();363 switch (queryval) {364 case "cm": prod = "communications system toolbox"; break;365 case "ct": prod = "control system toolbox"; break;366 case "db": prod = "database toolbox"; break;367 case "ds": prod = "dsp system toolbox"; break;368 case "el": prod = "spreadsheet link ex"; break;369 case "fi": prod = "financial toolbox"; break;370 case "fp": prod = "fixed point designer"; break;371 case "fl": prod = "fuzzy logic toolbox"; break;372 case "ip": prod = "image processing toolbox"; break;373 case "mg": prod = "mapping toolbox"; break;374 case "ml": prod = "matlab"; break;375 case "co": prod = "matlab compiler"; break;376 case "mp": prod = "model predictive control toolbox"; break;377 case "nn": prod = "neural network toolbox"; break;378 case "op": prod = "optimization toolbox"; break;379 case "pd": prod = "partial differential equation toolbox"; break;380 case "ps": prod = "simpowersystems"; break;381 case "rt": prod = "simulink coder"; break;382 case "rc": prod = "robust control toolbox"; break;383 case "sg": prod = "signal processing toolbox"; break;384 case "sl": prod = "simulink"; break;385 case "sf": prod = "stateflow"; break;386 case "st": prod = "statistics toolbox"; break;387 case "sm": prod = "symbolic math toolbox"; break;388 case "id": prod = "system identification toolbox"; break;389 case "wa": prod = "wavelet toolbox"; break;390 case "da": prod = "data acquisition toolbox"; break;391 case "dg": prod = "gauges blockset"; break;392 case "mr": prod = "matlab report generator"; break;393 case "sr": prod = "simulink report generator"; break;394 case "wt": prod = "real-time windows target"; break;395 case "sv": prod = "matlab & simulink student version"; break;396 case "df": prod = "datafeed toolbox"; break;397 case "xp": prod = "xpc target"; break;398 case "xe": prod = "xpc target embedded option"; break;399 case "cf": prod = "curve fitting toolbox"; break;400 case "ic": prod = "instrument control toolbox"; break;401 case "de": prod = "financial derivatives toolbox"; break;402 case "ec": prod = "embedded coder"; break;403 case "vr": prod = "simulink 3d animation"; break;404 case "eb": prod = "matlab builder ex"; break;405 case "mb": prod = "model-based calibration toolbox"; break;406 case "ms": prod = "simmechanics"; break;407 case "ae": prod = "aerospace blockset"; break;408 case "ia": prod = "image acquisition toolbox"; break;409 case "fx": prod = "fixed-income toolbox"; break;410 case "sd": prod = "simulink control design"; break;411 case "bi": prod = "bioinformatics toolbox"; break;412 case "gd": prod = "global optimization toolbox"; break;413 case "vv": prod = "simulink verification and validation"; break;414 case "rf": prod = "rf toolbox"; break;415 case "rb": prod = "simrf"; break;416 case "fh": prod = "filter design hdl coder"; break;417 case "ot": prod = "opc toolbox"; break;418 case "po": prod = "fixed-point toolbox"; break;419 case "sb": prod = "simbiology"; break;420 case "vp": prod = "computer vision system toolbox"; break;421 case "ld": prod = "simdriveline"; break;422 case "dm": prod = "parallel computing toolbox"; break;423 case "dw": prod = "matlab distributed computing server"; break;424 case "se": prod = "simevents"; break;425 case "mn": prod = "matlab builder ne"; break;426 case "sh": prod = "simhydraulics"; break;427 case "sy": prod = "systemtest"; break;428 case "hd": prod = "hdl coder"; break;429 case "mj": prod = "matlab builder ja"; break;430 case "at": prod = "aerospace toolbox"; break;431 case "dv": prod = "simulink design verifier"; break;432 case "ss": prod = "simscape"; break;433 case "pf": prod = "polyspace server for ada"; break;434 case "pg": prod = "polyspace model link sl"; break;435 case "pc": prod = "polyspace client for c/c++"; break;436 case "ph": prod = "polyspace model link tl"; break;437 case "pi": prod = "polyspace uml link rh"; break;438 case "pa": prod = "polyspace client for ada"; break;439 case "pb": prod = "polyspace code prover"; break;440 case "aa": prod = "al's toolbox"; break;441 case "bx": prod = "bryans toolbox"; break;442 case "sn": prod = "simelectronics"; break;443 case "et": prod = "econometrics toolbox"; break;444 case "vn": prod = "vehicle network toolbox"; break;445 case "so": prod = "simulink design optimization"; break;446 case "ar": prod = "phased array system toolbox"; break;447 case "do": prod = "do qualification kit"; break;448 case "ie": prod = "iec certification kit"; break;449 case "es": prod = "hdl verifier"; break;450 case "pl": prod = "simulink plc coder"; break;451 case "ci": prod = "simulink code inspector"; break;452 case "me": prod = "matlab coder"; break;453 case "hm": prod = "simulink hmi design"; break;454 case "it": prod = "financial instruments toolbox"; break;455 case "pr": prod = "matlab production server"; break;456 case "TR": prod = "trading toolbox"; break;457 case "BF": prod = "polyspace bug finder"; break;458 default:459 prod = "unknown";460 break;461 }462 prod = prod.toLowerCase();463 return prod;464 465 }466}467function prodgroup (prod){468 prod = prod.toLowerCase();469 switch (prod) {470 case "aerospace blockset": prodgrp="v1 control systems"; break;471 case "aerospace toolbox": prodgrp="v1 control systems"; break;472 case "al's toolbox": prodgrp="unknown"; break;473 case "bioinformatics toolbox": prodgrp="v5 computational biology"; break;474 case "bryans toolbox": prodgrp="unknown"; break;475 case "communications system toolbox": prodgrp="v2 signal processing and communications"; break;476 case "computer vision system toolbox": prodgrp="v3 image processing and computer vision"; break;477 case "control system toolbox": prodgrp="v1 control systems"; break;478 case "curve fitting toolbox": prodgrp="m2 math, statistics, and optimization"; break;479 case "data acquisition toolbox": prodgrp="v4 test and measurement"; break;480 case "database toolbox": prodgrp="v6 computational finance"; break;481 case "datafeed toolbox": prodgrp="v6 computational finance"; break;482 case "do qualification kit": prodgrp="s6 embedded code generation"; break;483 case "dsp system toolbox": prodgrp="v2 signal processing and communications"; break;484 case "econometrics toolbox": prodgrp="v6 computational finance"; break;485 case "embedded coder": prodgrp="s6 embedded code generation"; break;486 case "filter design hdl coder": prodgrp="s7 hdl code generation and verification"; break;487 case "financial derivatives toolbox": prodgrp="v6 computational finance"; break;488 case "financial instruments toolbox": prodgrp="unknown"; break;489 case "financial toolbox": prodgrp="v6 computational finance"; break;490 case "fixed-income toolbox": prodgrp="v6 computational finance"; break;491 case "fixed-point toolbox": prodgrp="s6 embedded code generation"; break;492 case "fuzzy logic toolbox": prodgrp="v1 control systems"; break;493 case "gauges blockset": prodgrp="s1 simulink and stateflow"; break;494 case "global optimization toolbox": prodgrp="m2 math, statistics, and optimization"; break;495 case "hdl coder": prodgrp="s7 hdl code generation and verification"; break;496 case "hdl verifier": prodgrp="s7 hdl code generation and verification"; break;497 case "iec certification kit": prodgrp="s6 embedded code generation"; break;498 case "image acquisition toolbox": prodgrp="v3 image processing and computer vision"; break;499 case "image processing toolbox": prodgrp="v3 image processing and computer vision"; break;500 case "instrument control toolbox": prodgrp="v4 test and measurement"; break;501 case "mapping toolbox": prodgrp="v3 image processing and computer vision"; break;502 case "matlab": prodgrp="m1 matlab"; break;503 case "matlab & simulink student version": prodgrp="e1 edu"; break;504 case "matlab builder ex": prodgrp="m3 application deployment"; break;505 case "matlab builder ja": prodgrp="m3 application deployment"; break;506 case "matlab builder ne": prodgrp="m3 application deployment"; break;507 case "matlab coder": prodgrp="s6 embedded code generation"; break;508 case "matlab compiler": prodgrp="m3 application deployment"; break;509 case "matlab distributed computing server": prodgrp="m4 parallel computing"; break;510 case "matlab production server": prodgrp="unknown"; break;511 case "matlab report generator": prodgrp="s1 simulink and stateflow"; break;512 case "model predictive control toolbox": prodgrp="v1 control systems"; break;513 case "model-based calibration toolbox": prodgrp="m2 math, statistics, and optimization"; break;514 case "neural network toolbox": prodgrp="m2 math, statistics, and optimization"; break;515 case "opc toolbox": prodgrp="v4 test and measurement"; break;516 case "optimization toolbox": prodgrp="m2 math, statistics, and optimization"; break;517 case "parallel computing toolbox": prodgrp="m4 parallel computing"; break;518 case "partial differential equation toolbox": prodgrp="m2 math, statistics, and optimization"; break;519 case "phased array system toolbox": prodgrp="v2 signal processing and communications"; break;520 case "polyspace client for ada": prodgrp="p1 polyspace embedded code verification"; break;521 case "polyspace client for c/c++": prodgrp="p1 polyspace embedded code verification"; break;522 case "polyspace model link sl": prodgrp="p1 polyspace embedded code verification"; break;523 case "polyspace model link tl": prodgrp="p1 polyspace embedded code verification"; break;524 case "polyspace server for ada": prodgrp="p1 polyspace embedded code verification"; break;525 case "polyspace server for c/c++": prodgrp="p1 polyspace embedded code verification"; break;526 case "polyspace uml link rh": prodgrp="p1 polyspace embedded code verification"; break;527 case "real-time windows target": prodgrp="s4 rapid prototyping and hil simulation"; break;528 case "rf toolbox": prodgrp="v2 signal processing and communications"; break;529 case "robust control toolbox": prodgrp="v1 control systems"; break;530 case "signal processing toolbox": prodgrp="v2 signal processing and communications"; break;531 case "simbiology": prodgrp="v5 computational biology"; break;532 case "simdriveline": prodgrp="s3 physical modeling"; break;533 case "simelectronics": prodgrp="s3 physical modeling"; break;534 case "simevents": prodgrp="s2 discrete event simulation"; break;535 case "simhydraulics": prodgrp="s3 physical modeling"; break;536 case "simmechanics": prodgrp="s3 physical modeling"; break;537 case "simpowersystems": prodgrp="s3 physical modeling"; break;538 case "simrf": prodgrp="v2 signal processing and communications"; break;539 case "simscape": prodgrp="s3 physical modeling"; break;540 case "simulink": prodgrp="s1 simulink and stateflow"; break;541 case "simulink 3d animation": prodgrp="s1 simulink and stateflow"; break;542 case "simulink code inspector": prodgrp="s6 embedded code generation"; break;543 case "simulink coder": prodgrp="s6 embedded code generation"; break;544 case "simulink control design": prodgrp="v1 control systems"; break;545 case "simulink design optimization": prodgrp="v1 control systems"; break;546 case "simulink design verifier": prodgrp="s5 model verification and validation"; break;547 case "simulink fixed point": prodgrp="s6 embedded code generation"; break;548 case "simulink hmi design": prodgrp="s1 simulink and stateflow"; break;549 case "simulink plc coder": prodgrp="s6 embedded code generation"; break;550 case "simulink report generator": prodgrp="s1 simulink and stateflow"; break;551 case "simulink verification and validation": prodgrp="s5 model verification and validation"; break;552 case "spreadsheet link ex": prodgrp="v6 computational finance"; break;553 case "stateflow": prodgrp="s1 simulink and stateflow"; break;554 case "statistics toolbox": prodgrp="m2 math, statistics, and optimization"; break;555 case "symbolic math toolbox": prodgrp="m2 math, statistics, and optimization"; break;556 case "system identification toolbox": prodgrp="v1 control systems"; break;557 case "systemtest": prodgrp="s5 model verification and validation"; break;558 case "unknown tmw": prodgrp="z2 obsolete"; break;559 case "vehicle network toolbox": prodgrp="v4 test and measurement"; break;560 case "wavelet toolbox": prodgrp="v2 signal processing and communications"; break;561 case "xpc target": prodgrp="s4 rapid prototyping and hil simulation"; break;562 case "xpc target embedded option": prodgrp="s4 rapid prototyping and hil simulation"; break;563 case "trading toolbox": prodgrp="v6 computational finance"; break;564 case "polyspace bug finder": prodgrp="p1 polyspace embedded code verification"; break;565 566 default:567 prodgrp = "unknown";568 break;569 }570 prodgrp = prodgrp.toLowerCase();571 return prodgrp;572 }573var cvURL = unescape(document.URL);574cvURL = cvURL.toLowerCase();575cvURL = undorewrite(cvURL);576var refURL = unescape(document.referrer);577refURL = refURL.toLowerCase();578refURL = undorewrite(refURL);579/* Set report suite ID dynamically based on domain */580//var s_account="mathglobaltest";581ReportSuiteID = cfCheckRSID(cvURL);582var s_account = ReportSuiteID;583if (cvURL.indexOf('www-external-')>-1 || cvURL.indexOf('.dhcp.mathworks.')>-1){584 var s_account = "mathglobaltest";585}586var s=s_gi(s_account);587// Function to return s_account for Flash Video tracking588s.bcAccount = function(){589 return s_account;590}591s.bcInfo = function(){592 var s=this;593 return "prop24|"+s.pageName+"^prop27|"+s.pageURL+"^prop25|"+document.referrer.toString();594}595/************************** CONFIG SECTION **************************/596/* You may add or alter any code config here. */597s.charSet="UTF-8";598/* Conversion Config */599s.currencyCode="USD";600/* Link Tracking Config */601s.trackDownloadLinks = true;602s.trackExternalLinks = true;603s.trackInlineStats = true;604s.linkDownloadFileTypes = "exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx,dmg";605s.linkInternalFilters = "javascript:,mathworks.";606s.linkLeaveQueryString = false;607s.linkTrackVars = "None";608s.linkTrackEvents = "None";609s.visitorNamespace = "mathworks";610s.mobile = "true"; //100113 CG: added this line to use the mobile suscriber ID to track mobile visits611/* Channel Manager Plugin Config */612/*Left out -'Internal Banner Ad' then 'IBA_ Remove adw_ in production*/613s._channelPattern="Paid Search|ppc_>Paid Social Ad|psb_>Paid Social Media|psm_>External Promotion|pep_>Partner Promotion|prp_>Paid Search|adw_"614s._channelParameter="Email|s_v1"615s._channelDomain="Social Media|facebook.com,linkedin.com,twitter.com,orkut.com,friendster.com,livejournal.com,blogspot.com,wordpress.com,friendfeed.com,myspace.com,digg.com,reddit.com,stumbleupon.com,twine.com,yelp.com,mixx.com,delicious.com,tumblr.com,disqus.com,intensedebate.com,plurk.com,slideshare.net,backtype.com,netvibes.com,mister-wong.com,diigo.com,flixster.com,youtube.com,vimeo.com,12seconds.tv,zooomr.com,identi.ca,jaiku.com,flickr.com,imeem.com,dailymotion.com,photobucket.com,fotolog.com,smugmug.com,classmates.com,myyearbook.com,mylife.com,tagged.com,brightkite.com,ning.com,bebo.com,hi5.com,yuku.com,cafemom.com,xanga.com"616/* WARNING: Changing any of the below variables will cause drastic617changes to how your visitor data is collected. Changes should only be618made when instructed to do so by your account manager.*/619// FPC Migration620s.trackingServer="metrics.mathworks.com"621s.trackingServerSecure="smetrics.mathworks.com"622s.visitorMigrationKey="51AA1C7A"623s.visitorMigrationServer="mathworks.com.ssl.sc.omtrdc.net"624s.visitorMigrationServerSecure="mathworks.com.ssl.d1.sc.omtrdc.net"625/*setting cookie domain variable - added 12/28/2012 - CG*/626s.fpCookieDomainPeriods="2"627var d=window.location.hostname628if(d.indexOf('.co.uk')>-1||d.indexOf('.co.jp')>-1||d.indexOf('.co.kr')>-1||d.indexOf('.com.au')>-1)629 s.fpCookieDomainPeriods="3";630/************************** CONFIG SECTION END **************************/631s.usePlugins = true;632function s_doPlugins(s) 633{634 /* Set PageName */635 if (!window.s.pageType) {636 s.pageName=cfUtility(cvURL,'pagename');637 }638 639 /* Set Channel */640 s.channel=cfUtility(cvURL,'channel');641 642 /* Set Server */643 s.server=cfUtility(cvURL,'server');644 if ((cvURL.indexOf('blogs.mathworks.')>-1) && (s.channel=="/")) 645 {646 s.channel="blogs index page";647 if (!window.s.pageType){648 s.pageName="blogs index page";649 }650 s.prop32="blogs";651 652 }653 else if (s.channel=="/") //&& (cvURL.indexOf('/downloads') ==-1))654 {655 s.channel="homepage";656 if (!window.s.pageType){657 s.pageName="homepage"; 658 }659 }660 /* Set URL Page Name */661 if (s.channel=="homepage" || s.channel=="blogs index page"){662 s.prop4 = s.server;663 }664 else {665 s.prop4 = s.server+ cfUtility(cvURL,'pagename');666 }667 668 /* Some exceptions when file= query string param is present */669 if (s.getQueryParam('file') != "")670 {671 if (!window.s.pageType){672 s.pageName=cfUtility(cvURL,'pagename')+"?file="+s.getQueryParam('file');673 }674 s.prop4 = s.server+s.channel+"?file="+s.getQueryParam('file');675 }676 677 String.prototype.replaceAll = function(str1, str2, ignore){678 return this.replace(new RegExp(str1.replace(/([\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g, function(c){return "\\" + c;}), "g"+(ignore?"i":"")), str2);679 };680 /* setting prop33 for WSM URL Pagename*/681 s.prop33=s.prop4.replaceAll("/","::"); 682 683 /*setting blank prop17 for WSM lead generator type*/684 s.prop17="BLANK";685 686 /* Set Site Section, Sub Sections */687 cvSplit = s.channel.split("/");688 if ((s.prop5 == null || s.prop5 == "") && cvSplit[1] != null && cvSplit[1] != "") s.prop5 = cvSplit[1];689 if (cvSplit[2] != null && cvSplit[2] != "") s.prop6 = s.prop5 + "/" + cvSplit[2]; 690 if (cvSplit[3] != null && cvSplit[3] != "") s.prop7 = s.prop6 + "/" + cvSplit[3]; 691 692 /* Get new and legacy campaign parameters from URL */693 if (s.getQueryParam('s_eid') != "") {694 s.campaign = s.eVar13=s.getValOnce(s.getQueryParam('s_eid')); // wrap getValonce plugin695 } 696 else if (s.getQueryParam('s_v1') != "") {697 var tmpv1 = s.getQueryParam('s_v1');698 if(tmpv1.indexOf('_') > 0) {699 s.campaign=tmpv1.substring(0,tmpv1.indexOf('_'));700 }701 else {702 s.campaign=tmpv1;703 }704 //Email opened - prop56705 s.prop56=s.getQueryParam('s_v1');706 // de-duplicate campaign variable to keep from inflating values707 s.campaign=s.getValOnce(s.campaign,'s_campaign',0);708 //s.eVar1=s.campaign;709 s.eVar1='D=v0';710 //s.campaign = s.eVar1=s.getValOnce(s.getQueryParam('s_v1'));711 } 712 713 if (s.getQueryParam('s_tid') != "") {714 s.eVar14 = s.getValOnce(s.getQueryParam('s_tid'));715 //s.prop22=s.eVar14;716 s.prop22='D=v14';717 } 718 if (s.getQueryParam('s_iid') != "") {719 s.eVar15 = s.getValOnce(s.getQueryParam('s_iid'));720 //s.prop23=s.eVar15;721 s.prop23='D=v15';722 } 723 if (s.getQueryParam('s_cid') != "") {724 s.eVar35 = s.getValOnce(s.getQueryParam('s_cid'));725 } 726 if (s.campaign != '') {727 s.prop1=s.getAndPersistValue(s.campaign,'s_cmp_pages',0); 728 }729 if (s.prop1 != '') { 730 if (!window.s.pageType){731 //s.prop2=s.prop1 +"||"+ s.pageName; 732 s.prop2='D=c1+"||"+pageName';733 }734 }735 736 if (s.eVar1 != '') {737 s.prop12=s.getAndPersistValue(s.eVar1,'s_email_pages',0); 738 }739 if (s.prop12 != '') { 740 if (!window.s.pageType){741 //s.prop13=s.prop12 +"||"+ s.pageName; 742 s.prop13='D=c12+"||"+pageName';743 }744 }745 746 if (s.eVar35 != '') {s.prop8=s.getAndPersistValue(s.eVar35,'s_old_pages',0); }747 if (s.prop8 != '') { 748 if (!window.s.pageType){749 //s.prop9=s.prop8 +"||"+ s.pageName; 750 s.prop9='D=c8+"||"+pageName';751 }752 }753 754 /* Set Page Title and Full URL*/755 s.prop35=document.title.toLowerCase();756 s.prop34="D=g";757 //s.prop34=decodeURI(cvURL); 091813 CG: commented out to reduce image request size, using dynamic variable above758 759 760 /* Capturing referrer and previous page information */761 if (cfUtility(refURL,'server').search("mathworks.") != -1){762 s.prop10= cfUtility(refURL,'server');763 s.prop28= s.getPreviousValue(s.prop35,'c_c35','');764 refSplit = cfUtility(refURL,'channel').split("/");765 if ((s.prop19 == null || s.prop19 == "") && refSplit[1] != null && refSplit[1] != "") s.prop19 = refSplit[1];766 if (refSplit[2] != null && refSplit[2] != "") s.prop20 = s.prop19 + "/" + refSplit[2]; 767 if (refSplit[3] != null && refSplit[3] != "") s.prop21 = s.prop20 + "/" + refSplit[3]; 768 s.prop42="D=r";769 //s.prop42=decodeURI(refURL); 091813 CG: commented out to reduce image request size, using dynamic variable above770 s.prop29=cfUtility(refURL,'server')+cfUtility(refURL,'channel')+cfUtility(refURL,'filename');771 /* Get previous value of product name, group, artifact type and lead generator. Copied from old s_code */772 s.prop38= s.getPreviousValue(s.prop30,'c_c30','');773 s.prop39= s.getPreviousValue(s.prop31,'c_c31','');774 s.prop40= s.getPreviousValue(s.prop32,'c_c32','');775 //s.prop41= s.getPreviousValue(s.prop33,'c_c33','');776 /* Capturing CTA location */777 if (s.prop29 && s.getQueryParam('s_iid') != ""){778 //s.eVar28=s.prop29; 779 s.eVar28='D=c29';780 s.eVar54='D=c40';781 }782 }783 784 785 /* Set Internal Search Phrase */786 if (s.getQueryParam('q') != '') { 787 s.eVar3=s.getQueryParam('q'); 788 s.prop3=s.getQueryParam('q'); 789 }790 if (s.getQueryParam('qdoc') != '') { 791 s.eVar3=s.getQueryParam('qdoc')+':: lucene'; 792 s.prop3=s.getQueryParam('qdoc')+':: lucene';793 }794 795 /* Set MWA Unique ID, Omniture Visitor ID & MW Gen. Unique Visit ID */796 if (document.cookie.match('MW_AL')) { 797 s.eVar4='logged in'; 798 }799 else { 800 s.eVar4='not logged in'; 801 }802 if (document.cookie.match('MW_AL')) { 803 s.eVar5=s.c_r('MW_AL'); 804 s.prop16=s.c_r('MW_AL'); 805 }806 807 /* New or Repeat Visit and Days Since Last Visit*/808 s.eVar6=s.getNewRepeat();809 s.eVar9=s.getDaysSinceLastVisit();810 811 812 /* Identify first page of visit */813 var tmp = s.getVisitStart('c_vs'); 814 if (tmp == 1) {815 s.prop15 = 'Yes';816 s.eVar29= Math.floor(Math.random()*1000000); // Random number817 //s.eVar25=s.prop35;818 s.eVar25='D=c35';819 if (!window.s.pageType){820 //s.eVar26=s.pageName;821 s.eVar26='D=pageName';822 }823 //s.eVar27=s.server;824 s.eVar27='D=server';825 var ts = Math.round((new Date()).getTime() / 1000);826 s.eVar34=s.eVar29+'::'+ts; // Random number+Unix time stamp827 }828 829 if (s.eVar29 != '') {830 s.prop26=s.getAndPersistValue(s.eVar29,'c_rand',0); 831 }832 if (s.eVar34 != '') {833 s.prop14=s.getAndPersistValue(s.eVar34,'c_sess',0); 834 } 835 836 /* Last Seminar Viewed */837 if (s.prop4.search("/company/events/seminars/seminar") != -1) { 838 //s.eVar12 = s.prop35;839 s.eVar12='D=c35';840 }841 842 /* Recruiting source */843 if (s.prop4.search("/company/jobs/") != -1 && s.getQueryParam('src') != '') { 844 s.eVar19 =s.getQueryParam('src');845 }846 847 848 /* Setting MW Lead Submit ID on confirmation pages */849 if (s.getQueryParam('wfsid') != ''){850 s.prop53 = s.getQueryParam('wfsid');851 }852 853 /* Success Events - Pls. work in Korean Conf. event59 & event51 in old code */854 855 // Trial Confirmation856 if (s.prop53){857 if (s.prop4.search("/programs/trials/trial_confirmation.html") != -1 ||858 s.prop4.search("-trial-request-conf") != -1||859 s.prop4.search("/programs/trials/earlyvv_trials_confirmation.html") != -1||860 s.prop4.search("/programs/nrd/matlab-trial-request-conf") != -1 ||861 s.prop4.search("/programs/nrd/buy-matlab-get-price-request-conf") !=-1 ||862 s.prop35.search("trial software request confirmation") != -1){863 s.events='event1:'+s.prop53+',event24:'+s.prop53; 864 s.eVar8='Trial Requested';865 }866 867 // Contact Sales868 if (s.prop4.search("/company/aboutus/contact_us/confirmation.html") != -1) { 869 s.events='event2:'+s.prop53+',event24:'+s.prop53; 870 s.eVar8='Contact Sales';871 }872 873 // TechKit Requested874 if (s.prop4.search("/cmspro/conf") != -1 || 875 s.prop4.search("/techkit/conf") != -1 || 876 s.prop4.search("conf_techkit") != -1 ||877 (s.prop4.search("/techkits/") != -1 && s.prop4.search("conf") != -1) ||878 (s.prop4.search("techkits") != -1 && s.prop4.search("conf") != -1) ||879 s.prop4.search("/student_version/techkit_conf") != -1) {880 s.events='event3:'+s.prop53+',event24:'+s.prop53; 881 s.eVar8='Techkit Requested';882 } 883 884 // Event Registration885 if (s.prop4.search("/company/events/seminars/intl_reg_conf_page.html") != -1) {886 s.events ='event4:'+s.prop53+',event6:'+s.prop53+',event24:'+s.prop53; 887 s.eVar8 = 'Seminar Registration';888 }889 else if (s.prop4.search("/webinars/webinarconf.html") != -1) { 890 //var id= s.getQueryParam('id'); // to be used for deduping - not required because of wfsid891 s.events='event4:'+s.prop53+',event7:'+s.prop53+',event24:'+s.prop53; 892 s.eVar8 = 'Recorded Webinar Registration';893 } 894///added on 61813 to track ovp video registrations - CG ////895 else if (s.prop58 != null && s.prop58.search("conf") !=-1) {896 s.events='event4:'+s.prop53+',event7:'+s.prop53+',event24:'+s.prop53; 897 s.eVar8 = 'Recorded Webinar Registration';898 }899 else if (s.prop59 != null && s.prop59.search("conf") !=-1) {900 s.events='event4:'+s.prop53+',event24:'+s.prop53+',event37:'+s.prop53;901 s.eVar8 = 'OVP Registration';902 }903 else if (s.prop4.search("/webinars/upcomingconf.html") != -1) { 904 //var id= s.getQueryParam('id'); // to be used for deduping - not required because of wfsid905 s.events='event4:'+s.prop53+',event8:'+s.prop53+',event24:'+s.prop53; 906 s.eVar8 = 'Live Webinar Registration'; 907 }908 else if ( s.prop4.search("events/conferences/matlab-tour/confirmation.html") !=-1 ||909 (s.prop4.search("/company/events/") != -1 && s.prop4.search("tour") != -1 && s.prop4.search("confirmation.html") != -1)) { 910 s.events='event4:'+s.prop53+',event9:'+s.prop53+',event24:'+s.prop53; //tour registration 911 s.eVar8 = 'Tour Registration'; 912 }913 else if (s.prop4.search("company/events/conferences/") != -1 && s.prop4.search("confirmation.html") !=-1){914 s.events='event4:'+s.prop53+',event10:'+s.prop53+',event24:'+s.prop53; //conference registration915 s.eVar8='Conference Registration';916 }917 else if (s.prop4.search("services/training/confirm_training.html") != -1) {918 s.events='event11:'+s.prop53+',event24:'+s.prop53; // Contacted Training919 s.eVar8='Contacted Training';920 }921 else if (s.prop4.search("services/training/conf_brochure.html") != -1) {922 s.events='event13:'+s.prop53+',event24:'+s.prop53; // Training Brochure Requested923 s.eVar8='Training Brochure Requested';924 }925 926 else if (s.prop4.search("support/contact_us/renewal_confirm.html") != -1) {927 s.events='event16:'+s.prop53+',event24:'+s.prop53; // SMS Renewal Requested928 s.eVar8='SMS Renewal Requested';929 }930 else if (s.prop4.search("company/aboutus/contact_us/quote_confirmation.html") != -1) {931 s.events='event17:'+s.prop53+',event24:'+s.prop53; // Sales Quote Requested932 s.eVar8='Sales Quote Requested';933 }934 else if (s.prop4.search("academia/student_version/eval_confirmation.html") != -1){935 s.events='event21:'+s.prop53+',event24:'+s.prop53; //SV Evaluation Requested936 s.eVar8='SV Eval Requested';937 }938 }939 if (s.prop4.search("/company/jobs/apply/job_bids/confirmation") != -1 || s.prop4.search("/company/jobs/apply/quick_apply/create")!=-1) { 940 s.events='event20'; // Resume Submitted941 }942 else if (s.prop4.search("emailoptions/mailings/confirmation") !=-1) {943 s.events='event12'; // Email Opt-Out Confirmation944 945 }946 else if (s.prop4.search("/support/service_requests/submitaction.do") != -1) {947 s.events='event15'; // Service Request Submitted948 }949 else if (s.prop4.search("/academia/student_center/tutorials/") != -1 && cvURL.indexOf("launchpad") >-1) { 950 s.events='event14' // Tutorial Registration951 s.eVar8='Tutorial Registration';952 }953 /*100113 CG: Moved Tutorial registration below s.prop53 constrait and removed serialization from event 14*///954 /*else if (s.server.search(".co.kr") != -1 && s.prop4.search("company/events/conferences/technology-conference-korea/proceedings") !=-1 &&955 (s.prop4.search("i1-model-based-design.html")!= -1 || s.prop4.search("d4-image-video-processing.html") !=-1 || 956 s.prop4.search("v2-early-verification.html")!= -1 || s.prop4.search("i2-signal-processing.html")!= -1||957 s.prop4.search("i4-vihecle-design-optimization.html")!= -1||s.prop4.search("d1-sytem-toolbox.html")!= -1 )) {958 s.events='event22'; //KR Conf Proceedings Watched959 //s.eVar8 = 'Korean Conference Proceedings Watched';960 }*/961 else if (s.prop4.search("/programs/customersat/confirmation.html") != -1) { 962 s.events='event23'; // CustomerSat Confirmation963 }964 else if (s.prop4.search("/expert_contact_conf.html") !=-1 || s.prop4.search("/expert-contact-confirmation.html") != -1) {965 s.events='event25'; // Expert contacted966 }967 else if (s.prop4.search("/services/consulting/confirmation.html") !=-1) {968 s.events='event22'; // Consulting contacted969 }970 /*code to captuire apply now button - added 12/28/2012 - CG */971 if (s.prop4.search("/company/jobs/apply/job_bids/resume")!= -1 ) { 972 s.events='event36'; // Apply Logged-in973 }974 else if (s.prop4.search("/company/jobs/apply/apply_now")!=-1) {975 s.events='event37'; // Apply Not Logged-in976 }977 978 //code to captuire web store order confirmation - added 12/28/2012 - CG. 100113 CG: updated for new web store confirmation page (/store/checkoutconfirmed.do) & turned on visit based event serialization 979 if (s.prop4.search("/store/verifysubmit.do") != -1) { 980 s.events='event35, event46'; 981 }982 if (s.prop4.search("/store/checkoutconfirmed.do") != -1) { 983 s.events='event35, event47'; 984 }985 986 /* Code to get Google referrer information */987 s.getGoogleRank('event18','event19','eVar17','eVar18');988 if(s.events){989 if((s.events+',').indexOf('event18,')>-1){990 if (!window.s.pageType){991 s.hier1=s.eVar17+"|"+s.pageName+"|"+s.eVar18;992 s.hier2=s.pageName+"|"+s.eVar18+"|"+s.eVar17+"|";993 }994 }995 }996// 100113 CG: added below line to set referrer sub-domain997 s.eVar55 = s.getFullReferringDomains();998 999 /* Channel Manager v2.4 */1000 s.channelManager('s_eid,s_v1',':','c_cm','','s_dl',0);1001 if (s._channel != "" || s._channel != undefined){1002 s.eVar37=s._referringDomain;1003 s.eVar38=s._partner;1004 //s.campaign=s._campaignID;1005 s.eVar39=s.campaign;1006 s.eVar2=s._keywords;1007 s.eVar40=s._channel;1008 s.eVar36=s._referrer;1009 }1010 1011 1012 if (s.eVar2 != '') {1013 s.prop11=s.getAndPersistValue(s.eVar2,'c_srch',0); 1014 }1015 1016 /*Setting the Campaign Touches counter*/ 1017 if(s.eVar39){1018 s.eVar41='+1'; s.eVar42='+1'; s.eVar43='+1'; s.eVar44='+1';1019 s.events=s.apl(s.events,'event5',',',2);1020 }1021 /*Setting getTimeToComplete plugin to measure time from campaign click-through to registration completion*/1022/* if(s.events){1023 if((s.events+',').indexOf('event5,')>-1){s.eVar45=s.eVar46=s.eVar47=s.eVar48='start';}1024 if((s.events+',').indexOf('event1,')>-1){s.eVar45='stop';}1025 if((s.events+',').indexOf('event2,')>-1){s.eVar46='stop';}1026 if((s.events+',').indexOf('event3,')>-1){s.eVar47='stop';}1027 if((s.events+',').indexOf('event4,')>-1){s.eVar48='stop';}1028 }*/1029 if(s.events){1030 if(s.eVar39){s.eVar45=s.eVar46=s.eVar47=s.eVar48='start';}1031 if(s.events.indexOf('event1:')>-1){s.eVar45='stop';}1032 if(s.events.indexOf('event2:')>-1){s.eVar46='stop';}1033 if(s.events.indexOf('event3:')>-1){s.eVar47='stop';}1034 if(s.events.indexOf('event4:')>-1){s.eVar48='stop';}1035 }1036 1037 s.eVar45=s.getTimeToComplete(s.eVar45,'ttc45',0);1038 s.eVar46=s.getTimeToComplete2(s.eVar46,'ttc46',0);1039 s.eVar47=s.getTimeToComplete3(s.eVar47,'ttc47',0);1040 s.eVar48=s.getTimeToComplete4(s.eVar48,'ttc48',0);1041 1042 if (s.eVar40){1043 /*Trial Requested - Campaign Stacking Channel*/ 1044 s.eVar49=s.crossVisitParticipation(chnlshrink(s.eVar40),'v49','365','20','>','event1',1);1045 1046 /*Contacted Sales - Campaign Stacking Channel*/1047 s.eVar50=s.crossVisitParticipation(chnlshrink(s.eVar40),'v50','365','20','>','event2',1);1048 1049 /*TechKit Requested - Campaign Stacking Channel*/1050 s.eVar51=s.crossVisitParticipation(chnlshrink(s.eVar40),'v51','365','20','>','event3',1);1051 1052 /*Event Registration - Campaign Stacking Channel*/1053 s.eVar52=s.crossVisitParticipation(chnlshrink(s.eVar40),'v52','365','20','>','event4',1);1054 }1055 1056 /* The following functions set product name into propN(30) and product group into propN(31) */1057 s.prop30= prodassign('urly');1058 if ((!s.prop30 || s.prop30=="unknown")&& s.getQueryParam('ref') != '' ){1059 s.prop30=prodassign('ref');1060 }1061 else if ((!s.prop30 || s.prop30=="unknown") && s.getQueryParam('product') != ''){1062 s.prop30=prodassign('product');1063 }1064 if (s.prop30){1065 s.prop31=prodgroup(s.prop30);1066 }1067 1068 /* Additional product name, group, artifact type assignment */1069 if(s.prop5 == 'solutions'){1070 s.prop30 = 'unknown'; 1071 s.prop31 = 'unknown'; 1072 s.prop32 = 'solution';1073 }1074 else if(s.prop5 == 'data-acquisition' || s.prop5== 'data-analysis' || s.prop5 == 'mathematical-modeling' || s.prop5 == 'algorithm-development' || s.prop5 == 'parallel-computing' || s.prop5 == 'desktop-web-deployment'){1075 s.prop30 = 'unknown'; 1076 s.prop31 = 'unknown'; 1077 s.prop32 = 'solution-capabilities';1078 }1079 else if(s.prop5=='system-design-simulation'||s.prop5=='physical-modeling'||s.prop5=='discrete-event-simulation'||s.prop5=='rapid-prototyping'||s.prop5=='embedded-code-generation'||s.prop5=='hdl-code-generation-verification'||s.prop5=='verification-validation'){1080 s.prop30 = 'unknown'; 1081 s.prop31 = 'unknown'; 1082 s.prop32 = 'solution-capabilities';1083 }1084 else if(s.prop5=='embedded-systems'||s.prop5=='control-systems'||s.prop5=='dsp'||s.prop5=='communications-systems'||s.prop5=='image-video-processing'||s.prop5=='fpga-design'||s.prop5=='mechatronics'||s.prop5=='test-measurement'||s.prop5=='computational-biology'||s.prop5=='computational-finance'){1085 s.prop30 = 'unknown'; 1086 s.prop31 = 'unknown'; 1087 s.prop32='solution-application';1088 }1089 else if(s.prop5=='aerospace-defense'||s.prop5=='automotive'||s.prop5=='biotech-pharmaceutical'||s.prop5=='communications'||s.prop5=='electronics-semiconductors'||s.prop5=='energy-production'||s.prop5=='financial-services'||s.prop5=='industry-automation-machinery'){1090 s.prop30 = 'unknown'; 1091 s.prop31 = 'unknown'; 1092 s.prop32 = 'solution-industry';1093 }1094 else if(s.prop5=='industries' && s.prop6 == 'other'){1095 s.prop30 = 'unknown'; 1096 s.prop31 = 'unknown'; 1097 s.prop32 = 'solution-industry';1098 }1099 else if (s.prop5 == 'matlabcentral'){1100 s.prop30 = 'unknown'; 1101 s.prop31 = 'unknown'; 1102 s.prop32 = 'matlabcentral';1103 1104 }1105 1106 else if(s.prop5=='company'){1107 if (s.prop7){1108 if (s.prop7 == 'company/aboutus/contact_us' || s.prop7== 'company/events/webinars' || s.prop7 == 'company/events/seminars' ){1109 if (s.prop38 != 'no value'){1110 s.prop30=s.prop38;1111 s.prop31=s.prop39;1112 }1113 else {1114 s.prop30 = 'unknown'; 1115 s.prop31 = 'unknown'; 1116 }1117 s.prop32= cvSplit[3];1118 }1119 else if (s.prop6== 'company/events'){1120 if (s.prop38 != 'no value'){1121 s.prop30=s.prop38;1122 s.prop31=s.prop39;1123 }1124 else {1125 s.prop30 = 'unknown'; 1126 s.prop31 = 'unknown'; 1127 }1128 s.prop32= cvSplit[2];1129 }1130 else {1131 s.prop30 = 'unknown'; 1132 s.prop31 = 'unknown'; 1133 s.prop32=cvSplit[1];1134 }1135 }1136/* else if (s.prop6){1137 var filename=cfUtility(cvURL,'filename');1138 if (filename.indexOf('.')!=-1){1139 s.prop30=filename.substring(0,filename.indexOf('.'));1140 }1141 else {1142 s.prop30=cvSplit[2];1143 }1144 s.prop31=cvSplit[2];1145 s.prop32=cvSplit[1];1146 }*/1147 else {1148 s.prop30=s.prop31='unknown';1149 s.prop32='company';1150 }1151 1152 }1153 1154 else if (s.prop5=='programs'){1155 if (s.prop6 == 'programs/techkits' || s.prop6 == 'programs/trial' || s.prop6 == 'programs/trials'){1156 if (!s.prop30){1157 if (s.prop38 != 'no value'){1158 s.prop30 = s.prop38;1159 s.prop31 = s.prop39;1160 }1161 else {1162 s.prop30=s.prop31='unknown';1163 }1164 }1165 s.prop32 = cvSplit[2];1166 }1167 }1168 1169 1170 else if (s.channel=="homepage") {1171 s.prop30=s.prop31='unknown';1172 s.prop32='homepage';1173 }1174 1175 1176 else if (s.prop30 && s.prop5=='products') {1177 var filename=cfUtility(cvURL,'filename');1178 if(filename.search('description') > -1){1179 s.prop32="product_info";1180 }1181 /*1182 else if (filename.search('demos') > -1){1183 var show = s.getQueryParam('show');1184 if (show){1185 s.prop32='product_demos_'+show;1186 }1187 else {1188 s.prop32='product_demos';1189 }1190 }*/1191 else if ((filename == 'index.html') || (filename == '')){1192 if(s.prop6){1193 s.prop32='product_main';1194 }1195 else {1196 s.prop32='product';1197 }1198 }1199 else {1200 if (filename.indexOf('.')!=-1){1201 //s.prop32='product_'+filename.substring(0,filename.indexOf('.'));1202 s.prop32='product_other';1203 }1204 }1205 }1206 else if (s.prop5 == 'products'){1207 if (cfUtility(cvURL,'filename')=='login_pricing.html'){1208 if (s.prop38 != 'no value'){1209 s.prop30=s.prop38;1210 s.prop31=s.prop39;1211 }1212 else {1213 s.prop30=s.prop31='unknown';1214 }1215 s.prop32= 'Get Pricing';1216 1217 }1218 }1219 else if (s.prop5 == 'store'){1220 if (cfUtility(cvURL,'filename')=='productindexsubmit.do'){1221 if (s.prop38 != 'no value'){1222 s.prop30=s.prop38;1223 s.prop31=s.prop39;1224 }1225 else {1226 s.prop30=s.prop31='unknown';1227 }1228 s.prop32= 'Store - Get Pricing';1229 }1230 else if (cfUtility(cvURL,'filename')=='productindexlink.do'){1231 if (s.prop38 != 'no value'){1232 s.prop30=s.prop38;1233 s.prop31=s.prop39;1234 }1235 else {1236 s.prop30=s.prop31='unknown';1237 }1238 s.prop32= 'Store - Buy Now';1239 }1240 1241 }1242 else if (cvURL.indexOf('blogs.mathworks.')>-1){1243 s.prop30=s.prop31='unknown';1244 s.prop32='blogs';1245 }1246 if (!s.prop30){1247 s.prop30='unknown';1248 }1249 if (!s.prop31){1250 s.prop31='unknown';1251 }1252 1253 if (!s.prop32){1254 if (s.prop5){1255 s.prop32=s.prop5;1256 }1257 else {1258 s.prop32='unknown';1259 }1260 }1261}1262 1263 /* Copy product name, product grp and artifact type props into eVars */1264 if(s.prop30) {s.eVar30=s.prop30;}1265 if(s.prop31) {s.eVar31=s.prop31;}1266 if(s.prop32) {s.eVar32=s.prop32;}1267 1268 //Extra page title prop for WSM reporting1269 if (s.prop35) {s.prop55 = s.prop35;}1270 //Extra artifact type prop for reporting as eVar32 has been used by videos1271 if (s.eVar32) {s.eVar33=s.eVar32;}1272 /* Added on 4/15/13 to track internal search widget - CG */1273// Application-set search properties1274// - prop49: application identifier1275// - prop50: search term minus facets1276// - prop51: search results page1277// - prop52: search facets1278(function(search) {1279 if (!search) { return; }1280 if (search.app) { s.prop49 = search.app; }1281 if (search.term && search.term !== '') { s.prop50 = search.term; }1282 if (search.page) { s.prop51 = search.page; }1283 if (search.facets && search.facets !== '') { s.prop52 = search.facets; }1284})(window.SearchTracking);1285/*added on 6/14/13 to track use for the doc TOC - CG */ 1286(function(toc) {1287 if (!toc) { return; }1288 if (toc.open) {1289 s.prop60="TOC open"; //record the property for setting that the toc was open on page load.1290 }1291 if (toc.clicked) {1292 s.prop61=cfUtility(cvURL,'pagename'); // record that the current page resulted as a click on the TOC. 1293 s.prop62=cfUtility(refURL,'channel')+cfUtility(refURL,'filename'); // records the previous (referrer) page the user was on. 1294 }1295 1296})(window.TocTracking);1297/************************** PLUGINS SECTION - START *************************/1298s.doPlugins=s_doPlugins;1299/*1300 * Get Full Referring Domains 100113 CG: Added to capture the referring sub-domain1301 */ 1302s.getFullReferringDomains=new Function(""1303+"var s=this,dr=window.document.referrer,n=s.linkInternalFilters.spli"1304+"t(',');if(dr){var r=dr.split('/')[2],l=n.length;for(i=0;i<=l;i++){i"1305+"f(r.indexOf(n[i])!=-1){r='';i=l+1;}}return r}");1306/*1307 * Plugin: getQueryParam 2.31308 */1309s.getQueryParam=new Function("p","d","u",""1310+"var s=this,v='',i,t;d=d?d:'';u=u?u:(s.pageURL?s.pageURL:s.wd.locati"1311+"on);if(u=='f')u=s.gtfs().location;while(p){i=p.indexOf(',');i=i<0?p"1312+".length:i;t=s.p_gpv(p.substring(0,i),u+'');if(t){t=t.indexOf('#')>-"1313+"1?t.substring(0,t.indexOf('#')):t;}if(t)v+=v?d+t:t;p=p.substring(i="1314+"=p.length?i:i+1)}return v");1315s.p_gpv=new Function("k","u",""1316+"var s=this,v='',i=u.indexOf('?'),q;if(k&&i>-1){q=u.substring(i+1);v"1317+"=s.pt(q,'&','p_gvf',k)}return v");1318s.p_gvf=new Function("t","k",""1319+"if(t){var s=this,i=t.indexOf('='),p=i<0?t:t.substring(0,i),v=i<0?'T"1320+"rue':t.substring(i+1);if(p.toLowerCase()==k.toLowerCase())return s."1321+"epa(v)}return ''");1322/*1323 * s.join: 1.0 - Joins an array into a string1324 */1325s.join = new Function("v","p",""1326+"var s = this;var f,b,d,w;if(p){f=p.front?p.front:'';b=p.back?p.back"1327+":'';d=p.delim?p.delim:'';w=p.wrap?p.wrap:'';}var str='';for(var x=0"1328+";x<v.length;x++){if(typeof(v[x])=='object' )str+=s.join( v[x],p);el"1329+"se str+=w+v[x]+w;if(x<v.length-1)str+=d;}return f+str+b;");1330/*1331 * Plugin: getPreviousValue_v1.0 - return previous value of designated1332 * variable (requires split utility)1333 */1334s.getPreviousValue=new Function("v","c","el",""1335+"var s=this,t=new Date,i,j,r='';t.setTime(t.getTime()+1800000);if(el"1336+"){if(s.events){i=s.split(el,',');j=s.split(s.events,',');for(x in i"1337+"){for(y in j){if(i[x]==j[y]){if(s.c_r(c)) r=s.c_r(c);v?s.c_w(c,v,t)"1338+":s.c_w(c,'no value',t);return r}}}}}else{if(s.c_r(c)) r=s.c_r(c);v?"1339+"s.c_w(c,v,t):s.c_w(c,'no value',t);return r}");1340/*1341 * Plugin Utility: Replace v1.01342 */1343s.repl=new Function("x","o","n",""1344+"var i=x.indexOf(o),l=n.length;while(x&&i>=0){x=x.substring(0,i)+n+x."1345+"substring(i+o.length);i=x.indexOf(o,i+l)}return x");1346/*1347 * Utility Function: split v1.5 - split a string (JS 1.0 compatible)1348 */1349s.split=new Function("l","d",""1350+"var i,x=0,a=new Array;while(l){i=l.indexOf(d);i=i>-1?i:l.length;a[x"1351+"++]=l.substring(0,i);l=l.substring(i+d.length);}return a");1352/*1353 * Plugin: getAndPersistValue 0.3 - get a value on every page1354 */1355s.getAndPersistValue=new Function("v","c","e",""1356+"var s=this,a=new Date;e=e?e:0;a.setTime(a.getTime()+e*86400000);if("1357+"v)s.c_w(c,v,e?a:0);return s.c_r(c);");1358/*1359 * Plugin: getVisitStart v2.0 - returns 1 on first page of visit1360 * otherwise 01361 */1362s.getVisitStart=new Function("c",""1363+"var s=this,v=1,t=new Date;t.setTime(t.getTime()+1800000);if(s.c_r(c"1364+")){v=0}if(!s.c_w(c,1,t)){s.c_w(c,1,0)}if(!s.c_r(c)){v=0}return v;"); 1365/*1366 * Plugin: getNewRepeat 1.0 - Return whether user is new or repeat1367 */1368s.getNewRepeat=new Function(""1369+"var s=this,e=new Date(),cval,ct=e.getTime(),y=e.getYear();e.setTime"1370+"(ct+30*24*60*60*1000);cval=s.c_r('s_nr');if(cval.length==0){s.c_w("1371+"'s_nr',ct,e);return 'New';}if(cval.length!=0&&ct-cval<30*60*1000){s"1372+".c_w('s_nr',ct,e);return 'New';}if(cval<1123916400001){e.setTime(cv"1373+"al+30*24*60*60*1000);s.c_w('s_nr',ct,e);return 'Repeat';}else retur"1374+"n 'Repeat';");1375s.getDaysSinceLastVisit=new Function(""1376+"var s=this,e=new Date(),cval,ct=e.getTime(),c='s_lastvisit',day=24*"1377+"60*60*1000;e.setTime(ct+3*365*day);cval=s.c_r(c);if(!cval){s.c_w(c,"1378+"ct,e);return 'First page view or cookies not supported';}else{var d"1379+"=ct-cval;if(d>30*60*1000){if(d>30*day){s.c_w(c,ct,e);return 'More t"1380+"han 30 days';}if(d<30*day+1 && d>7*day){s.c_w(c,ct,e);return 'More "1381+"than 7 days';}if(d<7*day+1 && d>day){s.c_w(c,ct,e);return 'Less tha"1382+"n 7 days';}if(d<day+1){s.c_w(c,ct,e);return 'Less than 1 day';}}els"1383+"e return '';}");1384/*1385 * Plugin: getValOnce_v1.01386 */1387s.getValOnce=new Function("v","c","e",""1388+"var s=this,a=new Date,v=v?v:v='',c=c?c:c='s_gvo',e=e?e:0,k=s.c_r(c"1389+");if(v){a.setTime(a.getTime()+e*86400000);s.c_w(c,v,e?a:0);}return"1390+" v==k?'':v");1391/*1392 * Plugin Utility: apl v1.11393 */1394s.apl=new Function("l","v","d","u",""1395+"var s=this,m=0;if(!l)l='';if(u){var i,n,a=s.split(l,d);for(i=0;i<a."1396+"length;i++){n=a[i];m=m||(u==1?(n==v):(n.toLowerCase()==v.toLowerCas"1397+"e()));}}if(!m)l=l?l+d+v:v;return l");1398/*1399 * Plugin: getTimeToComplete 0.4 - return the time from start to stop1400 */1401s.getTimeToComplete=new Function("v","cn","e",""1402+"var s=this,d=new Date,x=d,k;if(!s.ttcr){e=e?e:0;if(v=='start'||v=='"1403+"stop')s.ttcr=1;x.setTime(x.getTime()+e*86400000);if(v=='start'){s.c"1404+"_w(cn,d.getTime(),e?x:0);return '';}if(v=='stop'){k=s.c_r(cn);if(!s"1405+".c_w(cn,'',d)||!k)return '';v=(d.getTime()-k)/1000;var td=86400,th="1406+"3600,tm=60,r=5,u,un;if(v>td){u=td;un='days';}else if(v>th){u=th;un="1407+"'hours';}else if(v>tm){r=2;u=tm;un='minutes';}else{r=.2;u=1;un='sec"1408+"onds';}v=v*r/u;return (Math.round(v)/r)+' '+un;}}return '';");1409s.getTimeToComplete2=new Function("v","cn","e",""1410+"var s=this,d=new Date,x=d,k;if(!s.ttcr2){e=e?e:0;if(v=='start'||v=='"1411+"stop')s.ttcr2=1;x.setTime(x.getTime()+e*86400000);if(v=='start'){s.c"1412+"_w(cn,d.getTime(),e?x:0);return '';}if(v=='stop'){k=s.c_r(cn);if(!s"1413+".c_w(cn,'',d)||!k)return '';v=(d.getTime()-k)/1000;var td=86400,th="1414+"3600,tm=60,r=5,u,un;if(v>td){u=td;un='days';}else if(v>th){u=th;un="1415+"'hours';}else if(v>tm){r=2;u=tm;un='minutes';}else{r=.2;u=1;un='sec"1416+"onds';}v=v*r/u;return (Math.round(v)/r)+' '+un;}}return '';");1417s.getTimeToComplete3=new Function("v","cn","e",""1418+"var s=this,d=new Date,x=d,k;if(!s.ttcr3){e=e?e:0;if(v=='start'||v=='"1419+"stop')s.ttcr3=1;x.setTime(x.getTime()+e*86400000);if(v=='start'){s.c"1420+"_w(cn,d.getTime(),e?x:0);return '';}if(v=='stop'){k=s.c_r(cn);if(!s"1421+".c_w(cn,'',d)||!k)return '';v=(d.getTime()-k)/1000;var td=86400,th="1422+"3600,tm=60,r=5,u,un;if(v>td){u=td;un='days';}else if(v>th){u=th;un="1423+"'hours';}else if(v>tm){r=2;u=tm;un='minutes';}else{r=.2;u=1;un='sec"1424+"onds';}v=v*r/u;return (Math.round(v)/r)+' '+un;}}return '';");1425s.getTimeToComplete4=new Function("v","cn","e",""1426+"var s=this,d=new Date,x=d,k;if(!s.ttcr4){e=e?e:0;if(v=='start'||v=='"1427+"stop')s.ttcr4=1;x.setTime(x.getTime()+e*86400000);if(v=='start'){s.c"1428+"_w(cn,d.getTime(),e?x:0);return '';}if(v=='stop'){k=s.c_r(cn);if(!s"1429+".c_w(cn,'',d)||!k)return '';v=(d.getTime()-k)/1000;var td=86400,th="1430+"3600,tm=60,r=5,u,un;if(v>td){u=td;un='days';}else if(v>th){u=th;un="1431+"'hours';}else if(v>tm){r=2;u=tm;un='minutes';}else{r=.2;u=1;un='sec"1432+"onds';}v=v*r/u;return (Math.round(v)/r)+' '+un;}}return '';");1433/*1434 * Plug-in: crossVisitParticipation v1.6 - stacks values from1435 * specified variable in cookie and returns value1436 */1437s.crossVisitParticipation=new Function("v","cn","ex","ct","dl","ev","dv",""1438+"var s=this,ce;if(typeof(dv)==='undefined')dv=0;if(s.events&&ev){var"1439+" ay=s.split(ev,',');var ea=s.split(s.events,',');for(var u=0;u<ay.l"1440+"ength;u++){for(var x=0;x<ea.length;x++){if(ay[u]==ea[x]){ce=1;}}}}i"1441+"f(!v||v==''){if(ce){s.c_w(cn,'');return'';}else return'';}v=escape("1442+"v);var arry=new Array(),a=new Array(),c=s.c_r(cn),g=0,h=new Array()"1443+";if(c&&c!='')arry=eval(c);var e=new Date();e.setFullYear(e.getFullY"1444+"ear()+5);if(dv==0&&arry.length>0&&arry[arry.length-1][0]==v)arry[ar"1445+"ry.length-1]=[v,new Date().getTime()];else arry[arry.length]=[v,new"1446+" Date().getTime()];var start=arry.length-ct<0?0:arry.length-ct;var "1447+"td=new Date();for(var x=start;x<arry.length;x++){var diff=Math.roun"1448+"d((td.getTime()-arry[x][1])/86400000);if(diff<ex){h[g]=unescape(arr"1449+"y[x][0]);a[g]=[arry[x][0],arry[x][1]];g++;}}var data=s.join(a,{deli"1450+"m:',',front:'[',back:']',wrap:\"'\"});s.c_w(cn,data,e);var r=s.join"1451+"(h,{delim:dl});if(ce)s.c_w(cn,'');return r;");1452/*1453 * channelManager v2.4 - Tracking External Traffic1454 */1455s.channelManager = new Function("a", "b", "c", "d", "e", "f", "var s=this,A,B,g,l,m,M,p,q,P,h,k,u,S,i,O,T,j,r,t,D,E,F,G,H,N,U,v=0,X,Y,W,n=new Date;n.setTime(n.getTime()+1800000);if(e){v=1;if(s.c_r(e))v=0;if(!s.c_w(e,1,n))s.c_w(e,1,0);if(!s.c_r(e))v=0;}g=s.referrer?s.referrer:document.referrer;g=g.toLowerCase();if(!g)h=1;i=g.indexOf('?')>-1?g.indexOf('?'):g.length;j=g.substring(0,i);k=s.linkInternalFilters.toLowerCase();k=s.split(k,',');l=k.length;for(m=0;m<l;m++){B=j.indexOf(k[m])==-1?'':g;if(B)O=B;}if(!O&&!h){p=g;U=g.indexOf('//');q=U>-1?U+2:0;Y=g.indexOf('/',q);r=Y>-1?Y:i;t=g.substring(q,r);t=t.toLowerCase();u=t;P='Referrers';S=s.seList+'>'+s._extraSearchEngines;if(d==1){j=s.repl(j,'oogle','%');j=s.repl(j,'ahoo','^');g=s.repl(g,'as_q','*');}A=s.split(S,'>');T=A.length;for(i=0;i<A.length;i++){D=A[i];D=s.split(D,'|');E=s.split(D[0],',');for(G=0;G<E.length;G++){H=j.indexOf(E[G]);if(H>-1){if(D[2])N=u=D[2];else N=t;if(d==1){N=s.repl(N,'#',' - ');g=s.repl(g,'*','as_q');N=s.repl(N,'^','ahoo');N=s.repl(N,'%','oogle');}i=s.split(D[1],',');for(k=0;k<i.length;k++){M=s.getQueryParam(i[k],'',g).toLowerCase();if(M)break;}}}}}if(!O||f!='1'){O=s.getQueryParam(a,b);if(O){u=O;if(M)P='Paid Search';else P='Paid Non-Search';}if(!O&&N){u=N;P='Natural Search'}}if(h==1&&!O&&v==1)u=P=t=p='Direct Load';X=M+u+t;c=c?c:'c_m';if(c!='0'){X=s.getValOnce(X,c,0);}g=s._channelDomain;if(g&&X){k=s.split(g,'>');l=k.length;for(m=0;m<l;m++){q=s.split(k[m],'|');r=s.split(q[1],',');S=r.length;for(T=0;T<S;T++){Y=r[T];Y=Y.toLowerCase();i=j.indexOf(Y);if(i>-1)P=q[0];}}}g=s._channelParameter;if(g&&X){k=s.split(g,'>');l=k.length;for(m=0;m<l;m++){q=s.split(k[m],'|');r=s.split(q[1],',');S=r.length;for(T=0;T<S;T++){U=s.getQueryParam(r[T]);if(U)P=q[0]}}}g=s._channelPattern;if(g&&X){k=s.split(g,'>');l=k.length;for(m=0;m<l;m++){q=s.split(k[m],'|');r=s.split(q[1],',');S=r.length;for(T=0;T<S;T++){Y=r[T];Y=Y.toLowerCase();i=O.toLowerCase();H=i.indexOf(Y);if(H==0)P=q[0];}}}if(X)M=M?M:N?'Keyword Unavailable':'n/a';p=X&&p?p:'';t=X&&t?t:'';N=X&&N?N:'';O=X&&O?O:'';u=X&&u?u:'';M=X&&M?M:'';P=X&&P?P:'';s._referrer=p;s._referringDomain=t;s._partner=N;s._campaignID=O;s._campaign=u;s._keywords=M;s._channel=P;");1456/* Top 130 Search Engines (used by Channel Manager) */1457s.seList="altavista.co|q,r|AltaVista>aol.co.uk,search.aol.co.uk|query"1458+"|AOL - United Kingdom>search.aol.com,search.aol.ca|query,q|AOL.com "1459+"Search>ask.com,ask.co.uk|ask,q|Ask Jeeves>www.baidu.com|wd|Baidu>da"1460+"um.net,search.daum.net|q|Daum>google.co,googlesyndication.com|q,as_"1461+"q|Google>google.com.ar|q,as_q|Google - Argentina>google.com.au|q,as"1462+"_q|Google - Australia>google.at|q,as_q|Google - Austria>google.com."1463+"bh|q,as_q|Google - Bahrain>google.com.bd|q,as_q|Google - Bangladesh"1464+">google.be|q,as_q|Google - Belgium>google.com.bo|q,as_q|Google - Bo"1465+"livia>google.ba|q,as_q|Google - Bosnia-Hercegovina>google.com.br|q,"1466+"as_q|Google - Brasil>google.bg|q,as_q|Google - Bulgaria>google.ca|q"1467+",as_q|Google - Canada>google.cl|q,as_q|Google - Chile>google.cn|q,a"1468+"s_q|Google - China>google.com.co|q,as_q|Google - Colombia>google.co"1469+".cr|q,as_q|Google - Costa Rica>google.hr|q,as_q|Google - Croatia>go"1470+"ogle.cz|q,as_q|Google - Czech Republic>google.dk|q,as_q|Google - De"1471+"nmark>google.com.do|q,as_q|Google - Dominican Republic>google.com.e"1472+"c|q,as_q|Google - Ecuador>google.com.eg|q,as_q|Google - Egypt>googl"1473+"e.com.sv|q,as_q|Google - El Salvador>google.ee|q,as_q|Google - Esto"1474+"nia>google.fi|q,as_q|Google - Finland>google.fr|q,as_q|Google - Fra"1475+"nce>google.de|q,as_q|Google - Germany>google.gr|q,as_q|Google - Gre"1476+"ece>google.com.gt|q,as_q|Google - Guatemala>google.hn|q,as_q|Google"1477+" - Honduras>google.com.hk|q,as_q|Google - Hong Kong>google.hu|q,as_"1478+"q|Google - Hungary>google.co.in|q,as_q|Google - India>google.co.id|"1479+"q,as_q|Google - Indonesia>google.ie|q,as_q|Google - Ireland>google."1480+"is|q,as_q|Google - Island>google.co.il|q,as_q|Google - Israel>googl"1481+"e.it|q,as_q|Google - Italy>google.com.jm|q,as_q|Google - Jamaica>go"1482+"ogle.co.jp|q,as_q|Google - Japan>google.jo|q,as_q|Google - Jordan>g"1483+"oogle.co.ke|q,as_q|Google - Kenya>google.co.kr|q,as_q|Google - Kore"1484+"a>google.lv|q,as_q|Google - Latvia>google.lt|q,as_q|Google - Lithua"1485+"nia>google.com.my|q,as_q|Google - Malaysia>google.com.mt|q,as_q|Goo"1486+"gle - Malta>google.mu|q,as_q|Google - Mauritius>google.com.mx|q,as_"1487+"q|Google - Mexico>google.co.ma|q,as_q|Google - Morocco>google.nl|q,"1488+"as_q|Google - Netherlands>google.co.nz|q,as_q|Google - New Zealand>"1489+"google.com.ni|q,as_q|Google - Nicaragua>google.com.ng|q,as_q|Google"1490+" - Nigeria>google.no|q,as_q|Google - Norway>google.com.pk|q,as_q|Go"1491+"ogle - Pakistan>google.com.py|q,as_q|Google - Paraguay>google.com.p"1492+"e|q,as_q|Google - Peru>google.com.ph|q,as_q|Google - Philippines>go"1493+"ogle.pl|q,as_q|Google - Poland>google.pt|q,as_q|Google - Portugal>g"1494+"oogle.com.pr|q,as_q|Google - Puerto Rico>google.com.qa|q,as_q|Googl"1495+"e - Qatar>google.ro|q,as_q|Google - Romania>google.ru|q,as_q|Google"1496+" - Russia>google.st|q,as_q|Google - Sao Tome and Principe>google.co"1497+"m.sa|q,as_q|Google - Saudi Arabia>google.com.sg|q,as_q|Google - Sin"1498+"gapore>google.sk|q,as_q|Google - Slovakia>google.si|q,as_q|Google -"1499+" Slovenia>google.co.za|q,as_q|Google - South Africa>google.es|q,as_"1500+"q|Google - Spain>google.lk|q,as_q|Google - Sri Lanka>google.se|q,as"1501+"_q|Google - Sweden>google.ch|q,as_q|Google - Switzerland>google.com"1502+".tw|q,as_q|Google - Taiwan>google.co.th|q,as_q|Google - Thailand>go"1503+"ogle.bs|q,as_q|Google - The Bahamas>google.tt|q,as_q|Google - Trini"1504+"dad and Tobago>google.com.tr|q,as_q|Google - Turkey>google.com.ua|q"1505+",as_q|Google - Ukraine>google.ae|q,as_q|Google - United Arab Emirat"1506+"es>google.co.uk|q,as_q|Google - United Kingdom>google.com.uy|q,as_q"1507+"|Google - Uruguay>google.co.ve|q,as_q|Google - Venezuela>google.com"1508+".vn|q,as_q|Google - Viet Nam>google.co.vi|q,as_q|Google - Virgin Is"1509+"lands>icqit.com|q|icq>bing.com|q|Microsoft Bing>myway.com|searchfor"1510+"|MyWay.com>naver.com,search.naver.com|query|Naver>netscape.com|quer"1511+"y,search|Netscape Search>reference.com|q|Reference.com>seznam|w|Sez"1512+"nam.cz>abcsok.no|q|Startsiden>tiscali.it|key|Tiscali>virgilio.it|qs"1513+"|Virgilio>yahoo.com,search.yahoo.com|p|Yahoo!>ar.yahoo.com,ar.searc"1514+"h.yahoo.com|p|Yahoo! - Argentina>au.yahoo.com,au.search.yahoo.com|p"1515+"|Yahoo! - Australia>ca.yahoo.com,ca.search.yahoo.com|p|Yahoo! - Can"1516+"ada>fr.yahoo.com,fr.search.yahoo.com|p|Yahoo! - France>de.yahoo.com"1517+",de.search.yahoo.com|p|Yahoo! - Germany>hk.yahoo.com,hk.search.yaho"1518+"o.com|p|Yahoo! - Hong Kong>in.yahoo.com,in.search.yahoo.com|p|Yahoo"1519+"! - India>yahoo.co.jp,search.yahoo.co.jp|p,va|Yahoo! - Japan>kr.yah"1520+"oo.com,kr.search.yahoo.com|p|Yahoo! - Korea>mx.yahoo.com,mx.search."1521+"yahoo.com|p|Yahoo! - Mexico>ph.yahoo.com,ph.search.yahoo.com|p|Yaho"1522+"o! - Philippines>sg.yahoo.com,sg.search.yahoo.com|p|Yahoo! - Singap"1523+"ore>es.yahoo.com,es.search.yahoo.com|p|Yahoo! - Spain>telemundo.yah"1524+"oo.com,espanol.search.yahoo.com|p|Yahoo! - Spanish (US : Telemundo)"1525+">tw.yahoo.com,tw.search.yahoo.com|p|Yahoo! - Taiwan>uk.yahoo.com,uk"1526+".search.yahoo.com|p|Yahoo! - UK and Ireland>yandex|text|Yandex.ru>s"1527+"earch.cnn.com|query|CNN Web Search>search.earthlink.net|q|Earthlink"1528+" Search>search.comcast.net|q|Comcast Search>search.rr.com|qs|RoadRu"1529+"nner Search>optimum.net|q|Optimum Search";1530s.getGoogleRank=new Function("ce,ie,ev1,ev2,dn",""1531+"var s=this,dr,rd,p,pa,kr,kw,dn=dn||'';qp='resnum,cd';dr=s.referrer|"1532+"|typeof s.referrer!='undefined'?s.referrer:document.referrer;if(!dr"1533+"||!ce||!ie)return;rd=s.split(dr,'/');if(rd[2].substring(0,11)!='www"1534+".google.')return;kw=s.getQueryParam('q,as_q',' ',dr);if(!kw)return;"1535+"if(ev1)s[ev1]=kw;kr=rd[3].substring(0,4)=='url?'?s.getQueryParam(qp"1536+",'|',dr):'';if(kr.indexOf('|')>-1)kr=kr.substring(0,kr.indexOf('|')"1537+");if(!kr||kr=='0'){if(ev2)s[ev2]='no rank available';return;}if(ev2"1538+")s[ev2]=kr;p=s.products;pa=s.split(p,',');pa[0]=s.split(pa[0],';');"1539+"pa[0][0]=pa[0][0]||'';pa[0][1]=pa[0][1]||dn;pa[0][2]=pa[0][2]||'';p"1540+"a[0][3]=pa[0][3]||'';pa[0][4]=s.apl(pa[0][4],ie+'='+kr,'|',2);pa[0]"1541+"=s.join(pa[0],{delim:';'});pa=s.join(pa,{delim:','});s.events=s.apl"1542+"(s.events,ce,',',2);s.events=s.apl(s.events,ie,',',2);s.products=pa"1543+";return;");1544/* Function - read combined cookies v 0.36 */1545if(!s.__ccucr)1546{1547s.c_rr=s.c_r;1548s.__ccucr = true;1549function c_r(k)1550{1551var s=this,d=new Date,v=s.c_rr(k),c=s.c_rr('s_pers'),i,m,e;1552if(v)return v;k=s.ape(k);i=c.indexOf(' '+k+'=');c=i<0?s.c_rr('s_sess'):c;1553i=c.indexOf(' '+k+'=');m=i<0?i:c.indexOf('|',i);e=i<0?i:c.indexOf(';',i);1554m=m>0?m:e;v=i<0?'':s.epa(c.substring(i+2+k.length,m<0?c.length:m));1555if(m>0&&m!=e)if(parseInt(c.substring(m+1,e<0?c.length:e))<d.getTime())1556{d.setTime(d.getTime()-60000);s.c_w(s.epa(k),'',d);v='';}return v;1557}1558s.c_r=c_r;1559}1560/* Function - write combined cookies v 0.36 */1561if(!s.__ccucw)1562{1563s.c_wr=s.c_w;1564s.__ccucw = true;1565function c_w(k,v,e)1566{1567var s=this,d=new Date,ht=0,pn='s_pers',sn='s_sess',pc=0,sc=0,pv,sv,c,i,t;1568d.setTime(d.getTime()-60000);if(s.c_rr(k)) s.c_wr(k,'',d);k=s.ape(k);1569pv=s.c_rr(pn);i=pv.indexOf(' '+k+'=');if(i>-1)1570{pv=pv.substring(0,i)+pv.substring(pv.indexOf(';',i)+1);pc=1;}sv=s.c_rr(sn);1571i=sv.indexOf(' '+k+'=');if(i>-1){sv=sv.substring(0,i)+sv.substring(sv.indexOf(';',i)+1);1572sc=1;}d=new Date;if(e){if(e.getTime()>d.getTime()){pv+=' '+k+'='+s.ape(v)+'|'+e.getTime()+';';1573pc=1;}}else{sv+=' '+k+'='+s.ape(v)+';';sc=1;}sv=sv.replace(/%00/g,'');1574pv=pv.replace(/%00/g,'');if(sc) s.c_wr(sn,sv,0);if(pc){t=pv;while(t&&t.indexOf(';')!=-1){1575var t1=parseInt(t.substring(t.indexOf('|')+1,t.indexOf(';')));1576t=t.substring(t.indexOf(';')+1);ht=ht<t1?t1:ht;}d.setTime(ht);s.c_wr(pn,pv,d);}1577return v==s.c_r(s.epa(k));1578}1579s.c_w=c_w;1580}1581/************************** PLUGINS SECTION - END *************************/1582/* Module: Media */1583s.m_Media_c="var m=s.m_i('Media');if(m.completeByCloseOffset==undefined)m.completeByCloseOffset=1;if(m.completeCloseOffsetThreshold==undefined)m.completeCloseOffsetThreshold=1;m.cn=function(n){var m="1584+"this;return m.s.rep(m.s.rep(m.s.rep(n,\"\\n\",''),\"\\r\",''),'--**--','')};m.open=function(n,l,p,b){var m=this,i=new Object,tm=new Date,a='',x;n=m.cn(n);if(!l)l=-1;if(n&&p){if(!m.l)m.l=new Object;"1585+"if(m.l[n])m.close(n);if(b&&b.id)a=b.id;if(a)for (x in m.l)if(m.l[x]&&m.l[x].a==a)m.close(m.l[x].n);i.n=n;i.l=l;i.o=0;i.x=0;i.p=m.cn(m.playerName?m.playerName:p);i.a=a;i.t=0;i.ts=0;i.s=Math.floor(tm"1586+".getTime()/1000);i.lx=0;i.lt=i.s;i.lo=0;i.e='';i.to=-1;i.tc=0;i.fel=new Object;i.vt=0;i.sn=0;i.sx=\"\";i.sl=0;i.sg=0;i.sc=0;i.us=0;i.co=0;i.cot=0;i.lm=0;i.lom=0;m.l[n]=i}};m._delete=function(n){var"1587+" m=this,i;n=m.cn(n);i=m.l[n];m.l[n]=0;if(i&&i.m)clearTimeout(i.m.i)};m.close=function(n){this.e(n,0,-1)};m.play=function(n,o,sn,sx,sl){var m=this,i;i=m.e(n,1,o,sn,sx,sl);if(i&&!i.m){i.m=new Object;"1588+"i.m.m=new Function('var m=s_c_il['+m._in+'],i;if(m.l){i=m.l[\"'+m.s.rep(i.n,'\"','\\\\\"')+'\"];if(i){if(i.lx==1)m.e(i.n,3,-1);i.m.i=setTimeout(i.m.m,1000)}}');i.m.m()}};m.complete=function(n,o){th"1589+"is.e(n,5,o)};m.stop=function(n,o){this.e(n,2,o)};m.track=function(n){this.e(n,4,-1)};m.bcd=function(vo,i){var m=this,ns='a.media.',v=vo.linkTrackVars,e=vo.linkTrackEvents,pe='m_i',pev3,c=vo.context"1590+"Data,x;c['a.contentType']='video';c[ns+'name']=i.n;c[ns+'playerName']=i.p;if(i.l>0){c[ns+'length']=i.l;}c[ns+'timePlayed']=Math.floor(i.ts);if(!i.vt){c[ns+'view']=true;pe='m_s';i.vt=1}if(i.sx){c[ns"1591+"+'segmentNum']=i.sn;c[ns+'segment']=i.sx;if(i.sl>0)c[ns+'segmentLength']=i.sl;if(i.sc&&i.ts>0)c[ns+'segmentView']=true}if(!i.cot&&i.co){c[ns+\"complete\"]=true;i.cot=1}if(i.lm>0)c[ns+'milestone']=i"1592+".lm;if(i.lom>0)c[ns+'offsetMilestone']=i.lom;if(v)for(x in c)v+=',contextData.'+x;pev3='video';vo.pe=pe;vo.pev3=pev3;var d=m.contextDataMapping,y,a,l,n;if(d){vo.events2='';if(v)v+=',events';for(x i"1593+"n d){if(x.substring(0,ns.length)==ns)y=x.substring(ns.length);else y=\"\";a=d[x];if(typeof(a)=='string'){l=m.s.sp(a,',');for(n=0;n<l.length;n++){a=l[n];if(x==\"a.contentType\"){if(v)v+=','+a;vo[a]="1594+"c[x]}else if(y){if(y=='view'||y=='segmentView'||y=='complete'||y=='timePlayed'){if(e)e+=','+a;if(c[x]){if(y=='timePlayed'){if(c[x])vo.events2+=(vo.events2?',':'')+a+'='+c[x];}else if(c[x])vo.events"1595+"2+=(vo.events2?',':'')+a}}else if(y=='segment'&&c[x+'Num']){if(v)v+=','+a;vo[a]=c[x+'Num']+':'+c[x]}else{if(v)v+=','+a;vo[a]=c[x]}}}}else if(y=='milestones'||y=='offsetMilestones'){x=x.substring(0,"1596+"x.length-1);if(c[x]&&d[x+'s'][c[x]]){if(e)e+=','+d[x+'s'][c[x]];vo.events2+=(vo.events2?',':'')+d[x+'s'][c[x]]}}}vo.contextData=0}vo.linkTrackVars=v;vo.linkTrackEvents=e};m.bpe=function(vo,i,x,o){v"1597+"ar m=this,pe='m_o',pev3,d='--**--';pe='m_o';if(!i.vt){pe='m_s';i.vt=1}else if(x==4)pe='m_i';pev3=m.s.ape(i.n)+d+Math.floor(i.l>0?i.l:1)+d+m.s.ape(i.p)+d+Math.floor(i.t)+d+i.s+d+(i.to>=0?'L'+Math.fl"1598+"oor(i.to):'')+i.e+(x!=0&&x!=2?'L'+Math.floor(o):'');vo.pe=pe;vo.pev3=pev3};m.e=function(n,x,o,sn,sx,sl,pd){var m=this,i,tm=new Date,ts=Math.floor(tm.getTime()/1000),c,l,v=m.trackVars,e=m.trackEvent"1599+"s,ti=m.trackSeconds,tp=m.trackMilestones,to=m.trackOffsetMilestones,sm=m.segmentByMilestones,so=m.segmentByOffsetMilestones,z=new Array,j,t=1,w=new Object,x,ek,tc,vo=new Object;n=m.cn(n);i=n&&m.l&&"1600+"m.l[n]?m.l[n]:0;if(i){if(o<0){if(i.lx==1&&i.lt>0)o=(ts-i.lt)+i.lo;else o=i.lo}if(i.l>0)o=o<i.l?o:i.l;if(o<0)o=0;i.o=o;if(i.l>0){i.x=(i.o/i.l)*100;i.x=i.x>100?100:i.x}if(i.lo<0)i.lo=o;tc=i.tc;w.name"1601+"=n;w.length=i.l;w.openTime=new Date;w.openTime.setTime(i.s*1000);w.offset=i.o;w.percent=i.x;w.playerName=i.p;if(i.to<0)w.mediaEvent=w.event='OPEN';else w.mediaEvent=w.event=(x==1?'PLAY':(x==2?'STOP"1602+"':(x==3?'MONITOR':(x==4?'TRACK':(x==5?'COMPLETE':('CLOSE'))))));if(!pd){if(i.pd)pd=i.pd}else i.pd=pd;w.player=pd;if(x>2||(x!=i.lx&&(x!=2||i.lx==1))) {if(!sx){sn=i.sn;sx=i.sx;sl=i.sl}if(x){if(x==1)i"1603+".lo=o;if((x<=3||x==5)&&i.to>=0){t=0;v=e=\"None\";if(i.to!=o){l=i.to;if(l>o){l=i.lo;if(l>o)l=o}z=tp?m.s.sp(tp,','):0;if(i.l>0&&z&&o>=l)for(j=0;j<z.length;j++){c=z[j]?parseFloat(''+z[j]):0;if(c&&(l/i"1604+".l)*100<c&&i.x>=c){t=1;j=z.length;w.mediaEvent=w.event='MILESTONE';i.lm=w.milestone=c}}z=to?m.s.sp(to,','):0;if(z&&o>=l)for(j=0;j<z.length;j++){c=z[j]?parseFloat(''+z[j]):0;if(c&&l<c&&o>=c){t=1;j=z"1605+".length;w.mediaEvent=w.event='OFFSET_MILESTONE';i.lom=w.offsetMilestone=c}}}}if(i.sg||!sx){if(sm&&tp&&i.l>0){z=m.s.sp(tp,',');if(z){z[z.length]='100';l=0;for(j=0;j<z.length;j++){c=z[j]?parseFloat('"1606+"'+z[j]):0;if(c){if(i.x<c){sn=j+1;sx='M:'+l+'-'+c;j=z.length}l=c}}}}else if(so&&to){z=m.s.sp(to,',');if(z){z[z.length]=''+(i.l>0?i.l:'E');l=0;for(j=0;j<z.length;j++){c=z[j]?parseFloat(''+z[j]):0;if("1607+"c||z[j]=='E'){if(o<c||z[j]=='E'){sn=j+1;sx='O:'+l+'-'+c;j=z.length}l=c}}}}if(sx)i.sg=1}if((sx||i.sx)&&sx!=i.sx){i.us=1;if(!i.sx){i.sn=sn;i.sx=sx}if(i.to>=0)t=1}if(x>=2&&i.lo<o){i.t+=o-i.lo;i.ts+=o-"1608+"i.lo}if(x<=2||(x==3&&!i.lx)){i.e+=(x==1||x==3?'S':'E')+Math.floor(o);i.lx=(x==3?1:x)}if(!t&&i.to>=0&&x<=3){ti=ti?ti:0;if(ti&&i.ts>=ti){t=1;w.mediaEvent=w.event='SECONDS'}}i.lt=ts;i.lo=o}if(!x||i.x>"1609+"=100){x=0;m.e(n,2,-1,0,0,-1,pd);v=e=\"None\";w.mediaEvent=w.event=\"CLOSE\"}if(x==5||(m.completeByCloseOffset&&(!x||i.x>=100)&&i.l>0&&o>=i.l-m.completeCloseOffsetThreshold)){w.complete=i.co=1;t=1}e"1610+"k=w.mediaEvent;if(ek=='MILESTONE')ek+='_'+w.milestone;else if(ek=='OFFSET_MILESTONE')ek+='_'+w.offsetMilestone;if(!i.fel[ek]) {w.eventFirstTime=true;i.fel[ek]=1}else w.eventFirstTime=false;w.timePl"1611+"ayed=i.t;w.segmentNum=i.sn;w.segment=i.sx;w.segmentLength=i.sl;if(m.monitor&&x!=4)m.monitor(m.s,w);if(x==0)m._delete(n);if(t&&i.tc==tc){vo=new Object;vo.contextData=new Object;vo.linkTrackVars=v;vo"1612+".linkTrackEvents=e;if(!vo.linkTrackVars)vo.linkTrackVars='';if(!vo.linkTrackEvents)vo.linkTrackEvents='';if(m.trackUsingContextData)m.bcd(vo,i);else m.bpe(vo,i,x,o);m.s.t(vo);if(i.us){i.sn=sn;i.sx="1613+"sx;i.sc=1;i.us=0}else if(i.ts>0)i.sc=0;i.e=\"\";i.lm=i.lom=0;i.ts-=Math.floor(i.ts);i.to=o;i.tc++}}}return i};m.ae=function(n,l,p,x,o,sn,sx,sl,pd,b){var m=this,r=0;if(n&&(!m.autoTrackMediaLengthReq"1614+"uired||(length&&length>0)) &&p){if(!m.l||!m.l[n]){if(x==1||x==3){m.open(n,l,p,b);r=1}}else r=1;if(r)m.e(n,x,o,sn,sx,sl,pd)}};m.a=function(o,t){var m=this,i=o.id?o.id:o.name,n=o.name,p=0,v,c,c1,c2,x"1615+"c=m.s.h,x,e,f1,f2='s_media_'+m._in+'_oc',f3='s_media_'+m._in+'_t',f4='s_media_'+m._in+'_s',f5='s_media_'+m._in+'_l',f6='s_media_'+m._in+'_m',f7='s_media_'+m._in+'_c',tcf,w;if(!i){if(!m.c)m.c=0;i='s"1616+"_media_'+m._in+'_'+m.c;m.c++}if(!o.id)o.id=i;if(!o.name)o.name=n=i;if(!m.ol)m.ol=new Object;if(m.ol[i])return;m.ol[i]=o;if(!xc)xc=m.s.b;tcf=new Function('o','var e,p=0;try{if(o.versionInfo&&o.curre"1617+"ntMedia&&o.controls)p=1}catch(e){p=0}return p');p=tcf(o);if(!p){tcf=new Function('o','var e,p=0,t;try{t=o.GetQuickTimeVersion();if(t)p=2}catch(e){p=0}return p');p=tcf(o);if(!p){tcf=new Function('o'"1618+",'var e,p=0,t;try{t=o.GetVersionInfo();if(t)p=3}catch(e){p=0}return p');p=tcf(o)}}v=\"var m=s_c_il[\"+m._in+\"],o=m.ol['\"+i+\"']\";if(p==1){p='Windows Media Player '+o.versionInfo;c1=v+',n,p,l,x=-"1619+"1,cm,c,mn;if(o){cm=o.currentMedia;c=o.controls;if(cm&&c){mn=cm.name?cm.name:c.URL;l=cm.duration;p=c.currentPosition;n=o.playState;if(n){if(n==8)x=0;if(n==3)x=1;if(n==1||n==2||n==4||n==5||n==6)x=2;}"1620+"';c2='if(x>=0)m.ae(mn,l,\"'+p+'\",x,x!=2?p:-1,0,\"\",0,0,o)}}';c=c1+c2;if(m.s.isie&&xc){x=m.s.d.createElement('script');x.language='jscript';x.type='text/javascript';x.htmlFor=i;x.event='PlayStateC"1621+"hange(NewState)';x.defer=true;x.text=c;xc.appendChild(x);o[f6]=new Function(c1+'if(n==3){x=3;'+c2+'}setTimeout(o.'+f6+',5000)');o[f6]()}}if(p==2){p='QuickTime Player '+(o.GetIsQuickTimeRegistered()"1622+"?'Pro ':'')+o.GetQuickTimeVersion();f1=f2;c=v+',n,x,t,l,p,p2,mn;if(o){mn=o.GetMovieName()?o.GetMovieName():o.GetURL();n=o.GetRate();t=o.GetTimeScale();l=o.GetDuration()/t;p=o.GetTime()/t;p2=o.'+f5+"1623+"';if(n!=o.'+f4+'||p<p2||p-p2>5){x=2;if(n!=0)x=1;else if(p>=l)x=0;if(p<p2||p-p2>5)m.ae(mn,l,\"'+p+'\",2,p2,0,\"\",0,0,o);m.ae(mn,l,\"'+p+'\",x,x!=2?p:-1,0,\"\",0,0,o)}if(n>0&&o.'+f7+'>=10){m.ae(mn,l"1624+",\"'+p+'\",3,p,0,\"\",0,0,o);o.'+f7+'=0}o.'+f7+'++;o.'+f4+'=n;o.'+f5+'=p;setTimeout(\"'+v+';o.'+f2+'(0,0)\",500)}';o[f1]=new Function('a','b',c);o[f4]=-1;o[f7]=0;o[f1](0,0)}if(p==3){p='RealPlayer '"1625+"+o.GetVersionInfo();f1=n+'_OnPlayStateChange';c1=v+',n,x=-1,l,p,mn;if(o){mn=o.GetTitle()?o.GetTitle():o.GetSource();n=o.GetPlayState();l=o.GetLength()/1000;p=o.GetPosition()/1000;if(n!=o.'+f4+'){if"1626+"(n==3)x=1;if(n==0||n==2||n==4||n==5)x=2;if(n==0&&(p>=l||p==0))x=0;if(x>=0)m.ae(mn,l,\"'+p+'\",x,x!=2?p:-1,0,\"\",0,0,o)}if(n==3&&(o.'+f7+'>=10||!o.'+f3+')){m.ae(mn,l,\"'+p+'\",3,p,0,\"\",0,0,o);o.'"1627+"+f7+'=0}o.'+f7+'++;o.'+f4+'=n;';c2='if(o.'+f2+')o.'+f2+'(o,n)}';if(m.s.wd[f1])o[f2]=m.s.wd[f1];m.s.wd[f1]=new Function('a','b',c1+c2);o[f1]=new Function('a','b',c1+'setTimeout(\"'+v+';o.'+f1+'(0,0)"1628+"\",o.'+f3+'?500:5000);'+c2);o[f4]=-1;if(m.s.isie)o[f3]=1;o[f7]=0;o[f1](0,0)}};m.as=new Function('e','var m=s_c_il['+m._in+'],l,n;if(m.autoTrack&&m.s.d.getElementsByTagName){l=m.s.d.getElementsByTag"1629+"Name(m.s.isie?\"OBJECT\":\"EMBED\");if(l)for(n=0;n<l.length;n++)m.a(l[n]);}');if(s.wd.attachEvent)s.wd.attachEvent('onload',m.as);else if(s.wd.addEventListener)s.wd.addEventListener('load',m.as,fal"1630+"se);if(m.onLoad)m.onLoad(s,m)";1631s.m_i("Media");1632/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/1633var s_code='',s_objectID;function s_gi(un,pg,ss){var c="s.version='H.24.4';s.an=s_an;s.logDebug=function(m){var s=this,tcf=new Function('var e;try{console.log(\"'+s.rep(s.rep(m,\"\\n\",\"\\\\n\"),\""1634+"\\\"\",\"\\\\\\\"\")+'\");}catch(e){}');tcf()};s.cls=function(x,c){var i,y='';if(!c)c=this.an;for(i=0;i<x.length;i++){n=x.substring(i,i+1);if(c.indexOf(n)>=0)y+=n}return y};s.fl=function(x,l){retur"1635+"n x?(''+x).substring(0,l):x};s.co=function(o){if(!o)return o;var n=new Object,x;for(x in o)if(x.indexOf('select')<0&&x.indexOf('filter')<0)n[x]=o[x];return n};s.num=function(x){x=''+x;for(var p=0;p"1636+"<x.length;p++)if(('0123456789').indexOf(x.substring(p,p+1))<0)return 0;return 1};s.rep=s_rep;s.sp=s_sp;s.jn=s_jn;s.ape=function(x){var s=this,h='0123456789ABCDEF',i,c=s.charSet,n,l,e,y='';c=c?c.toU"1637+"pperCase():'';if(x){x=''+x;if(s.em==3)x=encodeURIComponent(x);else if(c=='AUTO'&&('').charCodeAt){for(i=0;i<x.length;i++){c=x.substring(i,i+1);n=x.charCodeAt(i);if(n>127){l=0;e='';while(n||l<4){e=h"1638+".substring(n%16,n%16+1)+e;n=(n-n%16)/16;l++}y+='%u'+e}else if(c=='+')y+='%2B';else y+=escape(c)}x=y}else x=escape(''+x);x=s.rep(x,'+','%2B');if(c&&c!='AUTO'&&s.em==1&&x.indexOf('%u')<0&&x.indexOf('"1639+"%U')<0){i=x.indexOf('%');while(i>=0){i++;if(h.substring(8).indexOf(x.substring(i,i+1).toUpperCase())>=0)return x.substring(0,i)+'u00'+x.substring(i);i=x.indexOf('%',i)}}}return x};s.epa=function(x)"1640+"{var s=this;if(x){x=s.rep(''+x,'+',' ');return s.em==3?decodeURIComponent(x):unescape(x)}return x};s.pt=function(x,d,f,a){var s=this,t=x,z=0,y,r;while(t){y=t.indexOf(d);y=y<0?t.length:y;t=t.substri"1641+"ng(0,y);r=s[f](t,a);if(r)return r;z+=y+d.length;t=x.substring(z,x.length);t=z<x.length?t:''}return ''};s.isf=function(t,a){var c=a.indexOf(':');if(c>=0)a=a.substring(0,c);c=a.indexOf('=');if(c>=0)a"1642+"=a.substring(0,c);if(t.substring(0,2)=='s_')t=t.substring(2);return (t!=''&&t==a)};s.fsf=function(t,a){var s=this;if(s.pt(a,',','isf',t))s.fsg+=(s.fsg!=''?',':'')+t;return 0};s.fs=function(x,f){var"1643+" s=this;s.fsg='';s.pt(x,',','fsf',f);return s.fsg};s.mpc=function(m,a){var s=this,c,l,n,v;v=s.d.visibilityState;if(!v)v=s.d.webkitVisibilityState;if(v&&v=='prerender'){if(!s.mpq){s.mpq=new Array;l="1644+"s.sp('webkitvisibilitychange,visibilitychange',',');for(n=0;n<l.length;n++){s.d.addEventListener(l[n],new Function('var s=s_c_il['+s._in+'],c,v;v=s.d.visibilityState;if(!v)v=s.d.webkitVisibilitySta"1645+"te;if(s.mpq&&v==\"visible\"){while(s.mpq.length>0){c=s.mpq.shift();s[c.m].apply(s,c.a)}s.mpq=0}'),false)}}c=new Object;c.m=m;c.a=a;s.mpq.push(c);return 1}return 0};s.si=function(){var s=this,i,k,v,"1646+"c=s_gi+'var s=s_gi(\"'+s.oun+'\");s.sa(\"'+s.un+'\");';for(i=0;i<s.va_g.length;i++){k=s.va_g[i];v=s[k];if(v!=undefined){if(typeof(v)!='number')c+='s.'+k+'=\"'+s_fe(v)+'\";';else c+='s.'+k+'='+v+';'"1647+"}}c+=\"s.lnk=s.eo=s.linkName=s.linkType=s.wd.s_objectID=s.ppu=s.pe=s.pev1=s.pev2=s.pev3='';\";return c};s.c_d='';s.c_gdf=function(t,a){var s=this;if(!s.num(t))return 1;return 0};s.c_gd=function(){v"1648+"ar s=this,d=s.wd.location.hostname,n=s.fpCookieDomainPeriods,p;if(!n)n=s.cookieDomainPeriods;if(d&&!s.c_d){n=n?parseInt(n):2;n=n>2?n:2;p=d.lastIndexOf('.');if(p>=0){while(p>=0&&n>1){p=d.lastIndexOf"1649+"('.',p-1);n--}s.c_d=p>0&&s.pt(d,'.','c_gdf',0)?d.substring(p):d}}return s.c_d};s.c_r=function(k){var s=this;k=s.ape(k);var c=' '+s.d.cookie,i=c.indexOf(' '+k+'='),e=i<0?i:c.indexOf(';',i),v=i<0?'':"1650+"s.epa(c.substring(i+2+k.length,e<0?c.length:e));return v!='[[B]]'?v:''};s.c_w=function(k,v,e){var s=this,d=s.c_gd(),l=s.cookieLifetime,t;v=''+v;l=l?(''+l).toUpperCase():'';if(e&&l!='SESSION'&&l!='N"1651+"ONE'){t=(v!=''?parseInt(l?l:0):-60);if(t){e=new Date;e.setTime(e.getTime()+(t*1000))}}if(k&&l!='NONE'){s.d.cookie=k+'='+s.ape(v!=''?v:'[[B]]')+'; path=/;'+(e&&l!='SESSION'?' expires='+e.toGMTString"1652+"()+';':'')+(d?' domain='+d+';':'');return s.c_r(k)==v}return 0};s.eh=function(o,e,r,f){var s=this,b='s_'+e+'_'+s._in,n=-1,l,i,x;if(!s.ehl)s.ehl=new Array;l=s.ehl;for(i=0;i<l.length&&n<0;i++){if(l[i"1653+"].o==o&&l[i].e==e)n=i}if(n<0){n=i;l[n]=new Object}x=l[n];x.o=o;x.e=e;f=r?x.b:f;if(r||f){x.b=r?0:o[e];x.o[e]=f}if(x.b){x.o[b]=x.b;return b}return 0};s.cet=function(f,a,t,o,b){var s=this,r,tcf;if(s.a"1654+"pv>=5&&(!s.isopera||s.apv>=7)){tcf=new Function('s','f','a','t','var e,r;try{r=s[f](a)}catch(e){r=s[t](e)}return r');r=tcf(s,f,a,t)}else{if(s.ismac&&s.u.indexOf('MSIE 4')>=0)r=s[b](a);else{s.eh(s.w"1655+"d,'onerror',0,o);r=s[f](a);s.eh(s.wd,'onerror',1)}}return r};s.gtfset=function(e){var s=this;return s.tfs};s.gtfsoe=new Function('e','var s=s_c_il['+s._in+'],c;s.eh(window,\"onerror\",1);s.etfs=1;c"1656+"=s.t();if(c)s.d.write(c);s.etfs=0;return true');s.gtfsfb=function(a){return window};s.gtfsf=function(w){var s=this,p=w.parent,l=w.location;s.tfs=w;if(p&&p.location!=l&&p.location.host==l.host){s.tf"1657+"s=p;return s.gtfsf(s.tfs)}return s.tfs};s.gtfs=function(){var s=this;if(!s.tfs){s.tfs=s.wd;if(!s.etfs)s.tfs=s.cet('gtfsf',s.tfs,'gtfset',s.gtfsoe,'gtfsfb')}return s.tfs};s.mrq=function(u){var s=thi"1658+"s,l=s.rl[u],n,r;s.rl[u]=0;if(l)for(n=0;n<l.length;n++){r=l[n];s.mr(0,0,r.r,r.t,r.u)}};s.flushBufferedRequests=function(){};s.mr=function(sess,q,rs,ta,u){var s=this,dc=s.dc,t1=s.trackingServer,t2=s."1659+"trackingServerSecure,tb=s.trackingServerBase,p='.sc',ns=s.visitorNamespace,un=s.cls(u?u:(ns?ns:s.fun)),r=new Object,l,imn='s_i_'+(un),im,b,e;if(!rs){if(t1){if(t2&&s.ssl)t1=t2}else{if(!tb)tb='2o7.ne"1660+"t';if(dc)dc=(''+dc).toLowerCase();else dc='d1';if(tb=='2o7.net'){if(dc=='d1')dc='112';else if(dc=='d2')dc='122';p=''}t1=un+'.'+dc+'.'+p+tb}rs='http'+(s.ssl?'s':'')+'://'+t1+'/b/ss/'+s.un+'/'+(s.mob"1661+"ile?'5.1':'1')+'/'+s.version+(s.tcn?'T':'')+'/'+sess+'?AQB=1&ndh=1'+(q?q:'')+'&AQE=1';if(s.isie&&!s.ismac)rs=s.fl(rs,2047)}if(s.d.images&&s.apv>=3&&(!s.isopera||s.apv>=7)&&(s.ns6<0||s.apv>=6.1)){if"1662+"(!s.rc)s.rc=new Object;if(!s.rc[un]){s.rc[un]=1;if(!s.rl)s.rl=new Object;s.rl[un]=new Array;setTimeout('if(window.s_c_il)window.s_c_il['+s._in+'].mrq(\"'+un+'\")',750)}else{l=s.rl[un];if(l){r.t=ta;"1663+"r.u=un;r.r=rs;l[l.length]=r;return ''}imn+='_'+s.rc[un];s.rc[un]++}im=s.wd[imn];if(!im)im=s.wd[imn]=new Image;im.s_l=0;im.onload=new Function('e','this.s_l=1;var wd=window,s;if(wd.s_c_il){s=wd.s_c_"1664+"il['+s._in+'];s.mrq(\"'+un+'\");s.nrs--;if(!s.nrs)s.m_m(\"rr\")}');if(!s.nrs){s.nrs=1;s.m_m('rs')}else s.nrs++;if(s.debugTracking){var d='AppMeasurement Debug: '+rs,dl=s.sp(rs,'&'),dln;for(dln=0;dl"1665+"n<dl.length;dln++)d+=\"\\n\\t\"+s.epa(dl[dln]);s.logDebug(d)}im.src=rs;if((!ta||ta=='_self'||ta=='_top'||(s.wd.name&&ta==s.wd.name))&&rs.indexOf('&pe=')>=0){b=e=new Date;while(!im.s_l&&e.getTime()-"1666+"b.getTime()<500)e=new Date}return ''}return '<im'+'g sr'+'c=\"'+rs+'\" width=1 height=1 border=0 alt=\"\">'};s.gg=function(v){var s=this;if(!s.wd['s_'+v])s.wd['s_'+v]='';return s.wd['s_'+v]};s.glf="1667+"function(t,a){if(t.substring(0,2)=='s_')t=t.substring(2);var s=this,v=s.gg(t);if(v)s[t]=v};s.gl=function(v){var s=this;if(s.pg)s.pt(v,',','glf',0)};s.rf=function(x){var s=this,y,i,j,h,p,l=0,q,a,b='"1668+"',c='',t;if(x&&x.length>255){y=''+x;i=y.indexOf('?');if(i>0){q=y.substring(i+1);y=y.substring(0,i);h=y.toLowerCase();j=0;if(h.substring(0,7)=='http://')j+=7;else if(h.substring(0,8)=='https://')j+="1669+"8;i=h.indexOf(\"/\",j);if(i>0){h=h.substring(j,i);p=y.substring(i);y=y.substring(0,i);if(h.indexOf('google')>=0)l=',q,ie,start,search_key,word,kw,cd,';else if(h.indexOf('yahoo.co')>=0)l=',p,ei,';if"1670+"(l&&q){a=s.sp(q,'&');if(a&&a.length>1){for(j=0;j<a.length;j++){t=a[j];i=t.indexOf('=');if(i>0&&l.indexOf(','+t.substring(0,i)+',')>=0)b+=(b?'&':'')+t;else c+=(c?'&':'')+t}if(b&&c)q=b+'&'+c;else c='"1671+"'}i=253-(q.length-c.length)-y.length;x=y+(i>0?p.substring(0,i):'')+'?'+q}}}}return x};s.s2q=function(k,v,vf,vfp,f){var s=this,qs='',sk,sv,sp,ss,nke,nk,nf,nfl=0,nfn,nfm;if(k==\"contextData\")k=\"c\""1672+";if(v){for(sk in v)if((!f||sk.substring(0,f.length)==f)&&v[sk]&&(!vf||vf.indexOf(','+(vfp?vfp+'.':'')+sk+',')>=0)&&(!Object||!Object.prototype||!Object.prototype[sk])){nfm=0;if(nfl)for(nfn=0;nfn<nf"1673+"l.length;nfn++)if(sk.substring(0,nfl[nfn].length)==nfl[nfn])nfm=1;if(!nfm){if(qs=='')qs+='&'+k+'.';sv=v[sk];if(f)sk=sk.substring(f.length);if(sk.length>0){nke=sk.indexOf('.');if(nke>0){nk=sk.substr"1674+"ing(0,nke);nf=(f?f:'')+nk+'.';if(!nfl)nfl=new Array;nfl[nfl.length]=nf;qs+=s.s2q(nk,v,vf,vfp,nf)}else{if(typeof(sv)=='boolean'){if(sv)sv='true';else sv='false'}if(sv){if(vfp=='retrieveLightData'&&f"1675+".indexOf('.contextData.')<0){sp=sk.substring(0,4);ss=sk.substring(4);if(sk=='transactionID')sk='xact';else if(sk=='channel')sk='ch';else if(sk=='campaign')sk='v0';else if(s.num(ss)){if(sp=='prop')s"1676+"k='c'+ss;else if(sp=='eVar')sk='v'+ss;else if(sp=='list')sk='l'+ss;else if(sp=='hier'){sk='h'+ss;sv=sv.substring(0,255)}}}qs+='&'+s.ape(sk)+'='+s.ape(sv)}}}}}if(qs!='')qs+='&.'+k}return qs};s.hav=f"1677+"unction(){var s=this,qs='',l,fv='',fe='',mn,i,e;if(s.lightProfileID){l=s.va_m;fv=s.lightTrackVars;if(fv)fv=','+fv+','+s.vl_mr+','}else{l=s.va_t;if(s.pe||s.linkType){fv=s.linkTrackVars;fe=s.linkTrac"1678+"kEvents;if(s.pe){mn=s.pe.substring(0,1).toUpperCase()+s.pe.substring(1);if(s[mn]){fv=s[mn].trackVars;fe=s[mn].trackEvents}}}if(fv)fv=','+fv+','+s.vl_l+','+s.vl_l2;if(fe){fe=','+fe+',';if(fv)fv+=',e"1679+"vents,'}if (s.events2)e=(e?',':'')+s.events2}for(i=0;i<l.length;i++){var k=l[i],v=s[k],b=k.substring(0,4),x=k.substring(4),n=parseInt(x),q=k;if(!v)if(k=='events'&&e){v=e;e=''}if(v&&(!fv||fv.indexOf"1680+"(','+k+',')>=0)&&k!='linkName'&&k!='linkType'){if(k=='timestamp')q='ts';else if(k=='dynamicVariablePrefix')q='D';else if(k=='visitorID')q='vid';else if(k=='pageURL'){q='g';v=s.fl(v,255)}else if(k=="1681+"'referrer'){q='r';v=s.fl(s.rf(v),255)}else if(k=='vmk'||k=='visitorMigrationKey')q='vmt';else if(k=='visitorMigrationServer'){q='vmf';if(s.ssl&&s.visitorMigrationServerSecure)v=''}else if(k=='visit"1682+"orMigrationServerSecure'){q='vmf';if(!s.ssl&&s.visitorMigrationServer)v=''}else if(k=='charSet'){q='ce';if(v.toUpperCase()=='AUTO')v='ISO8859-1';else if(s.em==2||s.em==3)v='UTF-8'}else if(k=='visit"1683+"orNamespace')q='ns';else if(k=='cookieDomainPeriods')q='cdp';else if(k=='cookieLifetime')q='cl';else if(k=='variableProvider')q='vvp';else if(k=='currencyCode')q='cc';else if(k=='channel')q='ch';el"1684+"se if(k=='transactionID')q='xact';else if(k=='campaign')q='v0';else if(k=='resolution')q='s';else if(k=='colorDepth')q='c';else if(k=='javascriptVersion')q='j';else if(k=='javaEnabled')q='v';else i"1685+"f(k=='cookiesEnabled')q='k';else if(k=='browserWidth')q='bw';else if(k=='browserHeight')q='bh';else if(k=='connectionType')q='ct';else if(k=='homepage')q='hp';else if(k=='plugins')q='p';else if(k=="1686+"'events'){if(e)v+=(v?',':'')+e;if(fe)v=s.fs(v,fe)}else if(k=='events2')v='';else if(k=='contextData'){qs+=s.s2q('c',s[k],fv,k,0);v=''}else if(k=='lightProfileID')q='mtp';else if(k=='lightStoreForSe"1687+"conds'){q='mtss';if(!s.lightProfileID)v=''}else if(k=='lightIncrementBy'){q='mti';if(!s.lightProfileID)v=''}else if(k=='retrieveLightProfiles')q='mtsr';else if(k=='deleteLightProfiles')q='mtsd';els"1688+"e if(k=='retrieveLightData'){if(s.retrieveLightProfiles)qs+=s.s2q('mts',s[k],fv,k,0);v=''}else if(s.num(x)){if(b=='prop')q='c'+n;else if(b=='eVar')q='v'+n;else if(b=='list')q='l'+n;else if(b=='hier"1689+"'){q='h'+n;v=s.fl(v,255)}}if(v)qs+='&'+s.ape(q)+'='+(k.substring(0,3)!='pev'?s.ape(v):v)}}return qs};s.ltdf=function(t,h){t=t?t.toLowerCase():'';h=h?h.toLowerCase():'';var qi=h.indexOf('?');h=qi>=0"1690+"?h.substring(0,qi):h;if(t&&h.substring(h.length-(t.length+1))=='.'+t)return 1;return 0};s.ltef=function(t,h){t=t?t.toLowerCase():'';h=h?h.toLowerCase():'';if(t&&h.indexOf(t)>=0)return 1;return 0};s"1691+".lt=function(h){var s=this,lft=s.linkDownloadFileTypes,lef=s.linkExternalFilters,lif=s.linkInternalFilters;lif=lif?lif:s.wd.location.hostname;h=h.toLowerCase();if(s.trackDownloadLinks&&lft&&s.pt(lf"1692+"t,',','ltdf',h))return 'd';if(s.trackExternalLinks&&h.substring(0,1)!='#'&&(lef||lif)&&(!lef||s.pt(lef,',','ltef',h))&&(!lif||!s.pt(lif,',','ltef',h)))return 'e';return ''};s.lc=new Function('e','v"1693+"ar s=s_c_il['+s._in+'],b=s.eh(this,\"onclick\");s.lnk=s.co(this);s.t();s.lnk=0;if(b)return this[b](e);return true');s.bc=new Function('e','var s=s_c_il['+s._in+'],f,tcf;if(s.d&&s.d.all&&s.d.all.cpp"1694+"XYctnr)return;s.eo=e.srcElement?e.srcElement:e.target;tcf=new Function(\"s\",\"var e;try{if(s.eo&&(s.eo.tagName||s.eo.parentElement||s.eo.parentNode))s.t()}catch(e){}\");tcf(s);s.eo=0');s.oh=functi"1695+"on(o){var s=this,l=s.wd.location,h=o.href?o.href:'',i,j,k,p;i=h.indexOf(':');j=h.indexOf('?');k=h.indexOf('/');if(h&&(i<0||(j>=0&&i>j)||(k>=0&&i>k))){p=o.protocol&&o.protocol.length>1?o.protocol:(l"1696+".protocol?l.protocol:'');i=l.pathname.lastIndexOf('/');h=(p?p+'//':'')+(o.host?o.host:(l.host?l.host:''))+(h.substring(0,1)!='/'?l.pathname.substring(0,i<0?0:i)+'/':'')+h}return h};s.ot=function(o)"1697+"{var t=o.tagName;if(o.tagUrn||(o.scopeName&&o.scopeName.toUpperCase()!='HTML'))return '';t=t&&t.toUpperCase?t.toUpperCase():'';if(t=='SHAPE')t='';if(t){if((t=='INPUT'||t=='BUTTON')&&o.type&&o.type."1698+"toUpperCase)t=o.type.toUpperCase();else if(!t&&o.href)t='A';}return t};s.oid=function(o){var s=this,t=s.ot(o),p,c,n='',x=0;if(t&&!o.s_oid){p=o.protocol;c=o.onclick;if(o.href&&(t=='A'||t=='AREA')&&("1699+"!c||!p||p.toLowerCase().indexOf('javascript')<0))n=s.oh(o);else if(c){n=s.rep(s.rep(s.rep(s.rep(''+c,\"\\r\",''),\"\\n\",''),\"\\t\",''),' ','');x=2}else if(t=='INPUT'||t=='SUBMIT'){if(o.value)n=o."1700+"value;else if(o.innerText)n=o.innerText;else if(o.textContent)n=o.textContent;x=3}else if(o.src&&t=='IMAGE')n=o.src;if(n){o.s_oid=s.fl(n,100);o.s_oidt=x}}return o.s_oid};s.rqf=function(t,un){var s="1701+"this,e=t.indexOf('='),u=e>=0?t.substring(0,e):'',q=e>=0?s.epa(t.substring(e+1)):'';if(u&&q&&(','+u+',').indexOf(','+un+',')>=0){if(u!=s.un&&s.un.indexOf(',')>=0)q='&u='+u+q+'&u=0';return q}return '"1702+"'};s.rq=function(un){if(!un)un=this.un;var s=this,c=un.indexOf(','),v=s.c_r('s_sq'),q='';if(c<0)return s.pt(v,'&','rqf',un);return s.pt(un,',','rq',0)};s.sqp=function(t,a){var s=this,e=t.indexOf('="1703+"'),q=e<0?'':s.epa(t.substring(e+1));s.sqq[q]='';if(e>=0)s.pt(t.substring(0,e),',','sqs',q);return 0};s.sqs=function(un,q){var s=this;s.squ[un]=q;return 0};s.sq=function(q){var s=this,k='s_sq',v=s.c"1704+"_r(k),x,c=0;s.sqq=new Object;s.squ=new Object;s.sqq[q]='';s.pt(v,'&','sqp',0);s.pt(s.un,',','sqs',q);v='';for(x in s.squ)if(x&&(!Object||!Object.prototype||!Object.prototype[x]))s.sqq[s.squ[x]]+=(s"1705+".sqq[s.squ[x]]?',':'')+x;for(x in s.sqq)if(x&&(!Object||!Object.prototype||!Object.prototype[x])&&s.sqq[x]&&(x==q||c<2)){v+=(v?'&':'')+s.sqq[x]+'='+s.ape(x);c++}return s.c_w(k,v,0)};s.wdl=new Funct"1706+"ion('e','var s=s_c_il['+s._in+'],r=true,b=s.eh(s.wd,\"onload\"),i,o,oc;if(b)r=this[b](e);for(i=0;i<s.d.links.length;i++){o=s.d.links[i];oc=o.onclick?\"\"+o.onclick:\"\";if((oc.indexOf(\"s_gs(\")<0|"1707+"|oc.indexOf(\".s_oc(\")>=0)&&oc.indexOf(\".tl(\")<0)s.eh(o,\"onclick\",0,s.lc);}return r');s.wds=function(){var s=this;if(s.apv>3&&(!s.isie||!s.ismac||s.apv>=5)){if(s.b&&s.b.attachEvent)s.b.attachE"1708+"vent('onclick',s.bc);else if(s.b&&s.b.addEventListener)s.b.addEventListener('click',s.bc,false);else s.eh(s.wd,'onload',0,s.wdl)}};s.vs=function(x){var s=this,v=s.visitorSampling,g=s.visitorSamplin"1709+"gGroup,k='s_vsn_'+s.un+(g?'_'+g:''),n=s.c_r(k),e=new Date,y=e.getYear();e.setYear(y+10+(y<1900?1900:0));if(v){v*=100;if(!n){if(!s.c_w(k,x,e))return 0;n=x}if(n%10000>v)return 0}return 1};s.dyasmf=fu"1710+"nction(t,m){if(t&&m&&m.indexOf(t)>=0)return 1;return 0};s.dyasf=function(t,m){var s=this,i=t?t.indexOf('='):-1,n,x;if(i>=0&&m){var n=t.substring(0,i),x=t.substring(i+1);if(s.pt(x,',','dyasmf',m))re"1711+"turn n}return 0};s.uns=function(){var s=this,x=s.dynamicAccountSelection,l=s.dynamicAccountList,m=s.dynamicAccountMatch,n,i;s.un=s.un.toLowerCase();if(x&&l){if(!m)m=s.wd.location.host;if(!m.toLower"1712+"Case)m=''+m;l=l.toLowerCase();m=m.toLowerCase();n=s.pt(l,';','dyasf',m);if(n)s.un=n}i=s.un.indexOf(',');s.fun=i<0?s.un:s.un.substring(0,i)};s.sa=function(un){var s=this;if(s.un&&s.mpc('sa',argument"1713+"s))return;s.un=un;if(!s.oun)s.oun=un;else if((','+s.oun+',').indexOf(','+un+',')<0)s.oun+=','+un;s.uns()};s.m_i=function(n,a){var s=this,m,f=n.substring(0,1),r,l,i;if(!s.m_l)s.m_l=new Object;if(!s."1714+"m_nl)s.m_nl=new Array;m=s.m_l[n];if(!a&&m&&m._e&&!m._i)s.m_a(n);if(!m){m=new Object,m._c='s_m';m._in=s.wd.s_c_in;m._il=s._il;m._il[m._in]=m;s.wd.s_c_in++;m.s=s;m._n=n;m._l=new Array('_c','_in','_il"1715+"','_i','_e','_d','_dl','s','n','_r','_g','_g1','_t','_t1','_x','_x1','_rs','_rr','_l');s.m_l[n]=m;s.m_nl[s.m_nl.length]=n}else if(m._r&&!m._m){r=m._r;r._m=m;l=m._l;for(i=0;i<l.length;i++)if(m[l[i]]"1716+")r[l[i]]=m[l[i]];r._il[r._in]=r;m=s.m_l[n]=r}if(f==f.toUpperCase())s[n]=m;return m};s.m_a=new Function('n','g','e','if(!g)g=\"m_\"+n;var s=s_c_il['+s._in+'],c=s[g+\"_c\"],m,x,f=0;if(s.mpc(\"m_a\",a"1717+"rguments))return;if(!c)c=s.wd[\"s_\"+g+\"_c\"];if(c&&s_d)s[g]=new Function(\"s\",s_ft(s_d(c)));x=s[g];if(!x)x=s.wd[\\'s_\\'+g];if(!x)x=s.wd[g];m=s.m_i(n,1);if(x&&(!m._i||g!=\"m_\"+n)){m._i=f=1;if(("1718+"\"\"+x).indexOf(\"function\")>=0)x(s);else s.m_m(\"x\",n,x,e)}m=s.m_i(n,1);if(m._dl)m._dl=m._d=0;s.dlt();return f');s.m_m=function(t,n,d,e){t='_'+t;var s=this,i,x,m,f='_'+t,r=0,u;if(s.m_l&&s.m_nl)f"1719+"or(i=0;i<s.m_nl.length;i++){x=s.m_nl[i];if(!n||x==n){m=s.m_i(x);u=m[t];if(u){if((''+u).indexOf('function')>=0){if(d&&e)u=m[t](d,e);else if(d)u=m[t](d);else u=m[t]()}}if(u)r=1;u=m[t+1];if(u&&!m[f]){"1720+"if((''+u).indexOf('function')>=0){if(d&&e)u=m[t+1](d,e);else if(d)u=m[t+1](d);else u=m[t+1]()}}m[f]=1;if(u)r=1}}return r};s.m_ll=function(){var s=this,g=s.m_dl,i,o;if(g)for(i=0;i<g.length;i++){o=g["1721+"i];if(o)s.loadModule(o.n,o.u,o.d,o.l,o.e,1);g[i]=0}};s.loadModule=function(n,u,d,l,e,ln){var s=this,m=0,i,g,o=0,f1,f2,c=s.h?s.h:s.b,b,tcf;if(n){i=n.indexOf(':');if(i>=0){g=n.substring(i+1);n=n.subs"1722+"tring(0,i)}else g=\"m_\"+n;m=s.m_i(n)}if((l||(n&&!s.m_a(n,g)))&&u&&s.d&&c&&s.d.createElement){if(d){m._d=1;m._dl=1}if(ln){if(s.ssl)u=s.rep(u,'http:','https:');i='s_s:'+s._in+':'+n+':'+g;b='var s=s_"1723+"c_il['+s._in+'],o=s.d.getElementById(\"'+i+'\");if(s&&o){if(!o.l&&s.wd.'+g+'){o.l=1;if(o.i)clearTimeout(o.i);o.i=0;s.m_a(\"'+n+'\",\"'+g+'\"'+(e?',\"'+e+'\"':'')+')}';f2=b+'o.c++;if(!s.maxDelay)s.m"1724+"axDelay=250;if(!o.l&&o.c<(s.maxDelay*2)/100)o.i=setTimeout(o.f2,100)}';f1=new Function('e',b+'}');tcf=new Function('s','c','i','u','f1','f2','var e,o=0;try{o=s.d.createElement(\"script\");if(o){o.t"1725+"ype=\"text/javascript\";'+(n?'o.id=i;o.defer=true;o.onload=o.onreadystatechange=f1;o.f2=f2;o.l=0;':'')+'o.src=u;c.appendChild(o);'+(n?'o.c=0;o.i=setTimeout(f2,100)':'')+'}}catch(e){o=0}return o');o"1726+"=tcf(s,c,i,u,f1,f2)}else{o=new Object;o.n=n+':'+g;o.u=u;o.d=d;o.l=l;o.e=e;g=s.m_dl;if(!g)g=s.m_dl=new Array;i=0;while(i<g.length&&g[i])i++;g[i]=o}}else if(n){m=s.m_i(n);m._e=1}return m};s.voa=funct"1727+"ion(vo,r){var s=this,l=s.va_g,i,k,v,x;for(i=0;i<l.length;i++){k=l[i];v=vo[k];if(v||vo['!'+k]){if(!r&&(k==\"contextData\"||k==\"retrieveLightData\")&&s[k])for(x in s[k])if(!v[x])v[x]=s[k][x];s[k]=v}"1728+"}};s.vob=function(vo){var s=this,l=s.va_g,i,k;for(i=0;i<l.length;i++){k=l[i];vo[k]=s[k];if(!vo[k])vo['!'+k]=1}};s.dlt=new Function('var s=s_c_il['+s._in+'],d=new Date,i,vo,f=0;if(s.dll)for(i=0;i<s."1729+"dll.length;i++){vo=s.dll[i];if(vo){if(!s.m_m(\"d\")||d.getTime()-vo._t>=s.maxDelay){s.dll[i]=0;s.t(vo)}else f=1}}if(s.dli)clearTimeout(s.dli);s.dli=0;if(f){if(!s.dli)s.dli=setTimeout(s.dlt,s.maxDel"1730+"ay)}else s.dll=0');s.dl=function(vo){var s=this,d=new Date;if(!vo)vo=new Object;s.vob(vo);vo._t=d.getTime();if(!s.dll)s.dll=new Array;s.dll[s.dll.length]=vo;if(!s.maxDelay)s.maxDelay=250;s.dlt()};s"1731+".track=s.t=function(vo){var s=this,trk=1,tm=new Date,sed=Math&&Math.random?Math.floor(Math.random()*10000000000000):tm.getTime(),sess='s'+Math.floor(tm.getTime()/10800000)%10+sed,y=tm.getYear(),vt="1732+"tm.getDate()+'/'+tm.getMonth()+'/'+(y<1900?y+1900:y)+' '+tm.getHours()+':'+tm.getMinutes()+':'+tm.getSeconds()+' '+tm.getDay()+' '+tm.getTimezoneOffset(),tcf,tfs=s.gtfs(),ta=-1,q='',qs='',code='',v"1733+"b=new Object;if(s.mpc('t',arguments))return;s.gl(s.vl_g);s.uns();s.m_ll();if(!s.td){var tl=tfs.location,a,o,i,x='',c='',v='',p='',bw='',bh='',j='1.0',k=s.c_w('s_cc','true',0)?'Y':'N',hp='',ct='',pn"1734+"=0,ps;if(String&&String.prototype){j='1.1';if(j.match){j='1.2';if(tm.setUTCDate){j='1.3';if(s.isie&&s.ismac&&s.apv>=5)j='1.4';if(pn.toPrecision){j='1.5';a=new Array;if(a.forEach){j='1.6';i=0;o=new "1735+"Object;tcf=new Function('o','var e,i=0;try{i=new Iterator(o)}catch(e){}return i');i=tcf(o);if(i&&i.next)j='1.7'}}}}}if(s.apv>=4)x=screen.width+'x'+screen.height;if(s.isns||s.isopera){if(s.apv>=3){v"1736+"=s.n.javaEnabled()?'Y':'N';if(s.apv>=4){c=screen.pixelDepth;bw=s.wd.innerWidth;bh=s.wd.innerHeight}}s.pl=s.n.plugins}else if(s.isie){if(s.apv>=4){v=s.n.javaEnabled()?'Y':'N';c=screen.colorDepth;if("1737+"s.apv>=5){bw=s.d.documentElement.offsetWidth;bh=s.d.documentElement.offsetHeight;if(!s.ismac&&s.b){tcf=new Function('s','tl','var e,hp=0;try{s.b.addBehavior(\"#default#homePage\");hp=s.b.isHomePage"1738+"(tl)?\"Y\":\"N\"}catch(e){}return hp');hp=tcf(s,tl);tcf=new Function('s','var e,ct=0;try{s.b.addBehavior(\"#default#clientCaps\");ct=s.b.connectionType}catch(e){}return ct');ct=tcf(s)}}}else r=''}i"1739+"f(s.pl)while(pn<s.pl.length&&pn<30){ps=s.fl(s.pl[pn].name,100)+';';if(p.indexOf(ps)<0)p+=ps;pn++}s.resolution=x;s.colorDepth=c;s.javascriptVersion=j;s.javaEnabled=v;s.cookiesEnabled=k;s.browserWidt"1740+"h=bw;s.browserHeight=bh;s.connectionType=ct;s.homepage=hp;s.plugins=p;s.td=1}if(vo){s.vob(vb);s.voa(vo)}if((vo&&vo._t)||!s.m_m('d')){if(s.usePlugins)s.doPlugins(s);var l=s.wd.location,r=tfs.documen"1741+"t.referrer;if(!s.pageURL)s.pageURL=l.href?l.href:l;if(!s.referrer&&!s._1_referrer){s.referrer=r;s._1_referrer=1}s.m_m('g');if(s.lnk||s.eo){var o=s.eo?s.eo:s.lnk,p=s.pageName,w=1,t=s.ot(o),n=s.oid(o"1742+"),x=o.s_oidt,h,l,i,oc;if(s.eo&&o==s.eo){while(o&&!n&&t!='BODY'){o=o.parentElement?o.parentElement:o.parentNode;if(o){t=s.ot(o);n=s.oid(o);x=o.s_oidt}}if(!n||t=='BODY')o='';if(o){oc=o.onclick?''+o.o"1743+"nclick:'';if((oc.indexOf('s_gs(')>=0&&oc.indexOf('.s_oc(')<0)||oc.indexOf('.tl(')>=0)o=0}}if(o){if(n)ta=o.target;h=s.oh(o);i=h.indexOf('?');h=s.linkLeaveQueryString||i<0?h:h.substring(0,i);l=s.link"1744+"Name;t=s.linkType?s.linkType.toLowerCase():s.lt(h);if(t&&(h||l)){s.pe='lnk_'+(t=='d'||t=='e'?t:'o');s.pev1=(h?s.ape(h):'');s.pev2=(l?s.ape(l):'')}else trk=0;if(s.trackInlineStats){if(!p){p=s.pageUR"1745+"L;w=0}t=s.ot(o);i=o.sourceIndex;if(s.gg('objectID')){n=s.gg('objectID');x=1;i=1}if(p&&n&&t)qs='&pid='+s.ape(s.fl(p,255))+(w?'&pidt='+w:'')+'&oid='+s.ape(s.fl(n,100))+(x?'&oidt='+x:'')+'&ot='+s.ape("1746+"t)+(i?'&oi='+i:'')}}else trk=0}if(trk||qs){s.sampled=s.vs(sed);if(trk){if(s.sampled)code=s.mr(sess,(vt?'&t='+s.ape(vt):'')+s.hav()+q+(qs?qs:s.rq()),0,ta);qs='';s.m_m('t');if(s.p_r)s.p_r();s.referre"1747+"r=s.lightProfileID=s.retrieveLightProfiles=s.deleteLightProfiles=''}s.sq(qs)}}else s.dl(vo);if(vo)s.voa(vb,1);s.lnk=s.eo=s.linkName=s.linkType=s.wd.s_objectID=s.ppu=s.pe=s.pev1=s.pev2=s.pev3='';if("1748+"s.pg)s.wd.s_lnk=s.wd.s_eo=s.wd.s_linkName=s.wd.s_linkType='';return code};s.trackLink=s.tl=function(o,t,n,vo){var s=this;s.lnk=s.co(o);s.linkType=t;s.linkName=n;s.t(vo)};s.trackLight=function(p,ss,"1749+"i,vo){var s=this;s.lightProfileID=p;s.lightStoreForSeconds=ss;s.lightIncrementBy=i;s.t(vo)};s.setTagContainer=function(n){var s=this,l=s.wd.s_c_il,i,t,x,y;s.tcn=n;if(l)for(i=0;i<l.length;i++){t=l[i"1750+"];if(t&&t._c=='s_l'&&t.tagContainerName==n){s.voa(t);if(t.lmq)for(i=0;i<t.lmq.length;i++){x=t.lmq[i];y='m_'+x.n;if(!s[y]&&!s[y+'_c']){s[y]=t[y];s[y+'_c']=t[y+'_c']}s.loadModule(x.n,x.u,x.d)}if(t.ml"1751+")for(x in t.ml)if(s[x]){y=s[x];x=t.ml[x];for(i in x)if(!Object.prototype[i]){if(typeof(x[i])!='function'||(''+x[i]).indexOf('s_c_il')<0)y[i]=x[i]}}if(t.mmq)for(i=0;i<t.mmq.length;i++){x=t.mmq[i];if"1752+"(s[x.m]){y=s[x.m];if(y[x.f]&&typeof(y[x.f])=='function'){if(x.a)y[x.f].apply(y,x.a);else y[x.f].apply(y)}}}if(t.tq)for(i=0;i<t.tq.length;i++)s.t(t.tq[i]);t.s=s;return}}};s.wd=window;s.ssl=(s.wd.loc"1753+"ation.protocol.toLowerCase().indexOf('https')>=0);s.d=document;s.b=s.d.body;if(s.d.getElementsByTagName){s.h=s.d.getElementsByTagName('HEAD');if(s.h)s.h=s.h[0]}s.n=navigator;s.u=s.n.userAgent;s.ns6"1754+"=s.u.indexOf('Netscape6/');var apn=s.n.appName,v=s.n.appVersion,ie=v.indexOf('MSIE '),o=s.u.indexOf('Opera '),i;if(v.indexOf('Opera')>=0||o>0)apn='Opera';s.isie=(apn=='Microsoft Internet Explorer')"1755+";s.isns=(apn=='Netscape');s.isopera=(apn=='Opera');s.ismac=(s.u.indexOf('Mac')>=0);if(o>0)s.apv=parseFloat(s.u.substring(o+6));else if(ie>0){s.apv=parseInt(i=v.substring(ie+5));if(s.apv>3)s.apv=par"1756+"seFloat(i)}else if(s.ns6>0)s.apv=parseFloat(s.u.substring(s.ns6+10));else s.apv=parseFloat(v);s.em=0;if(s.em.toPrecision)s.em=3;else if(String.fromCharCode){i=escape(String.fromCharCode(256)).toUpp"1757+"erCase();s.em=(i=='%C4%80'?2:(i=='%U0100'?1:0))}if(s.oun)s.sa(s.oun);s.sa(un);s.vl_l='timestamp,dynamicVariablePrefix,visitorID,vmk,visitorMigrationKey,visitorMigrationServer,visitorMigrationServer"1758+"Secure,ppu,charSet,visitorNamespace,cookieDomainPeriods,cookieLifetime,pageName,pageURL,referrer,contextData,currencyCode,lightProfileID,lightStoreForSeconds,lightIncrementBy,retrieveLightProfiles,"1759+"deleteLightProfiles,retrieveLightData';s.va_l=s.sp(s.vl_l,',');s.vl_mr=s.vl_m='timestamp,charSet,visitorNamespace,cookieDomainPeriods,cookieLifetime,contextData,lightProfileID,lightStoreForSeconds,"1760+"lightIncrementBy';s.vl_t=s.vl_l+',variableProvider,channel,server,pageType,transactionID,purchaseID,campaign,state,zip,events,events2,products,linkName,linkType';var n;for(n=1;n<=75;n++){s.vl_t+=',"1761+"prop'+n+',eVar'+n;s.vl_m+=',prop'+n+',eVar'+n}for(n=1;n<=5;n++)s.vl_t+=',hier'+n;for(n=1;n<=3;n++)s.vl_t+=',list'+n;s.va_m=s.sp(s.vl_m,',');s.vl_l2=',tnt,pe,pev1,pev2,pev3,resolution,colorDepth,jav"1762+"ascriptVersion,javaEnabled,cookiesEnabled,browserWidth,browserHeight,connectionType,homepage,plugins';s.vl_t+=s.vl_l2;s.va_t=s.sp(s.vl_t,',');s.vl_g=s.vl_t+',trackingServer,trackingServerSecure,tra"1763+"ckingServerBase,fpCookieDomainPeriods,disableBufferedRequests,mobile,visitorSampling,visitorSamplingGroup,dynamicAccountSelection,dynamicAccountList,dynamicAccountMatch,trackDownloadLinks,trackExte"1764+"rnalLinks,trackInlineStats,linkLeaveQueryString,linkDownloadFileTypes,linkExternalFilters,linkInternalFilters,linkTrackVars,linkTrackEvents,linkNames,lnk,eo,lightTrackVars,_1_referrer,un';s.va_g=s."1765+"sp(s.vl_g,',');s.pg=pg;s.gl(s.vl_g);s.contextData=new Object;s.retrieveLightData=new Object;if(!ss)s.wds();if(pg){s.wd.s_co=function(o){s_gi(\"_\",1,1).co(o)};s.wd.s_gs=function(un){s_gi(un,1,1).t("1766+")};s.wd.s_dc=function(un){s_gi(un,1).t()}}",1767w=window,l=w.s_c_il,n=navigator,u=n.userAgent,v=n.appVersion,e=v.indexOf('MSIE '),m=u.indexOf('Netscape6/'),a,i,j,x,s;if(un){un=un.toLowerCase();if(l)for(j=0;j<2;j++)for(i=0;i<l.length;i++){s=l[i];x=s._c;if((!x||x=='s_c'||(j>0&&x=='s_l'))&&(s.oun==un||(s.fs&&s.sa&&s.fs(s.oun,un)))){if(s.sa)s.sa(un);if(x=='s_c')return s}else s=0}}w.s_an='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';1768w.s_sp=new Function("x","d","var a=new Array,i=0,j;if(x){if(x.split)a=x.split(d);else if(!d)for(i=0;i<x.length;i++)a[a.length]=x.substring(i,i+1);else while(i>=0){j=x.indexOf(d,i);a[a.length]=x.subst"1769+"ring(i,j<0?x.length:j);i=j;if(i>=0)i+=d.length}}return a");1770w.s_jn=new Function("a","d","var x='',i,j=a.length;if(a&&j>0){x=a[0];if(j>1){if(a.join)x=a.join(d);else for(i=1;i<j;i++)x+=d+a[i]}}return x");1771w.s_rep=new Function("x","o","n","return s_jn(s_sp(x,o),n)");1772w.s_d=new Function("x","var t='`^@$#',l=s_an,l2=new Object,x2,d,b=0,k,i=x.lastIndexOf('~~'),j,v,w;if(i>0){d=x.substring(0,i);x=x.substring(i+2);l=s_sp(l,'');for(i=0;i<62;i++)l2[l[i]]=i;t=s_sp(t,'');d"1773+"=s_sp(d,'~');i=0;while(i<5){v=0;if(x.indexOf(t[i])>=0) {x2=s_sp(x,t[i]);for(j=1;j<x2.length;j++){k=x2[j].substring(0,1);w=t[i]+k;if(k!=' '){v=1;w=d[b+l2[k]]}x2[j]=w+x2[j].substring(1)}}if(v)x=s_jn("1774+"x2,'');else{w=t[i]+' ';if(x.indexOf(w)>=0)x=s_rep(x,w,t[i]);i++;b+=62}}}return x");1775w.s_fe=new Function("c","return s_rep(s_rep(s_rep(c,'\\\\','\\\\\\\\'),'\"','\\\\\"'),\"\\n\",\"\\\\n\")");1776w.s_fa=new Function("f","var s=f.indexOf('(')+1,e=f.indexOf(')'),a='',c;while(s>=0&&s<e){c=f.substring(s,s+1);if(c==',')a+='\",\"';else if((\"\\n\\r\\t \").indexOf(c)<0)a+=c;s++}return a?'\"'+a+'\"':"1777+"a");1778w.s_ft=new Function("c","c+='';var s,e,o,a,d,q,f,h,x;s=c.indexOf('=function(');while(s>=0){s++;d=1;q='';x=0;f=c.substring(s);a=s_fa(f);e=o=c.indexOf('{',s);e++;while(d>0){h=c.substring(e,e+1);if(q){i"1779+"f(h==q&&!x)q='';if(h=='\\\\')x=x?0:1;else x=0}else{if(h=='\"'||h==\"'\")q=h;if(h=='{')d++;if(h=='}')d--}if(d>0)e++}c=c.substring(0,s)+'new Function('+(a?a+',':'')+'\"'+s_fe(c.substring(o+1,e))+'\")"1780+"'+c.substring(e+1);s=c.indexOf('=function(')}return c;");1781c=s_d(c);if(e>0){a=parseInt(i=v.substring(e+5));if(a>3)a=parseFloat(i)}else if(m>0)a=parseFloat(u.substring(m+10));else a=parseFloat(v);if(a<5||v.indexOf('Opera')>=0||u.indexOf('Opera')>=0)c=s_ft(c);if(!s){s=new Object;if(!w.s_c_in){w.s_c_il=new Array;w.s_c_in=0}s._il=w.s_c_il;s._in=w.s_c_in;s._il[s._in]=s;w.s_c_in++;}s._c='s_c';(new Function("s","un","pg","ss",c))(s,un,pg,ss);return s}...
s-code-contents-73da148cb454c4f6e395aa8df704854c99540662.js
Source:s-code-contents-73da148cb454c4f6e395aa8df704854c99540662.js
1var s = new AppMeasurement();2var heartbeatContext = ",contextData.a.media.friendlyName,contextData.a.media.length,contextData.a.media.name,contextData.a.contentType,contextData.a.media.playerName,contextData.a.media.channel,contextData.a.media.view,contextData.a.media.ad.friendlyName,contextData.a.media.ad.length,contextData.a.media.ad.name,contextData.a.media.ad.podFriendlyName,contextData.a.media.ad.podSecond,contextData.a.media.ad.pod,contextData.a.media.ad.podPosition,contextData.a.media.ad.playerName,contextData.a.media.ad.view,contextData.a.media.show,contextData.a.media.season,contextData.a.media.episode,contextData.a.media.asset,contextData.a.media.genre,contextData.a.media.airDate,contextData.a.media.digitalDate,contextData.a.media.rating,contextData.a.media.originator,contextData.a.media.network,contextData.a.media.type,contextData.a.media.adLoad,contextData.a.media.pass.mvpd,contextData.a.media.pass.auth,contextData.a.media.dayPart,contextData.a.media.feed,contextData.a.media.format,contextData.a.media.ad.advertiser,contextData.a.media.ad.campaign,contextData.a.media.ad.creative,contextData.a.media.ad.placement,contextData.a.media.ad.site,contextData.a.media.ad.creativeURL,contextData.referenceID,contextData.contentTags,contextData.pubDate,contextData.siteContent,contextData.prodCenter,contextData.market,contextData.program,contextData.focusArea,contextData.cty,contextData.owner,contextData.externalInternal,contextData.playerType";3s.linkTrackVars = s.linkTrackVars + heartbeatContext;4function cfCheckRSID(cvURL) {5 var cvHostName = cfUtility(cvURL, 'server');6 switch (cvHostName) {7 case "www.mathworks.com":8 case "au.mathworks.com":9 case "ch.mathworks.com":10 case "www.mathworks.cn":11 case "ww2.mathworks.cn":12 case "cn.mathworks.com":13 case "de.mathworks.com":14 case "es.mathworks.com":15 case "fr.mathworks.com":16 case "in.mathworks.com":17 case "it.mathworks.com":18 case "jp.mathworks.com":19 case "kr.mathworks.com":20 case "nl.mathworks.com":21 case "se.mathworks.com":22 case "uk.mathworks.com":23 case "la.mathworks.com":24 case "makerzone.mathworks.com":25 case "www.go.mathworks.com":26 case "go.mathworks.com":27 case "www.go2.mathworks.com":28 case "go2.mathworks.com":29 case "www.mathworksservicerequest.force.com":30 case "mathworksservicerequest.force.com":31 case "blogs.mathworks.com":32 case "matlabacademy.mathworks.com":33 case "trainingenrollment.mathworks.com":34 case "matlab.mathworks.com":35 case "learntocode.mathworks.com":36 case "status.mathworks.com":37 case "grader.mathworks.com":38 case "coursework.mathworks.com":39 case "payment.mathworks.com":40 case "explore.mathworks.com":41 ReportSuiteID = "mathwgbl";42 break;43 default:44 ReportSuiteID = "mathglobaltest";45 break;46 }47 try {48 var DTMLibraryStaging = localStorage.getItem('sdsat_stagingLibrary');49 if (DTMLibraryStaging == "true") {50 ReportSuiteID = "mathglobaltest";51 }52 } catch (e) {}53 ReportSuiteID = ReportSuiteID.toLowerCase();54 return ReportSuiteID;55}56function cfUtility(cvURL, cvAction) {57 cvURL = unescape(cvURL.toLowerCase());58 cvURL = cvURL.replace("searchresults?", "searchresults/?");59 switch (cvAction) {60 case "server":61 var a = cvURL.split(/\/+/g)[1];62 if (typeof(a) !== 'undefined') {63 var b = a.split(".");64 if (b.length == 2) {65 var c = "www." + a;66 } else {67 c = a;68 }69 TheResult = c;70 } else {71 TheResult = "";72 }73 break;74 case "domain":75 var a = cfUtility(cvURL, "server");76 if (typeof(a) !== 'undefined') {77 var b = a.split(".");78 b_len = b.length;79 var TheResult = String(b[b_len - 2] + '.' + b[b_len - 1]);80 } else {81 TheResult = "";82 }83 break;84 case "filename":85 var a = cvURL.split(/#|;jsessionid=|\?/gi)[0];86 var b = a.substring(a.lastIndexOf("/") + 1);87 TheResult = b;88 break;89 case "pagename":90 var a = cvURL.split(/#|;jsessionid=|\?/gi)[0];91 a = a.replace("http://", "");92 a = a.replace("https://", "");93 a = a.replace(cfUtility(cvURL, "server"), "");94 var b = a.substring(a.lastIndexOf("/") + 1);95 a = a.replace(b, "");96 a = a + cfUtility(cvURL, "filename");97 if ((cfUtility(cvURL, "filename") == "") || (!cfUtility(cvURL, "filename"))) {98 if (cvURL.search("searchresults/?") < 0 && cvURL.search("/company/jobs/") < 0 && cvURL.search("/matlabcentral/") < 0 && cvURL.search("/downloads/web_downloads/") < 0 && cvURL.search("/support/bugreports/") < 0 && cvURL.search("/training-schedule/") < 0 && cvURL.search("blogs.mathworks.") < 0) {99 a = a + "index.html";100 }101 }102 if (cvURL.search("go.mathworks.com") != -1 || cvURL.search("go2.mathworks.com") != -1) {103 a = cfUtility(cvURL, "filename");104 a = "elq::" + a;105 }106 TheResult = a;107 break;108 case "channel":109 var a = cvURL.split(/#|;jsessionid=|\?/gi)[0];110 a = a.replace("http://", "");111 a = a.replace("https://", "");112 a = a.replace(cfUtility(cvURL, "server"), "");113 if (a.indexOf("index.html") > -1 || (a.lastIndexOf("/") + 1 == a.length)) {114 var b = a.substring(a.lastIndexOf("/") + 1);115 } else {116 var b = a.substring(a.lastIndexOf("."));117 }118 if (a !== "/downloads" && a.indexOf("/matlabcentral/") < 0 && a.indexOf("/examples") !== 0) {119 a = a.replace(b, "");120 }121 if (cvURL.search("go.mathworks.com") !== -1 || cvURL.search("go2.mathworks.com") !== -1 || cvURL.search("force.com") !== -1) {122 a = cfUtility(cvURL, "server");123 }124 TheResult = a;125 break;126 case "filenameparameters":127 var cvParamPos = cvURL.indexOf("?");128 if (cvParamPos != -1) {129 var cvParam = cvURL.substring(cvParamPos);130 } else {131 var cvParam = "";132 }133 TheResult = cfUtility(cvURL, "filename") + cvParam;134 break;135 case "se":136 var cvReferrer_Server = cvURL.split(/\/+/g)[1];137 var cvReferrer_Server_Splitted = cvReferrer_Server.split(".");138 cvReferrer_Server_Splitted_Length = cvReferrer_Server_Splitted.length;139 var TheResult = String('.' + cvReferrer_Server_Splitted[cvReferrer_Server_Splitted_Length - 2] + '.');140 break;141 case "ext":142 var TheResult = cvURL.substring(cvURL.lastIndexOf("/") + 1, cvURL.length).substring(cvURL.substring(cvURL.lastIndexOf("/") + 1, cvURL.length).lastIndexOf(".") + 1, cvURL.substring(cvURL.lastIndexOf("/") + 1, cvURL.length).length);143 break;144 default:145 var TheResult = "";146 }147 return TheResult;148}149function undorewrite(origurl) {150 omniurl = unescape(origurl.toLowerCase());151 domain = cfUtility(omniurl, 'server');152 if (domain.indexOf("mathworks.de") > -1 || domain.indexOf("mathworks.in") > -1 || domain.indexOf("mathworks.co.jp") > -1 || domain.indexOf("mathworks.co.uk") > -1 || domain.indexOf("mathworks.fr") > -1 || domain.indexOf("mathworks.cn") > -1 || domain.indexOf("mathworks.nl") > -1 || domain.indexOf("mathworks.se") > -1 || domain.indexOf("mathworks.it") > -1 || domain.indexOf("mathworks.com.au") > -1 || domain.indexOf("mathworks.co.kr") > -1 || domain.indexOf("mathworks.es") > -1 || domain.indexOf("mathworks.ch") > -1) {153 if (omniurl.indexOf("mathworks.de/de/") > -1 || omniurl.indexOf("mathworks.in/in/") > -1 || omniurl.indexOf("mathworks.co.uk/uk/") > -1 || omniurl.indexOf("mathworks.co.jp/jp/") > -1 || omniurl.indexOf("mathworks.fr/fr/") > -1 || omniurl.indexOf("mathworks.cn/cn/") > -1 || omniurl.indexOf("mathworks.nl/nl/") > -1 || omniurl.indexOf("mathworks.se/se/") > -1 || omniurl.indexOf("mathworks.it/it/") > -1 || omniurl.indexOf("mathworks.com.au/au/") > -1 || omniurl.indexOf("mathworks.co.kr/kr/") > -1 || omniurl.indexOf("mathworks.es/es/") > -1 || omniurl.indexOf("mathworks.ch/ch/") > -1) {154 channel = cfUtility(omniurl, 'channel');155 foldersplit = channel.split("/");156 omniurl = omniurl.replace("/" + foldersplit[1] + "/", "/");157 }158 }159 return omniurl;160}161function cfGetQParam(a, b) { // Custom Function to Get Query Parameters162 var c = a.indexOf('?'); var d = a.indexOf('#');163 if (c < 0) { return ""; }164 var e = a.substr(c + 1);165 if (d > 0) { e = a.substring(c + 1, d); }166 var f = e.split('&');167 for (var i = 0; i < f.length; i++) {168 var g = f[i].split('=');169 g[0] = unescape(g[0]);170 if (g[0] == b) {171 g[1] = unescape(g[1]);172 if (g[1].indexOf('"') > -1) {173 var h = /"/g;174 g[1] = g[1].replace(h, '\\"')175 }176 if (g[1].indexOf('+') > -1) {177 var j = /\+/g;178 g[1] = g[1].replace(j, ' ')179 }180 return g[1]181 }182 }183 return ""184}185function cfLeft(str, n){186 if (n <= 0) { return ""; } else if (n > String(str).length) { return str; } else { return String(str).substring(0,n); }187}188function cfRight(str, n){189 if (n <= 0) { return ""; } else if (n > String(str).length) { return str; } else { var iLen = String(str).length; return String(str).substring(iLen, iLen - n); }190}191function cfClean(cvURL) {192 if (cvURL) {193 cvURL = cvURL.replace("http://","/");194 cvURL = cvURL.replace("https://","/");195 }196 return cvURL;197}198function removeHTMLTags(strInputCode) {199 if (strInputCode) {200 strInputCode = strInputCode.replace(/&(lt|gt);/g, function (strMatch, p1) {201 return (p1 == "lt") ? "<" : ">";202 });203 var strTagStrippedText = strInputCode.replace(/<\/?[^>]+(>|$)/g, "");204 return strTagStrippedText;205 }206}207function chnlshrink(chnl) {208 chan=chnl.toLowerCase();209 switch (chan) {210 case "paid search":211 chanl = "ppc";212 break;213 case "paid social ad":214 chanl = "psb";215 break;216 case "paid social media":217 chanl = "psm";218 break;219 case "external promotion":220 chanl = "pep";221 break;222 case "partner promotion":223 chanl = "prp";224 break;225 case "direct load":226 chanl = "dl";227 break;228 case "email":229 chanl = "eml";230 break;231 case "paid non-search":232 chanl = "pns";233 break;234 case "natural search":235 chanl = "nats";236 break;237 case "referrers":238 chanl = "ref";239 break;240 default:241 chanl = "unk";242 break;243 }244 return chanl;245}246function prodassign(type){247 if (type=='urly' && s.prop4){248 if (s.prop4.indexOf('products/curvefitting/')>-1 || s.prop4.indexOf('/help/curvefit/')>-1 || s.prop4.indexOf('/help/toolbox/curvefit/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/curvefit/')>-1)) {prod="Curve Fitting Toolbox";}249 else if (s.prop4.indexOf('products/communications/')>-1 || s.prop4.indexOf('/help/ja_JP/comm/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/comm/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/comm/')>-1)) {prod="Communications System Toolbox";}250 else if (s.prop4.indexOf('products/communications/')>-1 || s.prop4.indexOf('/help/comm/')>-1 || s.prop4.indexOf('/help/toolbox/comm/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/comm/')>-1)) {prod="Communications System Toolbox";}251 else if (s.prop4.indexOf('products/compiler/')>-1 || s.prop4.indexOf('/help/ja_JP/compiler/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/compiler/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/compiler/')>-1)) {prod="MATLAB Compiler";}252 else if (s.prop4.indexOf('products/compiler/')>-1 || s.prop4.indexOf('/help/compiler/')>-1 || s.prop4.indexOf('/help/toolbox/compiler/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/compiler/')>-1)) {prod="MATLAB Compiler";}253 else if (s.prop4.indexOf('products/control/')>-1 || s.prop4.indexOf('/help/ja_JP/control/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/control/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/control/')>-1)) {prod="Control System Toolbox";}254 else if (s.prop4.indexOf('products/control/')>-1 || s.prop4.indexOf('/help/control/')>-1 || s.prop4.indexOf('/help/toolbox/control/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/control/')>-1)) {prod="Control System Toolbox";}255 else if (s.prop4.indexOf('products/daq/')>-1 || s.prop4.indexOf('/help/daq/')>-1 || s.prop4.indexOf('/help/toolbox/daq/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/daq/')>-1)) {prod="Data Acquisition Toolbox";}256 else if (s.prop4.indexOf('products/database/')>-1 || s.prop4.indexOf('/help/database/')>-1 || s.prop4.indexOf('/help/toolbox/database/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/database/')>-1)) {prod="Database Toolbox";}257 else if (s.prop4.indexOf('products/derivatives/')>-1 || s.prop4.indexOf('/help/finderiv/')>-1 || s.prop4.indexOf('/help/toolbox/finderiv/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/finderiv/')>-1)) {prod="Financial Derivatives Toolbox";}258 else if (s.prop4.indexOf('products/datafeed/')>-1 || s.prop4.indexOf('/help/datafeed/')>-1 || s.prop4.indexOf('/help/toolbox/datafeed/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/datafeed/')>-1)) {prod="Datafeed Toolbox";}259 else if (s.prop4.indexOf('products/gauges/')>-1 || s.prop4.indexOf('/help/gauges/')>-1 || s.prop4.indexOf('/help/toolbox/gauges/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/gauges/')>-1)) {prod="Gauges Blockset";}260 else if (s.prop4.indexOf('products/dsp-system/')>-1 || s.prop4.indexOf('/help/dsp/')>-1 || s.prop4.indexOf('/help/toolbox/dsp/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/dsp/')>-1)) {prod="DSP System Toolbox";}261 else if (s.prop4.indexOf('products/embedded-coder/')>-1 || s.prop4.indexOf('/help/ecoder/')>-1 || s.prop4.indexOf('/help/toolbox/ecoder/')>-1 || (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ecoder/')>-1)) {prod="Embedded Coder";}262 else if (s.prop4.indexOf('products/excellink/')>-1 || s.prop4.indexOf('/help/exlink/')>-1 || s.prop4.indexOf('/help/toolbox/exlink/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/exlink/')>-1)) {prod="Spreadsheet Link EX";}263 else if (s.prop4.indexOf('products/finance/')>-1 || s.prop4.indexOf('/help/finance/')>-1 || s.prop4.indexOf('/help/toolbox/finance/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/finance/')>-1)) {prod="Financial Toolbox";}264 else if (s.prop4.indexOf('products/fuzzy-logic/')>-1 || s.prop4.indexOf('/help/fuzzy/')>-1 || s.prop4.indexOf('/help/toolbox/fuzzy/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/fuzzy/')>-1)) {prod="Fuzzy Logic Toolbox";}265 else if (s.prop4.indexOf('products/instrument/')>-1 || s.prop4.indexOf('/help/instrument/')>-1 || s.prop4.indexOf('/help/toolbox/instrument/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/instrument/')>-1)) {prod="Instrument Control Toolbox";}266 else if (s.prop4.indexOf('products/sysid/')>-1 || s.prop4.indexOf('/help/ident/')>-1 || s.prop4.indexOf('/help/toolbox/ident/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ident/')>-1)) {prod="System Identification Toolbox";}267 else if (s.prop4.indexOf('products/image/')>-1 || s.prop4.indexOf('/access/helpdesk/help/images/')>-1 || s.prop4.indexOf('/access/helpdesk/help/toolbox/images/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/helpdesk/help/images/')>-1)) {prod="Image Processing Toolbox";}268 else if (s.prop4.indexOf('products/image/')>-1 || s.prop4.indexOf('/help/ja_JP/images/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/images/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/images/')>-1)) {prod="Image Processing Toolbox";}269 else if (s.prop4.indexOf('products/mapping/')>-1 || s.prop4.indexOf('/help/map/')>-1 || s.prop4.indexOf('/help/toolbox/map/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/map/')>-1)) {prod="Mapping Toolbox";}270 else if (s.prop4.indexOf('products/mpc/')>-1 || s.prop4.indexOf('/help/mpc/')>-1 || s.prop4.indexOf('/help/toolbox/mpc/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/mpc/')>-1)) {prod="Model Predictive Control Toolbox";}271 else if (s.prop4.indexOf('products/ML_reportgenerator/')>-1 || s.prop4.indexOf('/help/rptgen/')>-1 || s.prop4.indexOf('/help/toolbox/rptgen/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/rptgen/')>-1)) {prod="MATLAB Report Generator";}272 else if (s.prop4.indexOf('products/neural-network/')>-1 || s.prop4.indexOf('/help/nnet/')>-1 || s.prop4.indexOf('/help/toolbox/nnet/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/nnet/')>-1)) {prod="Neural Network Toolbox";}273 else if (s.prop4.indexOf('products/optimization/')>-1 || s.prop4.indexOf('/help/ja_JP/optim/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/optim/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/optim/')>-1)) {prod="Optimization Toolbox";}274 else if (s.prop4.indexOf('products/optimization/')>-1 || s.prop4.indexOf('/help/optim/')>-1 || s.prop4.indexOf('/help/toolbox/optim/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/optim/')>-1)) {prod="Optimization Toolbox";}275 else if (s.prop4.indexOf('products/pde/')>-1 || s.prop4.indexOf('/help/pde/')>-1 || s.prop4.indexOf('/help/toolbox/pde/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/pde/')>-1)) {prod="Partial Differential Equation Toolbox";}276 else if (s.prop4.indexOf('products/simpower/')>-1 || s.prop4.indexOf('/help/ja_JP/physmod/powersys/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/physmod/powersys/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/physmod/powersys/')>-1)) {prod="SimPowerSystems";}277 else if (s.prop4.indexOf('products/simpower/')>-1 || s.prop4.indexOf('/help/physmod/powersys/')>-1 || s.prop4.indexOf('/help/toolbox/physmod/powersys/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/physmod/powersys/')>-1)) {prod="SimPowerSystems";}278 else if (s.prop4.indexOf('products/robust/')>-1 || s.prop4.indexOf('/help/robust/')>-1 || s.prop4.indexOf('/help/toolbox/robust/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/robust/')>-1)) {prod="Robust Control Toolbox";}279 else if (s.prop4.indexOf('products/simulink-coder/')>-1 || s.prop4.indexOf('/help/ja_JP/rtw/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/rtw/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/rtw/')>-1)) {prod="Simulink Coder";}280 else if (s.prop4.indexOf('products/simulink-coder/')>-1 || s.prop4.indexOf('/help/rtw/')>-1 || s.prop4.indexOf('/help/toolbox/rtw/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/rtw/')>-1)) {prod="Simulink Coder";}281 else if (s.prop4.indexOf('products/stateflow/')>-1 || s.prop4.indexOf('/help/ja_JP/stateflow/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/stateflow/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/stateflow/')>-1)) {prod="Stateflow";}282 else if (s.prop4.indexOf('products/stateflow/')>-1 || s.prop4.indexOf('/help/stateflow/')>-1 || s.prop4.indexOf('/help/toolbox/stateflow/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/stateflow/')>-1)) {prod="Stateflow";}283 else if (s.prop4.indexOf('products/signal/')>-1 || s.prop4.indexOf('/help/ja_JP/signal/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/signal/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/signal/')>-1)) {prod="Signal Processing Toolbox";}284 else if (s.prop4.indexOf('products/signal/')>-1 || s.prop4.indexOf('/help/signal/')>-1 || s.prop4.indexOf('/help/toolbox/signal/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/signal/')>-1)) {prod="Signal Processing Toolbox";}285 else if (s.prop4.indexOf('products/simulink/')>-1 || s.prop4.indexOf('/help/ja_JP/simulink/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/simulink/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/simulink/')>-1)) {prod="Simulink";}286 else if (s.prop4.indexOf('products/simulink/')>-1 || s.prop4.indexOf('/help/simulink/')>-1 || s.prop4.indexOf('/help/toolbox/simulink/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/simulink/')>-1)) {prod="Simulink";}287 else if (s.prop4.indexOf('products/symbolic/')>-1 || s.prop4.indexOf('/help/ja_JP/symbolic/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/symbolic/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/symbolic/')>-1)) {prod="Symbolic Math Toolbox";}288 else if (s.prop4.indexOf('products/symbolic/')>-1 || s.prop4.indexOf('/help/symbolic/')>-1 || s.prop4.indexOf('/help/toolbox/symbolic/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/symbolic/')>-1)) {prod="Symbolic Math Toolbox";}289 else if (s.prop4.indexOf('products/SL_reportgenerator/')>-1 || s.prop4.indexOf('/help/rptgenext/')>-1 || s.prop4.indexOf('/help/toolbox/rptgenext/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/rptgenext/')>-1)) {prod="Simulink Report Generator";}290 else if (s.prop4.indexOf('products/statistics/')>-1 || s.prop4.indexOf('/help/ja_JP/stats/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/stats/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/stats/')>-1)) {prod="Statistics Toolbox";}291 else if (s.prop4.indexOf('products/statistics/')>-1 || s.prop4.indexOf('/help/stats/')>-1 || s.prop4.indexOf('/help/toolbox/stats/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/stats/')>-1)) {prod="Statistics Toolbox";}292 else if (s.prop4.indexOf('products/3d-animation/')>-1 || s.prop4.indexOf('/help/sl3d/')>-1 || s.prop4.indexOf('/help/toolbox/sl3d/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/sl3d/')>-1)) {prod="Simulink 3D Animation";}293 else if (s.prop4.indexOf('products/wavelet/')>-1 || s.prop4.indexOf('/help/wavelet/')>-1 || s.prop4.indexOf('/help/toolbox/wavelet/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/wavelet/')>-1)) {prod="Wavelet Toolbox";}294 else if (s.prop4.indexOf('products/rtwt/')>-1 || s.prop4.indexOf('/help/rtwin/')>-1 || s.prop4.indexOf('/help/toolbox/rtwin/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/rtwin/')>-1)) {prod="Real-Time Windows Target";}295 else if (s.prop4.indexOf('products/xpcembedded/')>-1 || s.prop4.indexOf('/help/xpc/')>-1 || s.prop4.indexOf('/help/toolbox/xpc/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/xpc/')>-1)) {prod="xPC Target Embedded Option";}296 else if (s.prop4.indexOf('products/xpctarget/')>-1 || s.prop4.indexOf('/help/xpc/')>-1 || s.prop4.indexOf('/help/toolbox/xpc/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/xpc/')>-1)) {prod="xPC Target";}297 else if (s.prop4.indexOf('products/aeroblks/')>-1 || s.prop4.indexOf('/help/aeroblks/')>-1 || s.prop4.indexOf('/help/toolbox/aeroblks/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/aeroblks/')>-1)) {prod="Aerospace Blockset";}298 else if (s.prop4.indexOf('products/matlabxl/')>-1 || s.prop4.indexOf('/help/matlabxl/')>-1 || s.prop4.indexOf('/help/toolbox/matlabxl/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/matlabxl/')>-1)) {prod="MATLAB Builder EX";}299 else if (s.prop4.indexOf('products/simmechanics/')>-1 || s.prop4.indexOf('/help/physmod/sm/')>-1 || s.prop4.indexOf('/help/toolbox/physmod/sm/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/physmod/sm/')>-1)) {prod="SimMechanics";}300 else if (s.prop4.indexOf('products/mbc/')>-1 || s.prop4.indexOf('/help/mbc/')>-1 || s.prop4.indexOf('/help/toolbox/mbc/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/mbc/')>-1)) {prod="Model-Based Calibration Toolbox";}301 else if (s.prop4.indexOf('products/imaq/')>-1 || s.prop4.indexOf('/help/imaq/')>-1 || s.prop4.indexOf('/help/toolbox/imaq/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/imaq/')>-1)) {prod="Image Acquisition Toolbox";}302 else if (s.prop4.indexOf('products/fixedincome/')>-1 || s.prop4.indexOf('/help/finfixed/')>-1 || s.prop4.indexOf('/help/toolbox/finfixed/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/finfixed/')>-1)) {prod="Fixed-Income Toolbox";}303 else if (s.prop4.indexOf('products/bioinfo/')>-1 || s.prop4.indexOf('/help/bioinfo/')>-1 || s.prop4.indexOf('/help/toolbox/bioinfo/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/bioinfo/')>-1)) {prod="Bioinformatics Toolbox";}304 else if (s.prop4.indexOf('products/filterhdl/')>-1 || s.prop4.indexOf('/help/hdlfilter/')>-1 || s.prop4.indexOf('/help/toolbox/hdlfilter/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/hdlfilter/')>-1)) {prod="Filter Design HDL Coder";}305 else if (s.prop4.indexOf('products/fixed/')>-1 || s.prop4.indexOf('/help/ja_JP/fixedpoint/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/fixedpoint/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/fixedpoint/')>-1)) {prod="Fixed-Point Toolbox";}306 else if (s.prop4.indexOf('products/fixed/')>-1 || s.prop4.indexOf('/help/fixedpoint/')>-1 || s.prop4.indexOf('/help/toolbox/fixedpoint/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/fixedpoint/')>-1)) {prod="Fixed-Point Toolbox";}307 else if (s.prop4.indexOf('products/simfixed/')>-1 || s.prop4.indexOf('/help/ja_JP/fixpoint/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/fixpoint/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/fixpoint/')>-1)) {prod="Simulink Fixed Point";}308 else if (s.prop4.indexOf('products/simfixed/')>-1 || s.prop4.indexOf('/help/fixpoint/')>-1 || s.prop4.indexOf('/help/toolbox/fixpoint/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/fixpoint/')>-1)) {prod="Simulink Fixed Point";}309 else if (s.prop4.indexOf('products/simverification/')>-1 || s.prop4.indexOf('/help/slvnv/')>-1 || s.prop4.indexOf('/help/toolbox/slvnv/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/slvnv/')>-1)) {prod="Simulink Verification and Validation";}310 else if (s.prop4.indexOf('products/simcontrol/')>-1 || s.prop4.indexOf('/help/ja_JP/slcontrol/')>-1 || s.prop4.indexOf('/help/ja_JP/toolbox/slcontrol/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/slcontrol/')>-1)) {prod="Simulink Control Design";}311 else if (s.prop4.indexOf('products/simcontrol/')>-1 || s.prop4.indexOf('/help/slcontrol/')>-1 || s.prop4.indexOf('/help/toolbox/slcontrol/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/slcontrol/')>-1)) {prod="Simulink Control Design";}312 else if (s.prop4.indexOf('products/opc/')>-1 || s.prop4.indexOf('/help/opc/')>-1 || s.prop4.indexOf('/help/toolbox/opc/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/opc/')>-1)) {prod="OPC Toolbox";}313 else if (s.prop4.indexOf('products/simrf/')>-1 || s.prop4.indexOf('/help/simrf/')>-1 || s.prop4.indexOf('/help/toolbox/simrf/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/simrf/')>-1)) {prod="SimRF";}314 else if (s.prop4.indexOf('products/rftoolbox/')>-1 || s.prop4.indexOf('/help/rf/')>-1 || s.prop4.indexOf('/help/toolbox/rf/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/rf/')>-1)) {prod="RF Toolbox";}315 else if (s.prop4.indexOf('products/computer-vision/')>-1 || s.prop4.indexOf('/help/vision/')>-1 || s.prop4.indexOf('/help/toolbox/vision/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/vision/')>-1)) {prod="Computer Vision System Toolbox";}316 else if (s.prop4.indexOf('products/simdrive/')>-1 || s.prop4.indexOf('/help/physmod/sdl/')>-1 || s.prop4.indexOf('/help/toolbox/physmod/sdl/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/physmod/sdl/')>-1)) {prod="SimDriveline";}317 else if (s.prop4.indexOf('products/parallel-computing/')>-1 || s.prop4.indexOf('/help/distcomp/')>-1 || s.prop4.indexOf('/help/toolbox/distcomp/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/distcomp/')>-1)) {prod="Parallel Computing Toolbox";}318 else if (s.prop4.indexOf('products/distriben/')>-1 || s.prop4.indexOf('/help/mdce/')>-1 || s.prop4.indexOf('/help/toolbox/mdce/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/mdce/')>-1)) {prod="MATLAB Distributed Computing Server";}319 else if (s.prop4.indexOf('products/simbiology/')>-1 || s.prop4.indexOf('/help/simbio/')>-1 || s.prop4.indexOf('/help/toolbox/simbio/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/simbio/')>-1)) {prod="SimBiology";}320 else if (s.prop4.indexOf('products/systemtest/')>-1 || s.prop4.indexOf('/help/systemtest/')>-1 || s.prop4.indexOf('/help/toolbox/systemtest/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/systemtest/')>-1)) {prod="SystemTest";}321 else if (s.prop4.indexOf('products/simevents/')>-1 || s.prop4.indexOf('/help/simevents/')>-1 || s.prop4.indexOf('/help/toolbox/simevents/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/simevents/')>-1)) {prod="SimEvents";}322 else if (s.prop4.indexOf('products/netbuilder/')>-1 || s.prop4.indexOf('/help/dotnetbuilder/')>-1 || s.prop4.indexOf('/help/toolbox/dotnetbuilder/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/dotnetbuilder/')>-1)) {prod="MATLAB Builder NE";}323 else if (s.prop4.indexOf('products/simhydraulics/')>-1 || s.prop4.indexOf('/help/physmod/hydro/')>-1 || s.prop4.indexOf('/help/toolbox/physmod/hydro/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/physmod/hydro/')>-1)) {prod="SimHydraulics";}324 else if (s.prop4.indexOf('products/aerotb/')>-1 || s.prop4.indexOf('/help/aerotbx/')>-1 || s.prop4.indexOf('/help/toolbox/aerotbx/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/aerotbx/')>-1)) {prod="Aerospace Toolbox";}325 else if (s.prop4.indexOf('products/javabuilder/')>-1 || s.prop4.indexOf('/help/javabuilder/')>-1 || s.prop4.indexOf('/help/toolbox/javabuilder/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/javabuilder/')>-1)) {prod="MATLAB Builder JA";}326 else if (s.prop4.indexOf('products/hdl-coder/')>-1 || s.prop4.indexOf('/help/hdlcoder/')>-1 || s.prop4.indexOf('/help/toolbox/hdlcoder/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/hdlcoder/')>-1)) {prod="HDL Coder";}327 else if (s.prop4.indexOf('products/simscape/')>-1 || s.prop4.indexOf('/access/helpdesk/help/physmod/simscape/')>-1 || s.prop4.indexOf('/access/helpdesk/help/toolbox/physmod/simscape/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/helpdesk/help/physmod/simscape/')>-1)) {prod="Simscape";}328 else if (s.prop4.indexOf('products/sldesignverifier/')>-1 || s.prop4.indexOf('/help/sldv/')>-1 || s.prop4.indexOf('/help/toolbox/sldv/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/sldv/')>-1)) {prod="Simulink Design Verifier";}329 else if (s.prop4.indexOf('products/polyspaceclientc/')>-1 || s.prop4.indexOf('/help/polyspace/')>-1 || s.prop4.indexOf('/help/toolbox/polyspace/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/polyspace/')>-1)) {prod="Polyspace Client for C/C++";}330 else if (s.prop4.indexOf('products/polyspaceclientada/')>-1 || s.prop4.indexOf('/help/polyspace/')>-1 || s.prop4.indexOf('/help/toolbox/polyspace/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/polyspace/')>-1)) {prod="Polyspace Client for Ada";}331 else if (s.prop4.indexOf('products/polyspaceserverc/')>-1 || s.prop4.indexOf('/help/polyspace/')>-1 || s.prop4.indexOf('/help/toolbox/polyspace/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/polyspace/')>-1)) {prod="Polyspace Server for C/C++";}332 else if (s.prop4.indexOf('products/polyspaceserverada/')>-1 || s.prop4.indexOf('/help/polyspace/')>-1 || s.prop4.indexOf('/help/toolbox/polyspace/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/polyspace/')>-1)) {prod="Polyspace Server for Ada";}333 else if (s.prop4.indexOf('products/polyspacemodelsl/')>-1 || s.prop4.indexOf('/help/polyspace/')>-1 || s.prop4.indexOf('/help/toolbox/polyspace/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/polyspace/')>-1)) {prod="Polyspace Model Link SL";}334 else if (s.prop4.indexOf('products/polyspacemodeltl/')>-1 || s.prop4.indexOf('/help/polyspace/')>-1 || s.prop4.indexOf('/help/toolbox/polyspace/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/polyspace/')>-1)) {prod="Polyspace Model Link TL";}335 else if (s.prop4.indexOf('products/polyspaceumlrh/')>-1 || s.prop4.indexOf('/help/polyspace/')>-1 || s.prop4.indexOf('/help/toolbox/polyspace/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/polyspace/')>-1)) {prod="Polyspace UML Link RH";}336 else if (s.prop4.indexOf('products/simelectronics/')>-1 || s.prop4.indexOf('/help/physmod/elec/')>-1 || s.prop4.indexOf('/help/toolbox/physmod/elec/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/physmod/elec/')>-1)) {prod="SimElectronics";}337 else if (s.prop4.indexOf('products/econometrics/')>-1 || s.prop4.indexOf('/help/econ/')>-1 || s.prop4.indexOf('/help/toolbox/econ/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/econ/')>-1)) {prod="Econometrics Toolbox";}338 else if (s.prop4.indexOf('products/vehicle-network/')>-1 || s.prop4.indexOf('/help/vnt/')>-1 || s.prop4.indexOf('/help/toolbox/vnt/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/vnt/')>-1)) {prod="Vehicle Network Toolbox";}339 else if (s.prop4.indexOf('products/sl-design-optimization/')>-1 || s.prop4.indexOf('/help/sldo/')>-1 || s.prop4.indexOf('/help/toolbox/sldo/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/sldo/')>-1)) {prod="Simulink Design Optimization";}340 else if (s.prop4.indexOf('products/do-178/')>-1 || s.prop4.indexOf('/help/qualkitdo/')>-1 || s.prop4.indexOf('/help/toolbox/qualkitdo/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/qualkitdo/')>-1)) {prod="DO Qualification Kit";}341 else if (s.prop4.indexOf('products/iec-61508/')>-1 || s.prop4.indexOf('/help/certkitiec/')>-1 || s.prop4.indexOf('/help/toolbox/certkitiec/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/certkitiec/')>-1)) {prod="IEC Certification Kit";}342 else if (s.prop4.indexOf('products/hdl-verifier/')>-1 || s.prop4.indexOf('/help/edalink/')>-1 || s.prop4.indexOf('/help/toolbox/edalink/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/edalink/')>-1)) {prod="HDL Verifier";}343 else if (s.prop4.indexOf('products/matlab/')>-1 || s.prop4.indexOf('/help/ja_JP/techdoc/')>-1 || s.prop4.indexOf('/help/ja_JP/techdoc/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/ja_JP/techdoc/')>-1)) {prod="MATLAB";}344 else if (s.prop4.indexOf('products/matlab/')>-1 || s.prop4.indexOf('/help/matlab/')>-1 || s.prop4.indexOf('/help/techdoc/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/techdoc/')>-1)) {prod="MATLAB";}345 else if (s.prop4.indexOf('products/sl-plc-coder/')>-1 || s.prop4.indexOf('/help/plccoder/')>-1 || s.prop4.indexOf('/help/toolbox/plccoder/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/plccoder/')>-1)) {prod="Simulink PLC Coder";}346 else if (s.prop4.indexOf('products/global-optimization/')>-1 || s.prop4.indexOf('/help/gads/')>-1 || s.prop4.indexOf('/help/toolbox/gads/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/gads/')>-1)) {prod="Global Optimization Toolbox";}347 else if (s.prop4.indexOf('products/matlab-coder/')>-1 || s.prop4.indexOf('/help/coder/')>-1 || s.prop4.indexOf('/help/toolbox/coder/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/coder/')>-1)) {prod="MATLAB Coder";}348 else if (s.prop4.indexOf('products/phased-array/')>-1 || s.prop4.indexOf('/help/phased/')>-1 || s.prop4.indexOf('/help/toolbox/phased/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/phased/')>-1)) {prod="Phased Array System Toolbox";}349 else if (s.prop4.indexOf('products/simulink-code-inspector/')>-1 || s.prop4.indexOf('/help/slci')>-1 || s.prop4.indexOf('/help/toolbox/slci')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/slci/')>-1)) {prod="Simulink Code Inspector";}350//100113 CG: Added last OR statement above to account for changes in the URL of previous doc version & below 6 lines for new products. updated queryval and prodgroup for new products as well.351 else if (s.prop4.indexOf('products/polyspace-code-prover/')>-1 || s.prop4.indexOf('help/codeprover/')>-1 || s.prop4.indexOf('/help/toolbox/codeprover/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/codeprover/')>-1)) {prod="Polyspace Code Prover";}352 else if (s.prop4.indexOf('products/polyspace-bug-finder/')>-1 || s.prop4.indexOf('/help/bugfinder/')>-1 || s.prop4.indexOf('/help/toolbox/bugfinder/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/bugfinder/')>-1)) {prod="Polyspace Bug Finder";}353 else if (s.prop4.indexOf('products/financial-instruments/')>-1 || s.prop4.indexOf('/help/fininst/')>-1 || s.prop4.indexOf('/help/toolbox/fininst/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/fininst/')>-1)) {prod="Financial Instruments Toolbox";}354 else if (s.prop4.indexOf('products/trading/')>-1 || s.prop4.indexOf('help/trading/')>-1 || s.prop4.indexOf('/help/toolbox/trading/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/trading/')>-1)) {prod="Trading Toolbox";}355 else if (s.prop4.indexOf('products/fixed-point-designer/')>-1 || s.prop4.indexOf('/help/fixedpoint/')>-1 || s.prop4.indexOf('/help/toolbox/fixedpoint/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/fixedpoint/')>-1)) {prod="Fixed-Point Designer";} /*doc shares same URL as old FP tb*/356 else if (s.prop4.indexOf('products/matlab-production-server/')>-1 || s.prop4.indexOf('help/mts/')>-1 || s.prop4.indexOf('/help/toolbox/mts/')>-1|| (s.prop4.indexOf('/help/releases/')>-1 && s.prop4.indexOf('/mts/')>-1)) {prod="MATLAB Production Server"}357 else prod = "unknown";358 prod = prod.toLowerCase();359 return prod;360 }361 else {362 queryval=s.getQueryParam(type);363 queryval=queryval.toLowerCase();364 switch (queryval) {365 case "cm": prod = "communications system toolbox"; break;366 case "ct": prod = "control system toolbox"; break;367 case "db": prod = "database toolbox"; break;368 case "ds": prod = "dsp system toolbox"; break;369 case "el": prod = "spreadsheet link ex"; break;370 case "fi": prod = "financial toolbox"; break;371 case "fp": prod = "fixed point designer"; break;372 case "fl": prod = "fuzzy logic toolbox"; break;373 case "ip": prod = "image processing toolbox"; break;374 case "mg": prod = "mapping toolbox"; break;375 case "ml": prod = "matlab"; break;376 case "co": prod = "matlab compiler"; break;377 case "mp": prod = "model predictive control toolbox"; break;378 case "nn": prod = "neural network toolbox"; break;379 case "op": prod = "optimization toolbox"; break;380 case "pd": prod = "partial differential equation toolbox"; break;381 case "ps": prod = "simpowersystems"; break;382 case "rt": prod = "simulink coder"; break;383 case "rc": prod = "robust control toolbox"; break;384 case "sg": prod = "signal processing toolbox"; break;385 case "sl": prod = "simulink"; break;386 case "sf": prod = "stateflow"; break;387 case "st": prod = "statistics toolbox"; break;388 case "sm": prod = "symbolic math toolbox"; break;389 case "id": prod = "system identification toolbox"; break;390 case "wa": prod = "wavelet toolbox"; break;391 case "da": prod = "data acquisition toolbox"; break;392 case "dg": prod = "gauges blockset"; break;393 case "mr": prod = "matlab report generator"; break;394 case "sr": prod = "simulink report generator"; break;395 case "wt": prod = "real-time windows target"; break;396 case "sv": prod = "matlab & simulink student version"; break;397 case "df": prod = "datafeed toolbox"; break;398 case "xp": prod = "xpc target"; break;399 case "xe": prod = "xpc target embedded option"; break;400 case "cf": prod = "curve fitting toolbox"; break;401 case "ic": prod = "instrument control toolbox"; break;402 case "de": prod = "financial derivatives toolbox"; break;403 case "ec": prod = "embedded coder"; break;404 case "vr": prod = "simulink 3d animation"; break;405 case "eb": prod = "matlab builder ex"; break;406 case "mb": prod = "model-based calibration toolbox"; break;407 case "ms": prod = "simmechanics"; break;408 case "ae": prod = "aerospace blockset"; break;409 case "ia": prod = "image acquisition toolbox"; break;410 case "fx": prod = "fixed-income toolbox"; break;411 case "sd": prod = "simulink control design"; break;412 case "bi": prod = "bioinformatics toolbox"; break;413 case "gd": prod = "global optimization toolbox"; break;414 case "vv": prod = "simulink verification and validation"; break;415 case "rf": prod = "rf toolbox"; break;416 case "rb": prod = "simrf"; break;417 case "fh": prod = "filter design hdl coder"; break;418 case "ot": prod = "opc toolbox"; break;419 case "po": prod = "fixed-point toolbox"; break;420 case "sb": prod = "simbiology"; break;421 case "vp": prod = "computer vision system toolbox"; break;422 case "ld": prod = "simdriveline"; break;423 case "dm": prod = "parallel computing toolbox"; break;424 case "dw": prod = "matlab distributed computing server"; break;425 case "se": prod = "simevents"; break;426 case "mn": prod = "matlab builder ne"; break;427 case "sh": prod = "simhydraulics"; break;428 case "sy": prod = "systemtest"; break;429 case "hd": prod = "hdl coder"; break;430 case "mj": prod = "matlab builder ja"; break;431 case "at": prod = "aerospace toolbox"; break;432 case "dv": prod = "simulink design verifier"; break;433 case "ss": prod = "simscape"; break;434 case "pf": prod = "polyspace server for ada"; break;435 case "pg": prod = "polyspace model link sl"; break;436 case "pc": prod = "polyspace client for c/c++"; break;437 case "ph": prod = "polyspace model link tl"; break;438 case "pi": prod = "polyspace uml link rh"; break;439 case "pa": prod = "polyspace client for ada"; break;440 case "pb": prod = "polyspace code prover"; break;441 case "aa": prod = "al's toolbox"; break;442 case "bx": prod = "bryans toolbox"; break;443 case "sn": prod = "simelectronics"; break;444 case "et": prod = "econometrics toolbox"; break;445 case "vn": prod = "vehicle network toolbox"; break;446 case "so": prod = "simulink design optimization"; break;447 case "ar": prod = "phased array system toolbox"; break;448 case "do": prod = "do qualification kit"; break;449 case "ie": prod = "iec certification kit"; break;450 case "es": prod = "hdl verifier"; break;451 case "pl": prod = "simulink plc coder"; break;452 case "ci": prod = "simulink code inspector"; break;453 case "me": prod = "matlab coder"; break;454 case "hm": prod = "simulink hmi design"; break;455 case "it": prod = "financial instruments toolbox"; break;456 case "pr": prod = "matlab production server"; break;457 case "TR": prod = "trading toolbox"; break;458 case "BF": prod = "polyspace bug finder"; break;459 default:460 prod = "unknown";461 break;462 }463 prod = prod.toLowerCase();464 return prod;465 }466}467function prodgroup (prod){468 prod = prod.toLowerCase();469 switch (prod) {470 case "aerospace blockset": prodgrp="v1 control systems"; break;471 case "aerospace toolbox": prodgrp="v1 control systems"; break;472 case "al's toolbox": prodgrp="unknown"; break;473 case "bioinformatics toolbox": prodgrp="v5 computational biology"; break;474 case "bryans toolbox": prodgrp="unknown"; break;475 case "communications system toolbox": prodgrp="v2 signal processing and communications"; break;476 case "computer vision system toolbox": prodgrp="v3 image processing and computer vision"; break;477 case "control system toolbox": prodgrp="v1 control systems"; break;478 case "curve fitting toolbox": prodgrp="m2 math, statistics, and optimization"; break;479 case "data acquisition toolbox": prodgrp="v4 test and measurement"; break;480 case "database toolbox": prodgrp="v6 computational finance"; break;481 case "datafeed toolbox": prodgrp="v6 computational finance"; break;482 case "do qualification kit": prodgrp="s6 embedded code generation"; break;483 case "dsp system toolbox": prodgrp="v2 signal processing and communications"; break;484 case "econometrics toolbox": prodgrp="v6 computational finance"; break;485 case "embedded coder": prodgrp="s6 embedded code generation"; break;486 case "filter design hdl coder": prodgrp="s7 hdl code generation and verification"; break;487 case "financial derivatives toolbox": prodgrp="v6 computational finance"; break;488 case "financial instruments toolbox": prodgrp="unknown"; break;489 case "financial toolbox": prodgrp="v6 computational finance"; break;490 case "fixed-income toolbox": prodgrp="v6 computational finance"; break;491 case "fixed-point toolbox": prodgrp="s6 embedded code generation"; break;492 case "fuzzy logic toolbox": prodgrp="v1 control systems"; break;493 case "gauges blockset": prodgrp="s1 simulink and stateflow"; break;494 case "global optimization toolbox": prodgrp="m2 math, statistics, and optimization"; break;495 case "hdl coder": prodgrp="s7 hdl code generation and verification"; break;496 case "hdl verifier": prodgrp="s7 hdl code generation and verification"; break;497 case "iec certification kit": prodgrp="s6 embedded code generation"; break;498 case "image acquisition toolbox": prodgrp="v3 image processing and computer vision"; break;499 case "image processing toolbox": prodgrp="v3 image processing and computer vision"; break;500 case "instrument control toolbox": prodgrp="v4 test and measurement"; break;501 case "mapping toolbox": prodgrp="v3 image processing and computer vision"; break;502 case "matlab": prodgrp="m1 matlab"; break;503 case "matlab & simulink student version": prodgrp="e1 edu"; break;504 case "matlab builder ex": prodgrp="m3 application deployment"; break;505 case "matlab builder ja": prodgrp="m3 application deployment"; break;506 case "matlab builder ne": prodgrp="m3 application deployment"; break;507 case "matlab coder": prodgrp="s6 embedded code generation"; break;508 case "matlab compiler": prodgrp="m3 application deployment"; break;509 case "matlab distributed computing server": prodgrp="m4 parallel computing"; break;510 case "matlab production server": prodgrp="unknown"; break;511 case "matlab report generator": prodgrp="s1 simulink and stateflow"; break;512 case "model predictive control toolbox": prodgrp="v1 control systems"; break;513 case "model-based calibration toolbox": prodgrp="m2 math, statistics, and optimization"; break;514 case "neural network toolbox": prodgrp="m2 math, statistics, and optimization"; break;515 case "opc toolbox": prodgrp="v4 test and measurement"; break;516 case "optimization toolbox": prodgrp="m2 math, statistics, and optimization"; break;517 case "parallel computing toolbox": prodgrp="m4 parallel computing"; break;518 case "partial differential equation toolbox": prodgrp="m2 math, statistics, and optimization"; break;519 case "phased array system toolbox": prodgrp="v2 signal processing and communications"; break;520 case "polyspace client for ada": prodgrp="p1 polyspace embedded code verification"; break;521 case "polyspace client for c/c++": prodgrp="p1 polyspace embedded code verification"; break;522 case "polyspace model link sl": prodgrp="p1 polyspace embedded code verification"; break;523 case "polyspace model link tl": prodgrp="p1 polyspace embedded code verification"; break;524 case "polyspace server for ada": prodgrp="p1 polyspace embedded code verification"; break;525 case "polyspace server for c/c++": prodgrp="p1 polyspace embedded code verification"; break;526 case "polyspace uml link rh": prodgrp="p1 polyspace embedded code verification"; break;527 case "real-time windows target": prodgrp="s4 rapid prototyping and hil simulation"; break;528 case "rf toolbox": prodgrp="v2 signal processing and communications"; break;529 case "robust control toolbox": prodgrp="v1 control systems"; break;530 case "signal processing toolbox": prodgrp="v2 signal processing and communications"; break;531 case "simbiology": prodgrp="v5 computational biology"; break;532 case "simdriveline": prodgrp="s3 physical modeling"; break;533 case "simelectronics": prodgrp="s3 physical modeling"; break;534 case "simevents": prodgrp="s2 discrete event simulation"; break;535 case "simhydraulics": prodgrp="s3 physical modeling"; break;536 case "simmechanics": prodgrp="s3 physical modeling"; break;537 case "simpowersystems": prodgrp="s3 physical modeling"; break;538 case "simrf": prodgrp="v2 signal processing and communications"; break;539 case "simscape": prodgrp="s3 physical modeling"; break;540 case "simulink": prodgrp="s1 simulink and stateflow"; break;541 case "simulink 3d animation": prodgrp="s1 simulink and stateflow"; break;542 case "simulink code inspector": prodgrp="s6 embedded code generation"; break;543 case "simulink coder": prodgrp="s6 embedded code generation"; break;544 case "simulink control design": prodgrp="v1 control systems"; break;545 case "simulink design optimization": prodgrp="v1 control systems"; break;546 case "simulink design verifier": prodgrp="s5 model verification and validation"; break;547 case "simulink fixed point": prodgrp="s6 embedded code generation"; break;548 case "simulink hmi design": prodgrp="s1 simulink and stateflow"; break;549 case "simulink plc coder": prodgrp="s6 embedded code generation"; break;550 case "simulink report generator": prodgrp="s1 simulink and stateflow"; break;551 case "simulink verification and validation": prodgrp="s5 model verification and validation"; break;552 case "spreadsheet link ex": prodgrp="v6 computational finance"; break;553 case "stateflow": prodgrp="s1 simulink and stateflow"; break;554 case "statistics toolbox": prodgrp="m2 math, statistics, and optimization"; break;555 case "symbolic math toolbox": prodgrp="m2 math, statistics, and optimization"; break;556 case "system identification toolbox": prodgrp="v1 control systems"; break;557 case "systemtest": prodgrp="s5 model verification and validation"; break;558 case "unknown tmw": prodgrp="z2 obsolete"; break;559 case "vehicle network toolbox": prodgrp="v4 test and measurement"; break;560 case "wavelet toolbox": prodgrp="v2 signal processing and communications"; break;561 case "xpc target": prodgrp="s4 rapid prototyping and hil simulation"; break;562 case "xpc target embedded option": prodgrp="s4 rapid prototyping and hil simulation"; break;563 case "trading toolbox": prodgrp="v6 computational finance"; break;564 case "polyspace bug finder": prodgrp="p1 polyspace embedded code verification"; break;565 default:566 prodgrp = "unknown";567 break;568 }569 prodgrp = prodgrp.toLowerCase();570 return prodgrp;571 }572var cvURL = unescape(document.URL);573cvURL = cvURL.toLowerCase();574cvURL = undorewrite(cvURL);575var refURL = unescape(document.referrer);576refURL = refURL.toLowerCase();577refURL = undorewrite(refURL);578/* Set report suite ID dynamically based on domain */579ReportSuiteID = cfCheckRSID(cvURL);580var s_account = ReportSuiteID ;581// s= new AppMeasurement();582 s=s_gi(s_account);583// Function to return s_account for Flash Video tracking584s.bcAccount = function(){585 return s_account;586}587s.bcInfo = function(){588 var s=this;589 return "prop24|"+s.pageName+"^prop27|"+s.pageURL+"^prop25|"+document.referrer.toString();590}591/************************** CONFIG SECTION **************************/592/* You may add or alter any code config here. */593/*Adding for the visitorID service - 082515 CG*/594s.visitor = Visitor.getInstance("B1441C8B533095C00A490D4D@AdobeOrg");595s.charSet="UTF-8";596/* Conversion Config */597s.currencyCode="USD";598/* Link Tracking Config */599s.trackDownloadLinks = true;600s.trackExternalLinks = true;601s.trackInlineStats = true;602s.linkDownloadFileTypes = "exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx,dmg,bin,msg,m";603s.linkInternalFilters = "javascript:,mathworks.,force.com";604s.linkLeaveQueryString = false;605//s.linkTrackVars = "None";606s.linkTrackEvents = "None";607s.visitorNamespace = "mathworks";608s.mobile = "true"; //100113 CG: added this line to use the mobile suscriber ID to track mobile visits609/* Channel Manager Plugin Config */610/*Left out -'Internal Banner Ad' then 'IBA_ Remove adw_ in production*/611s._channelPattern="Paid Search|ppc_>Paid Social Ad|psb_>Paid Social Media|psm_>External Promotion|pep_>Partner Promotion|prp_>Paid Search|adw_"612s._channelParameter="Email|elqaid,s_v1"613s._channelDomain="Social Media|facebook.com,linkedin.com,twitter.com,orkut.com,friendster.com,livejournal.com,blogspot.com,wordpress.com,friendfeed.com,myspace.com,digg.com,reddit.com,stumbleupon.com,twine.com,yelp.com,mixx.com,delicious.com,tumblr.com,disqus.com,intensedebate.com,plurk.com,slideshare.net,backtype.com,netvibes.com,mister-wong.com,diigo.com,flixster.com,youtube.com,vimeo.com,12seconds.tv,zooomr.com,identi.ca,jaiku.com,flickr.com,imeem.com,dailymotion.com,photobucket.com,fotolog.com,smugmug.com,classmates.com,myyearbook.com,mylife.com,tagged.com,brightkite.com,ning.com,bebo.com,hi5.com,yuku.com,cafemom.com,xanga.com"614/* WARNING: Changing any of the below variables will cause drastic615changes to how your visitor data is collected. Changes should only be616made when instructed to do so by your account manager.*/617// FPC Migration618s.trackingServer="metrics.mathworks.com"619s.trackingServerSecure="smetrics.mathworks.com"620s.visitorMigrationKey="51AA1C7A"621s.visitorMigrationServer="mathworks.com.ssl.sc.omtrdc.net"622s.visitorMigrationServerSecure="mathworks.com.ssl.d1.sc.omtrdc.net"623/*setting cookie domain variable - added 12/28/2012 - CG*/624s.fpCookieDomainPeriods="2"625var d=window.location.hostname626if(d.indexOf('.co.uk')>-1||d.indexOf('.co.jp')>-1||d.indexOf('.co.kr')>-1||d.indexOf('.com.au')>-1)627 s.fpCookieDomainPeriods="3";628/************************** CONFIG SECTION END **************************/629s.usePlugins = true;630function s_doPlugins(s)631{632 /* Set PageName */633 if ((!s.pageType) && (s.pageName== "" || s.pageName==null)) {634 s.pageName=cfUtility(cvURL,'pagename');635 }636 /* Set Channel */637 s.channel=cfUtility(cvURL,'channel');638 /* Set Server */639 s.server=cfUtility(cvURL,'server');640 if ((cvURL.indexOf('blogs.mathworks.')>-1) && (s.channel=="/"))641 {642 s.channel="blogs index page";643 if (!s.pageType){644 s.pageName="blogs index page";645 }646 s.prop32="blogs";647 }648 else if (s.channel=="/") //&& (cvURL.indexOf('/downloads') ==-1))649 {650 s.channel="homepage";651 if (!s.pageType){652 s.pageName="homepage";653 }654 }655 /* Set URL Page Name */656 if (s.channel=="homepage" || s.channel=="blogs index page"){657 s.prop4 = s.server;658 }659 else {660 s.prop4 = s.server+ cfUtility(cvURL,'pagename');661 }662 /* Some exceptions when file= query string param is present */663 if (s.getQueryParam('file') != "")664 {665 if (!window.s.pageType){666 s.pageName=cfUtility(cvURL,'pagename')+"?file="+s.getQueryParam('file');667 }668 s.prop4 = s.server+s.channel+"?file="+s.getQueryParam('file');669 }670 String.prototype.replaceAll = function(str1, str2, ignore){671 return this.replace(new RegExp(str1.replace(/([\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g, function(c){return "\\" + c;}), "g"+(ignore?"i":"")), str2);672 };673 /* setting prop33 for WSM URL Pagename*/674 s.prop33=s.prop4.replaceAll("/","::");675 /*setting blank prop17 for WSM lead generator type*/676 s.prop17="BLANK";677 /* Set Site Section, Sub Sections */678 cvSplit = s.channel.split("/");679 if ((s.prop5 == null || s.prop5 == "") && cvSplit[1] != null && cvSplit[1] != "") s.prop5 = cvSplit[1];680 if (cvURL.indexOf('makerzone.mathworks')>-1 && (cvSplit[1] == null || cvSplit[1] == "")) s.prop5 = "mz::" + s.channel; // 01013 CG added this line to indentify MAL for MZ homepage681 if ((s.prop5 == null || s.prop5 == "") && (cvSplit[1] == null || cvSplit[1] == "")) s.prop5 = s.channel; // 01013 CG added this line to indentify MAL for homepage & blogs682 if (cvURL.indexOf('makerzone.mathworks')>-1 && (cvSplit[1] != null && cvSplit[1] != "") ) s.prop5 ="mz::" + cvSplit[1]; // 01013 CG added this line to indentify makerzone MALs683 if (cvSplit[2] != null && cvSplit[2] != "") s.prop6 = s.prop5 + "/" + cvSplit[2];684 if (cvSplit[3] != null && cvSplit[3] != "") s.prop7 = s.prop6 + "/" + cvSplit[3];685 /* Get new and legacy campaign parameters from URL */686 if (s.getQueryParam('s_eid') != "") {687 s.campaign = s.eVar13=s.getValOnce(s.getQueryParam('s_eid')); // wrap getValonce plugin688 }689 else if (s.getQueryParam('s_v1') != "") {690 var tmpv1 = s.getQueryParam('s_v1');691 if(tmpv1.indexOf('_') > 0) {692 s.campaign=tmpv1.substring(0,tmpv1.indexOf('_'));693 }694 else {695 s.campaign=tmpv1;696 }697 //Email opened - prop56698 s.prop56=s.getQueryParam('s_v1');699 // de-duplicate campaign variable to keep from inflating values700 s.campaign=s.getValOnce(s.campaign,'s_campaign',0);701 //s.eVar1=s.campaign;702 s.eVar1='D=v0';703 //s.campaign = s.eVar1=s.getValOnce(s.getQueryParam('s_v1'));704 if (s.getQueryParam('elqem') != ""){705 s.eVar73 = s.getQueryParam('elqem');706 }707 } 708 else if (s.getQueryParam('elqaid') != "") {709 var tmpv1 = s.getQueryParam('elqaid');710 if(tmpv1.indexOf('_') > 0) {711 s.campaign=tmpv1.substring(0,tmpv1.indexOf('_'));712 }713 else {714 s.campaign=tmpv1;715 }716 //Email opened - prop56717 s.prop56=s.getQueryParam('elqaid');718 // de-duplicate campaign variable to keep from inflating values719 s.campaign=s.getValOnce(s.campaign,'s_campaign',0);720 //s.eVar1=s.campaign;721 s.eVar1='D=v0';722 //s.campaign = s.eVar1=s.getValOnce(s.getQueryParam('s_v1'));723 } 724 if (s.getQueryParam('s_tid') != "") {725 s.eVar14 = s.getValOnce(s.getQueryParam('s_tid'));726 //s.prop22=s.eVar14;727 s.prop22='D=v14';728 }729 if (s.getQueryParam('s_iid') != "") {730 s.eVar15 = s.getValOnce(s.getQueryParam('s_iid'));731 //s.prop23=s.eVar15;732 s.prop23='D=v15';733 }734 if (s.getQueryParam('s_cid') != "") {735 s.eVar35 = s.getValOnce(s.getQueryParam('s_cid'));736 }737 if (s.campaign != '') {738 s.prop1=s.getAndPersistValue(s.campaign,'s_cmp_pages',0);739 }740 if (s.prop1 != '') {741 if (!window.s.pageType){742 //s.prop2=s.prop1 +"||"+ s.pageName;743 s.prop2='D=c1+"||"+pageName';744 }745 }746 if (s.eVar1 != '') {747 s.prop12=s.getAndPersistValue(s.eVar1,'s_email_pages',0);748 }749 if (s.prop12 != '') {750 if (!window.s.pageType){751 //s.prop13=s.prop12 +"||"+ s.pageName;752 s.prop13='D=c12+"||"+pageName';753 }754 }755 if (s.eVar35 != '') {s.prop8=s.getAndPersistValue(s.eVar35,'s_old_pages',0); }756 if (s.prop8 != '') {757 if (!window.s.pageType){758 //s.prop9=s.prop8 +"||"+ s.pageName;759 s.prop9='D=c8+"||"+pageName';760 }761 }762 if(s.getQueryParam('elq_cid') != "") {763 s.eVar59 = s.getValOnce(s.getQueryParam('elq_cid'));764 }765 /* Set Page Title and Full URL*/766 s.prop35=document.title.toLowerCase();767 if (cvURL.search(/[a-zA-Z0-9]+(@|%40|%2540)[a-zA-Z0-9]+\.[a-zA-Z]+/) == -1) {768 s.prop34="D=g";769 }770 /* Capturing referrer and previous page information */771 if (cfUtility(refURL,'server').search("mathworks.") != -1){772 s.prop10= cfUtility(refURL,'server');773 s.prop28= s.getPreviousValue(s.prop35,'c_c35','');774 refSplit = cfUtility(refURL,'channel').split("/");775 if ((s.prop19 == null || s.prop19 == "") && refSplit[1] != null && refSplit[1] != "") s.prop19 = refSplit[1];776 if ((s.prop19 == null || s.prop19 == "") && (refSplit[1] == null || refSplit[1] == "")) s.prop19 = 'D=c40' ; // 01013 CG added this line to indentify previous MAL for homepage and blogs777 if (refURL.indexOf('makerzone.mathworks')>-1 && (refSplit[1] != null && refSplit[1] != "") ) s.prop19 ="mz::" + refSplit[1]; /// 01013 CG added this line to indentify makerzone MALs778 if (refSplit[2] != null && refSplit[2] != "") s.prop20 = s.prop19 + "/" + refSplit[2];779 if (refSplit[3] != null && refSplit[3] != "") s.prop21 = s.prop20 + "/" + refSplit[3];780 s.prop42="D=r";781 //s.prop42=decodeURI(refURL); 091813 CG: commented out to reduce image request size, using dynamic variable above782 s.prop29=cfUtility(refURL,'server')+cfUtility(refURL,'channel')+cfUtility(refURL,'filename');783 /* Get previous value of product name, group, artifact type and lead generator. Copied from old s_code */784 s.prop38= s.getPreviousValue(s.prop30,'c_c30','');785 s.prop39= s.getPreviousValue(s.prop31,'c_c31','');786 s.prop40= s.getPreviousValue(s.prop32,'c_c32','');787 //s.prop41= s.getPreviousValue(s.prop33,'c_c33','');788 /* Capturing CTA location */789 if (s.prop29 && s.getQueryParam('s_iid') != ""){790 //s.eVar28=s.prop29;791 s.eVar28='D=c29';792 s.eVar54='D=c40';793 }794 }795 /* Set Internal Search Phrase */796 if (s.getQueryParam('q') != '') {797 s.eVar3=s.getQueryParam('q');798 s.prop3=s.getQueryParam('q');799 }800 if (s.getQueryParam('qdoc') != '') {801 s.eVar3=s.getQueryParam('qdoc')+':: lucene';802 s.prop3=s.getQueryParam('qdoc')+':: lucene';803 }804 /* New or Repeat Visit and Days Since Last Visit*/805 s.eVar6=s.getNewRepeat();806 s.eVar9=s.getDaysSinceLastVisit();807 /* Identify first page of visit */808 var tmp = s.getVisitStart('c_vs');809 if (tmp == 1) {810 s.prop15 = 'Yes';811 s.eVar29= Math.floor(Math.random()*1000000); // Random number812 //s.eVar25=s.prop35;813 s.eVar25='D=c35';814 if (!window.s.pageType){815 //s.eVar26=s.pageName;816 s.eVar26='D=pageName';817 }818 //s.eVar27=s.server;819 s.eVar27='D=server';820 var ts = Math.round((new Date()).getTime() / 1000);821 s.eVar34=s.eVar29+'::'+ts; // Random number+Unix time stamp822 }823 if (s.eVar29 != '') {824 s.prop26=s.getAndPersistValue(s.eVar29,'c_rand',0);825 }826 if (s.eVar34 != '') {827 s.prop14=s.getAndPersistValue(s.eVar34,'c_sess',0);828 }829 /* Last Seminar Viewed */830 if (s.prop4.search("/company/events/seminars/seminar") != -1) {831 //s.eVar12 = s.prop35;832 s.eVar12='D=c35';833 }834 /* Recruiting source */835 if (s.prop4.search("/company/jobs/") != -1 && s.getQueryParam('src') != '') {836 s.eVar19 =s.getQueryParam('src');837 }838 /* Setting MW Lead Submit ID on confirmation pages */839 if (s.getQueryParam('wfsid') != ''){840 s.prop53 = s.getQueryParam('wfsid');841 }842 if (s.getQueryParam('elqsid')!= ''){843 s.prop53= s.getQueryParam('elqsid');844 }845 /* Setting contact potential use on confirmation pages */846 if (s.getQueryParam('potential_use') != ''){847 s.prop18 =s.getQueryParam('potential_use');848 s.eVar63 =s.getQueryParam('potential_use');849 }850 /* Code to get Google referrer information */851 s.getGoogleRank('event18','event19','eVar17','eVar18');852 if(s.events){853 if((s.events+',').indexOf('event18,')>-1){854 if (!window.s.pageType){855 s.hier1=s.eVar17+"|"+s.pageName+"|"+s.eVar18;856 s.hier2=s.pageName+"|"+s.eVar18+"|"+s.eVar17+"|";857 }858 }859 }860// 100113 CG: added below line to set referrer sub-domain861 s.eVar55 = s.getFullReferringDomains();862 /* Channel Manager v2.4 */863 s.channelManager('s_eid,elqaid,s_v1',':','c_cm','','s_dl',0);864 if (s._channel != "" || s._channel != undefined){865 s.eVar37=s._referringDomain;866 s.eVar38=s._partner;867 //s.campaign=s._campaignID;868 s.eVar39=s.campaign;869 s.eVar2=s._keywords;870 s.eVar40=s._channel;871 s.eVar36=s._referrer;872 }873 if (s.eVar2 != '') {874 s.prop11=s.getAndPersistValue(s.eVar2,'c_srch',0);875 }876 /*Setting the Campaign Touches counter*/877 if(s.eVar39){878 s.eVar41='+1'; s.eVar42='+1'; s.eVar43='+1'; s.eVar44='+1';879 s.events=s.apl(s.events,'event5',',',2);880 }881 if(s.events){882 if(s.eVar39){s.eVar45=s.eVar46=s.eVar47=s.eVar48='start';}883 if(s.events.indexOf('event1:')>-1){s.eVar45='stop';}884 if(s.events.indexOf('event2:')>-1){s.eVar46='stop';}885 if(s.events.indexOf('event3:')>-1){s.eVar47='stop';}886 if(s.events.indexOf('event4:')>-1){s.eVar48='stop';}887 }888 s.eVar45=s.getTimeToComplete(s.eVar45,'ttc45',0);889 s.eVar46=s.getTimeToComplete2(s.eVar46,'ttc46',0);890 s.eVar47=s.getTimeToComplete3(s.eVar47,'ttc47',0);891 s.eVar48=s.getTimeToComplete4(s.eVar48,'ttc48',0);892 /* The following functions set product name into propN(30) and product group into propN(31) */893 s.prop30= prodassign('urly');894 if ((!s.prop30 || s.prop30=="unknown")&& s.getQueryParam('ref') != '' ){895 s.prop30=prodassign('ref');896 }897 else if ((!s.prop30 || s.prop30=="unknown") && s.getQueryParam('product') != ''){898 s.prop30=prodassign('product');899 }900 if (s.prop30){901 s.prop31=prodgroup(s.prop30);902 }903 /* Additional product name, group, artifact type assignment */904 if(s.prop5 == 'solutions'){905 s.prop30 = 'unknown';906 s.prop31 = 'unknown';907 s.prop32 = 'solution';908 }909 else if(s.prop5 == 'data-acquisition' || s.prop5== 'data-analysis' || s.prop5 == 'mathematical-modeling' || s.prop5 == 'algorithm-development' || s.prop5 == 'parallel-computing' || s.prop5 == 'desktop-web-deployment'){910 s.prop30 = 'unknown';911 s.prop31 = 'unknown';912 s.prop32 = 'solution-capabilities';913 }914 else if(s.prop5=='system-design-simulation'||s.prop5=='physical-modeling'||s.prop5=='discrete-event-simulation'||s.prop5=='rapid-prototyping'||s.prop5=='embedded-code-generation'||s.prop5=='hdl-code-generation-verification'||s.prop5=='verification-validation'){915 s.prop30 = 'unknown';916 s.prop31 = 'unknown';917 s.prop32 = 'solution-capabilities';918 }919 else if(s.prop5=='embedded-systems'||s.prop5=='control-systems'||s.prop5=='dsp'||s.prop5=='communications-systems'||s.prop5=='image-video-processing'||s.prop5=='fpga-design'||s.prop5=='mechatronics'||s.prop5=='test-measurement'||s.prop5=='computational-biology'||s.prop5=='computational-finance'){920 s.prop30 = 'unknown';921 s.prop31 = 'unknown';922 s.prop32='solution-application';923 }924 else if(s.prop5=='aerospace-defense'||s.prop5=='automotive'||s.prop5=='biotech-pharmaceutical'||s.prop5=='communications'||s.prop5=='electronics-semiconductors'||s.prop5=='energy-production'||s.prop5=='financial-services'||s.prop5=='industry-automation-machinery'){925 s.prop30 = 'unknown';926 s.prop31 = 'unknown';927 s.prop32 = 'solution-industry';928 }929 else if(s.prop5=='industries' && s.prop6 == 'other'){930 s.prop30 = 'unknown';931 s.prop31 = 'unknown';932 s.prop32 = 'solution-industry';933 }934 else if (s.prop5 == 'matlabcentral'){935 s.prop30 = 'unknown';936 s.prop31 = 'unknown';937 s.prop32 = 'matlabcentral';938 }939 else if(s.prop5=='company'){940 if (s.prop7){941 if (s.prop7 == 'company/aboutus/contact_us' || s.prop7== 'company/events/webinars' || s.prop7 == 'company/events/seminars' ){942 if (s.prop38 != 'no value'){943 s.prop30=s.prop38;944 s.prop31=s.prop39;945 }946 else {947 s.prop30 = 'unknown';948 s.prop31 = 'unknown';949 }950 s.prop32= cvSplit[3];951 }952 else if (s.prop6== 'company/events'){953 if (s.prop38 != 'no value'){954 s.prop30=s.prop38;955 s.prop31=s.prop39;956 }957 else {958 s.prop30 = 'unknown';959 s.prop31 = 'unknown';960 }961 s.prop32= cvSplit[2];962 }963 else {964 s.prop30 = 'unknown';965 s.prop31 = 'unknown';966 s.prop32=cvSplit[1];967 }968 }969/* else if (s.prop6){970 var filename=cfUtility(cvURL,'filename');971 if (filename.indexOf('.')!=-1){972 s.prop30=filename.substring(0,filename.indexOf('.'));973 }974 else {975 s.prop30=cvSplit[2];976 }977 s.prop31=cvSplit[2];978 s.prop32=cvSplit[1];979 }*/980 else {981 s.prop30=s.prop31='unknown';982 s.prop32='company';983 }984 }985 else if (s.prop5=='programs'){986 if (s.prop6 == 'programs/techkits' || s.prop6 == 'programs/trial' || s.prop6 == 'programs/trials'){987 if (!s.prop30){988 if (s.prop38 != 'no value'){989 s.prop30 = s.prop38;990 s.prop31 = s.prop39;991 }992 else {993 s.prop30=s.prop31='unknown';994 }995 }996 s.prop32 = cvSplit[2];997 }998 }999 else if (s.channel=="homepage") {1000 s.prop30=s.prop31='unknown';1001 s.prop32='homepage';1002 }1003 else if (s.prop30 && s.prop5=='products') {1004 var filename=cfUtility(cvURL,'filename');1005 if(filename.search('description') > -1){1006 s.prop32="product_info";1007 }1008 else if ((filename == 'index.html') || (filename == '')){1009 if(s.prop6){1010 s.prop32='product_main';1011 }1012 else {1013 s.prop32='product';1014 }1015 }1016 else {1017 if (filename.indexOf('.')!=-1){1018 //s.prop32='product_'+filename.substring(0,filename.indexOf('.'));1019 s.prop32='product_other';1020 }1021 }1022 }1023 else if (s.prop5 == 'products'){1024 if (cfUtility(cvURL,'filename')=='login_pricing.html'){1025 if (s.prop38 != 'no value'){1026 s.prop30=s.prop38;1027 s.prop31=s.prop39;1028 }1029 else {1030 s.prop30=s.prop31='unknown';1031 }1032 s.prop32= 'Get Pricing';1033 }1034 }1035 else if (s.prop5 == 'store'){1036 if (cfUtility(cvURL,'filename')=='productindexsubmit.do'){1037 if (s.prop38 != 'no value'){1038 s.prop30=s.prop38;1039 s.prop31=s.prop39;1040 }1041 else {1042 s.prop30=s.prop31='unknown';1043 }1044 s.prop32= 'Store - Get Pricing';1045 }1046 else if (cfUtility(cvURL,'filename')=='productindexlink.do'){1047 if (s.prop38 != 'no value'){1048 s.prop30=s.prop38;1049 s.prop31=s.prop39;1050 }1051 else {1052 s.prop30=s.prop31='unknown';1053 }1054 s.prop32= 'Store - Buy Now';1055 }1056 }1057 else if (cvURL.indexOf('blogs.mathworks.')>-1){1058 s.prop30=s.prop31='unknown';1059 s.prop32='blogs';1060 }1061 if (!s.prop30){1062 s.prop30='unknown';1063 }1064 if (!s.prop31){1065 s.prop31='unknown';1066 }1067 if (!s.prop32){1068 if (s.prop5){1069 s.prop32=s.prop5;1070 }1071 else {1072 s.prop32='unknown';1073 }1074 }1075//s.detectRIA('s_ria','eVar56','eVar57','','','1');1076s.tnt=s.trackTNT();1077}1078 /* Copy product name, product grp and artifact type props into eVars */1079 if(s.prop30) {s.eVar30=s.prop30;}1080 if(s.prop31) {s.eVar31=s.prop31;}1081 if(s.prop32) {s.eVar32=s.prop32;}1082 //Extra page title prop for WSM reporting1083 if (s.prop35) {s.prop55 = s.prop35;}1084 //Extra artifact type prop for reporting as eVar32 has been used by videos1085 if (s.eVar32) {s.eVar33=s.eVar32;}1086 /* Added on 4/15/13 to track internal search widget - CG */1087// Application-set search properties1088// - prop49: application identifier1089// - prop50: search term minus facets1090// - prop51: search results page1091// - prop52: search facets1092(function(search) {1093 if (!search) { return; }1094 if (search.app) { s.prop49 = search.app; }1095 if (search.term && search.term !== '') { s.prop50 = search.term; }1096 if (search.page) { s.prop51 = search.page; }1097 if (search.facets && search.facets !== '') { s.prop52 = search.facets; }1098 if (search.typeahead && search.typeahead !== '') { s.prop63 = search.typeahead; }1099})(window.SearchTracking);1100/*added on 6/14/13 to track use for the doc TOC - CG */1101(function(toc) {1102 if (!toc) { return; }1103 if (toc.open) {1104 s.prop60="TOC open"; //record the property for setting that the toc was open on page load.1105 }1106 if (toc.clicked) {1107 s.prop61=cfUtility(cvURL,'pagename'); // record that the current page resulted as a click on the TOC.1108 s.prop62=cfUtility(refURL,'channel')+cfUtility(refURL,'filename'); // records the previous (referrer) page the user was on.1109 }1110})(window.TocTracking);1111if (typeof _satellite.readCookie("s_pers") !== "undefined" && _satellite.readCookie("s_pers") !== "") {1112 document.cookie = 's_pers=; Domain=.mathworks.com; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';1113}1114/************************** PLUGINS SECTION - START *************************/1115s.doPlugins=s_doPlugins;1116/*1117 * Get Full Referring Domains 100113 CG: Added to capture the referring sub-domain1118 */1119s.getFullReferringDomains=new Function(""1120+"var s=this,dr=window.document.referrer,n=s.linkInternalFilters.spli"1121+"t(',');if(dr){var r=dr.split('/')[2],l=n.length;for(i=0;i<=l;i++){i"1122+"f(r.indexOf(n[i])!=-1){r='';i=l+1;}}return r}");1123/*1124 * Utility: AppMeasurement Compatibility v1.11125 * Define deprecated H-code s properties and methods used by legacy plugins1126 */1127s.wd=window;1128s.n=navigator;1129s.fl=new Function("x","l",""1130+"return x?(''+x).substring(0,l):x");1131s.pt=new Function("x","d","f","a",""1132+"var s=this,t=x,z=0,y,r,l='length';while(t){y=t.indexOf(d);y=y<0?t[l"1133+"]:y;t=t.substring(0,y);r=s[f](t,a);if(r)return r;z+=y+d[l];t=x.subs"1134+"tring(z,x[l]);t=z<x[l]?t:''}return''");1135s.rep=new Function("x","o","n",""1136+"var a=new Array,i=0,j;if(x){if(x.split)a=x.split(o);else if(!o)for("1137+"i=0;i<x.length;i++)a[a.length]=x.substring(i,i+1);else while(i>=0){"1138+"j=x.indexOf(o,i);a[a.length]=x.substring(i,j<0?x.length:j);i=j;if(i"1139+">=0)i+=o.length}}x='';j=a.length;if(a&&j>0){x=a[0];if(j>1){if(a.joi"1140+"n)x=a.join(n);else for(i=1;i<j;i++)x+=n+a[i]}}return x");1141s.ape=new Function("x",""1142+"var s=this,h='0123456789ABCDEF',f='+~!*()\\'',i,c=s.charSet,n,l,e,y"1143+"='';c=c?c.toUpperCase():'';if(x){x=''+x;if(s.em==3){x=encodeURIComp"1144+"onent(x);for(i=0;i<f.length;i++){n=f.substring(i,i+1);if(x.indexOf("1145+"n)>=0)x=s.rep(x,n,'%'+n.charCodeAt(0).toString(16).toUpperCase())}}"1146+"else if(c=='AUTO'&&('').charCodeAt){for(i=0;i<x.length;i++){c=x.sub"1147+"string(i,i+1);n=x.charCodeAt(i);if(n>127){l=0;e='';while(n||l<4){e="1148+"h.substring(n%16,n%16+1)+e;n=(n-n%16)/16;l++}y+='%u'+e}else if(c=='"1149+"+')y+='%2B';else y+=escape(c)}x=y}else x=s.rep(escape(''+x),'+','%2"1150+"B');if(c&&c!='AUTO'&&s.em==1&&x.indexOf('%u')<0&&x.indexOf('%U')<0)"1151+"{i=x.indexOf('%');while(i>=0){i++;if(h.substring(8).indexOf(x.subst"1152+"ring(i,i+1).toUpperCase())>=0)return x.substring(0,i)+'u00'+x.subst"1153+"ring(i);i=x.indexOf('%',i)}}}return x");1154s.epa=new Function("x",""1155+"var s=this,y,tcf;if(x){x=s.rep(''+x,'+',' ');if(s.em==3){tcf=new Fu"1156+"nction('x','var y,e;try{y=decodeURIComponent(x)}catch(e){y=unescape"1157+"(x)}return y');return tcf(x)}else return unescape(x)}return y");1158s.parseUri=new Function("u",""1159+"if(u){u=u+'';u=u.indexOf(':')<0&&u.indexOf('//')!=0?(u.indexOf('/')"1160+"==0?'/':'//')+u:u}u=u?u+'':window.location.href;var e,a=document.cr"1161+"eateElement('a'),l=['href','protocol','host','hostname','port','pat"1162+"hname','search','hash'],p,r={href:u,toString:function(){return this"1163+".href}};a.setAttribute('href',u);for(e=1;e<l.length;e++){p=l[e];r[p"1164+"]=a[p]||''}delete a;p=r.pathname||'';if(p.indexOf('/')!=0)r.pathnam"1165+"e='/'+p;return r");1166s.gtfs=new Function(""1167+"var w=window,l=w.location,d=document,u;if(!l.origin)l.origin=l.prot"1168+"ocol+'//'+l.hostname+(l.port?':'+l.port:'');u=l!=w.parent.location?"1169+"d.referrer:d.location;return{location:s.parseUri(u)}");1170/*1171plugin: getQueryParam 2.41172*/1173s.getQueryParam=new Function("p","d","u","h",""1174+"var s=this,v='',i,j,t;d=d?d:'';u=u?u:(s.pageURL?s.pageURL:s.wd.loca"1175+"tion);if(u=='f')u=s.gtfs().location;while(p){i=p.indexOf(',');i=i<0"1176+"?p.length:i;t=s.p_gpv(p.substring(0,i),u+'',h);if(t){t=t.indexOf('#"1177+"')>-1?t.substring(0,t.indexOf('#')):t;}if(t)v+=v?d+t:t;p=p.substrin"1178+"g(i==p.length?i:i+1)}return v");1179s.p_gpv=new Function("k","u","h",""1180+"var s=this,v='',q;j=h==1?'#':'?';i=u.indexOf(j);if(k&&i>-1){q=u.sub"1181+"string(i+1);v=s.pt(q,'&','p_gvf',k)}return v"); s.p_gvf=new Function("t","k",""1182+"if(t){var s=this,i=t.indexOf('='),p=i<0?t:t.substring(0,i),v=i<0?'T"1183+"rue':t.substring(i+1);if(p.toLowerCase()==k.toLowerCase())return s."1184+"epa(v)}return''");1185/*1186 * s.join: 1.0 - Joins an array into a string1187 */1188s.join = new Function("v","p",""1189+"var s = this;var f,b,d,w;if(p){f=p.front?p.front:'';b=p.back?p.back"1190+":'';d=p.delim?p.delim:'';w=p.wrap?p.wrap:'';}var str='';for(var x=0"1191+";x<v.length;x++){if(typeof(v[x])=='object' )str+=s.join( v[x],p);el"1192+"se str+=w+v[x]+w;if(x<v.length-1)str+=d;}return f+str+b;");1193/*1194 * Plugin: getPreviousValue_v1.0 - return previous value of designated1195 * variable (requires split utility)1196 */1197s.getPreviousValue=new Function("v","c","el",""1198+"var s=this,t=new Date,i,j,r='';t.setTime(t.getTime()+1800000);if(el"1199+"){if(s.events){i=s.split(el,',');j=s.split(s.events,',');for(x in i"1200+"){for(y in j){if(i[x]==j[y]){if(s.c_r(c)) r=s.c_r(c);v?s.c_w(c,v,t)"1201+":s.c_w(c,'no value',t);return r}}}}}else{if(s.c_r(c)) r=s.c_r(c);v?"1202+"s.c_w(c,v,t):s.c_w(c,'no value',t);return r}");1203/*1204 * Plugin Utility: Replace v1.01205 */1206s.repl=new Function("x","o","n",""1207+"var i=x.indexOf(o),l=n.length;while(x&&i>=0){x=x.substring(0,i)+n+x."1208+"substring(i+o.length);i=x.indexOf(o,i+l)}return x");1209/*1210 * Utility Function: split v1.5 (JS 1.0 compatible)1211 */1212s.split=new Function("l","d",""1213+"var i,x=0,a=new Array;while(l){i=l.indexOf(d);i=i>-1?i:l.length;a[x"1214+"++]=l.substring(0,i);l=l.substring(i+d.length);}return a");1215/*1216 * Plugin: getAndPersistValue 0.3 - get a value on every page1217 */1218s.getAndPersistValue=new Function("v","c","e",""1219+"var s=this,a=new Date;e=e?e:0;a.setTime(a.getTime()+e*86400000);if("1220+"v)s.c_w(c,v,e?a:0);return s.c_r(c);");1221/*1222 * Plugin: getVisitStart v2.0 - returns 1 on first page of visit1223 * otherwise 01224 */1225s.getVisitStart=new Function("c",""1226+"var s=this,v=1,t=new Date;t.setTime(t.getTime()+1800000);if(s.c_r(c"1227+")){v=0}if(!s.c_w(c,1,t)){s.c_w(c,1,0)}if(!s.c_r(c)){v=0}return v;");1228/*1229 * Plugin: getNewRepeat 1.0 - Return whether user is new or repeat1230 */1231s.getNewRepeat=new Function(""1232+"var s=this,e=new Date(),cval,ct=e.getTime(),y=e.getYear();e.setTime"1233+"(ct+30*24*60*60*1000);cval=s.c_r('s_nr');if(cval.length==0){s.c_w("1234+"'s_nr',ct,e);return 'New';}if(cval.length!=0&&ct-cval<30*60*1000){s"1235+".c_w('s_nr',ct,e);return 'New';}if(cval<1123916400001){e.setTime(cv"1236+"al+30*24*60*60*1000);s.c_w('s_nr',ct,e);return 'Repeat';}else retur"1237+"n 'Repeat';");1238s.getDaysSinceLastVisit=new Function(""1239+"var s=this,e=new Date(),cval,ct=e.getTime(),c='s_lastvisit',day=24*"1240+"60*60*1000;e.setTime(ct+3*365*day);cval=s.c_r(c);if(!cval){s.c_w(c,"1241+"ct,e);return 'First page view or cookies not supported';}else{var d"1242+"=ct-cval;if(d>30*60*1000){if(d>30*day){s.c_w(c,ct,e);return 'More t"1243+"han 30 days';}if(d<30*day+1 && d>7*day){s.c_w(c,ct,e);return 'More "1244+"than 7 days';}if(d<7*day+1 && d>day){s.c_w(c,ct,e);return 'Less tha"1245+"n 7 days';}if(d<day+1){s.c_w(c,ct,e);return 'Less than 1 day';}}els"1246+"e return '';}");1247/*1248 * Plugin: getValOnce_v1.01249 */1250s.getValOnce=new Function("v","c","e",""1251+"var s=this,a=new Date,v=v?v:v='',c=c?c:c='s_gvo',e=e?e:0,k=s.c_r(c"1252+");if(v){a.setTime(a.getTime()+e*86400000);s.c_w(c,v,e?a:0);}return"1253+" v==k?'':v");1254/*1255 * Plugin Utility: Append to List v1.21256 */1257s.apl=new Function("l","v","d","u",""1258+"var s=this,m=0;if(!l)l='';if(u){var i,n,a=l.split(d),al=a.length;fo"1259+"r(i=0;i<al;i++){n=a[i];m=m||(u==1?(n==v):(n.toLowerCase()==v.toLowe"1260+"rCase()));}}if(!m)l=l?l+d+v:v;return l;");1261/*1262 * Plugin: getTimeToComplete 0.4 - return the time from start to stop1263 */1264s.getTimeToComplete=new Function("v","cn","e",""1265+"var s=this,d=new Date,x=d,k;if(!s.ttcr){e=e?e:0;if(v=='start'||v=='"1266+"stop')s.ttcr=1;x.setTime(x.getTime()+e*86400000);if(v=='start'){s.c"1267+"_w(cn,d.getTime(),e?x:0);return '';}if(v=='stop'){k=s.c_r(cn);if(!s"1268+".c_w(cn,'',d)||!k)return '';v=(d.getTime()-k)/1000;var td=86400,th="1269+"3600,tm=60,r=5,u,un;if(v>td){u=td;un='days';}else if(v>th){u=th;un="1270+"'hours';}else if(v>tm){r=2;u=tm;un='minutes';}else{r=.2;u=1;un='sec"1271+"onds';}v=v*r/u;return (Math.round(v)/r)+' '+un;}}return '';");1272s.getTimeToComplete2=new Function("v","cn","e",""1273+"var s=this,d=new Date,x=d,k;if(!s.ttcr2){e=e?e:0;if(v=='start'||v=='"1274+"stop')s.ttcr2=1;x.setTime(x.getTime()+e*86400000);if(v=='start'){s.c"1275+"_w(cn,d.getTime(),e?x:0);return '';}if(v=='stop'){k=s.c_r(cn);if(!s"1276+".c_w(cn,'',d)||!k)return '';v=(d.getTime()-k)/1000;var td=86400,th="1277+"3600,tm=60,r=5,u,un;if(v>td){u=td;un='days';}else if(v>th){u=th;un="1278+"'hours';}else if(v>tm){r=2;u=tm;un='minutes';}else{r=.2;u=1;un='sec"1279+"onds';}v=v*r/u;return (Math.round(v)/r)+' '+un;}}return '';");1280s.getTimeToComplete3=new Function("v","cn","e",""1281+"var s=this,d=new Date,x=d,k;if(!s.ttcr3){e=e?e:0;if(v=='start'||v=='"1282+"stop')s.ttcr3=1;x.setTime(x.getTime()+e*86400000);if(v=='start'){s.c"1283+"_w(cn,d.getTime(),e?x:0);return '';}if(v=='stop'){k=s.c_r(cn);if(!s"1284+".c_w(cn,'',d)||!k)return '';v=(d.getTime()-k)/1000;var td=86400,th="1285+"3600,tm=60,r=5,u,un;if(v>td){u=td;un='days';}else if(v>th){u=th;un="1286+"'hours';}else if(v>tm){r=2;u=tm;un='minutes';}else{r=.2;u=1;un='sec"1287+"onds';}v=v*r/u;return (Math.round(v)/r)+' '+un;}}return '';");1288s.getTimeToComplete4=new Function("v","cn","e",""1289+"var s=this,d=new Date,x=d,k;if(!s.ttcr4){e=e?e:0;if(v=='start'||v=='"1290+"stop')s.ttcr4=1;x.setTime(x.getTime()+e*86400000);if(v=='start'){s.c"1291+"_w(cn,d.getTime(),e?x:0);return '';}if(v=='stop'){k=s.c_r(cn);if(!s"1292+".c_w(cn,'',d)||!k)return '';v=(d.getTime()-k)/1000;var td=86400,th="1293+"3600,tm=60,r=5,u,un;if(v>td){u=td;un='days';}else if(v>th){u=th;un="1294+"'hours';}else if(v>tm){r=2;u=tm;un='minutes';}else{r=.2;u=1;un='sec"1295+"onds';}v=v*r/u;return (Math.round(v)/r)+' '+un;}}return '';");1296/*1297 * Plug-in: crossVisitParticipation v1.6 - stacks values from1298 * specified variable in cookie and returns value1299 */1300s.crossVisitParticipation=new Function("v","cn","ex","ct","dl","ev","dv",""1301+"var s=this,ce;if(typeof(dv)==='undefined')dv=0;if(s.events&&ev){var"1302+" ay=s.split(ev,',');var ea=s.split(s.events,',');for(var u=0;u<ay.l"1303+"ength;u++){for(var x=0;x<ea.length;x++){if(ay[u]==ea[x]){ce=1;}}}}i"1304+"f(!v||v==''){if(ce){s.c_w(cn,'');return'';}else return'';}v=escape("1305+"v);var arry=new Array(),a=new Array(),c=s.c_r(cn),g=0,h=new Array()"1306+";if(c&&c!='')arry=eval(c);var e=new Date();e.setFullYear(e.getFullY"1307+"ear()+5);if(dv==0&&arry.length>0&&arry[arry.length-1][0]==v)arry[ar"1308+"ry.length-1]=[v,new Date().getTime()];else arry[arry.length]=[v,new"1309+" Date().getTime()];var start=arry.length-ct<0?0:arry.length-ct;var "1310+"td=new Date();for(var x=start;x<arry.length;x++){var diff=Math.roun"1311+"d((td.getTime()-arry[x][1])/86400000);if(diff<ex){h[g]=unescape(arr"1312+"y[x][0]);a[g]=[arry[x][0],arry[x][1]];g++;}}var data=s.join(a,{deli"1313+"m:',',front:'[',back:']',wrap:\"'\"});s.c_w(cn,data,e);var r=s.join"1314+"(h,{delim:dl});if(ce)s.c_w(cn,'');return r;");1315/*1316 * channelManager v2.4 - Tracking External Traffic1317 */1318s.channelManager = new Function("a", "b", "c", "d", "e", "f", "var s=this,A,B,g,l,m,M,p,q,P,h,k,u,S,i,O,T,j,r,t,D,E,F,G,H,N,U,v=0,X,Y,W,n=new Date;n.setTime(n.getTime()+1800000);if(e){v=1;if(s.c_r(e))v=0;if(!s.c_w(e,1,n))s.c_w(e,1,0);if(!s.c_r(e))v=0;}g=s.referrer?s.referrer:document.referrer;g=g.toLowerCase();if(!g)h=1;i=g.indexOf('?')>-1?g.indexOf('?'):g.length;j=g.substring(0,i);k=s.linkInternalFilters.toLowerCase();k=s.split(k,',');l=k.length;for(m=0;m<l;m++){B=j.indexOf(k[m])==-1?'':g;if(B)O=B;}if(!O&&!h){p=g;U=g.indexOf('//');q=U>-1?U+2:0;Y=g.indexOf('/',q);r=Y>-1?Y:i;t=g.substring(q,r);t=t.toLowerCase();u=t;P='Referrers';S=s.seList+'>'+s._extraSearchEngines;if(d==1){j=s.repl(j,'oogle','%');j=s.repl(j,'ahoo','^');g=s.repl(g,'as_q','*');}A=s.split(S,'>');T=A.length;for(i=0;i<A.length;i++){D=A[i];D=s.split(D,'|');E=s.split(D[0],',');for(G=0;G<E.length;G++){H=j.indexOf(E[G]);if(H>-1){if(D[2])N=u=D[2];else N=t;if(d==1){N=s.repl(N,'#',' - ');g=s.repl(g,'*','as_q');N=s.repl(N,'^','ahoo');N=s.repl(N,'%','oogle');}i=s.split(D[1],',');for(k=0;k<i.length;k++){M=s.getQueryParam(i[k],'',g).toLowerCase();if(M)break;}}}}}if(!O||f!='1'){O=s.getQueryParam(a,b);if(O){u=O;if(M)P='Paid Search';else P='Paid Non-Search';}if(!O&&N){u=N;P='Natural Search'}}if(h==1&&!O&&v==1)u=P=t=p='Direct Load';X=M+u+t;c=c?c:'c_m';if(c!='0'){X=s.getValOnce(X,c,0);}g=s._channelDomain;if(g&&X){k=s.split(g,'>');l=k.length;for(m=0;m<l;m++){q=s.split(k[m],'|');r=s.split(q[1],',');S=r.length;for(T=0;T<S;T++){Y=r[T];Y=Y.toLowerCase();i=j.indexOf(Y);if(i>-1)P=q[0];}}}g=s._channelParameter;if(g&&X){k=s.split(g,'>');l=k.length;for(m=0;m<l;m++){q=s.split(k[m],'|');r=s.split(q[1],',');S=r.length;for(T=0;T<S;T++){U=s.getQueryParam(r[T]);if(U)P=q[0]}}}g=s._channelPattern;if(g&&X){k=s.split(g,'>');l=k.length;for(m=0;m<l;m++){q=s.split(k[m],'|');r=s.split(q[1],',');S=r.length;for(T=0;T<S;T++){Y=r[T];Y=Y.toLowerCase();i=O.toLowerCase();H=i.indexOf(Y);if(H==0)P=q[0];}}}if(X)M=M?M:N?'Keyword Unavailable':'n/a';p=X&&p?p:'';t=X&&t?t:'';N=X&&N?N:'';O=X&&O?O:'';u=X&&u?u:'';M=X&&M?M:'';P=X&&P?P:'';s._referrer=p;s._referringDomain=t;s._partner=N;s._campaignID=O;s._campaign=u;s._keywords=M;s._channel=P;");1319/* Top 130 Search Engines (used by Channel Manager) */1320s.seList="altavista.co|q,r|AltaVista>aol.co.uk,search.aol.co.uk|query"1321+"|AOL - United Kingdom>search.aol.com,search.aol.ca|query,q|AOL.com "1322+"Search>ask.com,ask.co.uk|ask,q|Ask Jeeves>www.baidu.com|wd|Baidu>da"1323+"um.net,search.daum.net|q|Daum>google.co,googlesyndication.com|q,as_"1324+"q|Google>google.com.ar|q,as_q|Google - Argentina>google.com.au|q,as"1325+"_q|Google - Australia>google.at|q,as_q|Google - Austria>google.com."1326+"bh|q,as_q|Google - Bahrain>google.com.bd|q,as_q|Google - Bangladesh"1327+">google.be|q,as_q|Google - Belgium>google.com.bo|q,as_q|Google - Bo"1328+"livia>google.ba|q,as_q|Google - Bosnia-Hercegovina>google.com.br|q,"1329+"as_q|Google - Brasil>google.bg|q,as_q|Google - Bulgaria>google.ca|q"1330+",as_q|Google - Canada>google.cl|q,as_q|Google - Chile>google.cn|q,a"1331+"s_q|Google - China>google.com.co|q,as_q|Google - Colombia>google.co"1332+".cr|q,as_q|Google - Costa Rica>google.hr|q,as_q|Google - Croatia>go"1333+"ogle.cz|q,as_q|Google - Czech Republic>google.dk|q,as_q|Google - De"1334+"nmark>google.com.do|q,as_q|Google - Dominican Republic>google.com.e"1335+"c|q,as_q|Google - Ecuador>google.com.eg|q,as_q|Google - Egypt>googl"1336+"e.com.sv|q,as_q|Google - El Salvador>google.ee|q,as_q|Google - Esto"1337+"nia>google.fi|q,as_q|Google - Finland>google.fr|q,as_q|Google - Fra"1338+"nce>google.de|q,as_q|Google - Germany>google.gr|q,as_q|Google - Gre"1339+"ece>google.com.gt|q,as_q|Google - Guatemala>google.hn|q,as_q|Google"1340+" - Honduras>google.com.hk|q,as_q|Google - Hong Kong>google.hu|q,as_"1341+"q|Google - Hungary>google.co.in|q,as_q|Google - India>google.co.id|"1342+"q,as_q|Google - Indonesia>google.ie|q,as_q|Google - Ireland>google."1343+"is|q,as_q|Google - Island>google.co.il|q,as_q|Google - Israel>googl"1344+"e.it|q,as_q|Google - Italy>google.com.jm|q,as_q|Google - Jamaica>go"1345+"ogle.co.jp|q,as_q|Google - Japan>google.jo|q,as_q|Google - Jordan>g"1346+"oogle.co.ke|q,as_q|Google - Kenya>google.co.kr|q,as_q|Google - Kore"1347+"a>google.lv|q,as_q|Google - Latvia>google.lt|q,as_q|Google - Lithua"1348+"nia>google.com.my|q,as_q|Google - Malaysia>google.com.mt|q,as_q|Goo"1349+"gle - Malta>google.mu|q,as_q|Google - Mauritius>google.com.mx|q,as_"1350+"q|Google - Mexico>google.co.ma|q,as_q|Google - Morocco>google.nl|q,"1351+"as_q|Google - Netherlands>google.co.nz|q,as_q|Google - New Zealand>"1352+"google.com.ni|q,as_q|Google - Nicaragua>google.com.ng|q,as_q|Google"1353+" - Nigeria>google.no|q,as_q|Google - Norway>google.com.pk|q,as_q|Go"1354+"ogle - Pakistan>google.com.py|q,as_q|Google - Paraguay>google.com.p"1355+"e|q,as_q|Google - Peru>google.com.ph|q,as_q|Google - Philippines>go"1356+"ogle.pl|q,as_q|Google - Poland>google.pt|q,as_q|Google - Portugal>g"1357+"oogle.com.pr|q,as_q|Google - Puerto Rico>google.com.qa|q,as_q|Googl"1358+"e - Qatar>google.ro|q,as_q|Google - Romania>google.ru|q,as_q|Google"1359+" - Russia>google.st|q,as_q|Google - Sao Tome and Principe>google.co"1360+"m.sa|q,as_q|Google - Saudi Arabia>google.com.sg|q,as_q|Google - Sin"1361+"gapore>google.sk|q,as_q|Google - Slovakia>google.si|q,as_q|Google -"1362+" Slovenia>google.co.za|q,as_q|Google - South Africa>google.es|q,as_"1363+"q|Google - Spain>google.lk|q,as_q|Google - Sri Lanka>google.se|q,as"1364+"_q|Google - Sweden>google.ch|q,as_q|Google - Switzerland>google.com"1365+".tw|q,as_q|Google - Taiwan>google.co.th|q,as_q|Google - Thailand>go"1366+"ogle.bs|q,as_q|Google - The Bahamas>google.tt|q,as_q|Google - Trini"1367+"dad and Tobago>google.com.tr|q,as_q|Google - Turkey>google.com.ua|q"1368+",as_q|Google - Ukraine>google.ae|q,as_q|Google - United Arab Emirat"1369+"es>google.co.uk|q,as_q|Google - United Kingdom>google.com.uy|q,as_q"1370+"|Google - Uruguay>google.co.ve|q,as_q|Google - Venezuela>google.com"1371+".vn|q,as_q|Google - Viet Nam>google.co.vi|q,as_q|Google - Virgin Is"1372+"lands>icqit.com|q|icq>bing.com|q|Microsoft Bing>myway.com|searchfor"1373+"|MyWay.com>naver.com,search.naver.com|query|Naver>netscape.com|quer"1374+"y,search|Netscape Search>reference.com|q|Reference.com>seznam|w|Sez"1375+"nam.cz>abcsok.no|q|Startsiden>tiscali.it|key|Tiscali>virgilio.it|qs"1376+"|Virgilio>yahoo.com,search.yahoo.com|p|Yahoo!>ar.yahoo.com,ar.searc"1377+"h.yahoo.com|p|Yahoo! - Argentina>au.yahoo.com,au.search.yahoo.com|p"1378+"|Yahoo! - Australia>ca.yahoo.com,ca.search.yahoo.com|p|Yahoo! - Can"1379+"ada>fr.yahoo.com,fr.search.yahoo.com|p|Yahoo! - France>de.yahoo.com"1380+",de.search.yahoo.com|p|Yahoo! - Germany>hk.yahoo.com,hk.search.yaho"1381+"o.com|p|Yahoo! - Hong Kong>in.yahoo.com,in.search.yahoo.com|p|Yahoo"1382+"! - India>yahoo.co.jp,search.yahoo.co.jp|p,va|Yahoo! - Japan>kr.yah"1383+"oo.com,kr.search.yahoo.com|p|Yahoo! - Korea>mx.yahoo.com,mx.search."1384+"yahoo.com|p|Yahoo! - Mexico>ph.yahoo.com,ph.search.yahoo.com|p|Yaho"1385+"o! - Philippines>sg.yahoo.com,sg.search.yahoo.com|p|Yahoo! - Singap"1386+"ore>es.yahoo.com,es.search.yahoo.com|p|Yahoo! - Spain>telemundo.yah"1387+"oo.com,espanol.search.yahoo.com|p|Yahoo! - Spanish (US : Telemundo)"1388+">tw.yahoo.com,tw.search.yahoo.com|p|Yahoo! - Taiwan>uk.yahoo.com,uk"1389+".search.yahoo.com|p|Yahoo! - UK and Ireland>yandex|text|Yandex.ru>s"1390+"earch.cnn.com|query|CNN Web Search>search.earthlink.net|q|Earthlink"1391+" Search>search.comcast.net|q|Comcast Search>search.rr.com|qs|RoadRu"1392+"nner Search>optimum.net|q|Optimum Search";1393s.getGoogleRank=new Function("ce,ie,ev1,ev2,dn",""1394+"var s=this,dr,rd,p,pa,kr,kw,dn=dn||'';qp='resnum,cd';dr=s.referrer|"1395+"|typeof s.referrer!='undefined'?s.referrer:document.referrer;if(!dr"1396+"||!ce||!ie)return;rd=s.split(dr,'/');if(rd[2].substring(0,11)!='www"1397+".google.')return;kw=s.getQueryParam('q,as_q',' ',dr);if(!kw)return;"1398+"if(ev1)s[ev1]=kw;kr=rd[3].substring(0,4)=='url?'?s.getQueryParam(qp"1399+",'|',dr):'';if(kr.indexOf('|')>-1)kr=kr.substring(0,kr.indexOf('|')"1400+");if(!kr||kr=='0'){if(ev2)s[ev2]='no rank available';return;}if(ev2"1401+")s[ev2]=kr;p=s.products;pa=s.split(p,',');pa[0]=s.split(pa[0],';');"1402+"pa[0][0]=pa[0][0]||'';pa[0][1]=pa[0][1]||dn;pa[0][2]=pa[0][2]||'';p"1403+"a[0][3]=pa[0][3]||'';pa[0][4]=s.apl(pa[0][4],ie+'='+kr,'|',2);pa[0]"1404+"=s.join(pa[0],{delim:';'});pa=s.join(pa,{delim:','});s.events=s.apl"1405+"(s.events,ce,',',2);s.events=s.apl(s.events,ie,',',2);s.products=pa"1406+";return;");1407/*1408* TNT Integration Plugin v1.01409*/1410s.trackTNT =new Function("v","p","b",""1411+"var s=this,n='s_tnt',p=p?p:n,v=v?v:n,r='',pm=false,b=b?b:true;if(s."1412+"getQueryParam){pm=s.getQueryParam(p);}if(pm){r+=(pm+',');}if(s.wd[v"1413+"]!=undefined){r+=s.wd[v];}if(b){s.wd[v]='';}return r;");1414/*1415 * Plugin: detectRIA v0.1 - detect and set Flash, Silverlight versions1416 */1417s.detectRIA=new Function("cn", "fp", "sp", "mfv", "msv", "sf", ""1418+"cn=cn?cn:'s_ria';msv=msv?msv:2;mfv=mfv?mfv:10;var s=this,sv='',fv=-"1419+"1,dwi=0,fr='',sr='',w,mt=s.n.mimeTypes,uk=s.c_r(cn),k=s.c_w('s_cc',"1420+"'true',0)?'Y':'N';fk=uk.substring(0,uk.indexOf('|'));sk=uk.substrin"1421+"g(uk.indexOf('|')+1,uk.length);if(k=='Y'&&s.p_fo('detectRIA')){if(u"1422+"k&&!sf){if(fp){s[fp]=fk;}if(sp){s[sp]=sk;}return false;}if(!fk&&fp)"1423+"{if(s.pl&&s.pl.length){if(s.pl['Shockwave Flash 2.0'])fv=2;x=s.pl['"1424+"Shockwave Flash'];if(x){fv=0;z=x.description;if(z)fv=z.substring(16"1425+",z.indexOf('.'));}}else if(navigator.plugins&&navigator.plugins.len"1426+"gth){x=navigator.plugins['Shockwave Flash'];if(x){fv=0;z=x.descript"1427+"ion;if(z)fv=z.substring(16,z.indexOf('.'));}}else if(mt&&mt.length)"1428+"{x=mt['application/x-shockwave-flash'];if(x&&x.enabledPlugin)fv=0;}"1429+"if(fv<=0)dwi=1;w=s.u.indexOf('Win')!=-1?1:0;if(dwi&&s.isie&&w&&exec"1430+"Script){result=false;for(var i=mfv;i>=3&&result!=true;i--){execScri"1431+"pt('on error resume next: result = IsObject(CreateObject(\"Shockwav"1432+"eFlash.ShockwaveFlash.'+i+'\"))','VBScript');fv=i;}}fr=fv==-1?'flas"1433+"h not detected':fv==0?'flash enabled (no version)':'flash '+fv;}if("1434+"!sk&&sp&&s.apv>=4.1){var tc='try{x=new ActiveXObject(\"AgControl.A'"1435+"+'gControl\");for(var i=msv;i>0;i--){for(var j=9;j>=0;j--){if(x.is'"1436+"+'VersionSupported(i+\".\"+j)){sv=i+\".\"+j;break;}}if(sv){break;}'"1437+"+'}}catch(e){try{x=navigator.plugins[\"Silverlight Plug-In\"];sv=x'"1438+"+'.description.substring(0,x.description.indexOf(\".\")+2);}catch('"1439+"+'e){}}';eval(tc);sr=sv==''?'silverlight not detected':'silverlight"1440+" '+sv;}if((fr&&fp)||(sr&&sp)){s.c_w(cn,fr+'|'+sr,0);if(fr)s[fp]=fr;"1441+"if(sr)s[sp]=sr;}}");1442s.p_fo=new Function("n",""1443+"var s=this;if(!s.__fo){s.__fo=new Object;}if(!s.__fo[n]){s.__fo[n]="1444+"new Object;return 1;}else {return 0;}");1445/*1446 Start ActivityMap Module1447 The following module enables ActivityMap tracking in Adobe Analytics. ActivityMap1448 allows you to view data overlays on your links and content to understand how1449 users engage with your web site. If you do not intend to use ActivityMap, you1450 can remove the following block of code from your AppMeasurement.js file.1451 Additional documentation on how to configure ActivityMap is available at:1452 https://marketing.adobe.com/resources/help/en_US/analytics/activitymap/getting-started-admins.html1453*/1454function AppMeasurement_Module_ActivityMap(f){function g(a,d){var b,c,m;if(a&&d&&(b=e.c[d]||(e.c[d]=d.split(","))))for(m=0;m<b.length&&(c=b[m++]);)if(-1<a.indexOf(c))return null;n=1;return a}function p(a,d,b,c,e){var g,k;if(a.dataset&&(k=a.dataset[d]))g=k;else if(a.getAttribute)if(k=a.getAttribute("data-"+b))g=k;else if(k=a.getAttribute(b))g=k;if(!g&&f.useForcedLinkTracking&&e){var h;a=a.onclick?""+a.onclick:"";varValue="";if(c&&a&&(d=a.indexOf(c),0<=d)){for(d+=c.length;d<a.length;)if(b=a.charAt(d++),14550<="'\"".indexOf(b)){h=b;break}for(k=!1;d<a.length&&h;){b=a.charAt(d);if(!k&&b===h)break;"\\"===b?k=!0:(varValue+=b,k=!1);d++}}(h=varValue)&&(f.w[c]=h)}return g||e&&f.w[c]}function q(a,d,b){var c;return(c=e[d](a,b))&&(n?(n=0,c):g(h(c),e[d+"Exclusions"]))}function r(a,d,b){var c;if(a&&!(1===(c=a.nodeType)&&(c=a.nodeName)&&(c=c.toUpperCase())&&s[c])&&(1===a.nodeType&&(c=a.nodeValue)&&(d[d.length]=c),b.a||b.t||b.s||!a.getAttribute||((c=a.getAttribute("alt"))?b.a=c:(c=a.getAttribute("title"))?b.t=c:"IMG"==1456(""+a.nodeName).toUpperCase()&&(c=a.getAttribute("src")||a.src)&&(b.s=c)),(c=a.childNodes)&&c.length))for(a=0;a<c.length;a++)r(c[a],d,b)}function h(a){if(null==a||void 0==a)return a;try{return a.replace(RegExp("^[\\s\\n\\f\\r\\t\t-\r \u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u205f\u3000\ufeff]+","mg"),"").replace(RegExp("[\\s\\n\\f\\r\\t\t-\r \u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u205f\u3000\ufeff]+$","mg"),"").replace(RegExp("[\\s\\n\\f\\r\\t\t-\r \u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u205f\u3000\ufeff]{1,}",1457"mg")," ").substring(0,254)}catch(d){}}var e=this;e.s=f;var l=window;l.s_c_in||(l.s_c_il=[],l.s_c_in=0);e._il=l.s_c_il;e._in=l.s_c_in;e._il[e._in]=e;l.s_c_in++;e._c="s_m";e.c={};var n=0,s={SCRIPT:1,STYLE:1,LINK:1,CANVAS:1};e._g=function(){var a,d,b,c=f.contextData,e=f.linkObject;(a=f.pageName||f.pageURL)&&(d=q(e,"link",f.linkName))&&(b=q(e,"region"))&&(c["a.activitymap.page"]=a.substring(0,255),c["a.activitymap.link"]=128<d.length?d.substring(0,128):d,c["a.activitymap.region"]=127<b.length?b.substring(0,1458127):b,c["a.activitymap.pageIDType"]=f.pageName?1:0)};e.link=function(a,d){var b;if(d)b=g(h(d),e.linkExclusions);else if((b=a)&&!(b=p(a,"sObjectId","s-object-id","s_objectID",1))){var c,f;(f=g(h(a.innerText||a.textContent),e.linkExclusions))||(r(a,c=[],b={a:void 0,t:void 0,s:void 0}),(f=g(h(c.join(""))))||(f=g(h(b.a?b.a:b.t?b.t:b.s?b.s:void 0)))||!(c=(c=a.tagName)&&c.toUpperCase?c.toUpperCase():"")||("INPUT"==c||"SUBMIT"==c&&a.value?f=g(h(a.value)):"IMAGE"==c&&a.src&&(f=g(h(a.src)))));b=f}return b};1459e.region=function(a){for(var d,b=e.regionIDAttribute||"id";a&&(a=a.parentNode);){if(d=p(a,b,b,b))return d;if("BODY"==a.nodeName)return"BODY"}}}1460/* End ActivityMap Module */1461/*1462 ============== DO NOT ALTER ANYTHING BELOW THIS LINE ! ===============1463AppMeasurement for JavaScript version: 2.12.01464Copyright 1996-2016 Adobe, Inc. All Rights Reserved1465More info available at http://www.adobe.com/marketing-cloud.html1466*/1467function AppMeasurement(r){var a=this;a.version="2.12.0";var k=window;k.s_c_in||(k.s_c_il=[],k.s_c_in=0);a._il=k.s_c_il;a._in=k.s_c_in;a._il[a._in]=a;k.s_c_in++;a._c="s_c";var q=k.AppMeasurement.ac;q||(q=null);var p=k,m,s;try{for(m=p.parent,s=p.location;m&&m.location&&s&&""+m.location!=""+s&&p.location&&""+m.location!=""+p.location&&m.location.host==s.host;)p=m,m=p.parent}catch(u){}a.D=function(a){try{console.log(a)}catch(b){}};a.Pa=function(a){return""+parseInt(a)==""+a};a.replace=function(a,b,d){return!a||14680>a.indexOf(b)?a:a.split(b).join(d)};a.escape=function(c){var b,d;if(!c)return c;c=encodeURIComponent(c);for(b=0;7>b;b++)d="+~!*()'".substring(b,b+1),0<=c.indexOf(d)&&(c=a.replace(c,d,"%"+d.charCodeAt(0).toString(16).toUpperCase()));return c};a.unescape=function(c){if(!c)return c;c=0<=c.indexOf("+")?a.replace(c,"+"," "):c;try{return decodeURIComponent(c)}catch(b){}return unescape(c)};a.Ib=function(){var c=k.location.hostname,b=a.fpCookieDomainPeriods,d;b||(b=a.cookieDomainPeriods);if(c&&!a.Ha&&!/^[0-9.]+$/.test(c)&&1469(b=b?parseInt(b):2,b=2<b?b:2,d=c.lastIndexOf("."),0<=d)){for(;0<=d&&1<b;)d=c.lastIndexOf(".",d-1),b--;a.Ha=0<d?c.substring(d):c}return a.Ha};a.c_r=a.cookieRead=function(c){c=a.escape(c);var b=" "+a.d.cookie,d=b.indexOf(" "+c+"="),f=0>d?d:b.indexOf(";",d);c=0>d?"":a.unescape(b.substring(d+2+c.length,0>f?b.length:f));return"[[B]]"!=c?c:""};a.c_w=a.cookieWrite=function(c,b,d){var f=a.Ib(),e=a.cookieLifetime,g;b=""+b;e=e?(""+e).toUpperCase():"";d&&"SESSION"!=e&&"NONE"!=e&&((g=""!=b?parseInt(e?e:0):-60)?1470(d=new Date,d.setTime(d.getTime()+1E3*g)):1===d&&(d=new Date,g=d.getYear(),d.setYear(g+2+(1900>g?1900:0))));return c&&"NONE"!=e?(a.d.cookie=a.escape(c)+"="+a.escape(""!=b?b:"[[B]]")+"; path=/;"+(d&&"SESSION"!=e?" expires="+d.toUTCString()+";":"")+(f?" domain="+f+";":""),a.cookieRead(c)==b):0};a.Fb=function(){var c=a.Util.getIeVersion();"number"===typeof c&&10>c&&(a.unsupportedBrowser=!0,a.tb(a,function(){}))};a.tb=function(a,b){for(var d in a)a.hasOwnProperty(d)&&"function"===typeof a[d]&&(a[d]=b)};1471a.M=[];a.fa=function(c,b,d){if(a.Ia)return 0;a.maxDelay||(a.maxDelay=250);var f=0,e=(new Date).getTime()+a.maxDelay,g=a.d.visibilityState,h=["webkitvisibilitychange","visibilitychange"];g||(g=a.d.webkitVisibilityState);if(g&&"prerender"==g){if(!a.ga)for(a.ga=1,d=0;d<h.length;d++)a.d.addEventListener(h[d],function(){var c=a.d.visibilityState;c||(c=a.d.webkitVisibilityState);"visible"==c&&(a.ga=0,a.delayReady())});f=1;e=0}else d||a.o("_d")&&(f=1);f&&(a.M.push({m:c,a:b,t:e}),a.ga||setTimeout(a.delayReady,1472a.maxDelay));return f};a.delayReady=function(){var c=(new Date).getTime(),b=0,d;for(a.o("_d")?b=1:a.za();0<a.M.length;){d=a.M.shift();if(b&&!d.t&&d.t>c){a.M.unshift(d);setTimeout(a.delayReady,parseInt(a.maxDelay/2));break}a.Ia=1;a[d.m].apply(a,d.a);a.Ia=0}};a.setAccount=a.sa=function(c){var b,d;if(!a.fa("setAccount",arguments))if(a.account=c,a.allAccounts)for(b=a.allAccounts.concat(c.split(",")),a.allAccounts=[],b.sort(),d=0;d<b.length;d++)0!=d&&b[d-1]==b[d]||a.allAccounts.push(b[d]);else a.allAccounts=1473c.split(",")};a.foreachVar=function(c,b){var d,f,e,g,h="";e=f="";if(a.lightProfileID)d=a.Q,(h=a.lightTrackVars)&&(h=","+h+","+a.ka.join(",")+",");else{d=a.g;if(a.pe||a.linkType)h=a.linkTrackVars,f=a.linkTrackEvents,a.pe&&(e=a.pe.substring(0,1).toUpperCase()+a.pe.substring(1),a[e]&&(h=a[e].Zb,f=a[e].Yb));h&&(h=","+h+","+a.G.join(",")+",");f&&h&&(h+=",events,")}b&&(b=","+b+",");for(f=0;f<d.length;f++)e=d[f],(g=a[e])&&(!h||0<=h.indexOf(","+e+","))&&(!b||0<=b.indexOf(","+e+","))&&c(e,g)};a.q=function(c,1474b,d,f,e){var g="",h,l,k,n,m=0;"contextData"==c&&(c="c");if(b){for(h in b)if(!(Object.prototype[h]||e&&h.substring(0,e.length)!=e)&&b[h]&&(!d||0<=d.indexOf(","+(f?f+".":"")+h+","))){k=!1;if(m)for(l=0;l<m.length;l++)h.substring(0,m[l].length)==m[l]&&(k=!0);if(!k&&(""==g&&(g+="&"+c+"."),l=b[h],e&&(h=h.substring(e.length)),0<h.length))if(k=h.indexOf("."),0<k)l=h.substring(0,k),k=(e?e:"")+l+".",m||(m=[]),m.push(k),g+=a.q(l,b,d,f,k);else if("boolean"==typeof l&&(l=l?"true":"false"),l){if("retrieveLightData"==1475f&&0>e.indexOf(".contextData."))switch(k=h.substring(0,4),n=h.substring(4),h){case "transactionID":h="xact";break;case "channel":h="ch";break;case "campaign":h="v0";break;default:a.Pa(n)&&("prop"==k?h="c"+n:"eVar"==k?h="v"+n:"list"==k?h="l"+n:"hier"==k&&(h="h"+n,l=l.substring(0,255)))}g+="&"+a.escape(h)+"="+a.escape(l)}}""!=g&&(g+="&."+c)}return g};a.usePostbacks=0;a.Lb=function(){var c="",b,d,f,e,g,h,l,k,n="",m="",p=e="",r=a.V();if(a.lightProfileID)b=a.Q,(n=a.lightTrackVars)&&(n=","+n+","+a.ka.join(",")+1476",");else{b=a.g;if(a.pe||a.linkType)n=a.linkTrackVars,m=a.linkTrackEvents,a.pe&&(e=a.pe.substring(0,1).toUpperCase()+a.pe.substring(1),a[e]&&(n=a[e].Zb,m=a[e].Yb));n&&(n=","+n+","+a.G.join(",")+",");m&&(m=","+m+",",n&&(n+=",events,"));a.events2&&(p+=(""!=p?",":"")+a.events2)}if(r&&a.xa()&&r.getCustomerIDs){e=q;if(g=r.getCustomerIDs())for(d in g)Object.prototype[d]||(f=g[d],"object"==typeof f&&(e||(e={}),f.id&&(e[d+".id"]=f.id),f.authState&&(e[d+".as"]=f.authState)));e&&(c+=a.q("cid",e))}a.AudienceManagement&&1477a.AudienceManagement.isReady()&&(c+=a.q("d",a.AudienceManagement.getEventCallConfigParams()));for(d=0;d<b.length;d++){e=b[d];g=a[e];f=e.substring(0,4);h=e.substring(4);g||("events"==e&&p?(g=p,p=""):"marketingCloudOrgID"==e&&r&&a.X("ECID")&&(g=r.marketingCloudOrgID));if(g&&(!n||0<=n.indexOf(","+e+","))){switch(e){case "customerPerspective":e="cp";break;case "marketingCloudOrgID":e="mcorgid";break;case "supplementalDataID":e="sdid";break;case "timestamp":e="ts";break;case "dynamicVariablePrefix":e=1478"D";break;case "visitorID":e="vid";break;case "marketingCloudVisitorID":e="mid";break;case "analyticsVisitorID":e="aid";break;case "audienceManagerLocationHint":e="aamlh";break;case "audienceManagerBlob":e="aamb";break;case "authState":e="as";break;case "pageURL":e="g";255<g.length&&(a.pageURLRest=g.substring(255),g=g.substring(0,255));break;case "pageURLRest":e="-g";break;case "referrer":e="r";break;case "vmk":case "visitorMigrationKey":e="vmt";break;case "visitorMigrationServer":e="vmf";a.ssl&&1479a.visitorMigrationServerSecure&&(g="");break;case "visitorMigrationServerSecure":e="vmf";!a.ssl&&a.visitorMigrationServer&&(g="");break;case "charSet":e="ce";break;case "visitorNamespace":e="ns";break;case "cookieDomainPeriods":e="cdp";break;case "cookieLifetime":e="cl";break;case "variableProvider":e="vvp";break;case "currencyCode":e="cc";break;case "channel":e="ch";break;case "transactionID":e="xact";break;case "campaign":e="v0";break;case "latitude":e="lat";break;case "longitude":e="lon";break;1480case "resolution":e="s";break;case "colorDepth":e="c";break;case "javascriptVersion":e="j";break;case "javaEnabled":e="v";break;case "cookiesEnabled":e="k";break;case "browserWidth":e="bw";break;case "browserHeight":e="bh";break;case "connectionType":e="ct";break;case "homepage":e="hp";break;case "events":p&&(g+=(""!=g?",":"")+p);if(m)for(h=g.split(","),g="",f=0;f<h.length;f++)l=h[f],k=l.indexOf("="),0<=k&&(l=l.substring(0,k)),k=l.indexOf(":"),0<=k&&(l=l.substring(0,k)),0<=m.indexOf(","+l+",")&&(g+=1481(g?",":"")+h[f]);break;case "events2":g="";break;case "contextData":c+=a.q("c",a[e],n,e);g="";break;case "lightProfileID":e="mtp";break;case "lightStoreForSeconds":e="mtss";a.lightProfileID||(g="");break;case "lightIncrementBy":e="mti";a.lightProfileID||(g="");break;case "retrieveLightProfiles":e="mtsr";break;case "deleteLightProfiles":e="mtsd";break;case "retrieveLightData":a.retrieveLightProfiles&&(c+=a.q("mts",a[e],n,e));g="";break;default:a.Pa(h)&&("prop"==f?e="c"+h:"eVar"==f?e="v"+h:"list"==1482f?e="l"+h:"hier"==f&&(e="h"+h,g=g.substring(0,255)))}g&&(c+="&"+e+"="+("pev"!=e.substring(0,3)?a.escape(g):g))}"pev3"==e&&a.e&&(c+=a.e)}a.ja&&(c+="&lrt="+a.ja,a.ja=null);return c};a.C=function(a){var b=a.tagName;if("undefined"!=""+a.ec||"undefined"!=""+a.Ub&&"HTML"!=(""+a.Ub).toUpperCase())return"";b=b&&b.toUpperCase?b.toUpperCase():"";"SHAPE"==b&&(b="");b&&(("INPUT"==b||"BUTTON"==b)&&a.type&&a.type.toUpperCase?b=a.type.toUpperCase():!b&&a.href&&(b="A"));return b};a.La=function(a){var b=k.location,1483d=a.href?a.href:"",f,e,g;f=d.indexOf(":");e=d.indexOf("?");g=d.indexOf("/");d&&(0>f||0<=e&&f>e||0<=g&&f>g)&&(e=a.protocol&&1<a.protocol.length?a.protocol:b.protocol?b.protocol:"",f=b.pathname.lastIndexOf("/"),d=(e?e+"//":"")+(a.host?a.host:b.host?b.host:"")+("/"!=d.substring(0,1)?b.pathname.substring(0,0>f?0:f)+"/":"")+d);return d};a.N=function(c){var b=a.C(c),d,f,e="",g=0;return b&&(d=c.protocol,f=c.onclick,!c.href||"A"!=b&&"AREA"!=b||f&&d&&!(0>d.toLowerCase().indexOf("javascript"))?f?(e=a.replace(a.replace(a.replace(a.replace(""+1484f,"\r",""),"\n",""),"\t","")," ",""),g=2):"INPUT"==b||"SUBMIT"==b?(c.value?e=c.value:c.innerText?e=c.innerText:c.textContent&&(e=c.textContent),g=3):"IMAGE"==b&&c.src&&(e=c.src):e=a.La(c),e)?{id:e.substring(0,100),type:g}:0};a.bc=function(c){for(var b=a.C(c),d=a.N(c);c&&!d&&"BODY"!=b;)if(c=c.parentElement?c.parentElement:c.parentNode)b=a.C(c),d=a.N(c);d&&"BODY"!=b||(c=0);c&&(b=c.onclick?""+c.onclick:"",0<=b.indexOf(".tl(")||0<=b.indexOf(".trackLink("))&&(c=0);return c};a.Tb=function(){var c,b,d=a.linkObject,1485f=a.linkType,e=a.linkURL,g,h;a.la=1;d||(a.la=0,d=a.clickObject);if(d){c=a.C(d);for(b=a.N(d);d&&!b&&"BODY"!=c;)if(d=d.parentElement?d.parentElement:d.parentNode)c=a.C(d),b=a.N(d);b&&"BODY"!=c||(d=0);if(d&&!a.linkObject){var l=d.onclick?""+d.onclick:"";if(0<=l.indexOf(".tl(")||0<=l.indexOf(".trackLink("))d=0}}else a.la=1;!e&&d&&(e=a.La(d));e&&!a.linkLeaveQueryString&&(g=e.indexOf("?"),0<=g&&(e=e.substring(0,g)));if(!f&&e){var m=0,n=0,p;if(a.trackDownloadLinks&&a.linkDownloadFileTypes)for(l=e.toLowerCase(),1486g=l.indexOf("?"),h=l.indexOf("#"),0<=g?0<=h&&h<g&&(g=h):g=h,0<=g&&(l=l.substring(0,g)),g=a.linkDownloadFileTypes.toLowerCase().split(","),h=0;h<g.length;h++)(p=g[h])&&l.substring(l.length-(p.length+1))=="."+p&&(f="d");if(a.trackExternalLinks&&!f&&(l=e.toLowerCase(),a.Oa(l)&&(a.linkInternalFilters||(a.linkInternalFilters=k.location.hostname),g=0,a.linkExternalFilters?(g=a.linkExternalFilters.toLowerCase().split(","),m=1):a.linkInternalFilters&&(g=a.linkInternalFilters.toLowerCase().split(",")),g))){for(h=14870;h<g.length;h++)p=g[h],0<=l.indexOf(p)&&(n=1);n?m&&(f="e"):m||(f="e")}}a.linkObject=d;a.linkURL=e;a.linkType=f;if(a.trackClickMap||a.trackInlineStats)a.e="",d&&(f=a.pageName,e=1,d=d.sourceIndex,f||(f=a.pageURL,e=0),k.s_objectID&&(b.id=k.s_objectID,d=b.type=1),f&&b&&b.id&&c&&(a.e="&pid="+a.escape(f.substring(0,255))+(e?"&pidt="+e:"")+"&oid="+a.escape(b.id.substring(0,100))+(b.type?"&oidt="+b.type:"")+"&ot="+c+(d?"&oi="+d:"")))};a.Mb=function(){var c=a.la,b=a.linkType,d=a.linkURL,f=a.linkName;b&&(d||1488f)&&(b=b.toLowerCase(),"d"!=b&&"e"!=b&&(b="o"),a.pe="lnk_"+b,a.pev1=d?a.escape(d):"",a.pev2=f?a.escape(f):"",c=1);a.abort&&(c=0);if(a.trackClickMap||a.trackInlineStats||a.Pb()){var b={},d=0,e=a.ob(),g=e?e.split("&"):0,h,l,k,e=0;if(g)for(h=0;h<g.length;h++)l=g[h].split("="),f=a.unescape(l[0]).split(","),l=a.unescape(l[1]),b[l]=f;f=a.account.split(",");h={};for(k in a.contextData)k&&!Object.prototype[k]&&"a.activitymap."==k.substring(0,14)&&(h[k]=a.contextData[k],a.contextData[k]="");a.e=a.q("c",h)+1489(a.e?a.e:"");if(c||a.e){c&&!a.e&&(e=1);for(l in b)if(!Object.prototype[l])for(k=0;k<f.length;k++)for(e&&(g=b[l].join(","),g==a.account&&(a.e+=("&"!=l.charAt(0)?"&":"")+l,b[l]=[],d=1)),h=0;h<b[l].length;h++)g=b[l][h],g==f[k]&&(e&&(a.e+="&u="+a.escape(g)+("&"!=l.charAt(0)?"&":"")+l+"&u=0"),b[l].splice(h,1),d=1);c||(d=1);if(d){e="";h=2;!c&&a.e&&(e=a.escape(f.join(","))+"="+a.escape(a.e),h=1);for(l in b)!Object.prototype[l]&&0<h&&0<b[l].length&&(e+=(e?"&":"")+a.escape(b[l].join(","))+"="+a.escape(l),1490h--);a.ub(e)}}}return c};a.ob=function(){if(a.useLinkTrackSessionStorage){if(a.Ca())return k.sessionStorage.getItem(a.R)}else return a.cookieRead(a.R)};a.Ca=function(){return k.sessionStorage?!0:!1};a.ub=function(c){a.useLinkTrackSessionStorage?a.Ca()&&k.sessionStorage.setItem(a.R,c):a.cookieWrite(a.R,c)};a.Nb=function(){if(!a.Xb){var c=new Date,b=p.location,d,f,e=f=d="",g="",h="",l="1.2",k=a.cookieWrite("s_cc","true",0)?"Y":"N",m="",q="";if(c.setUTCDate&&(l="1.3",(0).toPrecision&&(l="1.5",c=[],c.forEach))){l=1491"1.6";f=0;d={};try{f=new Iterator(d),f.next&&(l="1.7",c.reduce&&(l="1.8",l.trim&&(l="1.8.1",Date.parse&&(l="1.8.2",Object.create&&(l="1.8.5")))))}catch(r){}}d=screen.width+"x"+screen.height;e=navigator.javaEnabled()?"Y":"N";f=screen.pixelDepth?screen.pixelDepth:screen.colorDepth;g=a.w.innerWidth?a.w.innerWidth:a.d.documentElement.offsetWidth;h=a.w.innerHeight?a.w.innerHeight:a.d.documentElement.offsetHeight;try{a.b.addBehavior("#default#homePage"),m=a.b.cc(b)?"Y":"N"}catch(s){}try{a.b.addBehavior("#default#clientCaps"),1492q=a.b.connectionType}catch(t){}a.resolution=d;a.colorDepth=f;a.javascriptVersion=l;a.javaEnabled=e;a.cookiesEnabled=k;a.browserWidth=g;a.browserHeight=h;a.connectionType=q;a.homepage=m;a.Xb=1}};a.S={};a.loadModule=function(c,b){var d=a.S[c];if(!d){d=k["AppMeasurement_Module_"+c]?new k["AppMeasurement_Module_"+c](a):{};a.S[c]=a[c]=d;d.jb=function(){return d.rb};d.vb=function(b){if(d.rb=b)a[c+"_onLoad"]=b,a.fa(c+"_onLoad",[a,d],1)||b(a,d)};try{Object.defineProperty?Object.defineProperty(d,"onLoad",1493{get:d.jb,set:d.vb}):d._olc=1}catch(f){d._olc=1}}b&&(a[c+"_onLoad"]=b,a.fa(c+"_onLoad",[a,d],1)||b(a,d))};a.o=function(c){var b,d;for(b in a.S)if(!Object.prototype[b]&&(d=a.S[b])&&(d._olc&&d.onLoad&&(d._olc=0,d.onLoad(a,d)),d[c]&&d[c]()))return 1;return 0};a.Pb=function(){return a.ActivityMap&&a.ActivityMap._c?!0:!1};a.Qb=function(){var c=Math.floor(1E13*Math.random()),b=a.visitorSampling,d=a.visitorSamplingGroup,d="s_vsn_"+(a.visitorNamespace?a.visitorNamespace:a.account)+(d?"_"+d:""),f=a.cookieRead(d);1494if(b){b*=100;f&&(f=parseInt(f));if(!f){if(!a.cookieWrite(d,c))return 0;f=c}if(f%1E4>b)return 0}return 1};a.T=function(c,b){var d,f,e,g,h,k;for(d=0;2>d;d++)for(f=0<d?a.Da:a.g,e=0;e<f.length;e++)if(g=f[e],(h=c[g])||c["!"+g]){if(!b&&("contextData"==g||"retrieveLightData"==g)&&a[g])for(k in a[g])h[k]||(h[k]=a[g][k]);a[g]=h}};a.Za=function(c,b){var d,f,e,g;for(d=0;2>d;d++)for(f=0<d?a.Da:a.g,e=0;e<f.length;e++)g=f[e],c[g]=a[g],b||c[g]||(c["!"+g]=1)};a.Hb=function(a){var b,d,f,e,g,h=0,k,m="",n="";if(a&&1495255<a.length&&(b=""+a,d=b.indexOf("?"),0<d&&(k=b.substring(d+1),b=b.substring(0,d),e=b.toLowerCase(),f=0,"http://"==e.substring(0,7)?f+=7:"https://"==e.substring(0,8)&&(f+=8),d=e.indexOf("/",f),0<d&&(e=e.substring(f,d),g=b.substring(d),b=b.substring(0,d),0<=e.indexOf("google")?h=",q,ie,start,search_key,word,kw,cd,":0<=e.indexOf("yahoo.co")&&(h=",p,ei,"),h&&k)))){if((a=k.split("&"))&&1<a.length){for(f=0;f<a.length;f++)e=a[f],d=e.indexOf("="),0<d&&0<=h.indexOf(","+e.substring(0,d)+",")?m+=(m?"&":"")+1496e:n+=(n?"&":"")+e;m&&n?k=m+"&"+n:n=""}d=253-(k.length-n.length)-b.length;a=b+(0<d?g.substring(0,d):"")+"?"+k}return a};a.cb=function(c){var b=a.d.visibilityState,d=["webkitvisibilitychange","visibilitychange"];b||(b=a.d.webkitVisibilityState);if(b&&"prerender"==b){if(c)for(b=0;b<d.length;b++)a.d.addEventListener(d[b],function(){var b=a.d.visibilityState;b||(b=a.d.webkitVisibilityState);"visible"==b&&c()});return!1}return!0};a.ca=!1;a.J=!1;a.xb=function(){a.J=!0;a.H()};a.K=!1;a.U=!1;a.yb=function(c){a.marketingCloudVisitorID=1497c.MCMID;a.visitorOptedOut=c.MCOPTOUT;a.analyticsVisitorID=c.MCAID;a.audienceManagerLocationHint=c.MCAAMLH;a.audienceManagerBlob=c.MCAAMB;a.K=!1;a.U=!0;a.H()};a.bb=function(c){a.maxDelay||(a.maxDelay=250);return a.o("_d")?(c&&setTimeout(function(){c()},a.maxDelay),!1):!0};a.aa=!1;a.I=!1;a.za=function(){a.I=!0;a.H()};a.isReadyToTrack=function(){var c=!0;if(!a.nb()||!a.mb())return!1;a.xa()||(c=!1);a.qb()||(c=!1);return c};a.nb=function(){a.ca||a.J||(a.cb(a.xb)?a.J=!0:a.ca=!0);return a.ca&&!a.J?!1:!0};1498a.mb=function(){var c=a.va();if(c)if(a.ta||a.ba)if(a.ta){if(!c.isApproved(c.Categories.ANALYTICS))return!1}else return!1;else return c.fetchPermissions(a.sb,!0),a.ba=!0,!1;return!0};a.X=function(c){var b=a.va();return b&&!b.isApproved(b.Categories[c])?!1:!0};a.va=function(){return k.adobe&&k.adobe.optIn?k.adobe.optIn:null};a.xa=function(){var c=a.V();return c&&c.getVisitorValues&&(a.K||a.U||(a.K=!0,c.getVisitorValues(a.yb)),a.K&&!a.U)?!1:!0};a.V=function(){var c=a.visitor;c&&!c.isAllowed()&&(c=null);1499return c};a.qb=function(){a.aa||a.I||(a.bb(a.za)?a.I=!0:a.aa=!0);return a.aa&&!a.I?!1:!0};a.ba=!1;a.sb=function(){a.ba=!1;a.ta=!0};a.l=q;a.r=0;a.callbackWhenReadyToTrack=function(c,b,d){var f;f={};f.Cb=c;f.Bb=b;f.zb=d;a.l==q&&(a.l=[]);a.l.push(f);0==a.r&&(a.r=setInterval(a.H,100))};a.H=function(){var c;if(a.isReadyToTrack()&&(a.wb(),a.l!=q))for(;0<a.l.length;)c=a.l.shift(),c.Bb.apply(c.Cb,c.zb)};a.wb=function(){a.r&&(clearInterval(a.r),a.r=0)};a.lb=function(c){var b,d,f=q,e=q;if(!a.isReadyToTrack()){b=1500[];if(c!=q)for(d in f={},c)f[d]=c[d];e={};a.Za(e,!0);b.push(f);b.push(e);a.callbackWhenReadyToTrack(a,a.track,b);return!0}return!1};a.Jb=function(){var c=a.cookieRead("s_fid"),b="",d="",f;f=8;var e=4;if(!c||0>c.indexOf("-")){for(c=0;16>c;c++)f=Math.floor(Math.random()*f),b+="0123456789ABCDEF".substring(f,f+1),f=Math.floor(Math.random()*e),d+="0123456789ABCDEF".substring(f,f+1),f=e=16;c=b+"-"+d}a.cookieWrite("s_fid",c,1)||(c=0);return c};a.t=a.track=function(c,b){var d,f=new Date,e="s"+Math.floor(f.getTime()/1501108E5)%10+Math.floor(1E13*Math.random()),g=f.getYear(),g="t="+a.escape(f.getDate()+"/"+f.getMonth()+"/"+(1900>g?g+1900:g)+" "+f.getHours()+":"+f.getMinutes()+":"+f.getSeconds()+" "+f.getDay()+" "+f.getTimezoneOffset()),h=a.V();a.o("_s");a.lb(c)||(b&&a.T(b),c&&(d={},a.Za(d,0),a.T(c)),a.Qb()&&!a.visitorOptedOut&&(a.wa()||(a.fid=a.Jb()),a.Tb(),a.usePlugins&&a.doPlugins&&a.doPlugins(a),a.account&&(a.abort||(a.trackOffline&&!a.timestamp&&(a.timestamp=Math.floor(f.getTime()/1E3)),f=k.location,a.pageURL||1502(a.pageURL=f.href?f.href:f),a.referrer||a.$a||(f=a.Util.getQueryParam("adobe_mc_ref",null,null,!0),a.referrer=f||void 0===f?void 0===f?"":f:p.document.referrer),a.$a=1,a.referrer=a.Hb(a.referrer),a.o("_g")),a.Mb()&&!a.abort&&(h&&a.X("TARGET")&&!a.supplementalDataID&&h.getSupplementalDataID&&(a.supplementalDataID=h.getSupplementalDataID("AppMeasurement:"+a._in,a.expectSupplementalData?!1:!0)),a.X("AAM")||(a.contextData["cm.ssf"]=1),a.Nb(),g+=a.Lb(),a.pb(e,g),a.o("_t"),a.referrer=""))),c&&a.T(d,1));1503a.abort=a.supplementalDataID=a.timestamp=a.pageURLRest=a.linkObject=a.clickObject=a.linkURL=a.linkName=a.linkType=k.s_objectID=a.pe=a.pev1=a.pev2=a.pev3=a.e=a.lightProfileID=0};a.Ba=[];a.registerPreTrackCallback=function(c){for(var b=[],d=1;d<arguments.length;d++)b.push(arguments[d]);"function"==typeof c?a.Ba.push([c,b]):a.debugTracking&&a.D("DEBUG: Non function type passed to registerPreTrackCallback")};a.gb=function(c){a.ua(a.Ba,c)};a.Aa=[];a.registerPostTrackCallback=function(c){for(var b=[],d=15041;d<arguments.length;d++)b.push(arguments[d]);"function"==typeof c?a.Aa.push([c,b]):a.debugTracking&&a.D("DEBUG: Non function type passed to registerPostTrackCallback")};a.fb=function(c){a.ua(a.Aa,c)};a.ua=function(c,b){if("object"==typeof c)for(var d=0;d<c.length;d++){var f=c[d][0],e=c[d][1].slice();e.unshift(b);if("function"==typeof f)try{f.apply(null,e)}catch(g){a.debugTracking&&a.D(g.message)}}};a.tl=a.trackLink=function(c,b,d,f,e){a.linkObject=c;a.linkType=b;a.linkName=d;e&&(a.k=c,a.v=e);return a.track(f)};1505a.trackLight=function(c,b,d,f){a.lightProfileID=c;a.lightStoreForSeconds=b;a.lightIncrementBy=d;return a.track(f)};a.clearVars=function(){var c,b;for(c=0;c<a.g.length;c++)if(b=a.g[c],"prop"==b.substring(0,4)||"eVar"==b.substring(0,4)||"hier"==b.substring(0,4)||"list"==b.substring(0,4)||"channel"==b||"events"==b||"eventList"==b||"products"==b||"productList"==b||"purchaseID"==b||"transactionID"==b||"state"==b||"zip"==b||"campaign"==b)a[b]=void 0};a.tagContainerMarker="";a.pb=function(c,b){var d=a.hb()+1506"/"+c+"?AQB=1&ndh=1&pf=1&"+(a.ya()?"callback=s_c_il["+a._in+"].doPostbacks&et=1&":"")+b+"&AQE=1";a.gb(d);a.eb(d);a.W()};a.hb=function(){var c=a.ib();return"http"+(a.ssl?"s":"")+"://"+c+"/b/ss/"+a.account+"/"+(a.mobile?"5.":"")+(a.ya()?"10":"1")+"/JS-"+a.version+(a.Wb?"T":"")+(a.tagContainerMarker?"-"+a.tagContainerMarker:"")};a.ya=function(){return a.AudienceManagement&&a.AudienceManagement.isReady()||0!=a.usePostbacks};a.ib=function(){var c=a.dc,b=a.trackingServer;b?a.trackingServerSecure&&a.ssl&&1507(b=a.trackingServerSecure):(c=c?(""+c).toLowerCase():"d1","d1"==c?c="112":"d2"==c&&(c="122"),b=a.kb()+"."+c+".2o7.net");return b};a.kb=function(){var c=a.visitorNamespace;c||(c=a.account.split(",")[0],c=c.replace(/[^0-9a-z]/gi,""));return c};a.Ya=/{(%?)(.*?)(%?)}/;a.$b=RegExp(a.Ya.source,"g");a.Gb=function(c){if("object"==typeof c.dests)for(var b=0;b<c.dests.length;++b){var d=c.dests[b];if("string"==typeof d.c&&"aa."==d.id.substr(0,3))for(var f=d.c.match(a.$b),e=0;e<f.length;++e){var g=f[e],h=g.match(a.Ya),1508k="";"%"==h[1]&&"timezone_offset"==h[2]?k=(new Date).getTimezoneOffset():"%"==h[1]&&"timestampz"==h[2]&&(k=a.Kb());d.c=d.c.replace(g,a.escape(k))}}};a.Kb=function(){var c=new Date,b=new Date(6E4*Math.abs(c.getTimezoneOffset()));return a.j(4,c.getFullYear())+"-"+a.j(2,c.getMonth()+1)+"-"+a.j(2,c.getDate())+"T"+a.j(2,c.getHours())+":"+a.j(2,c.getMinutes())+":"+a.j(2,c.getSeconds())+(0<c.getTimezoneOffset()?"-":"+")+a.j(2,b.getUTCHours())+":"+a.j(2,b.getUTCMinutes())};a.j=function(a,b){return(Array(a+15091).join(0)+b).slice(-a)};a.pa={};a.doPostbacks=function(c){if("object"==typeof c)if(a.Gb(c),"object"==typeof a.AudienceManagement&&"function"==typeof a.AudienceManagement.isReady&&a.AudienceManagement.isReady()&&"function"==typeof a.AudienceManagement.passData)a.AudienceManagement.passData(c);else if("object"==typeof c&&"object"==typeof c.dests)for(var b=0;b<c.dests.length;++b){var d=c.dests[b];"object"==typeof d&&"string"==typeof d.c&&"string"==typeof d.id&&"aa."==d.id.substr(0,3)&&(a.pa[d.id]=new Image,1510a.pa[d.id].alt="",a.pa[d.id].src=d.c)}};a.eb=function(c){a.i||a.Ob();a.i.push(c);a.ia=a.B();a.Wa()};a.Ob=function(){a.i=a.Rb();a.i||(a.i=[])};a.Rb=function(){var c,b;if(a.oa()){try{(b=k.localStorage.getItem(a.ma()))&&(c=k.JSON.parse(b))}catch(d){}return c}};a.oa=function(){var c=!0;a.trackOffline&&a.offlineFilename&&k.localStorage&&k.JSON||(c=!1);return c};a.Ma=function(){var c=0;a.i&&(c=a.i.length);a.p&&c++;return c};a.W=function(){if(a.p&&(a.A&&a.A.complete&&a.A.F&&a.A.ra(),a.p))return;a.Na=q;if(a.na)a.ia>1511a.P&&a.Ua(a.i),a.qa(500);else{var c=a.Ab();if(0<c)a.qa(c);else if(c=a.Ja())a.p=1,a.Sb(c),a.Vb(c)}};a.qa=function(c){a.Na||(c||(c=0),a.Na=setTimeout(a.W,c))};a.Ab=function(){var c;if(!a.trackOffline||0>=a.offlineThrottleDelay)return 0;c=a.B()-a.Sa;return a.offlineThrottleDelay<c?0:a.offlineThrottleDelay-c};a.Ja=function(){if(0<a.i.length)return a.i.shift()};a.Sb=function(c){if(a.debugTracking){var b="AppMeasurement Debug: "+c;c=c.split("&");var d;for(d=0;d<c.length;d++)b+="\n\t"+a.unescape(c[d]);a.D(b)}};1512a.wa=function(){return a.marketingCloudVisitorID||a.analyticsVisitorID};a.Z=!1;var t;try{t=JSON.parse('{"x":"y"}')}catch(w){t=null}t&&"y"==t.x?(a.Z=!0,a.Y=function(a){return JSON.parse(a)}):k.$&&k.$.parseJSON?(a.Y=function(a){return k.$.parseJSON(a)},a.Z=!0):a.Y=function(){return null};a.Vb=function(c){var b,d,f;a.wa()&&2047<c.length&&(a.ab()&&(d=1,b=new XMLHttpRequest),b&&(a.AudienceManagement&&a.AudienceManagement.isReady()||0!=a.usePostbacks)&&(a.Z?b.Ea=!0:b=0));!b&&a.Xa&&(c=c.substring(0,2047));1513!b&&a.d.createElement&&(0!=a.usePostbacks||a.AudienceManagement&&a.AudienceManagement.isReady())&&(b=a.d.createElement("SCRIPT"))&&"async"in b&&((f=(f=a.d.getElementsByTagName("HEAD"))&&f[0]?f[0]:a.d.body)?(b.type="text/javascript",b.setAttribute("async","async"),d=2):b=0);b||(b=new Image,b.alt="",b.abort||"undefined"===typeof k.InstallTrigger||(b.abort=function(){b.src=q}));b.Ta=Date.now();b.Ga=function(){try{b.F&&(clearTimeout(b.F),b.F=0)}catch(a){}};b.onload=b.ra=function(){b.Ta&&(a.ja=Date.now()-1514b.Ta);a.fb(c);b.Ga();a.Eb();a.da();a.p=0;a.W();if(b.Ea){b.Ea=!1;try{a.doPostbacks(a.Y(b.responseText))}catch(d){}}};b.onabort=b.onerror=b.Ka=function(){b.Ga();(a.trackOffline||a.na)&&a.p&&a.i.unshift(a.Db);a.p=0;a.ia>a.P&&a.Ua(a.i);a.da();a.qa(500)};b.onreadystatechange=function(){4==b.readyState&&(200==b.status?b.ra():b.Ka())};a.Sa=a.B();if(1==d)f=c.indexOf("?"),d=c.substring(0,f),f=c.substring(f+1),f=f.replace(/&callback=[a-zA-Z0-9_.\[\]]+/,""),b.open("POST",d,!0),b.withCredentials=!0,b.send(f);1515else if(b.src=c,2==d){if(a.Qa)try{f.removeChild(a.Qa)}catch(e){}f.firstChild?f.insertBefore(b,f.firstChild):f.appendChild(b);a.Qa=a.A}b.F=setTimeout(function(){b.F&&(b.complete?b.ra():(a.trackOffline&&b.abort&&b.abort(),b.Ka()))},5E3);a.Db=c;a.A=k["s_i_"+a.replace(a.account,",","_")]=b;if(a.useForcedLinkTracking&&a.L||a.v)a.forcedLinkTrackingTimeout||(a.forcedLinkTrackingTimeout=250),a.ea=setTimeout(a.da,a.forcedLinkTrackingTimeout)};a.ab=function(){return"undefined"!==typeof XMLHttpRequest&&"withCredentials"in1516new XMLHttpRequest?!0:!1};a.Eb=function(){if(a.oa()&&!(a.Ra>a.P))try{k.localStorage.removeItem(a.ma()),a.Ra=a.B()}catch(c){}};a.Ua=function(c){if(a.oa()){a.Wa();try{k.localStorage.setItem(a.ma(),k.JSON.stringify(c)),a.P=a.B()}catch(b){}}};a.Wa=function(){if(a.trackOffline){if(!a.offlineLimit||0>=a.offlineLimit)a.offlineLimit=10;for(;a.i.length>a.offlineLimit;)a.Ja()}};a.forceOffline=function(){a.na=!0};a.forceOnline=function(){a.na=!1};a.ma=function(){return a.offlineFilename+"-"+a.visitorNamespace+1517a.account};a.B=function(){return(new Date).getTime()};a.Oa=function(a){a=a.toLowerCase();return 0!=a.indexOf("#")&&0!=a.indexOf("about:")&&0!=a.indexOf("opera:")&&0!=a.indexOf("javascript:")?!0:!1};a.setTagContainer=function(c){var b,d,f;a.Wb=c;for(b=0;b<a._il.length;b++)if((d=a._il[b])&&"s_l"==d._c&&d.tagContainerName==c){a.T(d);if(d.lmq)for(b=0;b<d.lmq.length;b++)f=d.lmq[b],a.loadModule(f.n);if(d.ml)for(f in d.ml)if(a[f])for(b in c=a[f],f=d.ml[f],f)!Object.prototype[b]&&("function"!=typeof f[b]||15180>(""+f[b]).indexOf("s_c_il"))&&(c[b]=f[b]);if(d.mmq)for(b=0;b<d.mmq.length;b++)f=d.mmq[b],a[f.m]&&(c=a[f.m],c[f.f]&&"function"==typeof c[f.f]&&(f.a?c[f.f].apply(c,f.a):c[f.f].apply(c)));if(d.tq)for(b=0;b<d.tq.length;b++)a.track(d.tq[b]);d.s=a;break}};a.Util={urlEncode:a.escape,urlDecode:a.unescape,cookieRead:a.cookieRead,cookieWrite:a.cookieWrite,getQueryParam:function(c,b,d,f){var e,g="";b||(b=a.pageURL?a.pageURL:k.location);d=d?d:"&";if(!c||!b)return g;b=""+b;e=b.indexOf("?");if(0>e)return g;b=1519d+b.substring(e+1)+d;if(!f||!(0<=b.indexOf(d+c+d)||0<=b.indexOf(d+c+"="+d))){e=b.indexOf("#");0<=e&&(b=b.substr(0,e)+d);e=b.indexOf(d+c+"=");if(0>e)return g;b=b.substring(e+d.length+c.length+1);e=b.indexOf(d);0<=e&&(b=b.substring(0,e));0<b.length&&(g=a.unescape(b));return g}},getIeVersion:function(){if(document.documentMode)return document.documentMode;for(var a=7;4<a;a--){var b=document.createElement("div");b.innerHTML="\x3c!--[if IE "+a+"]><span></span><![endif]--\x3e";if(b.getElementsByTagName("span").length)return a}return null}};1520a.G="supplementalDataID timestamp dynamicVariablePrefix visitorID marketingCloudVisitorID analyticsVisitorID audienceManagerLocationHint authState fid vmk visitorMigrationKey visitorMigrationServer visitorMigrationServerSecure charSet visitorNamespace cookieDomainPeriods fpCookieDomainPeriods cookieLifetime pageName pageURL customerPerspective referrer contextData currencyCode lightProfileID lightStoreForSeconds lightIncrementBy retrieveLightProfiles deleteLightProfiles retrieveLightData".split(" ");1521a.g=a.G.concat("purchaseID variableProvider channel server pageType transactionID campaign state zip events events2 products audienceManagerBlob tnt".split(" "));a.ka="timestamp charSet visitorNamespace cookieDomainPeriods cookieLifetime contextData lightProfileID lightStoreForSeconds lightIncrementBy".split(" ");a.Q=a.ka.slice(0);a.Da="account allAccounts debugTracking visitor visitorOptedOut trackOffline offlineLimit offlineThrottleDelay offlineFilename usePlugins doPlugins configURL visitorSampling visitorSamplingGroup linkObject clickObject linkURL linkName linkType trackDownloadLinks trackExternalLinks trackClickMap trackInlineStats linkLeaveQueryString linkTrackVars linkTrackEvents linkDownloadFileTypes linkExternalFilters linkInternalFilters useForcedLinkTracking forcedLinkTrackingTimeout useLinkTrackSessionStorage trackingServer trackingServerSecure ssl abort mobile dc lightTrackVars maxDelay expectSupplementalData usePostbacks registerPreTrackCallback registerPostTrackCallback AudienceManagement".split(" ");1522for(m=0;250>=m;m++)76>m&&(a.g.push("prop"+m),a.Q.push("prop"+m)),a.g.push("eVar"+m),a.Q.push("eVar"+m),6>m&&a.g.push("hier"+m),4>m&&a.g.push("list"+m);m="pe pev1 pev2 pev3 latitude longitude resolution colorDepth javascriptVersion javaEnabled cookiesEnabled browserWidth browserHeight connectionType homepage pageURLRest marketingCloudOrgID ms_a".split(" ");a.g=a.g.concat(m);a.G=a.G.concat(m);a.ssl=0<=k.location.protocol.toLowerCase().indexOf("https");a.charSet="UTF-8";a.contextData={};a.offlineThrottleDelay=15230;a.offlineFilename="AppMeasurement.offline";a.R="s_sq";a.Sa=0;a.ia=0;a.P=0;a.Ra=0;a.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx";a.w=k;a.d=k.document;try{if(a.Xa=!1,navigator){var v=navigator.userAgent;if("Microsoft Internet Explorer"==navigator.appName||0<=v.indexOf("MSIE ")||0<=v.indexOf("Trident/")&&0<=v.indexOf("Windows NT 6"))a.Xa=!0}}catch(x){}a.da=function(){a.ea&&(k.clearTimeout(a.ea),a.ea=q);a.k&&a.L&&a.k.dispatchEvent(a.L);a.v&&("function"==typeof a.v?1524a.v():a.k&&a.k.href&&(a.d.location=a.k.href));a.k=a.L=a.v=0};a.Va=function(){a.b=a.d.body;a.b?(a.u=function(c){var b,d,f,e,g;if(!(a.d&&a.d.getElementById("cppXYctnr")||c&&c["s_fe_"+a._in])){if(a.Fa)if(a.useForcedLinkTracking)a.b.removeEventListener("click",a.u,!1);else{a.b.removeEventListener("click",a.u,!0);a.Fa=a.useForcedLinkTracking=0;return}else a.useForcedLinkTracking=0;a.clickObject=c.srcElement?c.srcElement:c.target;try{if(!a.clickObject||a.O&&a.O==a.clickObject||!(a.clickObject.tagName||1525a.clickObject.parentElement||a.clickObject.parentNode))a.clickObject=0;else{var h=a.O=a.clickObject;a.ha&&(clearTimeout(a.ha),a.ha=0);a.ha=setTimeout(function(){a.O==h&&(a.O=0)},1E4);f=a.Ma();a.track();if(f<a.Ma()&&a.useForcedLinkTracking&&c.target){for(e=c.target;e&&e!=a.b&&"A"!=e.tagName.toUpperCase()&&"AREA"!=e.tagName.toUpperCase();)e=e.parentNode;if(e&&(g=e.href,a.Oa(g)||(g=0),d=e.target,c.target.dispatchEvent&&g&&(!d||"_self"==d||"_top"==d||"_parent"==d||k.name&&d==k.name))){try{b=a.d.createEvent("MouseEvents")}catch(l){b=1526new k.MouseEvent}if(b){try{b.initMouseEvent("click",c.bubbles,c.cancelable,c.view,c.detail,c.screenX,c.screenY,c.clientX,c.clientY,c.ctrlKey,c.altKey,c.shiftKey,c.metaKey,c.button,c.relatedTarget)}catch(m){b=0}b&&(b["s_fe_"+a._in]=b.s_fe=1,c.stopPropagation(),c.stopImmediatePropagation&&c.stopImmediatePropagation(),c.preventDefault(),a.k=c.target,a.L=b)}}}}}catch(n){a.clickObject=0}}},a.b&&a.b.attachEvent?a.b.attachEvent("onclick",a.u):a.b&&a.b.addEventListener&&(navigator&&(0<=navigator.userAgent.indexOf("WebKit")&&1527a.d.createEvent||0<=navigator.userAgent.indexOf("Firefox/2")&&k.MouseEvent)&&(a.Fa=1,a.useForcedLinkTracking=1,a.b.addEventListener("click",a.u,!0)),a.b.addEventListener("click",a.u,!1))):setTimeout(a.Va,30)};a.Fb();a.fc||(r?a.setAccount(r):a.D("Error, missing Report Suite ID in AppMeasurement initialization"),a.Va(),a.loadModule("ActivityMap"))}1528function s_gi(r){var a,k=window.s_c_il,q,p,m=r.split(","),s,u,t=0;if(k)for(q=0;!t&&q<k.length;){a=k[q];if("s_c"==a._c&&(a.account||a.oun))if(a.account&&a.account==r)t=1;else for(p=a.account?a.account:a.oun,p=a.allAccounts?a.allAccounts:p.split(","),s=0;s<m.length;s++)for(u=0;u<p.length;u++)m[s]==p[u]&&(t=1);q++}t?a.setAccount&&a.setAccount(r):a=new AppMeasurement(r);return a}AppMeasurement.getInstance=s_gi;window.s_objectID||(window.s_objectID=0);...
Using AI Code Generation
1import {prop4} from 'ts-auto-mock';2import {prop4} from 'ts-auto-mock';3Is there a way to do this without having to import the same method from the same package in each file?4import { MyObject } from './MyObject';5MyComponent.propTypes = {6 myProp: PropTypes.instanceOf(MyObject)7}8import { MyObject } from './MyObject';9MyComponent.propTypes = {10 myProp: PropTypes.instanceOf(MyObject)11}12import { MyObject } from './MyObject';13MyComponent.propTypes = {14 myProp: PropTypes.instanceOf(MyObject)15}
Using AI Code Generation
1import { prop4 } from 'ts-auto-mock/prop4'2import { prop4 } from 'ts-auto-mock/prop4'3const mock = prop4 ( 'test1' , 'test2' , 'test3' , 'test4' , 'test5' , 'test6' )4import { prop4 } from 'ts-auto-mock/prop4'5const mock = prop4 ( 'test1' , 'test2' , 'test3' , 'test4' , 'test5' , 'test6' )6import { prop4 } from 'ts-auto-mock/prop4'7const mock = prop4 ( 'test1' , 'test2' , 'test3' , 'test4' , 'test5' , 'test6' )8import { prop4 } from 'ts-auto-mock/prop4'9const mock = prop4 ( 'test1' , 'test2' , 'test3' , 'test4' , 'test5' , 'test6' )10import { prop4 } from 'ts-auto-mock/prop4'11const mock = prop4 ( 'test1' , 'test2' , 'test3' , 'test4' , 'test5' , 'test6' )12import { prop4 } from 'ts-auto-mock/prop4'13const mock = prop4 ( 'test1' , 'test2' , 'test3' , 'test4' , 'test5' , 'test6' )
Using AI Code Generation
1import { prop4 } from 'ts-auto-mock/prop4';2const prop4Mock = prop4<Interface>();3prop4Mock.method();4import { prop4 } from 'ts-auto-mock/prop4';5const prop4Mock = prop4<Interface>();6prop4Mock.method();7import { prop4 } from 'ts-auto-mock/prop4';8const prop4Mock = prop4<Interface>();9prop4Mock.method();10import { prop4 } from 'ts-auto-mock/prop4';11const prop4Mock = prop4<Interface>();12prop4Mock.method();13import { prop4 } from 'ts-auto-mock/prop4';14const prop4Mock = prop4<Interface>();15prop4Mock.method();16import { prop4 } from 'ts-auto-mock/prop4';17const prop4Mock = prop4<Interface>();18prop4Mock.method();19import { prop4 } from 'ts-auto-mock/prop4';20const prop4Mock = prop4<Interface>();21prop4Mock.method();22import { prop4 } from 'ts-auto-mock/prop4';23const prop4Mock = prop4<Interface>();24prop4Mock.method();25import { prop4 } from 'ts-auto-mock/prop4';26const prop4Mock = prop4<Interface>();27prop4Mock.method();28import { prop4 } from 'ts-auto-mock/prop4';29const prop4Mock = prop4<Interface>();30prop4Mock.method();
Using AI Code Generation
1import { prop4 } from 'ts-auto-mock/prop4';2import { mock } from 'ts-auto-mock';3const myMock = mock<MyInterface>();4prop4(myMock, 'prop1', 1);5prop4(myMock, 'prop2', '2');6prop4(myMock, 'prop3', true);7import { prop4 } from 'ts-auto-mock/prop4';8import { mock } from 'ts-auto-mock';9const myMock = mock<MyInterface>();10prop4(myMock, 'prop1', 1);11prop4(myMock, 'prop2', '2');12prop4(myMock, 'prop3', true);13import { prop4 } from 'ts-auto-mock/prop4';14import { mock } from 'ts-auto-mock';15const myMock = mock<MyInterface>();16prop4(myMock, 'prop1', 1);17prop4(myMock, 'prop2', '2');18prop4(myMock, 'prop3', true);19import { prop4 } from 'ts-auto-mock/prop4';20import { mock } from 'ts-auto-mock';21const myMock = mock<MyInterface>();22prop4(myMock, 'prop1', 1);23prop4(myMock, 'prop2', '2');24prop4(myMock, 'prop3', true);25import { prop4 } from 'ts-auto-mock/prop4
Using AI Code Generation
1import { prop4 } from 'ts-auto-mock/prop4';2import { prop4 } from 'ts-auto-mock/prop4';3const mock = prop4<Interface1>();4import { prop4 } from 'ts-auto-mock/prop4';5import { prop4 } from 'ts-auto-mock/prop4';6const mock = prop4<Interface2>();7import { prop4 } from 'ts-auto-mock/prop4';8import { prop4 } from 'ts-auto-mock/prop4';9const mock = prop4<Interface3>();10import { prop4 } from 'ts-auto-mock/prop4';11import { prop4 } from 'ts-auto-mock/prop4';12const mock = prop4<Interface4>();13import { prop4 } from 'ts-auto-mock/prop4';14import { prop4 } from 'ts-auto-mock/prop4';15const mock = prop4<Interface5>();16import { prop4 } from 'ts-auto-mock/prop4';17import { prop4 } from 'ts-auto-mock/prop4';18const mock = prop4<Interface6>();19import { prop4 } from 'ts-auto-mock/prop4';20import { prop4 } from 'ts-auto-mock/prop4';21const mock = prop4<Interface7>();22import { prop4 } from 'ts-auto-mock/prop4';23import { prop4 } from 'ts-auto-mock/prop4';24const mock = prop4<Interface8>();25import { prop4 } from 'ts-auto-mock/prop4';26import { prop4 } from 'ts-auto-mock
Using AI Code Generation
1import {prop4} from 'ts-auto-mock';2const prop4Mock = prop4<Interface1>(mock, 'prop4');3import {prop4} from 'ts-auto-mock';4const prop4Mock = prop4<Interface1>(mock, 'prop4');5import {prop4New} from 'ts-auto-mock';6const prop4Mock = prop4New<Interface1>(mock, 'prop4');7import {prop4New} from 'ts-auto-mock';8const prop4Mock = prop4New<Interface1>(mock, 'prop4');9const prop5Mock = prop5<Interface1>(mock, 'prop5');10const prop6Mock = prop6<Interface1>(mock, 'prop6');11const prop7Mock = prop7<Interface1>(mock, 'prop7');12const prop8Mock = prop8<Interface1>(mock, 'prop8');13const prop9Mock = prop9<Interface1>(mock, 'prop9');14const prop10Mock = prop10<Interface1>(mock, 'prop10');
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!