var a;function _CI_Application(b,c,d,e,j,k,h,f,m,n,l,o,g,i){this.shortName=b;this.appName=c;this.guid=d;this.description1=e;this.description2=j;this.privacy=k;this.learnMore=h;this.minClientVersion=f;this.minOs=m;this.maxOs=n;this.isGoogle=l;this.isDefault=o;this.dependency=g;this.subTitle=i;this.showByDefault=true;this.hiddenHtmlElements=[];this.installed=false}
function RenderApplications(b,c,d,e){for(var j={},k={},h={},f=0;f<c.numColumns;++f){j[f]=[];k[f]=0;h[f]=[]}var m={},n=0;for(f=0;f<d.length;++f)if(!(b[d[f]]==null||m[d[f]])){for(var l=c.numColumns-1;l>=0;--l)if(k[l]<=k[n])n=l;var o=b[d[f]];l=j;var g=k,i=n;o=o;var p=d[f],r=e;h[i].push(false);l[i].push(p);++g[i];r&&o.subTitle&&++g[i];m[d[f]]=true;for(var q in b){o=b[q];if(!(m[q]||!o.dependency))for(l=0;l<o.dependency.length;++l)if(o.dependency[l].toUpperCase()==d[f].toUpperCase()){l=j;g=k;i=n;o=o;p=
q;r=e;h[i].push(true);l[i].push(p);++g[i];r&&o.subTitle&&++g[i];m[q]=true;break}}}d=c.begin;for(f=0;f<c.numColumns;++f){e=j[f].length;for(l=0;l<e;++l){k=j[f][l];d+=c(k,b[k],h[f][l])}if(f!=c.numColumns-1)d+=c.columnSeparator}d+=c.end;return d}var _useSprites=false;
function PodApplicationsRenderFunction(b,c,d){var e="",j="",k="",h="",f="",m="";if(c.selected)e=" checked";if(d)h=" style='padding-left: 20px'";f=" onClick='pack.OnAppClick(this, \""+b+"\")'";if(!c.showByDefault){d="podAppTable_"+b;c.hiddenHtmlElements[c.hiddenHtmlElements.length]=d;j=" id='"+d+"' style='display: none;'"}k=_useSprites?"<div class='SPRITE_"+b.substr(3)+"'/></div>":"<img width='16px' height='16px' src='../../images/"+b.substr(3)+".gif' alt='' class='Top' />";if(c.subTitle&&c.subTitle.length>
0)m="<BR><span class='SubTitle'>"+c.subTitle+"</span>";return["<table class='",b," select_",b,"'",j,"><tr><td class='Top'",h,"><input type='checkbox' id='",b,"_cb'",e,f,"/><td><td class='Top'><label for='",b,"_cb'>",k,"</label></td><td class='Top'><label for='",b,"_cb'>",c.shortName,m,"</label></td></tr></table>"].join("")}PodApplicationsRenderFunction.begin="<table class='AppChoiceTable CenteredTable CompatibleOnly Left'><tr><td class='Top Left' style='width: 200px;'>";
PodApplicationsRenderFunction.end="</td></tr></table>";PodApplicationsRenderFunction.columnSeparator="</td><td class='Top Left' style='width: 200px;'>";PodApplicationsRenderFunction.numColumns=2;
function InstalledApplicationsRenderFunction(b,c){var d="";d=_useSprites?"<div class='SPRITE_"+b.substr(3)+"_gray'/></div>":"<img width='16px' height='16px' src='../../images/"+b.substr(3)+"_gray.gif' alt='' class='Top' />";return["<table class='",b," select_",b,"'><tr><td class='Top'>",d,"</td><td class='Top'>",c.shortName,"</td></tr></table>"].join("")}InstalledApplicationsRenderFunction.begin="<table class='AppChoiceTable CenteredTable CompatibleOnly Left'><tr><td class='Top Left' style='width: 200px;'>";
InstalledApplicationsRenderFunction.end="</td></tr></table>";InstalledApplicationsRenderFunction.columnSeparator="</td><td class='Top Left' style='width: 200px;'>";InstalledApplicationsRenderFunction.numColumns=2;
function LearnMoreRenderFunction(b,c){var d="",e="";if(!c.showByDefault&&!c.installed){d="learnMoreAppTable_"+b;c.hiddenHtmlElements[c.hiddenHtmlElements.length]=d;d=" id='"+d+"' style='display: none;'"}e=_useSprites?"<div class='SPRITE_tn_"+b.substr(3)+"'/></div>":"<image width='99px' height='84px' src='localized_images/tn_"+b.substr(3)+".jpg' alt='' />";return["<table class='",b," AppInfo'",d,"><tr><td class='Top' style='width: 100px'><br />",e,"</td><td class='Left Top'><ul class='LeftList'><span class='Bold'>",
c.appName,"</span><li class='LeftList'>",c.description1,"</li><li class='LeftList'>",c.description2,"</li></ul></td></tr></table>"].join("")}LearnMoreRenderFunction.begin="<table class='LongRow'><tr><td class='Top'>";LearnMoreRenderFunction.end="</td></tr></table>";LearnMoreRenderFunction.columnSeparator="</td><td class='Top';'>";LearnMoreRenderFunction.numColumns=2;
function LearnMoreLinksRenderFunction(b,c){return["<li id='",b,"_li'><a id='",b,"' onclick='SetCurrent(this);' href='",c.learnMore,"' class='Unselected' target='learn_more_view'>",c.shortName,"</a></li>"].join("")}LearnMoreLinksRenderFunction.begin="<ul>";LearnMoreLinksRenderFunction.end="</ul>";LearnMoreLinksRenderFunction.numColumns=1;
function PrivacyPolicyLinksRenderFunction(b,c){return["<li id='",b,"_li'><a id='",b,"' onclick='SetCurrent(this);' href='",c.privacy,"' class='Unselected' target='privacy_policy_view'>",c.shortName,"</a></li>"].join("")}PrivacyPolicyLinksRenderFunction.begin="<ul>";PrivacyPolicyLinksRenderFunction.end="</ul>";PrivacyPolicyLinksRenderFunction.numColumns=1;var cgiCountry="gl",cgiLanguage="hl",cgiAffiliateID="ai",cgiClickID="gclid";function Cookie(b){this.$document=b;this.$name="GP";b=location.hostname;if(b=="www.google.com"||b=="google.com")b="pack.google.com";this.$domain=b}a=Cookie.prototype;a._store=function(b){if(b!=""){b=this.$name+"="+b+"; path=/; domain="+this.$domain;this.$document.cookie=b}};a._storeFromObject=function(){var b="";for(var c in this)if(!(c.charAt(0)=="$"||typeof this[c]=="function")){if(b!="")b+=":";b+=escape(c+"="+this[c])}this._store(b)};
a._storeFromURL=function(b){this._load();b=b.split("&");for(var c=0;c<b.length;c++){var d=b[c].indexOf("=");if(d!=-1){var e=b[c].substring(0,d);if(e==cgiAffiliateID||e==cgiClickID||e==cgiCountry||e==cgiLanguage){d=b[c].substring(d+1);this[e]=d}}}this._storeFromObject()};a._getValStr=function(){var b=this.$document.cookie;if(b=="")return false;var c=b.indexOf(this.$name+"=");if(c==-1)return false;c+=this.$name.length+1;var d=b.indexOf(";",c);if(d==-1)d=b.length;return b=b.substring(c,d)};
a._load=function(){var b=this._getValStr();if(!b)return"";var c="";b=b.split(":");for(var d=0;d<b.length;d++){b[d]=unescape(b[d]);b[d]=b[d].split("=");this[b[d][0]]=b[d][1];c+="&"+b[d][0]+"="+b[d][1]}return c};a._addAppList=function(b){this._load();this.app_list=b.join(",");this._storeFromObject()};a._getAppList=function(){this._load();var b=this.app_list;return typeof b=="string"?b.split(","):[]};a._addPair=function(b,c){this._load();this[b]=c;this._storeFromObject()};
a.empty=function(){var b=this.$name+"= ; path=/; domain="+this.$domain;this.$document.cookie=b};function Os(b,c,d){this.style="";this.skipOsCompatibilityCheck=d;if(c.os)this.os=c.os;else{b=b;this.os=b.indexOf("Win")!=-1?b.indexOf("NT 5.1")!=-1||b.indexOf("XP")!=-1?"XP":b.indexOf("NT 6.0")!=-1||b.indexOf("Vista")!=-1?"Vista":b.indexOf("NT 6.1")!=-1?"Win7":"OtherWin":b.indexOf("Mac")!=-1?"Mac":"Other"}this.GetStyle()}Os.prototype.IsSupportedOs=function(){return this.skipOsCompatibilityCheck||this.os=="Vista"||this.os=="XP"||this.os=="Win7"};
Os.prototype.GetStyle=function(){var b=function(d,e){return e!=d?"."+d+"{display: none;}":".no"+d+"{display: none;}"},c=this.os;this.style=b("XP",c)+b("Vista",c)+b("Win7",c)+b("OtherWin",c)+b("Mac",c)+b("Other",c);this.IsSupportedOs()||(this.style+=".CompatibleOnly{display: none;}")};
Os.prototype.FilterApps=function(b){if(!this.skipOsCompatibilityCheck)if(this.IsSupportedOs())for(var c in b)if(b[c].minOs=="6.1"&&(this.os=="XP"||this.os=="Vista")||b[c].minOs=="6.0"&&this.os=="XP"||b[c].maxOs=="5.1"&&(this.os=="Vista"||this.os=="Win7")||b[c].maxOs=="6.0"&&this.os=="Win7")delete b[c]};function DownloadButton(b,c,d){this.language=c;this.availableApplications=d;this.urchinTracker=0;this.saved_queryMap=b;for(var e in this.availableApplications)this.availableApplications[e].selected=this.availableApplications[e].isDefault;this.querySetApplications=false;if(b.ci_apps=="All")this.SetAllApplications(true);else if(b.ci_apps=="None")this.SetAllApplications(false);else if(b.ci_apps=="Default")this.querySetApplications=true;for(var j in b)if(this.availableApplications[j]!=null){this.querySetApplications||
this.SetAllApplications(false);this.availableApplications[j].selected=b[j]=="on"}}DownloadButton.prototype.SetAllApplications=function(b){this.querySetApplications=true;for(var c in this.availableApplications)this.availableApplications[c].selected=b};
DownloadButton.prototype.GetEulaQuery=function(){var b=true,c="installer_eula.html?";for(var d in this.availableApplications){var e=document.getElementById(d+"_cb");if(e.checked){if(b)b=!b;else c+="&";c+=d+"=on"}}if((b=document.getElementById("ci_set_search_cb"))&&b.checked)c+="&ci_set_search=on";if((b=document.getElementById("ci_set_homepage_cb"))&&b.checked)c+="&ci_set_homepage=on";if(this.saved_queryMap.brand)c+="&brand="+this.saved_queryMap.brand;if(this.saved_queryMap.from)c+="&from="+this.saved_queryMap.from;
return c+"&hl="+this.language};DownloadButton.prototype.OnDownload=function(){try{this.urchinTracker("/buttons/pack_dn_"+this.language)}catch(b){}window.location=this.GetEulaQuery();return false};function LocaleInfo(b,c,d,e,j,k){if(k[d.gl]!=null)this.country=d.gl;else{this.country=c;this.redirectLanguage=this.language}this.language=b;this.defaultCountry=c;this.localeSet=false;this.style=".no"+this.country+"{display: none;}";this.redirectPage=this.currentPage=e}LocaleInfo.prototype.SetLocale=function(){var b=document.getElementById("langSelect_"+this.language);if(b)this.localeSet=b.selected=true;else if(this.redirectLanguage==this.language)this.redirectLanguage="en"};
LocaleInfo.prototype.CheckForChange=function(b,c,d){if(d){d=d.split("_");this.redirectLanguage=d[1]}else if(!document.getElementById("langSelect_"+this.redirectLanguage))this.redirectLanguage=this.language;if(c){c.hl=this.redirectLanguage;var e=UnParseQuery(c);b._storeFromURL(e)}if(this.redirectLanguage!=this.language||this.redirectPage!=this.currentPage){b="";b=location.pathname.indexOf("intl")==-1?"intl/":"../../intl/";location=b+this.redirectLanguage+"/"+this.redirectPage+"?"+e}};
LocaleInfo.prototype.FilterApps=function(b,c){for(var d=c.length,e=0;e<d;++e)delete b[c[e]]};LocaleInfo.prototype._GetQuery=function(){var b=this.language.substr(0,3)+this.language.substr(3,2).toUpperCase();return"hl="+b+"&gl="+this.country};function Plugin(b){var c=navigator.userAgent,d=c.toLowerCase();b=b;b=parseInt(navigator.appVersion,10);parseFloat(navigator.appVersion);d.indexOf("mozilla")!=-1&&d.indexOf("spoofer")==-1&&d.indexOf("compatible")==-1&&d.indexOf("opera")==-1&&d.indexOf("webtv")==-1&&d.indexOf("hotjava")==-1;var e=navigator.appName=="Microsoft Internet Explorer",j=navigator.vendor=="Firefox"||c.indexOf("Firefox/")>=0,k=d.indexOf("chrome/")>=0&&navigator.vendor&&navigator.vendor.indexOf("Google")!=-1,h=j||k;d.indexOf("win")!=
-1||d.indexOf("16bit")!=-1;d.indexOf("win 9x 4.90")!=-1;d.indexOf("windows nt 5.0")!=-1;var f=d.indexOf("windows nt 5.1")!=-1,m;if(e)m=d.indexOf("sv1")!=-1?true:false;var n=d.indexOf("windows nt 6.0")!=-1,l=d.indexOf("windows nt 6.1")!=-1;m=d.indexOf("win98")!=-1||d.indexOf("windows 98")!=-1;var o=d.indexOf("winnt")!=-1||d.indexOf("windows nt")!=-1;o||m||b>=4&&navigator.platform=="Win32"||d.indexOf("win32")!=-1||d.indexOf("32bit")!=-1;d.indexOf("mac")!=-1;d.indexOf("x11")!=-1;this.isIE=function(){return e};
this.isFirefox=function(){return j};this.isChrome=function(){return k};this.isNpapiCompatible=function(){return h};this.mimeTypeVersion={beta_1_0:3,beta_1_1:4,beta_i18n:5,beta_ciint:6,beta_ciint_i18n:7,beta_oem:8,beta_2_0:9,beta_2_1:10,beta_2_1_ciint:11,beta_2_2_vc8:12,beta_2_3:13};this.ci_mimeNum=0;this.ciobj=null;this.detectBrowser=function(){var g="";if(e){g+="Microsoft Internet Explorer";var i=c.indexOf("MSIE ");if(i==-1)g+=" 0";else{var p=c.indexOf(";",i);g+=c.substring(i+5,p)}}else g+=j?"Firefox "+
navigator.vendorSub:"Browser Not Supported";return g};this.checkSysReq=function(){if(f)if(this.ciobj!=null&&this.ci_mimeNum>=this.mimeTypeVersion.beta_ciint)try{if(e&&this.ciobj.IsUserAdmin())return true;else if(h&&this.ciobj.IsUserAdmin)return true}catch(g){return false}else return true;else if(n||l)return true;return false};this.isOemFactoryMode=function(){if(this.ciobj!=null)try{if(e&&this.ciobj.IsInOemFactoryMode())return true;else if(h&&this.ciobj.IsInOemFactoryMode)return true}catch(g){}return false};
this.clientEulaAccepted=function(){if(this.ciobj!=null)try{if(e&&!this.ciobj.HasUserAcceptedEula())return false;else if(h&&typeof this.ciobj.HasUserAcceptedEula!="undefined"&&!this.ciobj.HasUserAcceptedEula)return false}catch(g){}return true};this.getCIActiveX=function(g){g||(g="CIDetect_"+this.ci_mimeNum);var i=null;if(e)try{i=document.getElementById(g);i!=null&&i.Initialize()}catch(p){i=null}return i};this.getCIPlugin=function(g){g||(g="CIPlugin_"+this.ci_mimeNum);return(g=document.getElementById(g))&&
g.CIVersion&&g.Applications?g:null};this.detectCI=function(){return this.ciobj!=null?true:false};this.isStatsChecked=function(){if(this.ciobj!=null)if(e&&this.ciobj.IsUsageStatsChecked())return true;else if(h&&this.ciobj.IsUsageStatsChecked)return true;return false};this.getLanguage=function(){if(this.ciobj!=null)try{if(e)return this.ciobj.GetInstallLanguage();else if(h&&this.ciobj.InstallLanguage)return this.ciobj.InstallLanguage}catch(g){}return"en"};this.getCountry=function(){if(this.ciobj!=null)try{if(e)return this.ciobj.GetInstallCountry();
else if(h&&this.ciobj.InstallCountry)return this.ciobj.InstallCountry}catch(g){}return"us"};this.getCIMimeType=function(){if(this.ciobj!=null)try{if(e)return this.ciobj.GetCIMimeType();else if(h&&this.ciobj.CIMimeType)return this.ciobj.CIMimeType}catch(g){}return""};this.getCIVersion=function(){if(this.ciobj!=null)try{if(e)return this.ciobj.GetCIVersion();else if(h&&this.ciobj.CIVersion)return this.ciobj.CIVersion}catch(g){return null}return""};this.getNpapiPluginMimeNum=function(){var g,i=CI_LATEST_MIME_NUM;
k?navigator.plugins.refresh(true):navigator.plugins.refresh(false);if(navigator.mimeTypes&&navigator.mimeTypes.length)for(;i>=this.mimeTypeVersion.beta_2_3;){if((g=navigator.mimeTypes[CI_getMimeType(i)])&&g.enabledPlugin)break;i=parseInt(i,10)-1}return g&&g.enabledPlugin?i:0};this.isProtectorEnabled=function(){if(this.ciobj!=null)try{if(e&&this.ciobj.IsProtectorEnabled())return true;else if(h&&this.ciobj.IsProtectorEnabled)return true}catch(g){}return false};this.isHomepageGoogle=function(){if(this.ciobj!=
null&&this.ci_mimeNum>=this.mimeTypeVersion.beta_2_1_ciint)try{if(e&&this.ciobj.IsHomepageGoogle())return true;else if(h&&this.ciobj.IsHomepageGoogle)return true}catch(g){}return false};this.isSingleInstallerMode=function(){if(this.ciobj!=null)try{if(e&&this.ciobj.IsSingleInstallerMode())return true;else if(h&&this.ciobj.IsSingleInstallerMode)return true}catch(g){}return false};this.isUpdaterReady=function(){if(this.ciobj!=null)try{if(e&&this.ciobj.IsUpdaterReady())return true;else if(h&&this.ciobj.IsUpdaterReady)return true}catch(g){}return false};
this.areAllUpdatesEnabled=function(){if(this.ciobj!=null)try{if(e&&this.ciobj.AreAllUpdatesEnabled())return true;else if(h&&this.ciobj.AreAllUpdatesEnabled)return true}catch(g){}return false};this.didUserChangeAllUpdatesSetting=function(){if(this.ciobj!=null)try{if(e&&this.ciobj.DidUserChangeAllUpdatesSetting())return true;else if(h&&this.ciobj.DidUserChangeAllUpdatesSetting)return true}catch(g){}return false};this.shouldEnableAllUpdates=function(){if(this.ciobj==null||this.ci_mimeNum<this.mimeTypeVersion.beta_ciint)return false;
return!this.didUserChangeAllUpdatesSetting()&&!this.areAllUpdatesEnabled()?true:false};this.createCIObject=function(){var g=location.search.indexOf("ciNum");if(g>0){var i=location.search.indexOf("&",g);if(i==-1)i=location.search.length;this.ci_mimeNum=parseInt(location.search.substring(g+6,i),10);if(this.ci_mimeNum>=this.mimeTypeVersion.beta_2_3)if(e){document.write('<OBJECT ID="CIDetect_'+this.ci_mimeNum+'" TYPE="'+CI_getMimeType(this.ci_mimeNum)+'" style="display:none"></OBJECT>');this.ciobj=this.getCIActiveX("CIDetect_"+
this.ci_mimeNum)}else{if(h){g="CIPlugin_"+this.ci_mimeNum;document.write('<embed id="'+g+'" type="'+CI_getMimeType(this.ci_mimeNum)+'" width="0" height="0">');this.ciobj=this.getCIPlugin(g)}}else{this.ci_mimeNum=0;this.ciobj=null}if(this.ci_mimeNum!=0)return}this.ci_mimeNum=CI_LATEST_MIME_NUM;if(e)for(;this.ci_mimeNum>=this.mimeTypeVersion.beta_2_3;){document.write('<OBJECT ID="CIDetect_'+this.ci_mimeNum+'" TYPE="'+CI_getMimeType(this.ci_mimeNum)+'" style="display:none"></OBJECT>');this.ciobj=this.getCIActiveX("CIDetect_"+
this.ci_mimeNum);if(this.ciobj!=null)break;this.ci_mimeNum=parseInt(this.ci_mimeNum,10)-1}else if(h){this.ci_mimeNum=this.getNpapiPluginMimeNum();if(this.ci_mimeNum!=0){g="CIPlugin_"+this.ci_mimeNum;document.write('<embed id="'+g+'" type="'+CI_getMimeType(this.ci_mimeNum)+'" width="0" height="0">');this.ciobj=this.getCIPlugin(g)}}if(this.ciobj==null)this.ci_mimeNum=0};this.getLatestClient=function(){if(!this.poll_div){this.poll_div=document.createElement("div");document.body.appendChild(this.poll_div)}if(e){for(var g=
null,i=CI_LATEST_MIME_NUM;i>=this.mimeTypeVersion.beta_2_3;){g=CI_getMimeType(i);var p="CIDetect_Poller_"+i;this.poll_div.innerHTML='<OBJECT ID="'+p+'" TYPE="'+g+'" style="display:none"></OBJECT>';if(g=this.getCIActiveX(p))break;i=parseInt(i,10)-1}return g}else if(h){i=this.getNpapiPluginMimeNum();if(i!=0){g="CIDetect_PollerFF";this.poll_div.innerHTML='<embed id="'+g+'" type="'+CI_getMimeType(i)+'" width="0" height="0">';return this.getCIPlugin(g)}return null}return null};this.getClientVersion=function(){if(this.ciobj==
null)return null;if(this.ci_mimeNum>=this.mimeTypeVersion.beta_ciint_i18n)return this.getCIVersion();if(this.ci_mimeNum>=this.mimeTypeVersion.beta_ciint)return"1.3.0.0";if(this.ci_mimeNum>=this.mimeTypeVersion.beta_i18n)return"1.2.0.0";if(this.ci_mimeNum>=this.mimeTypeVersion.beta_1_1)return"1.1.0.0";return this.ci_mimeNum==this.mimeTypeVersion.beta_1_0?"1.0.0.0":null}}
function getInstalledList(b,c){function d(m){if(!m)return false;var n=c[m.Id.toUpperCase()];if(!n)return false;if(b.ci_mimeNum>=14){m=m.Version;if(!m)return false}return j[n]=true}var e=b.ciobj,j={},k=0;if(e!=null)if(b.isIE()){var h=new VBArray(e.GetApplications());e=h.toArray();for(h=0;h<e.length;h++)d(e[h])&&++k}else if(b.isNpapiCompatible()){var f=e.Applications.Length;for(h=0;h<f;h++)d(e.Applications.ElementAt(h))&&++k}j.count=k;return j}
function _CI_getServerRoot(b){b=b;var c=b.lastIndexOf("/");b=b.substring(0,c+1);if(b=="/")return b;if(b.substr(0,6)=="/pack/")b=b.substring(5);if(b=="/")return b;c=b.indexOf("/intl/");return c==-1?b:b.substring(0,c+1)}var _CI_net={};_CI_net.READY_STATE_UNINITIALIZED=0;_CI_net.READY_STATE_LOADING=1;_CI_net.READY_STATE_LOADED=2;_CI_net.READY_STATE_INTERACTIVE=3;_CI_net.READY_STATE_COMPLETE=4;
_CI_net.ContentLoader=function(b,c,d,e,j,k,h){this.req=null;this.onload_=d?d:this.defaultLoad;this.onerror_=e?e:this.defaultError;this.loadXMLDoc(c,j,k,h);this.detector=b};
_CI_net.ContentLoader.prototype={loadXMLDoc:function(b,c,d,e){c=c||"GET";if(!e&&c=="POST")e="application/x-www-form-urlencoded";if(window.XMLHttpRequest)this.req=new XMLHttpRequest;else if(window.ActiveXObject)this.req=new ActiveXObject("Microsoft.XMLHTTP");if(this.req)try{var j=this;this.req.onreadystatechange=function(){j.onReadyState.call(j)};this.req.open(c,b,true);e&&this.req.setRequestHeader("Content-Type",e);this.req.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");this.req.send(d)}catch(k){this.onerror_.call(this)}},
onReadyState:function(){var b=this.req,c=b.readyState;if(c==_CI_net.READY_STATE_COMPLETE){b=b.status;b==200||b==0?this.onload_.call(this):this.onerror_.call(this);this.detector=null}},defaultError:function(){if(this.req.status==404)this.detector&&this.detector.detectCI()?top.location.replace("pack_error.html"):top.location.replace(_CI_getServerRoot(window.location.pathname))},defaultLoad:function(){}};function ParseQuery(b){if(b.length>1)b=b.substring(1);else return{};b=b.split("&");for(var c=b.length,d={},e=0;e<c;++e){var j=b[e].split("=",2);if(j.length==2)d[j[0]]=j[1]}return d}function UnParseQuery(b){var c="";for(var d in b)c+=d+"="+b[d]+"&";return c=c.substr(0,c.length-1)};function VersionLessOrEqual(b,c){if(!b||!c)return true;b=b.split(".");c=c.split(".");for(var d=0;d<4;d++)if(parseInt(b[d],10)<parseInt(c[d],10))return true;else if(parseInt(b[d],10)>parseInt(c[d],10))return false;return true}
function _CI_Pack(b,c,d,e,j,k){this.SetInstalledApplications=function(f){if(this.plugin.isChrome())f.ci_chrome=true;else if(this.plugin.isFirefox())f.ci_ff=true;var m=navigator.userAgent.match(/(.)*GTB[5-9](.)*/);if(this.plugin.isIE()&&m)f.ci_tb=true;for(var n in f)if(this.availableApplications[n]){this.installedApplications[n]=this.availableApplications[n];delete this.availableApplications[n]}};this.DeleteInstalledApplicationsFromAllLists=function(){for(var f in this.installedApplications)this.allApplications[f]&&
delete this.allApplications[f]};this.GetQueryString=function(){return UnParseQuery(this.queryMap)};this.SetLocale=function(){this.locale.SetLocale()};this.OnPpbInstaller=function(){if(!this.os.IsSupportedOs())this.locale.redirectPage="pack_installer.html";if(this.os.IsSupportedOs())this.style+=this.queryMap.ci_ver!=null?".NoUpdaterOnly{display: none;}":this.plugin.detectCI()?".NoUpdaterOnly{display: none;}":".HasUpdaterOnly{display: none;}"};this.RefreshDisplayable=function(){this.displayAvailable=
false;for(var f in this.availableApplications)if(this.allApplications[f].showByDefault){this.displayAvailable=true;break}this.displayInstalled=false;for(f in this.installedApplications){this.displayInstalled=true;break}};this.OnPackInstaller=function(){if(this.os.IsSupportedOs()){if(this.plugin.detectCI()){if(this.queryMap.hl==null){this.locale.redirectLanguage=this.plugin.getLanguage();this.locale.CheckForChange()}this.queryMap.ciNum=this.plugin.ci_mimeNum;this.clientVersion=this.plugin.getCIVersion();
for(var f in this.availableApplications)VersionLessOrEqual(this.clientVersion,this.availableApplications[f].minClientVersion)&&delete this.availableApplications[f]}this.SetInstalledApplications(getInstalledList(this.plugin,this.guidMap));this.allApplications={};for(f in this.availableApplications){this.allApplications[f]=this.availableApplications[f];this.allApplications[f].installed=false}for(f in this.installedApplications){this.allApplications[f]=this.installedApplications[f];this.allApplications[f].installed=
true}this.RefreshDisplayable();this.displayAvailable||(this.style+=".availableAppsPod{display: none;} .btn-flextoolbtn{display: none;}");this.displayInstalled||(this.style+=".installedAppsPod{display: none;}")}else this.style+=".installedAppsPod{display: none;}"};this.RenderSelectableApps=function(f){PodApplicationsRenderFunction.numColumns=2;document.write(RenderApplications(f,PodApplicationsRenderFunction,this.displayOrder,true));for(var m in f)if(this.availableApplications[m].showByDefault==false)return;
if(f=document.getElementById("AddMoreLink"))f.style.display="none"};this.RenderSelectableAppsSingleColumn=function(f){PodApplicationsRenderFunction.numColumns=1;document.write(RenderApplications(f,PodApplicationsRenderFunction,this.displayOrder,false))};this._SetLocale=function(f){if(f)this.locale.CheckForChange(this.ci_cookie,this.queryMap,f);else{this.locale.SetLocale();this.locale.CheckForChange(this.ci_cookie,this.queryMap)}};this._OnDownload=function(){return this.downloadButton.OnDownload()};
this.RenderNonSelectableApps=function(f){document.write(RenderApplications(f,InstalledApplicationsRenderFunction,this.displayOrder,false))};this.RenderAppInfo=function(f){document.write(RenderApplications(f,LearnMoreRenderFunction,this.displayOrder,false))};this.RenderLearnMoreLinks=function(f){document.write(RenderApplications(f,LearnMoreLinksRenderFunction,this.displayOrder,false))};this.RenderPrivacyPolicyLinks=function(f){document.write(RenderApplications(f,PrivacyPolicyLinksRenderFunction,this.displayOrder,
false))};this.OnAppClick=function(f,m){var n=this.availableApplications[m];if(n)if(f.checked)for(f=0;f<n.dependency.length;++f)for(var l in this.availableApplications){if(n.dependency[f].toUpperCase()==l.toUpperCase()){var o=document.getElementById(l+"_cb");if(o)o.checked=true}}else for(l in b)for(f=0;f<b[l].dependency.length;++f)if(b[l].dependency[f].toUpperCase()==m.toUpperCase())if(o=document.getElementById(l+"_cb"))o.checked=false};this.displayInstalled=this.displayAvailable=false;this.currentPage=
location.pathname.substr(location.pathname.lastIndexOf("/")+1);this.installedApplications={};this.allApplications=this.availableApplications=b;this.countryUnavailableApps=c;this.language=d;this.guidMap=k;this.displayOrder=j;this.clientVersion=this.style="";this.ci_cookie=new Cookie(document);this.ci_cookie._load();this.queryMap=ParseQuery(location.search);if(!this.queryMap)this.queryMap={};this.locale=new LocaleInfo(this.language,e,this.queryMap,this.currentPage,this.ci_cookie,this.countryUnavailableApps);
this.locale.FilterApps(this.availableApplications,this.countryUnavailableApps[this.locale.country]);c=this.currentPage=="ppb_installer.html";this.os=new Os(navigator.userAgent,this.queryMap,c);this.os.FilterApps(this.availableApplications);this.plugin=new Plugin(this.queryMap);this.downloadButton=new DownloadButton(this.queryMap,this.locale.language,this.availableApplications);switch(this.currentPage){case "ppb_installer.html":this.plugin.createCIObject();this.OnPpbInstaller();break;case "pack_installer.html":case "pack_installer_ads.html":case "pack_installer_custom.html":case "pack_installer_int.html":case "new_pc_installer.html":case "security_installer.html":this.plugin.createCIObject();
this.OnPackInstaller();if(this.currentPage=="pack_installer_int.html"){if((c=this.queryMap.ciint)&&this.availableApplications[c]){this.installedApplications[c]=this.availableApplications[c];delete this.availableApplications[c]}this.DeleteInstalledApplicationsFromAllLists()}break;default:}this.style+=this.os.style;this.style+=this.locale.style;document.write("<style type='text/css'>"+this.style+"</style>");if(this.queryMap.require_google=="on")for(var h in this.allApplications)if(!this.allApplications[h].isGoogle){delete this.availableApplications[h];
delete this.allApplications[h]}if(this.queryMap.require_default=="on")for(h in this.allApplications)if(!this.allApplications[h].isDefault){delete this.availableApplications[h];delete this.allApplications[h]}};_CI_Pack.prototype._SetDisplayableApps=function(b){for(var c in this.allApplications){var d=this.allApplications[c];if(this.ArrayFind(b,c)>=0){d.isDefault=true;d.showByDefault=true;d.selected=true}else{d.isDefault=false;d.showByDefault=false;d.selected=false}}b=b.concat(this.displayOrder);this.displayOrder=[];for(c=0;c<b.length;++c)if(this.ArrayFind(this.displayOrder,b[c])<0)this.displayOrder[this.displayOrder.length]=b[c]};
_CI_Pack.prototype._HideAppPod=function(){this.RefreshDisplayable();if(!this.displayAvailable){var b=document.getElementById("AvailableApplications");if(b)b.style.display="none"}if(!this.displayInstalled)if(b=document.getElementById("InstalledApplications"))b.style.display="none"};
_CI_Pack.prototype._ShowAll=function(){for(var b in this.allApplications)for(var c=this.allApplications[b].hiddenHtmlElements,d=0;c&&d<c.length;++d){var e=document.getElementById(c[d]);if(e)e.style.display="block"}if(b=document.getElementById("AddMoreLink"))b.style.display="none"};_CI_Pack.prototype.ArrayFind=function(b,c){for(var d=0;d<b.length;++d)if(b[d]==c)return d;return-1};
