var a;function _CI_Application(b,c,d,f,k,n,i,e,m,l,j,o,g,h){this.shortName=b;this.appName=c;this.guid=d;this.description1=f;this.description2=k;this.privacy=n;this.learnMore=i;this.minClientVersion=e;this.minOs=m;this.maxOs=l;this.isGoogle=j;this.isDefault=o;this.dependency=g;this.subTitle=h;this.showByDefault=true;this.hiddenHtmlElements=[];this.installed=false}
function RenderApplications(b,c,d,f){for(var k={},n={},i={},e=0;e<c.numColumns;++e){k[e]=[];n[e]=0;i[e]=[]}var m={},l=0;for(e=0;e<d.length;++e)if(!(b[d[e]]==null||m[d[e]])){for(var j=c.numColumns-1;j>=0;--j)if(n[j]<=n[l])l=j;var o=b[d[e]];j=k;var g=n,h=l;o=o;var p=d[e],r=f;i[h].push(false);j[h].push(p);++g[h];r&&o.subTitle&&++g[h];m[d[e]]=true;for(var q in b){o=b[q];if(!(m[q]||!o.dependency))for(j=0;j<o.dependency.length;++j)if(o.dependency[j].toUpperCase()==d[e].toUpperCase()){j=k;g=n;h=l;o=o;p=
q;r=f;i[h].push(true);j[h].push(p);++g[h];r&&o.subTitle&&++g[h];m[q]=true;break}}}d=c.begin;for(e=0;e<c.numColumns;++e){f=k[e].length;for(j=0;j<f;++j){n=k[e][j];d+=c(n,b[n],i[e][j])}if(e!=c.numColumns-1)d+=c.columnSeparator}d+=c.end;return d}var _useSprites=false;
function PodApplicationsRenderFunction(b,c,d){var f="",k="",n="",i="",e="",m="";if(c.selected)f=" checked";if(d)i=" style='padding-left: 20px'";e=" onClick='pack.OnAppClick(this, \""+b+"\")'";if(!c.showByDefault){d="podAppTable_"+b;c.hiddenHtmlElements[c.hiddenHtmlElements.length]=d;k=" id='"+d+"' style='display: none;'"}n=_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,"'",k,"><tr><td class='Top'",i,"><input type='checkbox' id='",b,"_cb'",f,e,"/><td><td class='Top'><label for='",b,"_cb'>",n,"</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="",f="";if(!c.showByDefault&&!c.installed){d="learnMoreAppTable_"+b;c.hiddenHtmlElements[c.hiddenHtmlElements.length]=d;d=" id='"+d+"' style='display: none;'"}f=_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 />",f,"</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 f=b[c].substring(0,d);if(f==cgiAffiliateID||f==cgiClickID||f==cgiCountry||f==cgiLanguage){d=b[c].substring(d+1);this[f]=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,f){return f!=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 f in this.availableApplications)this.availableApplications[f].selected=this.availableApplications[f].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 k in b)if(this.availableApplications[k]!=null){this.querySetApplications||
this.SetAllApplications(false);this.availableApplications[k].selected=b[k]=="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 f=document.getElementById(d+"_cb");if(f.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,f,k,n){if(n[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=f}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 f=UnParseQuery(c);b._storeFromURL(f)}if(this.redirectLanguage!=this.language||this.redirectPage!=this.currentPage){b="";b=location.pathname.indexOf("intl")==-1?"intl/":"../../intl/";location=b+this.redirectLanguage+"/"+this.redirectPage+"?"+f}};
LocaleInfo.prototype.FilterApps=function(b,c){for(var d=c.length,f=0;f<d;++f)delete b[c[f]]};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 f=navigator.appName=="Microsoft Internet Explorer",k=navigator.vendor=="Firefox"||c.indexOf("Firefox/")>=0,n=d.indexOf("chrome/")>=0&&navigator.vendor&&navigator.vendor.indexOf("Google")!=-1,i=k||n;d.indexOf("win")!=
-1||d.indexOf("16bit")!=-1;d.indexOf("win 9x 4.90")!=-1;d.indexOf("windows nt 5.0")!=-1;var e=d.indexOf("windows nt 5.1")!=-1,m;if(f)m=d.indexOf("sv1")!=-1?true:false;var l=d.indexOf("windows nt 6.0")!=-1,j=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 f};
this.isFirefox=function(){return k};this.isChrome=function(){return n};this.isNpapiCompatible=function(){return i};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(f){g+="Microsoft Internet Explorer";var h=c.indexOf("MSIE ");if(h==-1)g+=" 0";else{var p=c.indexOf(";",h);g+=c.substring(h+5,p)}}else g+=k?"Firefox "+
navigator.vendorSub:"Browser Not Supported";return g};this.checkSysReq=function(){if(e)if(this.ciobj!=null&&this.ci_mimeNum>=this.mimeTypeVersion.beta_ciint)try{if(f&&this.ciobj.IsUserAdmin())return true;else if(i&&this.ciobj.IsUserAdmin)return true}catch(g){return false}else return true;else if(l||j)return true;return false};this.isOemFactoryMode=function(){if(this.ciobj!=null)try{if(f&&this.ciobj.IsInOemFactoryMode())return true;else if(i&&this.ciobj.IsInOemFactoryMode)return true}catch(g){}return false};
this.clientEulaAccepted=function(){if(this.ciobj!=null)try{if(f&&!this.ciobj.HasUserAcceptedEula())return false;else if(i&&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 h=null;if(f)try{h=document.getElementById(g);h!=null&&h.Initialize()}catch(p){h=null}return h};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(f&&this.ciobj.IsUsageStatsChecked())return true;else if(i&&this.ciobj.IsUsageStatsChecked)return true;return false};this.getLanguage=function(){if(this.ciobj!=null)try{if(f)return this.ciobj.GetInstallLanguage();else if(i&&this.ciobj.InstallLanguage)return this.ciobj.InstallLanguage}catch(g){}return"en"};this.getCountry=function(){if(this.ciobj!=null)try{if(f)return this.ciobj.GetInstallCountry();
else if(i&&this.ciobj.InstallCountry)return this.ciobj.InstallCountry}catch(g){}return"us"};this.getCIMimeType=function(){if(this.ciobj!=null)try{if(f)return this.ciobj.GetCIMimeType();else if(i&&this.ciobj.CIMimeType)return this.ciobj.CIMimeType}catch(g){}return""};this.getCIVersion=function(){if(this.ciobj!=null)try{if(f)return this.ciobj.GetCIVersion();else if(i&&this.ciobj.CIVersion)return this.ciobj.CIVersion}catch(g){return null}return""};this.getNpapiPluginMimeNum=function(){var g,h=CI_LATEST_MIME_NUM;
n?navigator.plugins.refresh(true):navigator.plugins.refresh(false);if(navigator.mimeTypes&&navigator.mimeTypes.length)for(;h>=this.mimeTypeVersion.beta_2_3;){if((g=navigator.mimeTypes[CI_getMimeType(h)])&&g.enabledPlugin)break;h=parseInt(h,10)-1}return g&&g.enabledPlugin?h:0};this.isProtectorEnabled=function(){if(this.ciobj!=null)try{if(f&&this.ciobj.IsProtectorEnabled())return true;else if(i&&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(f&&this.ciobj.IsHomepageGoogle())return true;else if(i&&this.ciobj.IsHomepageGoogle)return true}catch(g){}return false};this.isSingleInstallerMode=function(){if(this.ciobj!=null)try{if(f&&this.ciobj.IsSingleInstallerMode())return true;else if(i&&this.ciobj.IsSingleInstallerMode)return true}catch(g){}return false};this.isUpdaterReady=function(){if(this.ciobj!=null)try{if(f&&this.ciobj.IsUpdaterReady())return true;else if(i&&this.ciobj.IsUpdaterReady)return true}catch(g){}return false};
this.areAllUpdatesEnabled=function(){if(this.ciobj!=null)try{if(f&&this.ciobj.AreAllUpdatesEnabled())return true;else if(i&&this.ciobj.AreAllUpdatesEnabled)return true}catch(g){}return false};this.didUserChangeAllUpdatesSetting=function(){if(this.ciobj!=null)try{if(f&&this.ciobj.DidUserChangeAllUpdatesSetting())return true;else if(i&&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 h=location.search.indexOf("&",g);if(h==-1)h=location.search.length;this.ci_mimeNum=parseInt(location.search.substring(g+6,h),10);if(this.ci_mimeNum>=this.mimeTypeVersion.beta_2_3)if(f){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(i){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(f)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(i){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(f){for(var g=
null,h=CI_LATEST_MIME_NUM;h>=this.mimeTypeVersion.beta_2_3;){g=CI_getMimeType(h);var p="CIDetect_Poller_"+h;this.poll_div.innerHTML='<OBJECT ID="'+p+'" TYPE="'+g+'" style="display:none"></OBJECT>';if(g=this.getCIActiveX(p))break;h=parseInt(h,10)-1}return g}else if(i){h=this.getNpapiPluginMimeNum();if(h!=0){g="CIDetect_PollerFF";this.poll_div.innerHTML='<embed id="'+g+'" type="'+CI_getMimeType(h)+'" 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 _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,f,k,n,i){this.req=null;this.onload_=d?d:this.defaultLoad;this.onerror_=f?f:this.defaultError;this.loadXMLDoc(c,k,n,i);this.detector=b};
_CI_net.ContentLoader.prototype={loadXMLDoc:function(b,c,d,f){c=c||"GET";if(!f&&c=="POST")f="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 k=this;this.req.onreadystatechange=function(){k.onReadyState.call(k)};this.req.open(c,b,true);f&&this.req.setRequestHeader("Content-Type",f);this.req.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");this.req.send(d)}catch(n){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={},f=0;f<c;++f){var k=b[f].split("=",2);if(k.length==2)d[k[0]]=k[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,f,k,n){this.SetInstalledApplications=function(e){if(this.plugin.isChrome())e.ci_chrome=true;else if(this.plugin.isFirefox())e.ci_ff=true;var m=navigator.userAgent.match(/(.)*GTB[5-9](.)*/);if(this.plugin.isIE()&&m)e.ci_tb=true;for(var l in e)if(this.availableApplications[l]){this.installedApplications[l]=this.availableApplications[l];delete this.availableApplications[l]}};this.DeleteInstalledApplicationsFromAllLists=function(){for(var e in this.installedApplications)this.allApplications[e]&&
delete this.allApplications[e]};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 e in this.availableApplications)if(this.allApplications[e].showByDefault){this.displayAvailable=true;break}this.displayInstalled=false;for(e 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 e in this.availableApplications)VersionLessOrEqual(this.clientVersion,this.availableApplications[e].minClientVersion)&&delete this.availableApplications[e]}var m,l=this.plugin;m=this.guidMap;var j=l.ciobj,o={},g=0;if(j!=null)if(l.isIE()){j=new VBArray(j.GetApplications());j=j.toArray();for(l=0;l<j.length;l++){var h=j[l].Id.toUpperCase();if(m[h]){o[m[h]]=true;++g}}}else if(l.isNpapiCompatible()){var p=j.Applications.Length;for(l=0;l<p;l++){h=j.Applications.ElementAt(l).Id.toUpperCase();if(m[h]){o[m[h]]=
true;++g}}}o.count=g;m=o;this.SetInstalledApplications(m);this.allApplications={};for(e in this.availableApplications){this.allApplications[e]=this.availableApplications[e];this.allApplications[e].installed=false}for(e in this.installedApplications){this.allApplications[e]=this.installedApplications[e];this.allApplications[e].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(e){PodApplicationsRenderFunction.numColumns=2;document.write(RenderApplications(e,PodApplicationsRenderFunction,this.displayOrder,true));for(var m in e)if(this.availableApplications[m].showByDefault==false)return;if(e=document.getElementById("AddMoreLink"))e.style.display="none"};this.RenderSelectableAppsSingleColumn=function(e){PodApplicationsRenderFunction.numColumns=1;document.write(RenderApplications(e,
PodApplicationsRenderFunction,this.displayOrder,false))};this._SetLocale=function(e){if(e)this.locale.CheckForChange(this.ci_cookie,this.queryMap,e);else{this.locale.SetLocale();this.locale.CheckForChange(this.ci_cookie,this.queryMap)}};this._OnDownload=function(){return this.downloadButton.OnDownload()};this.RenderNonSelectableApps=function(e){document.write(RenderApplications(e,InstalledApplicationsRenderFunction,this.displayOrder,false))};this.RenderAppInfo=function(e){document.write(RenderApplications(e,
LearnMoreRenderFunction,this.displayOrder,false))};this.RenderLearnMoreLinks=function(e){document.write(RenderApplications(e,LearnMoreLinksRenderFunction,this.displayOrder,false))};this.RenderPrivacyPolicyLinks=function(e){document.write(RenderApplications(e,PrivacyPolicyLinksRenderFunction,this.displayOrder,false))};this.OnAppClick=function(e,m){var l=this.availableApplications[m];if(l)if(e.checked)for(e=0;e<l.dependency.length;++e)for(var j in this.availableApplications){if(l.dependency[e].toUpperCase()==
j.toUpperCase()){var o=document.getElementById(j+"_cb");if(o)o.checked=true}}else for(j in b)for(e=0;e<b[j].dependency.length;++e)if(b[j].dependency[e].toUpperCase()==m.toUpperCase())if(o=document.getElementById(j+"_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=
n;this.displayOrder=k;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,f,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 i in this.allApplications)if(!this.allApplications[i].isGoogle){delete this.availableApplications[i];
delete this.allApplications[i]}if(this.queryMap.require_default=="on")for(i in this.allApplications)if(!this.allApplications[i].isDefault){delete this.availableApplications[i];delete this.allApplications[i]}};_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 f=document.getElementById(c[d]);if(f)f.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};
