// Input 0
var dgwb=false,dgwe=false,dgwg="5.9.907.0",dgwh="http://dl.google.com/dl/desktop/nv/GoogleGadgetPluginIEWin.cab#Version="+dgwg.replace(/\./g,","),dgwa="http://dl.google.com/dl/desktop/nv/GoogleGadgetPluginFirefox%OS%.xpi",dgwv="https://addons.mozilla.org/google/google_desktop_gadget_%OS%.html",dgwj="propertyblob",dgwd="installstarted",dgw=0,dgwF=1000,dgwE=60,dgwf=0;dgwl();function dgwl(){var a=["win"],c=checkOS(a);if(c[0]!=false){dgwa=dgwa.replace("%OS%",c[1].charAt(0).toUpperCase()+c[1].substring(1))}}
function dgwz(a,c){var b=_gel("gdDetails"+a);if(b){var d=b.innerHTML.replace(/^\s*/,"").replace(/\s*$/,"");if(d.length!=0){b.innerHTML="";b.style.height=0}else{b.innerHTML=c;b.style.height="auto"}}return false}function dgwk(a,c){a.innerHTML+="<br>"+c.getMsg("DGW_strBrowserNotSupported")}function dgwC(a,c){a.innerHTML+="<br>"+c.getMsg("DGW_strPlatformNotSupported")}function dgwu(){if(!navigator||!navigator.platform)return false;if(navigator.userAgent.indexOf("Firefox")!=-1&&window.addEventListener&&
navigator.userAgent.indexOf("Navigator")<0){var a=navigator.userAgent.indexOf("Firefox")+8;return parseFloat(navigator.userAgent.substring(a))>=1.5}if(navigator.userAgent.indexOf("MSIE")!=-1&&window.ActiveXObject){var a=navigator.userAgent.indexOf("MSIE")+5;return parseFloat(navigator.userAgent.charAt(a))>=6}return false}function dgwi(){var a=true,c=navigator.plugins.namedItem("Google Gadget Plugin");if(c){var b=c.description.split(" ");if(b.length>0){var d=b[b.length-1];a=dgwD(d,dgwg)}}return a}
function dgwm(){navigator.plugins.refresh();if(!dgwi()){window.clearInterval(dgw);dgw=0;window.location.reload()}else{dgwf++;if(dgwf>=dgwE){window.clearInterval(dgw);dgw=0}}}function dgws(a){var c=document.cookie.match(a+"=(.*?)(;|$)");if(c&&c.length>1)return unescape(c[1]);return""}function dgwx(a,c,b){var d=new Date,e=new Date;if(b==null)b=5;e.setTime(d.getTime()+60000*b);document.cookie=a+"="+escape(c)+";expires="+e.toGMTString()}function dgwn(a){document.cookie=a+"=; expires=Thu, 01-Jan-70 00:00:01 GMT"}
function dgwB(a,c){var b=check(dgwv,dgwa,"",a,c,"",["win"]);if(!b){dgwf=0;if(dgw)window.clearInterval(dgw);dgw=window.setInterval("_DGW_checkXpiInstall()",dgwF)}return b}function dgwA(a,c,b){dgwx(dgwd,"yes");dgwc(a,c,b);return false}function dgwD(a,c){var b=a.split("."),d=c.split("."),e=b.length>d.length?b.length:d.length;for(var f=0;f<e;++f){var i=f<b.length?parseInt(b[f],10):0,g=f<d.length?parseInt(d[f],10):0;if(i!=g)return i<g}return false}function dgwc(a,c,b){var d="gadgetControl"+a,e="<OBJECT ID='"+
d+"' WIDTH='100%' HEIGHT='100' ";if(dgwb){e+="CLASSID='CLSID:69731714-6886-4587-A9AA-D80C2763884D' codebase='"+dgwh+"' VIEWASTEXT>"}else if(dgwe){e+="type='application/x-googlegadget' codebase='"+dgwa+"' >"}e+="<PARAM Name='__gadgetid__' Value='"+c+"'/><param Name='__gadgetcontrolgetpropertyblob__'  value='getGadgetControlPropertyBlob"+a+"'/><param name='__gadgetcontroloncreate__'  value='initGadgetControl"+a+"'/><param name='__gadgetcontrolonsize__'  value='gadgetOnSize"+a+"'/><param name='__gadgetcontrollocale__'  value='"+
b+"'/></object>";var f=_gel("divContent"+a);f.innerHTML=e;return d}function dgwt(a,c,b){var d=b.getMsg("DGW_pluginInstallPromptRequiresGoogleDesktop"),e=b.getMsg("DGW_pluginInstallMessage"),f=b.getMsg("DGW_strGdDetails"),i=b.getMsg("DGW_pluginInstallMessageQuestion"),g=b.getMsg("DGW_pluginInstallMessageTosStart"),k=b.getMsg("DGW_pluginLocale"),r=b.getMsg("DGW_pluginInstallMessageTosEnd"),l=b.getMsg("DGW_pluginInstallNotVerifiedGadget"),m=b.getMsg("DGW_pluginAdvancedApis"),j=b.getMsg("DGW_endOfLine"),
h='<div width="100%" align="left">'+d+'  <br>  <div align="center">    <form action="[PLUGINURL]" method="get"       onSubmit="[ONCLICK]" style="margin:0;">      <input style="margin:10px;padding:5px;font-weight:bold;"        type="submit" value="  '+e+'  " >    </form>  </div>  <p style="font-size:0.8em;">    <a href="http://desktop.google.com/"       onclick="return _DGW_toggleGdDetails([MODULEID],\''+f.replace(/\'/g,"\\'")+"')\">"+i+'    </a>  </p>  <p id="gdDetails[MODULEID]" style="font-size:0.8em;height:0px;">  </p>  <p style="font-size:0.8em;margin-top:5px">'+
g+'    <a href="http://www.google.com/accounts/tos?hl='+k+'">'+r+"    </a>"+j+'  </p>  <p style="font-size:0.8em;;margin-top:5px">'+l+'    <a href="http://desktop.google.com/en/dev/advancedapi.html">'+m+"    </a>"+j+"  </p></div>",n=b.getMsg("DGW_strUpgradeFirefox"),o=b.getMsg("DGW_strFfPluginName"),p="return _DGW_triggerIePluginInstall("+a+",'"+c+"','"+k+"')",q="return _DGW_triggerXPIInstall("+o+","+n+")";h=h.replace(/\[PLUGINURL\]/g,dgwb?dgwh:dgwa);h=h.replace(/\[ONCLICK\]/g,dgwb?p:q);h=h.replace(/\[MODULEID\]/g,
a);return h}function dgwo(a,c,b){var d=null,e=_gel("divContent"+a);if(navigator.platform!="Win32"){dgwC(e,b)}else if(!dgwu()){dgwk(e,b)}else{if(navigator.userAgent.indexOf("MSIE")!=-1){dgwb=true;try{if(dgws(dgwd)=="yes"||detectActiveXControl("Google.GadgetControl")){dgwn(dgwd);var f=dgwc(a,c,b.getMsg("DGW_pluginLocale"));d=_gel(f)}}catch(i){}}else if(navigator.userAgent.indexOf("Firefox")!=-1){dgwe=true;if(!dgwi()){var f=dgwc(a,c,b.getMsg("DGW_pluginLocale"));d=_gel(f)}}else{dgwk(e,b)}var g=true;
if(dgwb){if(d){g=false}}else if(dgwe){if(d)g=false}if(g){e.innerHTML=dgwt(a,c,b)}}}function dgwy(a){if(a)a.showOptionsDialog()}function dgwr(a){return a.getString(dgwj)}function dgww(a,c){if(a)c.set(dgwj,a.saveOptionsToString())}function dgwq(a,c,b){var d=_gel("gadgetControl"+a);if(d){d.style.height=b+"px"}var e=_gel("divContent"+a);if(e){e.style.height=b+"px"}}function dgwp(a,c){if(a)dgww(a,c)}var _DGW_detectBrowserAndGenerateWrapper=dgwo,_DGW_gadgetPropertyBlob=dgwr,_DGW_gadgetOnSize=dgwq,_DGW_gadgetOnOptionsChanged=
dgwp,_DGW_showOptionsDialog=dgwy,_DGW_toggleGdDetails=dgwz,_DGW_triggerIePluginInstall=dgwA,_DGW_triggerXPIInstall=dgwB,_DGW_checkXpiInstall=dgwm,_DGW_MaxInitializeGadgetControlRetryCount=5,_DGW_MaxInitializeGadgetControlRetryTimeoutMs=10;
