function ig_et_a(a){var b=a||document.location.href,d,c=b.indexOf("?");if(c==-1)return"";var e=b.indexOf("#");d=e==-1?b.substr(c+1):b.substr(c+1,e-c-1)+"&"+b.substr(e+1);return d.split("&")}function _esc(a){return window.encodeURIComponent?encodeURIComponent(a):escape(a)}function _unesc(a){return window.decodeURIComponent?decodeURIComponent(a):unescape(a)}
function _argsUrl(a){for(var b={},d=ig_et_a(a),c=0;c<d.length;c++){var e=d[c].indexOf("=");if(!(e==-1)){var f=d[c].substring(0,e),g=d[c].substring(e+1);g=g.replace(/\+/g," ");b[f]=_unesc(g)}}return b};window._varz_numerrors=0;function ig_et_(a){this.b=window.onerror;this.a={};for(var b in ig_et_.e)this.a[b]=ig_et_.e[b];if(a)for(b in a)if(ig_et_.e[b])this.a[b]=a[b];this.a.uniqueTimestamp=(new Date).getTime();window.onerror=this.d()}ig_et_.prototype.c=0;ig_et_.e={maxNumErrorsToSend:3,urlToLogTo:"/ig/jserrors"};ig_et_.prototype.f=function(){window.onerror=this.b;this.b=null;this.i=false};ig_et_.prototype.d=function(){var a=this;return function(b,d,c){a.g(b,d,c)}};
ig_et_.prototype.g=function(a,b,d){++window._varz_numerrors;try{var c={};c.msg=a;c.url=b;c.line=d;if(this.b)try{this.b(a,b,d)}catch(e){}this.h(c)}catch(f){this.f();throw f;}};
ig_et_.prototype.h=function(a){this.f();var b=_argsUrl(document.location.href).parent||"";(new Image).src=[b,this.a.urlToLogTo,"?ts=",this.a.uniqueTimestamp,"&sent=",this.c,"&url=",_esc(a.url),"&line=",a.line,"&msg=",_esc(a.msg)].join("");this.c++;if(this.c<this.a.maxNumErrorsToSend){this.b=window.onerror;window.onerror=this.d();this.i=true}};var _IG_errorTracker=new ig_et_;
var ig_a=true,ig_=null,ig_b=false,ig_c;function ig_d(a){var b=window;if(a!="")for(var c=a.split(".");c.length;){var d=c.shift();if(typeof b[d]!="object")b[d]={};b=b[d]}return b}(function(){function a(c,d){for(var e=ig_d(c),f=0;f<d.length;f+=2)e[d[f]]=d[f+1]}function b(c,d,e,f,g){if(f)for(var i=0;i<f.length;i+=2)e.prototype[f[i]]=f[i+1];if(g)for(i=0;i<g.length;i+=2)e[g[i]]=g[i+1];a(c,[d,e])}a("",["_exportSymbols",a]);a("",["_exportClass",b])})();function ig_e(a,b,c){if(!a.className)return ig_b;for(var d=a.className.split(" "),e=[],f=ig_b,g=0;g<d.length;++g)if(d[g]!=b)e.push(d[g]);else{f=ig_a;c&&e.push(c)}a.className=e.join(" ");return f};function ig_f(a){var b=a||document.location.href,c,d=b.indexOf("?");if(d==-1)return"";var e=b.indexOf("#");c=e==-1?b.substr(d+1):b.substr(d+1,e-d-1)+"&"+b.substr(e+1);return c.split("&")}function _esc(a){return window.encodeURIComponent?encodeURIComponent(a):escape(a)}function _unesc(a){return window.decodeURIComponent?decodeURIComponent(a):unescape(a)}
function _argsUrl(a){for(var b={},c=ig_f(a),d=0;d<c.length;d++){var e=c[d].indexOf("=");if(!(e==-1)){var f=c[d].substring(0,e),g=c[d].substring(e+1);g=g.replace(/\+/g," ");b[f]=_unesc(g)}}return b};var ig_aa={domload:1,xsetpdone:1,moduleedit:1,modulesocialedit:1,modulecanceledit:1,moduledelete:1,moduleundelete:1,modulezip:1,moduleunzip:1,modulemaximize:1,moduleunmaximize:1,moduledragstart:1,moduledragend:1,moduletitleclick:1,load:1,unload:1,resize:1},ig_g={},ig_ba={dragstart:1,dragend:1,titleclick:1,edit:1,socialedit:1,canceledit:1,"delete":1,undelete:1,zip:1,unzip:1,maximize:1,unmaximize:1};
function ig_ca(a){if(a.hasOwnProperty&&a.hasOwnProperty("ig_event_hashcode_"))return a.ig_event_hashcode_;a.ig_event_hashcode_||(a.ig_event_hashcode_=++ig_h.Ge);return a.ig_event_hashcode_}function ig_da(a){return"builtin_"+a}function ig_ea(a,b){if(a.indexOf&&a.indexOf("m_")==0)a=a.substring(2);return"builtin_m"+a+"_"+b}function ig_fa(a,b){return"builtin_"+ig_h.qe(a)+"_"+b}function ig_ga(a){return"custom_"+a}
function ig_ha(){for(var a in ig_h.c){for(var b=0;b<ig_h.c[a].length;b++)delete ig_h.c[a][b];if(a in ig_h.pa){var c=ig_h.pa[a],d=c[0],e=c[1],f=c[2];if(d.removeEventListener)d.removeEventListener(e,f,ig_b);else d.detachEvent&&d.detachEvent("on"+e,f);delete ig_h.pa[a]}}ig_g={}}function ig_ia(a,b,c){for(var d=c;d<b.length;d++)a[a.length]=b[d];return a}function ig_ja(a,b){if(a in ig_h.c)for(var c=0;c<ig_h.c[a].length;c++)if(ig_h.c[a][c]===b){ig_h.c[a][c]=ig_;return ig_a}return ig_b}
function ig_ka(a){if(a in ig_h.c)for(var b=0;b<ig_h.c[a].length;b++)if(ig_h.c[a][b]){for(var c=[],d=1;d<arguments.length;d++)c[c.length]=arguments[d];ig_h.c[a][b].apply(this,c)}}function ig_la(a,b){if(!(a in ig_h.$f))throw Error("Unsupported event type: "+a);var c=ig_h.Ya(a);c in ig_h.c||(ig_h.c[c]=[]);ig_h.c[c][ig_h.c[c].length]=b;return ig_h.c[c].length}
function ig_ma(a,b,c){if(!(b in ig_h.bg))throw Error("Unsupported module event type: "+b);var d=ig_h.Za(a,b);d in ig_h.c||(ig_h.c[d]=[]);ig_h.c[d][ig_h.c[d].length]=c}
function ig_na(a,b,c){var d=ig_h.bc(a,b);if(!(d in ig_h.c)){ig_h.c[d]=[];var e=function(g){if(!g)g=window.event;ig_h.Ga.apply(a,[d,g])};if(a.addEventListener)a.addEventListener(b,e,ig_b);else if(a.attachEvent)a.attachEvent("on"+b,e);else throw Error("Object {"+a+"} does not support DOM events.");ig_h.pa[d]=[a,b,e]}var f=ig_h.c[d].length;if(a===window&&b=="unload"&&f>0){ig_h.c[d][f]=ig_h.c[d][f-1];ig_h.c[d][f-1]=c}else if(ig_g[b])setTimeout(c,10);else ig_h.c[d][f]=c}
function ig_oa(a,b){var c=ig_h.Xa(a);c in ig_h.c||(ig_h.c[c]=[]);ig_h.c[c][ig_h.c[c].length]=b}function ig_pa(a,b){var c=ig_h.Ya(a);return ig_h.Da(c,b)}function ig_qa(a,b,c){var d=ig_h.Za(a,b);return ig_h.Da(d,c)}function ig_ra(a,b,c){var d=ig_h.bc(a,b);return ig_h.Da(d,c)}function ig_sa(a,b){var c=ig_h.Xa(a);return ig_h.Da(c,b)}
function ig_ta(a){var b=a=="load"||a=="domload",c=ig_b;if(b){(c=ig_g[a])||_IG_TriggerCustomEvent(a+"_start");ig_g[a]=ig_a}var d=ig_h.S([ig_h.Ya(a)],arguments,1);ig_h.Ga.apply(window,d);b&&!c&&_IG_TriggerCustomEvent(a+"_end")}function ig_i(){var a=ig_h.S([],arguments,0);setTimeout(function(){ig_h.nd.apply(window,a)},0)}function ig_ua(a,b){var c=ig_h.S([ig_h.Za(a,b)],arguments,2);ig_h.Ga.apply(window,c)}function ig_j(){var a=ig_h.S([],arguments,0);setTimeout(function(){ig_h.Cb.apply(window,a)},0)}
function ig_va(a){var b=ig_h.S([ig_h.Xa(a)],arguments,1);ig_h.Ga.apply(window,b)}function ig_wa(){var a=ig_h.S([],arguments,0);setTimeout(function(){ig_h.ld.apply(window,a)},0)}function ig_k(a,b){switch(a){case "delete":case "undelete":case "edit":case "socialedit":case "canceledit":case "zip":case "unzip":case "maximize":case "unmaximize":ig_j(b,a);ig_i("module"+a,b);break}}
function _IG_delayScript(a,b){var c,d=!isNaN(b)&&b||10000;function e(){clearTimeout(c);_IG_RemoveEventHandler("load",e);setTimeout(a,0)}c=setTimeout(e,d);_IG_AddEventHandler("load",e)}
var ig_h={Ge:0,c:{},pa:{},$f:ig_aa,bg:ig_ba,qe:ig_ca,Ya:ig_da,Za:ig_ea,bc:ig_fa,Xa:ig_ga,be:ig_ha,S:ig_ia,Da:ig_ja,Ga:ig_ka,Dd:ig_la,Vb:ig_ma,Cd:ig_na,Bd:ig_oa,xf:ig_pa,Vc:ig_qa,vf:ig_ra,uf:ig_sa,nd:ig_ta,Cb:ig_ua,ld:ig_va,ig:ig_i,md:ig_j,hg:ig_wa},_IG_AddEventHandler=ig_h.Dd,_IG_AddModuleEventHandler=ig_h.Vb,_IG_AddGadgetEventHandler=ig_h.Vb,_IG_AddDOMEventHandler=ig_h.Cd,_IG_AddCustomEventHandler=ig_h.Bd,_IG_RemoveEventHandler=ig_h.xf,_IG_RemoveModuleEventHandler=ig_h.Vc,_IG_RemoveGadgetEventHandler=
ig_h.Vc,_IG_RemoveDOMEventHandler=ig_h.vf,_IG_RemoveCustomEventHandler=ig_h.uf,_IG_TriggerEvent=ig_h.nd,_IG_TriggerModuleEvent=ig_h.Cb,_IG_TriggerGadgetEvent=ig_h.Cb,_IG_TriggerCustomEvent=ig_h.ld,_IG_TriggerDelayedEvent=ig_h.ig,_IG_TriggerDelayedModuleEvent=ig_h.md,_IG_TriggerDelayedGadgetEvent=ig_h.md,_IG_TriggerDelayedCustomEvent=ig_h.hg;_IG_AddDOMEventHandler(window,"unload",ig_h.be);_IG_AddDOMEventHandler(window,"load",function(){_IG_TriggerEvent("load")});
_IG_AddDOMEventHandler(window,"unload",function(){_IG_TriggerEvent("unload")});_IG_AddDOMEventHandler(window,"resize",function(){_IG_TriggerEvent("resize")});function _IG_RegisterOnloadHandler(a){_IG_AddEventHandler("domload",a)}function _IG_LoadLibraryDeferred(a,b){_IG_RegisterOnloadHandler(function(){_IG_LoadScript(a,b)})}_exportSymbols("google.gadgets.Events",["addHandler",_IG_AddEventHandler,"removeHandler",_IG_RemoveEventHandler,"addOnloadHandler",_IG_RegisterOnloadHandler]);
function _IG_RegisterMaximizeHandler(a,b){_IG_AddModuleEventHandler(a,"unmaximize",function(){b(ig_b)});_IG_AddModuleEventHandler(a,"maximize",function(){b(ig_a)})};function ig_l(a,b){function c(){}c.prototype=a.prototype;b.prototype=new c}function _gel(a){return document.getElementById(a)}function _gelstn(a,b){var c=b||document;if(a=="*"&&c.all)return c.all;return c.getElementsByTagName?c.getElementsByTagName(a):[]}function _gelsbyregex(a,b,c){for(var d=_gelstn(a,c),e=[],f=0,g;g=d[f];++f)b.test(g.id)&&e.push(g);return e}function _uc(a){return a.toUpperCase()}function _trim(a){return a.replace(/^\s*|\s*$/g,"")}
function _jesc(a){return a.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/"/g,'\\"')}function _toggle(a){if(a)if(a.style.display==""||a.style.display=="block")a.style.display="none";else if(a.style.display=="none")a.style.display="block"}function _hesc(a){return a.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function _striptags(a){return a.replace(/<\/?[^>]+>/gi,"")}function _ig_gmid_(a){return a.split("_")[2]}
function _showUserPrefs(a,b){if(b){ig_m("m_"+a+"_editbox","none");ig_m("m_"+a+"_aclbox","block");ig_k("socialedit","m_"+a)}else{ig_m("m_"+a+"_editbox","");ig_m("m_"+a+"_aclbox","none");ig_k("edit","m_"+a)}var c=_gel("m_"+a);if(c)c.className="modbox_e"}function _closeUserPrefs(a){ig_m("m_"+a+"_editbox","none");ig_m("m_"+a+"_aclbox","none");var b=_gel("m_"+a);if(b)b.className="modbox"}function _min(a,b){return a<b?a:b}function _max(a,b){return a>b?a:b}
function _IG_LoadScript(a,b){_sendx(a,function(c){window.eval(c);eval(b)})}function _IG_LoadScriptCallback(a,b){_sendx(a,function(c){window.eval(c);b&&b()})}function _IG_LoadScriptXDomain(a,b,c){var d=document.createElement("script");d.src=a;_gelstn("head")[0].appendChild(d);function e(){eval(b)?c():setTimeout(function(){e()},100)}b&&e()}
function _IG_LoadCss(a){var b=_gelstn("head")[0];if(!b)throw new Error("Document is missing <head> element.  Failed to load CSS.");var c=document.createElement("style");c.type="text/css";if(c.styleSheet)c.styleSheet.cssText=a;else c.appendChild(document.createTextNode(a));b.insertBefore(c,b.firstChild)}function _log(a){var b="/ig/log?msg="+_esc(a);_sendx(b)}
function _sendx(a,b,c,d){var e=ig_n();e.open(d?"POST":"GET",a,ig_a);if(b)e.onreadystatechange=function(){if(e.readyState==4)b(c&&e.responseXML?e.responseXML:e.responseText)};e.send(d||ig_)}function ig_n(){var a=ig_;if(window.ActiveXObject)(a=new ActiveXObject("Msxml2.XMLHTTP"))||(a=new ActiveXObject("Microsoft.XMLHTTP"));else if(window.XMLHttpRequest)a=new XMLHttpRequest;return a}
var _et="",_brand="",_bmod="",_source="",_ae="",_pid="",_authpath="",_prefid="",_setp_url="/ig/setp",_hl="",_old_html=ig_a,_use_old_feed_styles=ig_a,ig_o=ig_,ig_p=ig_;function ig_q(a,b,c){var d=a.elements[b];if(d)d.value=c;else{var e=document.createElement("input");e.type="hidden";e.name=b;e.value=c;a.appendChild(e)}}function _args(){return _argsUrl(document.location.href)}function _IG_isIE(){return/msie/i.test(navigator.userAgent)}
function _qs(a){var b={pid:1,host:1,gl:1,hl:1,enable_flag:1,e:1,expid:1},c=a||_args(),d=["?"];for(var e in c)b[e]&&d.push(e,"=",_esc(c[e]),"&");return d.join("")}var ig_xa=/^([^?#]+)(?:\?([^#]*))?(#.*)?/;function ig_r(a,b){var c=ig_xa.exec(a),d=[c[1],"?",c[2]];d.push(c[2]?"&":"",b.join("&"),c[3]);return d.join("")}function ig_s(a){var b={url:document.location,et:_et,brand:_brand,bmod:_bmod,source:_source,ae:_ae,pid:_pid,ap:_authpath,prefid:_prefid};for(var c in b)b[c]&&ig_q(a,c,b[c])}
function _submit_form(a,b){a.action=_setp_url+_qs()+b;a.method="get";ig_s(a);a.submit()}function _fsetp(a,b,c){a.action=_setp_url;a.method="get";ig_s(a);ig_q(a,"m_"+b+"_t",c);var d=_args(),e=d.host,f=d.hl;e&&ig_q(a,"host",e);f&&ig_q(a,"hl",f);return ig_a}var ig_t=[],ig_u=ig_b;
function ig_ya(){for(var a,b=[["et",_et],["pid",_pid],["ap",_authpath],["brand",_brand],["bmod",_bmod],["source",_source],["ae",_ae],["prefid",_prefid]],c=[],d=0;d<b.length;++d)if(!(b[d].length!=2)){var e=b[d][0],f=b[d][1];f!=ig_&&f!=""&&c.push(e+"="+f)}return a=c.join("&")}function ig_za(){if(ig_t.length==0)ig_u=ig_b;else{ig_u=ig_a;var a=_setp_url+_qs()+ig_ya(),b=ig_t.join("&");ig_t=[];var c=a.length+b.length>=1800;if(c)_sendx(a,ig_Aa,ig_b,b);else{a+="&"+b;_sendx(a,ig_Aa,ig_b,ig_)}}}
function ig_Aa(){_IG_TriggerDelayedEvent("xsetpdone");ig_za()}function _xsetp(a){ig_t.push(a);ig_u||ig_za()}function _xsetp_is_done(){return ig_t.length==0&&ig_u==ig_b}function _dlsetp(a,b){b||(b=_esc(document.location));document.location=_setp_url+_qs()+ig_ya()+"&url="+b+"&"+a}function _removeTabParam(a){return a.replace(/(\?.*\b)(t\=[^&#]*[&#]?)/g,"$1")}function _select_tab(a,b){var c=b||"/ig";window.location.href=c+_qs()+"t="+a}
function _select_tab_and_log(a,b){_sendx("/ig/ui?xp=v2&action=selectTab&t="+a);_select_tab(a,b)}function _select_gadget_and_log(a,b){_sendx("/ig/ui?xp=v2&action=maximizeMod&from=selectMod&mid="+b);window.location.href="/ig"+_qs()+"t="+a+"&g="+b}function ig_m(a,b){var c=_gel(a);if(c)c.style.display=b}_exportSymbols("",["setDisplayStyle",ig_m]);function _ssbc(a,b,c){for(var d=_gelstn("*"),e=0,f;f=d[e];e++)if(f.className==a)f.style[b]=c}
function _findPos(a){for(var b=0,c=0;a!=ig_;){b+=a.offsetLeft;c+=a.offsetTop;a=a.offsetParent}return[b,c]}function _getGadgetContainer(a){var b=_gel("m_"+a+"_b");if(!b){b=_gel("remote_"+a);if(!b)b=document.body}return b}function _appendMaxAgeParameter(a,b){var c=/[?&]$/.test(a);return a+(c?"":"&")+"max_age="+b+(c?"&":"")}
function _getStyle(a,b){var c;if(typeof a.currentStyle!="undefined")c=a.currentStyle;else if(document.defaultView.getComputedStyle!="undefined")c=document.defaultView.getComputedStyle(a,ig_);else return"";return c[b]}function ig_v(){for(var a=_IG_MD,b=0;b<arguments.length;++b){a=a[arguments[b]];if(a==ig_)return ig_}return a}_exportSymbols("google.gadgets.Util",["args",_args]);_exportSymbols("",["addParamPairsToUrl",ig_r,"xmlhttp",ig_n]);if(!window.FLAG_isInSplitJS)window.FLAG_isInSplitJS=ig_b;function ig_w(a){this.A=[];this.lb=a;this.va("_IG_DD_open");this.va("_IG_hoverHeader");this.va("_IG_hoverModule");this.P("_IG_DD_create");this.P("_IG_DD_init");this.P("_IG_initDrag");this.P("_IG_PushHistory");this.P("_IG_PU_MakeDialogButton")}ig_w.prototype.Tc=ig_b;ig_w.prototype.jc=ig_b;ig_w.sd=10000;ig_c=ig_w.prototype;
ig_c.P=function(a){if(this.lb){var b=window,c=a.lastIndexOf(".");if(c>=0){b=ig_d(a.substring(0,c));a=a.substring(c+1)}if(b[a]&&!b[a].Fc)throw new Error(a+" is already defined.");b[a]=this.Yd(a)}};ig_c.va=function(a){if(this.lb){var b=window,c=a.lastIndexOf(".");if(c>=0){b=ig_d(a.substring(0,c));a=a.substring(c+1)}b[a]=function(){}}};ig_c.Yd=function(a){var b=this;function c(){for(var d=[],e=0;e<arguments.length;e++)d.push(arguments[e]);b.A.push([a,this,d])}c.Fc=ig_a;return c};
ig_c.Xb=function(){if(!(this.A.length==0)){var a=this.A.shift(),b=a[0],c=a[1],d=a[2];try{var e=b instanceof Function?b:window[b];e.apply(c,d)}catch(f){}if(this.A.length>0){var g=this;setTimeout(function(){g.Xb()},0)}else{this.jc=ig_a;this.wf()}}};
ig_c.Td=function(){for(var a=[],b=0;b<this.A.length;b++){var c=this.A[b][0];if(!(c instanceof Function))if(window[c].Fc){a.push(c);this.A.splice(b,1);b--}}var d=this;setTimeout(function(){d.Xb()},0);if(a.length>0)throw new Error("The following functions were not found in the post load file: "+a.join(", "));};ig_c.wf=function(){for(var a=_gelstn("*"),b=0;b<a.length;b++){var c=a[b];c.className&&c.className.split&&ig_e(c,"disabled",ig_)}};
ig_c.Ze=function(a,b){var c=this.Ye(b);_IG_AddEventHandler(a,c);setTimeout(c,ig_w.sd)};ig_c.Ye=function(a){var b=this;return function(){if(!b.Tc){_IG_LoadScriptXDomain(a,"window._IG_noMaxSupportTransitionStrategy",function(){b.Td()});b.Tc=ig_a}}};ig_c.Pd=function(a){this.jc||!this.lb?a():this.A.push([a,ig_,[]])};var ig_x;ig_x||(ig_x=new ig_w(window.FLAG_isInSplitJS));function _IG_callPostLoad(a){ig_x.Pd(a)}function _IG_deferFunction(a){ig_x.P(a)}function _IG_ignoreFunction(a){ig_x.va(a)}
function _IG_loadPostloadJS(a,b){ig_x.Ze(a,b)};function _edit(a,b){function c(){b&&b();_sendx("/ig/ui?action=editsettings&m="+a);ig_k("edit","m_"+a)}var d=ig_Ba[a];if(d){d();c()}else _IG_LL_load("m_"+a+"_editbox",{mid:a},function(){_showUserPrefs(a,ig_b);c()});return ig_b}var ig_Ba={};function _IG_AddCustomEditHandler(a,b){ig_Ba[a]=b}function _cedit(a){_closeUserPrefs(a);var b=_gel("m_"+a+"_form");if(b){b.reset();_sendx("/ig/ui?action=canceledit&m="+a);ig_k("canceledit","m_"+a);return ig_b}}
function _uhc(a,b,c){var d="m_"+a+"_"+b,e=_gel(d);if(!e){e=document.createElement("INPUT");e.type="hidden";e.disabled=ig_a;e.name=d;_gel("m_"+a+"_form").appendChild(e)}e.value=c;e.disabled=ig_b}function _confirmDel(a,b,c,d){var e=_get_module_title(a);d=d.replace(/MODULE_TITLE/,'"'+e+'"');confirm(d)&&_del(a,b,c)}
function _get_module_title(a){if(typeof a=="object")a=a.id.replace("m_","");else if(typeof a=="string")a=a.replace("m_","");var b=_gel("m_"+a+"_title");return b?_striptags(b.innerHTML):""}
function _get_all_modules(){for(var a,b=_gelsbyregex("DIV",/^c_[0-9]+$/),c=[],d=0;d<b.length;d++)b[d].style.display!="none"&&c.push(b[d]);a=c;for(var e=[],f=/^m_[0-9]+$/,g=0;g<a.length;g++){e[g]=[];for(var i=e[g],k=0;k<a[g].childNodes.length;k++){var m=a[g].childNodes[k];m.tagName=="DIV"&&m.style.display!="none"&&m.id&&f.test(m.id)&&i.push(m)}}if(window.gadgets&&window.gadgets.views&&window.gadgets.views.ViewManager&&window.gadgets.views.ViewManager.getCurrentMaxId){var h=window.gadgets.views.ViewManager.getCurrentMaxId();
h&&e.length>0&&h&&e[0].unshift(_gel("m_"+h))}return e}var ig_y=ig_b;function _del_is_done(){return _xsetp_is_done()&&ig_y}function _del(a,b,c){ig_y=ig_b;_xsetp("m_"+a+"_enab=0&m_"+a+"_t="+b);var d=_gel("undel_msg");if(d){_gel("undel_title").innerHTML="&quot;"+_get_module_title(a)+"&quot; ";d.style.display="block";ig_m("undo_msg","none");ig_m("undo_restore_msg","none")}ig_m("m_"+a,"none");ig_o=a;ig_p=c;ig_m(c,"");_mod=ig_a;ig_k("delete","m_"+a);ig_y=ig_a;return ig_b}
function _undel(){if(!(ig_o==ig_)){var a="m_"+ig_o,b=_gel(a);if(b){ig_m(a,"block");_xsetp("undel")}ig_m("undel_msg","none");ig_p!=ig_&&ig_m(ig_p,"none");ig_p=ig_o=ig_;ig_k("undelete",a)}}function _isModuleZipped(a){var b=_gel("m_"+a+"_b");if(b)return b.style.display=="none";return ig_b}
function _zm(a,b,c){var d=_gel("m_"+a+"_b");if(d){var e=!_isModuleZipped(a);d.style.display=e?"none":"block";var f=_gel("m_"+a+"_zippy");if(f)f.className=e?f.className.replace(/minbox/,"maxbox"):f.className.replace(/maxbox/,"minbox");var g=c?"mmz":"mz";_xsetp(g+"="+a+":"+(e?"1":"0")+"&t="+b);ig_k(e?"zip":"unzip",a)}return ig_b}var _uli,_pnlo,_mpnlo,_pl,_mod,_cbp=ig_b,ig_Ca=ig_b,_table=ig_,_tabs=ig_;
function _upc(){var a=[];_cbp||(a[a.length]=["medit","display",_uli?"":"none"]);a[a.length]=["panelo","display",_pnlo?"":"none"];a[a.length]=["panelc","display",_pnlo?"none":""];if(_mod){a[a.length]=["unmod","display","none"];a[a.length]=["mod","display",""]}else{a[a.length]=["mod","display","none"];a[a.length]=["unmod","display",""]}for(var b=_gelstn("*"),c=0,d;d=b[c];c++)for(var e=0;e<a.length;e++)if(d.className==a[e][0])d.style[a[e][1]]=a[e][2];_IG_callPostLoad(_init_drag_drop)}
function _init_drag_drop(){if(_pl)if(_cbp||_uli)if(!ig_Ca&&!_mpnlo){_IG_TriggerCustomEvent("initdrag",_table,_tabs);ig_Ca=ig_a}}var ig_z=0;
function _tp(a){ig_z>0&&clearInterval(ig_z);_pnlo=a;_mod=ig_a;_xsetp("pnlo="+(a?1:0));_upc();var b=_gel("cpnl"),c=_gel("cpnlc"),d=b.offsetWidth,e,f;if(a){e=c.offsetWidth;f="visible";ig_m("ehdr","");ig_m("nhdr","none")}else{e=1;f="hidden";ig_m("ehdr","none");ig_m("nhdr","")}b.style.overflow="hidden";var g=100,i=10,k=0;ig_z=setInterval(function(){var m=k/i,h=d+(e-d)*m;b.style.width=h+"px";k++;if(m>=1){clearInterval(ig_z);ig_z=0;b.style.width=e+"px";b.style.overflow=f}},g/i);return ig_b}
function _ts(a,b){var c=_gel(a+b),d;if(c.className=="mlist_open"){c.className="mlist_closed";d="pnlsc"}else{c.className="mlist_open";d="pnlso"}_xsetp(d+"="+_esc(b));return ig_b}function _add_m(a,b){_dlsetp(a,b)}function _add_m_confirm(a,b,c){confirm(b)&&_add_m(a,c)}function _add_f(a){_add_m("n_25="+_esc("url="+_esc(a)))}var ig_Da=/^_add_m(_confirm)?\(\"[^"]+\"(, *\"[^"]+\")?\)$/,ig_A=ig_a;function _find_feed_is_done(){return ig_A}
function _find_feed(a){ig_A=ig_b;var b="acd";if(!a){var c=_gelstn("div");if(c)for(var d=0,e;e=c[d];d++)e.id&&e.id.indexOf("ps")==0&&e.className=="mlist_open"&&_ts("ps",e.id.substring(2));if(_gel("add_custom"))a=_gel("add_custom").value}if(!a||a==""){b="advdsrch";a=_gel("add_advd").value}ig_m("ffresults","none");ig_m("ffloading","block");_sendx("/ig/feeds"+_qs()+"q="+_esc(a)+"&page="+_esc(b),ig_Ea);return ig_b}
function ig_Ea(a){ig_m("ffloading","none");ig_m("ffresults","block");if(a.length>0&&a.charAt(0)=="<"){if(_gel("ffresults"))_gel("ffresults").innerHTML=a}else a.match(ig_Da)!=ig_?eval(a):eval(a);ig_A=ig_a}function _add_remote_module(a,b,c){_sendx("/ig/feeds"+_qs()+"module=1&q="+_esc(a),function(d){b();var e=d,f=/_add_m_confirm\((\"[^"]+\"),\s*(\"[^"]+\")(,\s*\"[^"]+\")?\)/,g=/^alert\(\"[^"]+\"\)$/;if(e.match(ig_Da)!=ig_||e.match(g)!=ig_){if(c)e=e.replace(f,"_add_m($1$3)");eval(e)}});return ig_b}
function _ListApp(a,b,c){this.items=a;this.oa=[];this.Kc=b;this.ca=c;this.Ta="m_"+c+"_App";this.mc=_gel("m_"+c+"_disp");this.Xf=ig_a;this.V=_gel("m_"+c+"_val");this.H=_gel("m_"+c+"_name");if(!this.H)this.H=this.V;if(this.H){this.hc=this.H.value;this.ic=this.V.value}this.Uc=[].concat(this.items)}ig_c=_ListApp.prototype;ig_c.reset=function(){this.items=[].concat(this.Uc);this.oa=[];this.refresh()};ig_c.sort=function(a,b){return a.Wa(b)};
ig_c.sf=function(){var a="";if(_old_html)a="<table cellspacing=0 cellpadding=0 border=0>";for(var b="",c=this.items,d=0;d<c.length;d++)if(c[d]){a+=_old_html?"<tr><td nowrap><font size=-1>"+c[d].ib()+'</font></td><td><a href="#" onclick="'+this.Ta+"._del("+d+');return false"><img src="/ig/images/x.gif" width=16 height=13 border=0></a></td></tr>':'<a href="#" onclick="'+this.Ta+"._del("+d+');return false" class="delbox listdelbox"></a>'+c[d].ib()+'<div class="c"></div>';if(parseInt(c[d].Ra,10)<0)b+=
c[d].Ia(d)}else{this.items.splice(d,1);d--}var e=this.oa,f="";for(d=0;d<e.length;d++)if(parseInt(e[d].Ra,10)>=0)f+=","+e[d].Ra;a+=this.vc(b,f);return a};ig_c.vc=function(a,b){var c="<input type=hidden name=m_"+this.ca+'_del value="'+b+'"><input type=hidden name=m_'+this.ca+'_add value="'+a+'">';if(_old_html)c="</table><input type=hidden name=m_"+this.ca+'_del value="'+b+'"><input type=hidden name=m_'+this.ca+'_add value="'+a+'">';return c};
ig_c.refresh=function(){this.Xf&&this.items.sort(this.sort);this.mc.innerHTML="<font size=-1>"+this.sf()+"</font>"};ig_c.add=function(a,b){a||(a=_trim(this.H.value));b||(b=_trim(this.V.value));var c=new this.Kc(a,b,-1);if(c.ob()){this.items[this.items.length]=c;this.refresh();this.H.value=this.hc;this.V.value=this.ic}};ig_c._del=function(a){this.oa[this.oa.length]=this.items[a];this.items.splice(a,1);this.refresh()};
function _PrefListApp(a,b,c,d,e){var f=typeof c=="string"?[]:c,g=new _ListApp(f,d,e);for(var i in g)this[i]=g[i];typeof c=="string"&&this.of(c);this.rf=a;this.Bg=b;this.Ta="m_"+e+"_"+a+"_App";this.mc=_gel("m_"+e+"_"+a+"_disp");this.H=this.V=_gel("m_"+e+"_"+a+"_val");this.ic=this.hc="";this.vc=_PrefListApp_get_tail}function _PrefListApp_get_tail(){var a="</table>";_gel("m_"+this.ca+"_"+this.rf).value=this.Yf();return a}
_PrefListApp.prototype.of=function(a){if(!(a.length==0)){for(var b=_IG_Prefs.Ub(a),c=[],d=0;d<b.length;d++){var e=new this.Kc(b[d],b[d],-1);c[c.length]=e}this.items=c;this.Uc=[].concat(c)}};_PrefListApp.prototype.Yf=function(){for(var a=[],b=0;b<this.items.length;b++)a[a.length]=this.items[b].F;return _IG_Prefs.Sb(a)};function _ListItem(a,b,c){this.p=a;this.F=b;this.Ra=c}_ListItem.prototype.ob=function(){return this.p!=""};_ListItem.prototype.Wa=function(){return 0};_ListItem.prototype.ib=function(){return _hesc(this.p)};
_ListItem.prototype.Ia=function(){return"&"+_esc(this.p)+"="+_esc(this.F)};function _BMListItem(a,b,c){_ListItem.call(this,a,b,c)}ig_l(_ListItem,_BMListItem);ig_c=_BMListItem.prototype;ig_c.ob=function(){return _ListItem.prototype.ob.call(this)&&this.p!="http://"};ig_c.gb=function(){if(this.F)return this.F;else{var a=this.p;if(a.indexOf("http://")==0)a=a.substring(7);if(a.indexOf("www.")==0)a=a.substring(4);return a}};
ig_c.ib=function(){return'<a href="'+this.p+'" target=bmwindow>'+_hesc(this.gb())+"</a>"};ig_c.Ia=function(a){return"&b"+a+"="+_esc(this.p)+"&t"+a+"="+_esc(this.F)};ig_c.Wa=function(a){var b=_uc(this.gb()),c=_uc(a.gb());if(b==c)return 0;return b<c?-1:1};function _WthrListItem(a,b,c){_ListItem.call(this,a,b,c)}ig_l(_ListItem,_WthrListItem);_WthrListItem.prototype.Ia=function(){var a="&"+_esc(this.p);if(this.F)a+="="+_esc(this.F);return a};
function _FListItem(a,b,c,d){_ListItem.call(this,a,b,c);this.ka=d||0}ig_l(_ListItem,_FListItem);_FListItem.prototype.Ia=function(){return"&"+_esc(this.p)};_FListItem.prototype.Wa=function(a){var b=this;if(b.ka<a.ka)return-1;if(b.ka>a.ka)return 1;var c=_uc(b.p),d=_uc(a.p);if(c<d)return-1;if(c>d)return 1;return 0};function ig_B(a){if(!a)a=document.body;return a.scrollHeight>a.offsetHeight?a.scrollHeight:a.offsetHeight}
function ig_C(){return self.pageYOffset?self.pageYOffset:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop}function _closePromoBox(a){_toggle(_gel("promo"+a));_xsetp("gpc="+a+":-1")}_exportSymbols("",["pageHeight",ig_B,"scrollTop",ig_C]);var ig_D={},ig_Fa={};function _place(a,b){var c=ig_Fa[a];if(c)c(b);else{ig_D[a]||(ig_D[a]=[]);ig_D[a].push(b)}}
function _register_place(a,b){ig_Fa[a]=b;var c=ig_D[a];if(c){for(var d=0;d<c.length;d++)b(c[d]);ig_D[a]=ig_}}function _enableGS(a,b){a.action="https://www.google.com/accounts/CheckCookie";a.method="get";ig_q(a,"service",b);ig_q(a,"continue",document.location);ig_q(a,"skipvpage",ig_a);return ig_a};function _reload(a,b){var c=a-(new Date).getTime();if(c>1000)setTimeout("_reload("+a+")",c);else if(b)document.location.replace(ig_Ga(document.location.href,document.location.pathname));else{document.cookie="IGREL=1";document.location.replace(document.location.href.split("#")[0])}}var ig_Ha=/^([^?#]+)(?:\?([^#]*))?(#.*)?/;function ig_Ga(a,b){var c=ig_Ha.exec(a),d=c[1];if(b=="/")d+="ig";d+="?";var e=c[2];if(e)d+=e;if(!_argsUrl(a).refresh){if(e)d+="&";d+="refresh=1"}return d}
var ig_E={fb:0,kd:1800,rb:ig_,qb:ig_,Sa:ig_a,$:ig_,pd:ig_,Yb:600,ha:function(){ig_E.fb=(new Date).getTime()+ig_E.kd*1000},nf:function(){if((new Date).getTime()>ig_E.fb)window.gTalkNotifier&&window.gTalkNotifier._isAnyMoleOpen&&window.gTalkNotifier._isAnyMoleOpen()?ig_E.ha():_testConnection(function(){_reload(ig_E.fb,ig_E.pd)},ig_E.ha)},tb:function(a){ig_E.ha();ig_E.rb&&ig_E.rb(a)},sb:function(a){ig_E.ha();ig_E.qb&&ig_E.qb(a)}};
function _IG_disable_refresh_cycle(){ig_E.Sa=ig_b;_IG_suspend_refresh_cycle()}function _IG_suspend_refresh_cycle(){if(ig_E.$!=ig_){clearInterval(ig_E.$);ig_E.$=ig_}}function _IG_restart_refresh_cycle(){!ig_E.Sa||ig_E.$!=ig_||ig_Ia()}
function _IG_start_refresh_cycle(a,b,c){if(ig_E.Sa){ig_E.rb=document.onmousedown;ig_E.qb=document.onkeyup;ig_E.kd=a;ig_E.Yb=b;if(c)ig_E.pd=c;if(document.addEventListener){document.addEventListener("keyup",ig_E.sb,ig_b);document.addEventListener("mousedown",ig_E.tb,ig_b)}else if(document.attachEvent){document.attachEvent("onkeyup",ig_E.sb);document.attachEvent("onmousedown",ig_E.tb)}else{document.onkeyup=ig_E.sb;document.onmousedown=ig_E.tb}ig_Ia()}}
function ig_Ia(){ig_E.ha();ig_E.$=setInterval(ig_E.nf,ig_E.Yb*1000)}function _testConnection(a,b,c){var d=ig_n(),e="/ig/nop?t="+(new Date).getTime();c||(c=3500);d.open("GET",e,ig_a);d.onreadystatechange=function(){if(d.readyState==4&&a)if(200<=d.status&&d.status<300||d.status==1223){b=ig_;a()}};try{d.send(ig_)}catch(f){}function g(){if(b){a=ig_;b()}}setTimeout(g,c)};function _getWindowDimension(){var a=0,b=0;if(window.innerHeight){a=window.innerWidth;b=window.innerHeight}else if(document.documentElement&&document.documentElement.clientHeight){a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}else if(document.body.clientHeight){a=document.body.clientWidth;b=document.body.clientHeight}return{width:a,height:b}};function ig_Ja(){function a(e){var f=_gel(e);if(!f)return ig_b;if(f.style.display=="none")return ig_b;return ig_a}for(var b=["gadget_invites_header","undel_msg","add_friends_promo","below_search_bar_promo_wrapper","box_heading","new_user_setup_tip","has_signed_in_user_setup_tip","ig_new_user_setup","new_user_setup","_setup"],c=0,d=0;d<b.length;d++)a(b[d])&&c++;return c}function ig_F(){}ig_F.prototype.I=0;ig_F.prototype.wb=0;ig_F.prototype.zb=ig_b;ig_F.Mb=90;ig_F.ud=ig_F.Mb+15;ig_F.La=600;
ig_F.Kb=700;ig_F.td=2;ig_F.vd=20;ig_F.Gb=100;ig_F.rd=ig_F.Gb+15;ig_F.prototype.Wd=function(a,b){var c=ig_F.Mb;if(this.zb)c=ig_F.ud;var d=this.I;if(a<ig_F.La)return c;else if(a>ig_F.Kb)return d;var e=(d-c)*(a-ig_F.La)/(ig_F.Kb-ig_F.La)+c;if(e>d)return d;if(Math.abs(e-b)>ig_F.td)return Math.floor(e);return b};
ig_F.prototype.Qe=function(){if(!(this.I!=0)){this.zb=!!_gel("search_restriction_radio_buttons");var a=_gel("nhdrwrapsizer");if(a){this.I=parseInt(_getStyle(a,"height"),10);if(isNaN(this.I))this.I=this.zb?ig_F.rd:ig_F.Gb;this.wb=_getWindowDimension().height}}};
ig_F.prototype.cd=function(){var a=_getWindowDimension().height;this.wb=a;if(!(ig_Ja()>0)){var b=_gel("nhdrwrapsizer");if(b){var c=this.I;if(b.style.height!="")c=parseInt(b.style.height,10);if(!(isNaN(this.I)||isNaN(c)))b.style.height=this.Wd(a,c)+"px"}}};ig_F.prototype.Hd=function(){var a=_getWindowDimension().height;Math.abs(a-this.wb)<ig_F.vd||this.cd()};
function _initializeAutoThemeHeight(){var a=new ig_F;a.Qe();_IG_callPostLoad(function(){a.cd()});_IG_AddEventHandler("resize",function(){a.Hd()})};function _IG_GetCachedUrl(a,b){var c;c=typeof b=="object"?b:{};var d=window.location.href,e="/ig/proxy?",f=/^http:\/\/[^\/]+\/ig\/ifr[?]/,g=f.exec(d);if(g||d.indexOf("http://www.google.cn/ig/china")==0){if(window.location.host!="p.gmodules.com"&&_et)e+="et="+_esc(_et)+"&"}else e="http://p.gmodules.com/ig/proxy?";if(!isNaN(c.refreshInterval)&&c.refreshInterval>=0)e=_appendMaxAgeParameter(e,c.refreshInterval);return e+"url="+_esc(a)+"&log=1"}
function _IG_GetImageUrl(a,b){return _IG_GetCachedUrl(a,b)}function _IG_GetImage(a,b){var c=document.createElement("img");c.src=_IG_GetCachedUrl(a,b);return c};function _IG_Callback(a){var b=arguments;return function(){for(var c=[],d=0;d<arguments.length;d++)c[c.length]=arguments[d];for(d=1;d<b.length;d++)c[c.length]=b[d];a.apply(ig_,c)}};var _IG_Layouts={};_IG_Layouts._selectLayout=function(a){for(var b=_gel("edit_this_tab_form").edit_this_tab_selected_layout,c=0;c<b.length;c++){var d=b[c].value,e=_gel("edit_this_tab_layoutimg_"+d);if(d!=a){b[c].checked=ig_b;if(e.src.indexOf("_highlight")!=-1)e.src=e.src.substring(0,e.src.indexOf("_highlight"))+".gif"}else{b[c].checked=ig_a;if(e.src.indexOf("_highlight")==-1)e.src=e.src.substring(0,e.src.indexOf(".gif"))+"_highlight.gif"}}};var ig_G=function(){var a=ig_b,b=[],c=ig_,d=ig_;function e(){if(!(c||a)){a=ig_a;_IG_LoadScript("/ig/ll"+window.location.search,"")}}function f(){d(c,b);b=[]}return{init:function(){},load:function(g,i,k){if(_gel(g))k(i);else{b.push({id:g,args:i,callback:k});if(!a)if(c)f();else{_sendx("/ig/ui?action=lazy&id="+g,ig_,ig_b,ig_);e()}}},$e:function(g,i){c=g;d=i;a=ig_b;f()},Eg:function(){a=ig_b;b=[];d=c=ig_}}}(),_IG_LL_init=ig_G.init,_IG_LL_load=ig_G.load,_IG_LL_loaded=ig_G.$e;var ig_H=[];function _IG_isModuleInVisibleArea(a){var b=ig_C(),c=_getWindowDimension().height,d=parseInt(a.style.height,10),e=_findPos(a)[1];return e+d>b&&e<b+c}function _IG_delayLoadGadget(a){ig_H.push(a)}function _IG_loadDelayLoadGadgets(){for(var a=0;a<ig_H.length;++a){var b=_gel("remote_iframe_"+ig_H[a].id);if(b){var c=b.getAttribute("src");if(c==ig_||c=="")b.src=ig_H[a].base_iframe_url}}};function _IG_MD_Generate(a){var b={t:{},dt:[],m:{},f:{}};if(a.t)for(var c=0;c<a.t.length;++c){var d=a.t[c];b.t[d.i]=d;b.t[d.i].m={}}if(a.f)for(var e=0;e<a.f.length;++e){var f=a.f[e];b.f[f.n]=f}if(a.m)for(var g=0;g<a.m.length;++g){var i=a.m[g];i.fa||(i.fa={});b.m[i.i]=i;var k=b.t[i.t];if(k)k.m[i.i]=i}if(a.ct!=ig_&&b.t)b.ct=b.t[a.ct];if(a.dt)for(var m=0;m<a.dt.length;++m)b.dt[m]=b.t[a.dt[m]];return b};var ig_I;
ig_I||(ig_I=function(){function a(m){return m<10?"0"+m:m}Date.prototype.toJSON=function(){return this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z"};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()};var b=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,d,
e,f={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},g;function i(m){c.lastIndex=0;return c.test(m)?'"'+m.replace(c,function(h){var n=f[h];if(typeof n==="string")return n;return"\\u"+("0000"+(+h.charCodeAt(0)).toString(16)).slice(-4)})+'"':'"'+m+'"'}function k(m,h){var n,o,j,l,q=d,p,r=h[m];if(r&&typeof r==="object"&&typeof r.toJSON==="function")r=r.toJSON(m);if(typeof g==="function")r=g.call(h,m,r);switch(typeof r){case "string":return i(r);case "number":return isFinite(r)?
String(r):"null";case "boolean":case "null":return String(r);case "object":if(!r)return"null";d+=e;p=[];if(typeof r.length==="number"&&!r.propertyIsEnumerable("length")){l=r.length;for(n=0;n<l;n+=1)p[n]=k(n,r)||"null";j=p.length===0?"[]":d?"[\n"+d+p.join(",\n"+d)+"\n"+q+"]":"["+p.join(",")+"]";d=q;return j}if(g&&typeof g==="object"){l=g.length;for(n=0;n<l;n+=1){o=g[n];if(typeof o==="string")if(j=k(o,r))p.push(i(o)+(d?": ":":")+j)}}else for(o in r)if(Object.hasOwnProperty.call(r,o))if(j=k(o,r))p.push(i(o)+
(d?": ":":")+j);j=p.length===0?"{}":d?"{\n"+d+p.join(",\n"+d)+"\n"+q+"}":"{"+p.join(",")+"}";d=q;return j}}return{stringify:function(m,h,n){var o=h,j=n,l;e=d="";if(typeof j==="number")for(l=0;l<j;l+=1)e+=" ";else if(typeof j==="string")e=j;if((g=o)&&typeof o!=="function"&&(typeof o!=="object"||typeof o.length!=="number"))throw new Error("JSON.stringify");return k("",{"":m})},parse:function(m,h){var n=h,o;function j(l,q){var p,r,s=l[q];if(s&&typeof s==="object")for(p in s)if(Object.hasOwnProperty.call(s,
p)){r=j(s,p);if(r!==undefined)s[p]=r;else delete s[p]}return n.call(l,q,s)}b.lastIndex=0;if(b.test(m))m=m.replace(b,function(l){return"\\u"+("0000"+(+l.charCodeAt(0)).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(m.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){o=eval("("+m+")");return typeof n==="function"?j({"":o},""):o}throw new Error("JSON.parse");}}}());
ig_I.parse=function(){var a=ig_I.parse;return function(b,c){try{return a(b,c)}catch(d){return ig_b}}}();function ig_Ma(a){var b=document.createElement("DIV");b.innerHTML="<iframe onload='this.pool_locked=false'></iframe>";var c=b.getElementsByTagName("IFRAME")[0];c.style.visibility="hidden";c.style.width=c.style.height="0px";c.style.border="0px";c.style.position="absolute";c.Sc=a;this.l[this.l.length]=c;b.removeChild(c);return c}
function ig_Na(a){if(a.match(/^http[s]?:\/\//)){var b=this;window.setTimeout(function(){for(var c=ig_,d=b.l.length-1;d>=0;d--){var e=b.l[d];if(e&&!e.Sc){e.parentNode.removeChild(e);if(window.ActiveXObject){b.l[d]=ig_;b.l.splice(d,1)}else{e.Sc=ig_a;c=e;break}}}c=c?c:b.Zd(ig_a);c.src=a;document.body.appendChild(c)},0)}}function ig_Oa(){for(var a=0;a<this.l.length;a++){this.l[a].onload=ig_;this.l[a]=ig_}this.l.length=0;this.l=[]}
function ig_Pa(){for(var a=0;a<this.l.length;a++){var b=this.l[a];b&&b.parentNode.removeChild(b)}}function ig_Qa(){this.l=[];this.Zd=ig_Ma;this.Bc=ig_Na;this.clear=ig_Oa;this.nc=ig_Pa}function ig_Ra(a,b){_IFPC.ga[a]=b}function ig_Sa(a){delete _IFPC.ga[a]}
function ig_Ta(a,b,c,d,e,f,g,i){if(!_IFPC.cb){var k=4095-d.length;k=parseInt(k/3,10);if(typeof g=="undefined")g=ig_a;if(i){var m={s:b,a:c,f:"..",t:window._isk[a.split("_")[2]]},h=[a,"..",_IFPC.Va,1,1,encodeURIComponent(ig_I.stringify(m))].join("&");_IFPC.ta.Bc(d+"#"+h)}else{c=c.slice(0);c.unshift(_IFPC.tf(e));c.unshift(f);c.unshift(b);c.unshift(a);var n=_IFPC.oc(c),o=parseInt(n.length/k,10);if(n.length%k>0)o+=1;for(var j=0;j<o;j++){var l=n.substr(j*k,k),q=[a,_IFPC.Va,o,j,l,g];_IFPC.ta.Bc(d+"#"+_IFPC.oc(q))}}_IFPC.Va++}}
function ig_Ua(){_IFPC.ga={};_IFPC.M={};_IFPC.ta.clear()}function ig_Va(){if(!_IFPC.cb){_IFPC.cb=ig_a;_IFPC.ta.nc();_IFPC.clear()}}
function ig_Wa(a){var b=_IFPC.ab(a)[0],c=ig_;try{c=window.parent.frames[b]}catch(d){}try{if(!c&&window.parent.parent.frames[b]!=window.parent){window.parent.parent.frames[b].setTimeout(function(){},0);c=window.parent.parent.frames[b]}}catch(e){}if(!c)c=window.parent.parent;if(!c||c._IFPC==undefined)c=ig_;else{var f=function(){c._IFPC.handleRequest(a)};window.ActiveXObject?f():c.setTimeout(f,0)}}
function ig_Xa(a){a=_IFPC.ab(a);var b=a.shift(),c=a.shift(),d=a.shift(),e=a.shift(),f=a.shift(),g=a.shift(),i=b+"_"+c;_IFPC.J[i]||(_IFPC.J[i]=[]);_IFPC.J[i].push([e,f]);if(_IFPC.J[i].length==d){_IFPC.J[i].sort(function(q,p){return parseInt(q[0],10)-parseInt(p[0],10)});f="";for(var k=0;k<d;k++)f+=_IFPC.J[i][k][1];_IFPC.J[i]=ig_;var m=_IFPC.ab(f);b=m.shift();var h=m.shift(),n=m.shift(),o=m.shift(),j=_IFPC.ye(h);if(j){var l=j.apply(ig_,m);if(_IFPC.Re(o)){l.unshift(o);_IFPC.call(b,_IFPC.Fb,l,n,ig_,"")}}else if(g)throw new Error("Service "+
h+" not registered.");}}function ig_Ya(a){return _IFPC.ga.hasOwnProperty(a)?_IFPC.ga[a]:ig_}function ig_Za(a){var b="";if(a&&typeof a=="function"){b=_IFPC.ve();_IFPC.M[b]=a}return b}function ig__a(a){if(_IFPC.M.hasOwnProperty(a))_IFPC.M[a]=ig_}function ig_0a(a){if(a&&_IFPC.M.hasOwnProperty(a))return _IFPC.M[a];return ig_}function ig_1a(){return _IFPC.Eb+_IFPC.Qd++}function ig_2a(a){return(a+"").indexOf(_IFPC.Eb)==0}
function ig_3a(a){for(var b=a.split("&"),c=0;c<b.length;c++){var d=decodeURIComponent(b[c]);try{d=ig_I.parse(d)}catch(e){}b[c]=d}return b}function ig_4a(a){for(var b=[],c=0;c<a.length;c++){var d=ig_I.stringify(a[c]);b.push(encodeURIComponent(d))}return b.join("&")}function ig_5a(a){var b=_IFPC.oe(a);if(b){for(var c=[],d=1;d<arguments.length;d++)c[c.length]=arguments[d];b.apply(ig_,c);_IFPC.kg(a)}else throw new Error("Invalid callbackId");}var _IFPC={};
function ig_6a(a){var b=window._argsUrl&&window._argsUrl(a);if(b&&b.exp_rpc_js==1)window.FLAG_use_rpc_js=ig_a;if(window.FLAG_use_rpc_js){}else{_IFPC={registerService:ig_Ra,unregisterService:ig_Sa,call:ig_Ta,clear:ig_Ua,nc:ig_Va,Dg:ig_Wa,Cg:ig_Wa,handleRequest:ig_Xa,Eb:"cbid",Fb:"ifpc_callback",ta:new ig_Qa,J:{},ga:{},M:{},Qd:0,Va:0,cb:ig_b,ye:ig_Ya,tf:ig_Za,kg:ig__a,oe:ig_0a,ve:ig_1a,Re:ig_2a,ab:ig_3a,oc:ig_4a,Rd:ig_5a};_IFPC.registerService(_IFPC.Fb,_IFPC.Rd);}}
ig_6a(document.location.href);function _IG_Prefs_PrefsData(){}_IG_Prefs_PrefsData.prototype.value=ig_;
function _IG_Prefs(a){var b=a;if(typeof remote_modules!=="object"){var c=_args().mid;b=c?c:0;_IG_Prefs._parseURL(b);_IG_Prefs.wa[b]=ig_b}else{if(!b)throw new Error("Module ID is required as first argument to _IG_Prefs() for inlined modules");_IG_Prefs.wa[b]=ig_a}_IG_Prefs.g[_IG_Prefs.D+b]||(_IG_Prefs.g[_IG_Prefs.D+b]={});this.g=_IG_Prefs.g[_IG_Prefs.D+b];this.d=b;this.Ag=/(.*)(\<ph.*?\>\s*(\<ex\>(.*?)\<\/ex\>)?\s*%1\s*\<\/ph\>)(.*)/}ig_c=_IG_Prefs.prototype;
ig_c.Z=function(a,b){if(b==undefined)b=ig_;var c=this.g[a];if(c==undefined)return b;var d=c.value;return d!=undefined?d:b};ig_c.hb=function(a,b){return this.Z(_IG_Prefs.k+a,b)};ig_c.getString=function(a){var b="",c=this.hb(a,b);return c!=ig_?c+"":b};ig_c.re=function(a){var b=0,c=parseInt(this.hb(a,b),10);return isNaN(c)?b:c};ig_c.getBool=function(a){var b=this.getString(a);return b==="true"||!!parseInt(b,10)};ig_c.ne=function(a){return _IG_Prefs.Ub(this.hb(a,""))};
ig_c.Hf=function(a,b){this.set(a,_IG_Prefs.Sb(b))};ig_c.pe=function(){return this.getString(".country")};ig_c.se=function(){return this.getString(".lang")};ig_c.te=function(a){return this.Z(_IG_Prefs.Lb+a,"")+""};ig_c.set=function(){var a=Math.floor(arguments.length/2);if(!(a==0)){for(var b=[],c=0;c<a;++c){var d=arguments[c*2],e=_IG_Prefs.k+d,f=arguments[c*2+1]+"";this.ng(e,f)&&b.push(d,f)}b.length==0||(_IG_Prefs.wa[this.d]?_IG_Prefs._setP(this.d,b):_IFPC_SetPref(b))}};
function ig_7a(a){var b="todos",c=_ig_gmid_(a),d=(new _IG_Prefs(Number(c))).getString(b);if(navigator.userAgent.indexOf("MSIE")!=-1&&d.length>1000)for(var e=Math.ceil(d.length/1000),f=0;f<e;f++){var g=d.substr(f*1000,1000);ig_8a(a,g,f,e)}else ig_8a(a,d)}function ig_8a(a,b,c,d){var e=_ig_gmid_(a),f=[b];d&&f.push(c,d);_IFPC.call(a,"populate_todos_pref",f,window._ifpc_relay_url[e],ig_,"http://"+window.location.host+"/ig/images/rpc_relay.html",ig_a,ig_a)}
window._IG_CONTAINER&&_IFPC.registerService("get_todos_pref_for_migration",ig_7a);_IG_Prefs.prototype.we=function(){var a=["__module_id__="+this.d];for(var b in this.g)a.push(encodeURIComponent(b)+"="+encodeURIComponent(this.g[b].value));return a.join("&")};_IG_Prefs.prototype.dump=function(){document.write("<pre>");for(var a in this.g)document.writeln(a+" = "+this.Z(a,ig_));document.write("</pre>")};
_IG_Prefs.prototype.ng=function(a,b){var c=this.g[a];if(c&&c.value===b)return ig_b;if(c)c.value=b;else{c=new _IG_Prefs_PrefsData;c.value=b;this.g[a]=c}return ig_a};_IG_Prefs.wa={};_IG_Prefs.g={};_IG_Prefs.D="m_";_IG_Prefs.k="up_";_IG_Prefs.yd="up_";_IG_Prefs.Lb="msg_";_IG_Prefs.Ma={};_IG_Prefs.Ma[_IG_Prefs.yd]="value";_IG_Prefs.tg=function(a,b){if(a.indexOf)return a.indexOf(b);else{for(var c=0;c<a.length;++c)if(a[c]===b)return c;return-1}};
_IG_Prefs._parseURL=function(a){_IG_Prefs.wa[a]=ig_b;for(var b={},c=ig_f(),d=0;d<c.length;++d){var e=c[d].indexOf("=");if(e>=0){var f=c[d].substring(0,e);f=f.replace(/\+/g," ");var g=c[d].substring(e+1);g=g.replace(/\+/g," ");g=_unesc(g);var i=ig_b;for(var k in _IG_Prefs.Ma)if(f.indexOf(k)===0){i=ig_a;f=f.substring(k.length);f=_IG_Prefs.k+f;b[f]=b[f]?b[f]:new _IG_Prefs_PrefsData;if(k===_IG_Prefs.sg||k===_IG_Prefs.qg)g=g=="true";b[f][_IG_Prefs.Ma[k]]=g;break}if(!i)if(f.indexOf(_IG_Prefs.Lb)===0)_IG_Prefs.L(a,
f,g);else if(f===".lang"||f===".country")_IG_Prefs.L(a,_IG_Prefs.k+f,g)}}if(window.IDIModule){b=window.IDIModule.getPrefs();for(d in b)_IG_Prefs.L(a,d,b[d])}else for(f in b)_IG_Prefs.L(a,f,b[f].value)};_IG_Prefs.L=function(a,b,c){var d=_IG_Prefs.D+a;if(typeof _IG_Prefs.g[d]!=="object")_IG_Prefs.g[d]={};if(typeof _IG_Prefs.g[d][b]!=="object"){_IG_Prefs.g[d][b]=new _IG_Prefs_PrefsData;var e=_IG_Prefs.g[d][b];e.value=c}};
_IG_Prefs.Pf=function(a,b,c){var d=_IG_Prefs.D+a;if(typeof _IG_Prefs.g[d]!=="object")_IG_Prefs.L(a,b,c);else if(typeof _IG_Prefs.g[d][b]!=="object")_IG_Prefs.g[d][b]=new _IG_Prefs_PrefsData;var e=_IG_Prefs.g[d][b];e.value=c};_IG_Prefs._addAll=function(a,b){for(var c=0;c<b.length;++c)_IG_Prefs.L(a,b[c][0],b[c][1])};_IG_Prefs.Sb=function(a){var b=a.length&&a.join;if(b){for(var c=[],d=0;d<a.length;++d)c.push(a[d].replace(/\|/g,"%7C"));return c.join("|")}else return new String(a)};
_IG_Prefs.Ub=function(a){for(var b=a.length>0?a.split("|"):[],c=0;c<b.length;++c)b[c]=b[c].replace(/%7C/g,"|");return b};
_IG_Prefs.X=function(a,b){var c=_IG_Prefs.D+a,d=_IG_Prefs.g[c];if(d==ig_)return b;var e=b.split("#"),f=e[0].split("?"),g=f;if(e.length>1&&("&"+e[1]).indexOf("&"+_IG_Prefs.k)!==-1&&(f.length===1||("&"+f[1]).indexOf("&"+_IG_Prefs.k)===-1))g=e;var i=[];if(g.length>1&&g[1].length!==0)i=g[1].split("&");for(var k=0;k<i.length;++k)i[k].indexOf(_IG_Prefs.k)===0&&i.splice(k--,1);for(var m in d)m.indexOf(_IG_Prefs.k)!==0||m.indexOf(_IG_Prefs.k+".lang")===0||m.indexOf(_IG_Prefs.k+".country")===0||m.indexOf(_IG_Prefs.k+
"synd")===0||i.push(_esc(m)+"="+_esc(d[m].value));g[1]=i.join("&");e[0]=f.join("?");return e.join("#")};_IG_Prefs._setPrefs=function(a,b){for(var c=Math.floor(b.length/2),d=0;d<c;++d){var e=_IG_Prefs.k+b[d*2],f=b[d*2+1];_IG_Prefs.Pf(a,e,f)}};_IG_Prefs._setP=function(a,b){if(!(_args().synd==="open")){for(var c=Math.floor(b.length/2),d=[],e=0;e<c;++e){var f=_IG_Prefs.k+b[e*2],g=b[e*2+1];d.push(_IG_Prefs.D+a+"_"+f+"="+_esc(g))}d.length===0||_xsetp(d.join("&"))}};
_exportClass("google.gadgets","Prefs",_IG_Prefs,["getString",_IG_Prefs.prototype.getString,"getInt",_IG_Prefs.prototype.re,"getBool",_IG_Prefs.prototype.getBool,"getArray",_IG_Prefs.prototype.ne,"setArray",_IG_Prefs.prototype.Hf,"getLang",_IG_Prefs.prototype.se,"getCountry",_IG_Prefs.prototype.pe,"getMsg",_IG_Prefs.prototype.te,"getPreloadedString",_IG_Prefs.prototype.we,"set",_IG_Prefs.prototype.set,"dump",_IG_Prefs.prototype.dump]);function _IG_FR_getFeed(a){return window["FEED"+a]||{}}
function _IG_FR_toggle(a,b,c,d){c=c||"";d=d||"";var e=_gel("ft_"+a+"_"+b),f=_gel("fb_"+a+"_"+b),g=_gel("ftl_"+a+"_"+b);if(f.style.display=="block")ig_9a(e,f,g,c);else{var i=_IG_FR_getFeed(a);if(!i.has_entries&&!i.is_fetching){i.is_fetching=ig_a;_IG_FetchFeedAsJSON(i.url,_IG_Callback(ig_$a,a,b,c,d),i.num_items+15,ig_a)}else{for(var k=0;k<i.num_items;++k){var m=_gel("ftl_"+a+"_"+k);m&&ig_9a(_gel("ft_"+a+"_"+k),_gel("fb_"+a+"_"+k),m,c)}e.className=ig_J(e)?"fminbox_reverse_directionality":"fminbox";e.title=
d;if(_old_html||_use_old_feed_styles)e.className="fbox fminbox";f.style.display="block";f.style.maxHeight=f.offsetWidth*1.5+"px";g.className=ig_J(e)?"sftl_reverse_directionality":"sftl";window._IG_FRUC_setFeedAsRead&&window._IG_FRUC_setFeedAsRead(a,b);if(f.style.maxHeight&&parseInt(f.style.maxHeight,10)<ig_ab(g.offsetWidth,f))f.style.height=f.style.maxHeight}}}
function ig_$a(a,b,c,d,e){var f=_IG_FR_getFeed(b);f.is_fetching=ig_b;if(a&&a.Entry){for(var g=0;g<a.Entry.length;g++)if(a.Entry[g].ID!="no_id"){var i=_gel("fb_"+b+"_"+a.Entry[g].ID);if(i)i.innerHTML=a.Entry[g].Summary}f.has_entries=ig_a;_IG_FR_toggle(b,c,d,e)}}function ig_J(a){return a.className.match(/reverse_directionality$/)=="reverse_directionality"}
function ig_9a(a,b,c,d){a.className=ig_J(a)?"fmaxbox_reverse_directionality":"fmaxbox";a.title=d;if(_old_html||_use_old_feed_styles)a.className="fbox fmaxbox";b.style.display="none";b.style.maxHeight="";c.className=ig_J(a)?"uftl_reverse_directionality":"uftl"}function ig_ab(a,b){var c=document.createElement("div");c.style.left=-screen.width;c.style.top=-screen.height;c.style.width=a;c.innerHTML=b.innerHTML;document.body.appendChild(c);var d=c.clientHeight;document.body.removeChild(c);return d}
function _IG_RegisterContainerScrollHandler(a){if(navigator.userAgent.indexOf("Firefox")>=0)window.addEventListener("scroll",a,ig_b);else window.onscroll=a}function _IG_GetContainerVisibleHeight(){return document.documentElement.clientHeight}function _IG_GetContainerTotalHeight(){return document.body.scrollHeight}function _IG_GetContainerScrollTop(){return document.documentElement.scrollTop}
function ig_bb(a){var b=_gel("hl"),c=b?b.value:"en";return"/reader/ig/feed/"+_esc(_IG_FR_getFeed(a).url)+"?hl="+c}function ig_cb(a,b){if(window._max_strategies){var c=ig_bb(a)+(b?"&i="+b:"");window._max_strategies[a]._updateIframeSrc(c)}}function _IG_FR_maxModule(a,b,c){ig_cb(a,b);window._IG_maximize_view(a,"feed",c)}
function _IG_FR_init(a){window._max_strategies&&_IG_callPostLoad(function(){window._max_strategies[a]=new window._IG_inlinedTransitionStrategy(a,ig_bb(a),ig_,_IG_isIE())});_IG_AddModuleEventHandler(a,"unmaximize",function(){ig_cb(a)})}var _IG_FR_listOfFeeds=[];function ig_K(a){var b,c;if(window.ActiveXObject){c=new ActiveXObject("Microsoft.XMLDOM");c.async=ig_b;c.validateOnParse=ig_b;c.resolveExternals=ig_b;c.loadXML(a)}else{var d=new DOMParser;c=d.parseFromString(a,"text/xml")}b=c;var e=b.documentElement;if(e&&e.nodeName=="parsererror"||navigator.userAgent.indexOf("Safari")>=0&&_gelstn("parsererror",b)[0])return a;return b}var ig_db=(new Date).getTime();
function ig_eb(a){if(!a.qf&&!a.headers&&window._pl_data&&_pl_data[a.url]&&!(!isNaN(a.refreshInterval)&&a.refreshInterval>=0&&(new Date).getTime()>ig_db+a.refreshInterval*1000))if(a.Ua){var b=ig_K(_pl_data[a.url]);a.callback(b)}else a.callback(_pl_data[a.url]);else{var c="/ig/jsonp?";if(_et!="")c+="et="+_et+"&";if(!isNaN(a.refreshInterval)&&a.refreshInterval>=0)c=_appendMaxAgeParameter(c,a.refreshInterval);if(a.encoding)c+="enc="+_esc(a.encoding)+"&";if(a.headers){for(var d=[],e=0;e<a.headers.length;e++)d.push(_esc(a.headers[e][0]+
":"+a.headers[e][1]));c+="hdrs="+_esc(d.join(","))+"&"}c+="url="+_esc(a.url);_sendx(c,function(f){var g=a.url,i=a.callback,k=a.Ua;if(!f||f==""||f.length<=27||f.charAt(27)!="{")i(k?ig_:"");else{var m=eval("("+f.substring(27)+")");if(g in m){var h=m[g].body;i(k?ig_K(h):h)}}},ig_b,a.qf)}}function ig_fb(a){var b={};for(var c in a)b[c]=a[c];return b}function _IG_FetchContent(a,b,c){var d;d=c!=ig_&&typeof c=="object"?ig_fb(c):{};d.url=a;d.callback=b;d.Ua=ig_b;ig_eb(d)}
function _IG_FetchXmlContent(a,b,c){var d;d=c!=ig_&&typeof c=="object"?ig_fb(c):{};d.url=a;d.callback=b;d.Ua=ig_a;ig_eb(d)}function ig_gb(a,b,c){_IG_FetchContent(a,function(d){if(d){var e=ig_K(d);if(typeof e=="object"&&e.firstChild){var f=e.firstChild;f.nodeType==7&&f.nodeName=="xml"&&e.removeChild(f);b(e);return}}b(ig_)},c)}
function ig_hb(a,b){var c="/ig/feedjson";_sendx(c,function(d){var e={};try{e=eval("("+d.slice(27)+")")}catch(f){e={}}for(var g in b){var i=e[g]?e[g]:ig_;b[g](i)}b=ig_},ig_b,a)}var ig_ib=ig_b,ig_jb=0,ig_L="",ig_M={};
function _IG_FetchFeedAsJSON(a,b,c,d,e){if(typeof e!="object")e={};var f="fr_"+ig_jb++,g="url="+_esc(a);if(!isNaN(e.refreshInterval)&&e.refreshInterval>=0)g=_appendMaxAgeParameter(g,e.refreshInterval);if(c)g+="&val="+_esc(c);if(d)g+="&sum=1";var i=f+"="+_esc(g);if(ig_ib){var k={};k[f]=b;ig_hb(i,k)}else{if(ig_L!="")ig_L+="&";ig_L+=i;ig_M[f]=b}}function ig_kb(){ig_ib=ig_a;ig_L!=""&&ig_hb(ig_L,ig_M);ig_L="";ig_M=ig_}_IG_AddEventHandler("domload",ig_kb);
_exportSymbols("google.gadgets.Fetchers",["getContent",_IG_FetchContent,"getXMLContent",ig_gb,"getFeedAsJSON",_IG_FetchFeedAsJSON]);function ig_lb(a,b,c){var d=ig_v("m",b);if(d)d.ti=a;var e=_gel("m_"+b+"_title");if(e)e.innerHTML=_hesc(a);if(e=_gel("left_nav_m_"+b+"_title"))if(e=e.firstChild){e.title=a;e.innerHTML=_hesc(a);c||(e.offsetWidth==0?_IG_RegisterOnloadHandler(function(){ig_N(e)}):ig_N(e))}}
function ig_N(a,b){var c=b||121,d=a.title;if(!(a.offsetWidth<=c)){var e=0,f=d.length,g,i,k=d.match(/\(\d+\)$/);if(k=k?k[0]:""){k=" "+k;f=d.length-k.length;var m=5*k.length;if(m>c>>1)k=""}for(;i=f-e>>1;){g=e+i;a.innerHTML=ig_mb(d,g,k);if(a.offsetWidth>c)f=g;else e=g}a.innerHTML=ig_mb(d,e,k)}}function ig_mb(a,b,c){var d=[a.substring(0,b),"..."];c&&d.push(c);return _hesc(d.join(""))}function ig_nb(a){return typeof a=="undefined"||!a||a=="undefined"}
function ig_ob(a,b){ig_nb(a)||ig_lb(b,_ig_gmid_(a))}_IFPC.registerService("set_title",ig_ob);function _IG_SetTitle(a,b,c){if(ig_nb(b))throw new Error("Inline modules must specify their __MODULE_ID__ when using _IG_SetTitle");else ig_lb(a,b,c)}function _IG_SetTitleDir(a,b){var c=_gel("left_nav_m_"+b+"_title");if(c)a?c.setAttribute("dir",a):c.removeAttribute("dir")}
function _IG_FormatLeftNavTitles(){_IG_RegisterOnloadHandler(function(){var a=_gel("full_nav"),b=_gelsbyregex("div",/^left_nav_m_\d+_title$/,a);if(b)for(var c=0;c<b.length;++c){var d=b[c];(d=d.firstChild)&&ig_N(d)}for(c=0;c<_IG_MD.dt.length;++c)if(d=_gel("tab"+_IG_MD.dt[c].i+"_view_title")){var e=d.className=="selected_tab_view_title"?80:100;(d=d.firstChild)&&ig_N(d,e)}})};function _delpromobox(){_xsetp("hp=0");var a=_gel("promobox");a.parentNode.removeChild(a);return ig_b}function _delmessage(){_xsetp("gm=0");var a=_gel("googlemessage");a.parentNode.removeChild(a);return ig_b}function _delpromomod(){_xsetp("pm=0");var a=_gel("promomod");a.parentNode.removeChild(a);return ig_b};var ig_O=new (function SetPreferenceOnBeforeUnloadManagerClass(){this.ea={};var b=window.onbeforeunload;window.onbeforeunload=function(){b&&b();ig_O.cf()}});ig_O.Fd=function(a,b){this.ea[a]=b};ig_O.zf=function(a){delete this.ea[a]};ig_O.Z=function(a){return this.ea[a]};ig_O.cf=function(){var a=[];for(var b in this.ea)a.push(b+"="+this.ea[b]);if(a.length){var c=ig_n(),d="/ig/setp?et="+_et+"&"+a.join("&");c.open("GET",d,ig_b);c.send(ig_)}};
function _IG_add_setp_parameter_onbeforeunload(a,b){ig_O.Fd(a,b)}function _IG_remove_setp_parameter_onbeforeunload(a){ig_O.zf(a)}function _IG_get_setp_parameter_onbeforeunload(a){return ig_O.Z(a)};var ig_P={Qa:0,Nb:1,Rb:2,Hb:3},ig_Q=function(){var a=ig_P.Qa,b=ig_,c=ig_,d={},e={},f={},g=ig_a,i=ig_,k=ig_;function m(){var j=[],l=[];for(var q in f)if(f[q]&&!e[q])j.push(q);else!f[q]&&e[q]&&l.push(q);j.length?_IG_add_setp_parameter_onbeforeunload("exptabs",j.join(":")):_IG_remove_setp_parameter_onbeforeunload("exptabs");l.length?_IG_add_setp_parameter_onbeforeunload("coltabs",l.join(":")):_IG_remove_setp_parameter_onbeforeunload("coltabs");_IG_add_setp_parameter_onbeforeunload("roster",g+"")}function h(j){_gel("gadget_set"+
j).style.display="block";_gel("triangle"+j).className="v2minbox";f[j]=ig_a;_sendx("/ig/ui?xp=v2&action=expandTab&t="+j,ig_,ig_b,ig_)}function n(j){_gel("gadget_set"+j).style.display="none";_gel("triangle"+j).className="v2maxbox";f[j]=ig_b;_sendx("/ig/ui?xp=v2&action=collapseTab&t="+j,ig_,ig_b,ig_)}function o(){i.style.display="none";k.style.display="none";switch(a){case ig_P.Qa:var j=_gel("section"+b+"_contents");j.className="section_contents leftunselectedtab leftborder";_gel("tab"+b).className=
"section_title unselected_section_title";_gel("tab_separator"+b).style.display="";if(c)_gel("tab_separator"+c).style.display="";else if(_gel("tab_separator_bot"))_gel("tab_separator_bot").style.display="";break;case ig_P.Nb:var l=_IG_getCurrentMaxId(),q=_gel("left_nav_m_"+l+"_title");q.className="gadget_title";break;case ig_P.Rb:var p=_gel("updates_left_nav");p.className="gadget_title";break;case ig_P.Hb:var r=_gel("shares_left_nav");r.className="gadget_title";break}}return{Pe:function(){i=_gel("left_nav_top_rounded_corners");
k=_gel("left_nav_bottom_rounded_corners")},Nf:function(j){b=j},Gg:function(j){a=j},xe:function(){return b},Mf:function(){for(var j=_gel("section"+b+"_contents").nextSibling;j;){if(j.id&&j.id.match(/section\d+_contents/)){c=j.id.match(/\d+/);break}j=j.nextSibling}},Hg:function(){o()},yc:function(j){o();var l=_gel("left_nav_m_"+j+"_title");l.className="selected_gadget_title gadget_title leftselectedtab surroundborder";i.style.display="";k.style.display="";l.parentNode.insertBefore(i,l);l.parentNode.insertBefore(k,
l.nextSibling);a=ig_P.Nb},zc:function(){o();var j=_gel("section"+b+"_contents");j.className="selected_section_contents leftselectedtab surroundborder";_gel("tab"+b).className="section_title selected_section_title";_gel("tab_separator"+b).style.display="none";if(c)_gel("tab_separator"+c).style.display="none";else if(_gel("tab_separator_bot"))_gel("tab_separator_bot").style.display="none";i.style.display="";k.style.display="";j.parentNode.insertBefore(i,j);j.parentNode.insertBefore(k,j.nextSibling);
a=ig_P.Qa},Me:function(){o();var j=_gel("shares_left_nav");j.className="selected_gadget_title gadget_title leftselectedtab surroundborder";i.style.display="";k.style.display="";j.parentNode.insertBefore(i,j);j.parentNode.insertBefore(k,j.nextSibling);a=ig_P.Hb},Ne:function(){o();var j=_gel("updates_left_nav");j.className="selected_gadget_title gadget_title leftselectedtab surroundborder";i.style.display="";k.style.display="";j.parentNode.insertBefore(i,j);j.parentNode.insertBefore(k,j.nextSibling);
a=ig_P.Rb},cg:function(j){var l=_gel("m_"+j+"_home_menu");if(l)l.style.display="none";var q=_gel("m_"+j+"_canvas_menu");if(q)q.style.display=""},dg:function(j){var l=_gel("m_"+j+"_canvas_menu");if(l)l.style.display="none";var q=_gel("m_"+j+"_home_menu");if(q)q.style.display=""},Je:function(j){var l=_gel("left_nav_"+j+"_title");if(l)l.style.display="none"},Tf:function(j){var l=_gel("left_nav_"+j+"_title");if(l)l.style.display=""},Nc:function(j){var l=_gel("m_"+j+"_b");d[j]=l&&l.style.display=="none";
var q=!_gel("remote_iframe_"+j),p=ig_a;l.style.display=q&&p?"none":""},Oc:function(j){var l=_gel("m_"+j+"_b");l.style.display=d[j]?"none":""},Vf:function(){if(b!="0"){_gel("rcbg").style.display="";_gel("col2").className="botborder"}},fd:function(){if(b=="0"){_gel("rcbg").style.display="";_gel("col2").className="botborder"}},xc:function(){if(b=="0"){_gel("rcbg").style.display="none";_gel("col2").className="topbotborder"}},je:function(j){e[j]=ig_a;f[j]=ig_a},Vd:function(j){e[j]=ig_b;f[j]=ig_b},fg:function(j,
l){if(!j)j=window.event;j.cancelBubble=ig_a;j.stopPropagation&&j.stopPropagation();_gel("gadget_set"+l).style.display=="none"?h(l):n(l);m()},eg:function(){if(_gel("talk_container")){g=!g;_gel("roster_triangle").className=g?"v2minbox":"v2maxbox";if(window.gTalkNotifier&&window.gTalkNotifier._setRosterExpanded)window.gTalkNotifier._setRosterExpanded(g);else _gel("talk_container").style.display=g?"":"none";_log("roster_toggle:"+(g?"1":"0"));m()}},Ff:function(j){g=j},We:function(){return g},Ke:function(j){var l=
_gel(j);if(l)l.style.display="none"},jd:function(j){for(var l,q=_gel("DD_"+j).firstChild;q;q=q.nextSibling)if(q.innerHTML&&(q.innerHTML.match(IG_MSGS.MAXG)||q.innerHTML.match(IG_MSGS.MING))){l=q;break}var p=_gel("m_"+j+"_b"),r=p&&p.style.display=="none";if(l)l.innerHTML=r?IG_MSGS.MAXG:IG_MSGS.MING},hd:function(j){var l=_gel("m_"+j+"_b"),q=l&&l.style.display=="none",p=l.nextSibling;if(p&&p.className)p.className=q?"rnd_modtitle":"rnd_modboxin"}}}();
function _IG_LN_init(a){_IG_AddEventHandler("modulemaximize",ig_Q.yc);_IG_AddEventHandler("modulemaximize",ig_Q.cg);_IG_AddEventHandler("modulemaximize",ig_Q.Nc);_IG_AddEventHandler("modulemaximize",ig_Q.fd);_IG_AddEventHandler("moduleunmaximize",ig_Q.zc);_IG_AddEventHandler("moduleunmaximize",ig_Q.dg);_IG_AddEventHandler("moduleunmaximize",ig_Q.Oc);_IG_AddEventHandler("moduleunmaximize",ig_Q.xc);_IG_AddEventHandler("moduledelete",ig_Q.Je);_IG_AddEventHandler("moduleundelete",ig_Q.Tf);_IG_AddEventHandler("modulezip",
ig_Q.jd);_IG_AddEventHandler("modulezip",ig_Q.hd);_IG_AddEventHandler("moduleunzip",ig_Q.jd);_IG_AddEventHandler("moduleunzip",ig_Q.hd);_IG_RegisterOnloadHandler(ig_Q.Mf);_IG_RegisterOnloadHandler(ig_Q.Vf);_IG_RegisterOnloadHandler(ig_Q.Pe);ig_Q.Nf(a)}
var _IG_get_selected_tab_id=ig_Q.xe,_IG_expand_tab_onload=ig_Q.je,_IG_collapse_tab_onload=ig_Q.Vd,_IG_toggle_tab=ig_Q.fg,_IG_toggle_roster=ig_Q.eg,_IG_roster_state_onload=ig_Q.Ff,_IG_is_roster_expanded=ig_Q.We,_IG_hide_promo=ig_Q.Ke,_IG_maybe_unzip_module=ig_Q.Nc,_IG_maybe_zip_module=ig_Q.Oc,_IG_hideRoundedCornerOnRestore=ig_Q.xc,_IG_showRoundedCornerOnMaximize=ig_Q.fd,_IG_highlight_invites=ig_Q.Me,_IG_highlight_updates=ig_Q.Ne,_IG_highlight_module=ig_Q.yc,_IG_highlight_tab=ig_Q.zc;
var ig_R={pd:0,Pa:1,wd:2};function ig_S(){var a=_IG_Callback.apply(ig_,arguments);return function(){a()}}function ig_pb(a,b){switch(b){case ig_R.pd:var c=_gel("m_"+a);return c&&c.className=="modbox_e";case ig_R.Pa:var d=_gel("m_"+a+"_aclbox");return d&&d.style.display!="none";case ig_R.wd:var e=_gel("m_"+a+"_editbox");return e&&e.style.display!="none"}}
function ig_T(a){var b=a.split("#");if(/[?&]$/.test(b[0]))b[0]=b[0].replace(/[?&]$/,"");else{var c=/\?/.test(b[0])?"&":"?";b[0]+=c}return b.join("#")}function ig_qb(a,b){if(!b)return ig_b;for(var c=a.className.split(" "),d=0;d<c.length;++d)if(c[d]==b)return ig_b;c.push(b);a.className=c.join(" ");return ig_a}
var ig_U={xa:"javascript:void(0);",emptyInfo_:{u:"",ti:"",mt:""},gmc:function(a,b){return[IG_MSGS.GMC,ig_r(IG_URLS.gmc,["moduleurl="+_esc(b.u),"mid="+a]),ig_]},gmp:function(a){return[IG_MSGS.GMP,ig_r(IG_URLS.gmp,["mid="+a]),ig_]},gmi:function(a,b){return[IG_MSGS.GMI,ig_r(IG_URLS.gmi,["moduleurl="+_esc(b.u),"mid="+a,"moduletitle="+_esc(_hesc(b.ti))]),ig_]},ed:function(a,b){var c=b.eh?function(){window[b.eh]()}:ig_;return[IG_MSGS.ED,ig_U.xa,ig_S(_edit,a,c)]},kc:function(a,b,c){var d=ig_S(_confirmDel,
a,b.mt,"n_"+b.mt+"="+_esc("url="+_esc(b.u)),c.replace("MODULE_TITLE",b.ti));return[IG_MSGS.DEL,ig_U.xa,d]},del:function(a,b){return ig_U.kc(a,b,IG_MSGS.DEL_CONFIRM)},del2:function(a,b){return ig_U.kc(a,b,IG_MSGS.DEL_CONFIRM2)},ming:function(a,b){return[IG_MSGS.MING,ig_U.xa,ig_S(_zm,a,b.mt)]},maxg:function(a,b){var c=ig_U.ming(a,b);c[0]=IG_MSGS.MAXG;return c},shg:function(a,b){var c=ig_S(_share_this_gadget,IG_MSGS.SHG,ig_r(IG_URLS.sgu,["moduleurl="+_esc(b.u),"mid="+a,"source=share_gadget"]),a);return[_hesc(IG_MSGS.SHG),
"#",function(){c();return ig_b}]},osShare:function(a,b){function c(){_IG_callPostLoad(function(){window._IG_OS_requestShareApp("remote_iframe_"+a,ig_,ig_,IG_MSGS.OSSHARE.replace(/%GADGET_NAME%/,_hesc(b.ti)))})}return[_hesc(IG_MSGS.SHG),ig_U.xa,c]},stripProtocolRegExp_:/^http:\/\//,stripProtocolAndEsc_:function(a){return _esc(a.replace(ig_U.stripProtocolRegExp_,""))},rg:function(a,b){return ig_U.rgv1(a,b).concat("dd_separator")},rgv1:function(a,b){return[IG_MSGS.RG,ig_r(IG_URLS.dir,["recommend="+ig_U.stripProtocolAndEsc_(b.u)]),
ig_]},ag:function(a,b){return[IG_MSGS.AG,ig_r(IG_URLS.dir,["url="+ig_U.stripProtocolAndEsc_(b.u)]),ig_]}};_exportSymbols("",["_IG_DDI",ig_U]);var ig_V,ig_W,ig_X={};function _IG_AddDropDownEventHandler(a,b){ig_X[a]=b}function _IG_DD_init(){var a=document.createElement("iframe");a.id="IG_DD_iframe_cover";a.className="dd_iframe_cover";a.style.display="none";document.body.insertBefore(a,document.body.firstChild);var b=document.createElement("div");b.id="IG_DD_div";b.className="dd_layer_hidden";b.onclick=_IG_DD_hide;document.body.insertBefore(b,document.body.firstChild)}
function _IG_DD_create(a,b){if(!b){b=[];for(var c=ig_v("m",a,"dd"),d=0;d<c.length;++d)b[d]=ig_U[c[d]]}var e=document.createElement("div");e.setAttribute("id","DD_"+a);e.className="dd dd_border";e.style.display="none";e.onkeydown=_IG_DD_keys;d=0;for(var f;f=b[d];d++){var g=f;if(typeof f=="function")g=f(a,ig_v("m",a)||ig_U.emptyInfo_);g[3]&&e.appendChild(ig_rb(g[3]));e.appendChild(_IG_DD_add(g[0],g[1],g[2],d))}_gel("IG_DD_div").appendChild(e)}
function _IG_DD_add(a,b,c,d){b=b||"javascript:void(0)";var e=document.createElement("div"),f="";if(typeof c=="string"&&c!="")f=' onclick="'+c+'"';e.innerHTML='<a href="'+b+'"'+f+">"+a+"</a>";var g=e.firstChild;if(typeof c=="string"&&c!="")c=g.onclick;if(c)g.onclick=function(i){c(i);_IG_DD_hide();return ig_b};g.className=d==0?"dd_item dd_item_first":"dd_item";g.onblur=function(){ig_W=ig_b;return ig_a};g.onmouseover=function(){return _IG_DD_select(this)};return g}
function ig_rb(a){var b=document.createElement("div");b.className=a;b.innerHTML='<div class="topline"></div><div class="bottomline"></div>';return b}
function _IG_DD_open(a,b){var c=_gel("DD_"+b);if(!c){_IG_DD_create(b);c=_gel("DD_"+b)}if(c.style.display=="none"){ig_V=b;var d=_gel("IG_DD_div");d.className="dd_layer";_IG_AddEventHandler("resize",_IG_DD_position);_IG_DD_position();ig_W=ig_b;if(c.hasChildNodes()){var e=c.firstChild;if(e.tagName!="A")e=e.nextSibling;_IG_DD_select(e)}var f=_gel("DD_tg_"+b);f.className+=" ddbox_sel";var g=ig_X[ig_V];g&&g(ig_a)}}
function _IG_DD_position(){var a=_gel("DD_"+ig_V),b=_gel("DD_tg_"+ig_V),c=_gel("IG_DD_div");a.style.display="block";var d=_findPos(b),e=a.offsetWidth,f=d[0]+b.offsetWidth-e,g=document.body.clientWidth+document.body.scrollLeft;if(f<5)f=5;else if(f+e>g-5)f=g-5-e;a.style.left=f+"px";a.style.top=d[1]+b.offsetHeight+"px";var i=_gel("IG_DD_iframe_cover");i.style.left=a.style.left;i.style.top=a.style.top;i.style.width=a.offsetWidth+"px";i.style.height=a.offsetHeight+"px";i.style.display="block";c.style.height=
ig_B()+"px";c.style.width=document.body.clientWidth+"px"}
function _IG_DD_hide(){var a=_gel("IG_DD_div");if(a.className=="dd_layer"){_IG_RemoveEventHandler("resize",_IG_DD_position);if(ig_V){var b=_gel("DD_"+ig_V);b.style.display="none";_gel("IG_DD_iframe_cover").style.display="none";var c=_gel("DD_tg_"+ig_V);c.className=c.className.replace(/ ddbox_sel/,"");var d=ig_X[ig_V];d&&d(ig_b);if(ig_W){var e=_gel("DD_tg_"+ig_V);e&&e.focus()}ig_W=ig_b;ig_V=ig_}a.className="dd_layer_hidden"}_IG_DD_select(ig_)}
function _IG_DD_gcn(a,b,c){for(var d=new RegExp("(^| )"+c+"( |$)"),e=_gelstn(b,a),f=[],g=0,i;i=e[g];g++)d.test(i.className)&&f.push(i);return f}
function _IG_DD_select(a){var b=_IG_DD_gcn(_gel("IG_DD_div"),"a","dd_sel");if(b!=ig_)for(var c=0,d;d=b[c];c++)d.className=d.className.replace(/ dd_sel/g,"");if(a){try{a.focus()}catch(e){if(!(e.message=="Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus."))throw e;}a.className=a.className+" dd_sel"}}
function _IG_DD_keys(a){function b(g,i){var k=g;do{k=i?k.nextSibling:k.previousSibling;if(!k){var m=g.parentNode;k=i?m.firstChild:m.lastChild}}while(k!=g&&k.tagName!="A");return k}var c=ig_a,d=_IG_DD_gcn(_gel("IG_DD_div"),"a","dd_sel");if(d==ig_||d.length!=1)return ig_a;var e=d[0];if(!a)a=window.event;var f=a.keyCode||a.charCode||a.which;switch(f){case 13:ig_W=ig_a;break;case 38:_IG_DD_select(b(e,ig_b));c=ig_b;break;case 40:_IG_DD_select(b(e,ig_a));c=ig_b;break;case 27:case 9:ig_W=ig_a;c=ig_V==ig_&&
f==9;_IG_DD_hide();break}return c};var ig_Y={C:ig_,init:function(a,b){a.onmousedown=ig_Y.start;a.C=b;if(isNaN(parseInt(b.style.left,10)))b.style.left="0px";if(isNaN(parseInt(b.style.top,10)))b.style.top="0px";b.Ba=new Function;b.Aa=new Function;b.za=new Function},ig:function(a,b){window.clearInterval(b.ad);a.onmousedown=ig_;a.C=ig_;b.Ba=ig_;b.Aa=ig_;b.za=ig_},start:function(a){var b=ig_Y.C=this.C;a=ig_Y.qa(a);if(a.which!=1)return ig_a;b.Ba(a);var c=a.clientY;ig_Z.Ic||(c+=document.body.scrollTop);b.ya=a.clientX;b.R=c;b.ef=parseInt(b.style.left,
10)-a.clientX;b.ff=parseInt(b.style.top,10)-c;b.ad=window.setInterval(ig_sb(b,document.body.scrollHeight>document.documentElement.clientHeight?document.body.scrollHeight:document.documentElement.clientHeight),10);document.onmouseup=ig_Y.pc;document.onmousemove=ig_Y.fe;return ig_b},fe:function(a){a=ig_Y.qa(a);if(a.which==0)return ig_Y.pc();var b=ig_Y.C,c=a.clientY;ig_Z.Ic||(c+=document.body.scrollTop);var d=a.clientX;if(b.ya==d&&b.R==c)return ig_b;var e=d+b.ef,f=c+b.ff;b.style.left=e+"px";b.style.top=
f+"px";b.ya=d;b.R=c;b.za(e,f);return ig_b},pc:function(){document.onmousemove=ig_;document.onmouseup=ig_;window.clearInterval(ig_Y.C.ad);var a=ig_Y.C.Aa();ig_Y.C=ig_;return a},qa:function(a){if(typeof a=="undefined")a=window.event;if(typeof a.layerX=="undefined")a.layerX=a.offsetX;if(typeof a.layerY=="undefined")a.layerY=a.offsetY;if(typeof a.which=="undefined")a.which=a.button;return a}};
function _IG_initDrag(a,b){ig_Z.ia=a;ig_Z.Fa=b;var c;{var d=ig_Z.ia,e="div",f="yui-u";if(d){var g=e=="*"&&d.all?d.all:_gelstn(e,d),i=[];f=f.replace(/\-/g,"\\-");for(var k=new RegExp("(^|\\s)"+f+"(\\s|$)"),m,h=0;h<g.length;h++){m=g[h];k.test(m.className)&&i.push(m)}c=i}else c=[]}ig_Z.O=c;if(_old_html){ig_Z.$c=ig_Z.ia.tBodies[0].rows[0];ig_Z.O=ig_Z.$c.cells}ig_Z.w=[];for(var n=0,o=0;o<ig_Z.O.length;o++){var j=ig_Z.O[o];if(!(j.className.indexOf("ig_dnd_fixed_col")!=-1||j.style.display=="none"))for(var l=
0;l<j.childNodes.length;l++){var p=j.childNodes[l];if(p.tagName=="DIV"){ig_Z.w[n]=p.className!="dm"?new DND_Module(p):new ig_tb(p);n++}}}_IG_AddEventHandler("unload",ig_ub)}function ig_ub(){if(ig_Z.w)for(var a=0;a<ig_Z.w.length;a++){ig_Z.w[a].lc();ig_Z.w[a]=ig_}ig_Z.w=ig_;ig_Z.O=ig_;if(_old_html)ig_Z.$c=ig_;ig_Z.ia=ig_}var ig_Z={};ig_Z.Db=navigator.userAgent;ig_Z.Hc=ig_Z.Db.indexOf("Gecko")!=-1;ig_Z.mb=ig_Z.Db.indexOf("Opera")!=-1;ig_Z.Ic=ig_Z.Db.indexOf("Safari")!=-1;ig_Z.Pb="IG_pageDivMaskId";
ig_Z.Ob="IG_moduleDivMaskId";ig_Z.vg=function(){ig_Z.ia.style.display="none"};ig_Z.wg=function(){ig_Z.ia.style.display=""};ig_Z.K=ig_;ig_Z.ra=function(){if(!ig_Z.K){ig_Z.K=document.createElement("DIV");ig_Z.K.className="modbox";ig_Z.K.backgroundColor="";ig_Z.K.style.border="2px dashed #aaa";ig_Z.K.innerHTML="&nbsp;"}return ig_Z.K};ig_Z.N=function(a,b){return function(){return a[b].apply(a,arguments)}};
ig_Z.sc=function(){var a=[];if(ig_Z.Fa){var b;b=_old_html?ig_Z.Fa.tBodies[0].rows[0].cells:_gelstn("LI",ig_Z.Fa);for(var c=0;c<b.length;c++){var d=b[c];(" "+d.className+" ").indexOf(" unselectedtab ")<0||d.style.display=="none"||a.push(d)}b=_gelstn("DIV",ig_Z.Fa);for(c=0;c<b.length;c++){d=b[c];(" "+d.className+" ").indexOf(" leftunselectedtab ")<0||d.style.display=="none"||a.push(d)}}return a};
ig_Z.Nd=function(){for(var a=ig_Z.sc(),b=0;b<a.length;b++){var c=a[b];c.Re=ig_a;c.Ca=ig_Z.Q(c,ig_a);c.lf=c.Ca+c.offsetWidth;c.da=ig_Z.Q(c,ig_b);c.kf=c.da+c.offsetHeight}};ig_Z.Md=function(a){for(var b=0;b<ig_Z.w.length;b++){var c=ig_Z.w[b];c.b.Ca=ig_Z.Q(c.b,ig_a);c.b.da=ig_Z.Q(c.b,ig_b)}for(var d=a.b.nextSibling;d;){d.da-=a.b.offsetHeight;d=d.nextSibling}};
ig_Z.Q=function(a,b){var c=0,d=0;if(a&&a.offsetParent&&a.offsetParent.id)if(!b){var e=_gelstn(a.tagName,a.offsetParent);if(e&&e[0])d=e[0].offsetTop}for(;a;){c+=a["offset"+(b?"Left":"Top")];a=a.offsetParent}return c-d};
ig_Z.Dd=function(a){ig_Z.Vc();var b=document.createElement("DIV");b.id=ig_Z.Pb;b.innerHTML="&nbsp;";b.style.position="absolute";b.style.width="100%";b.style.height=document.body.offsetHeight+"px";b.style.left="0px";b.style.top="0px";b.style.backgroundImage="url(http://www.google.com/c.gif)";b.style.zIndex="9999";document.body.appendChild(b);if(a.wc){b=b.cloneNode(ig_a);b.id=ig_Z.Ob;b.style.height=a.b.offsetHeight-a.B.offsetHeight+"px";b.style.top=a.B.offsetHeight+"px";a.b.appendChild(b)}};
ig_Z.Vc=function(){for(var a=[ig_Z.Ob,ig_Z.Pb],b=0;b<a.length;b++){var c=_gel(a[b]);c&&c.parentNode.removeChild(c)}};ig_Z.Ff=function(){for(var a="",b=0;b<ig_Z.O.length;b++)for(var c=ig_Z.O[b],d=0;d<c.childNodes.length-1;d++){var e=c.childNodes[d];if(e.tagName=="DIV"){a+=a!=""?":":"";a+=e.id.substring(2)+"_"+c.id.substring(2)}}_xsetp("mp="+_esc(a))};function ig_tb(a){this.lc=ig_vb;this.b=a;this.b.innerHTML="<br />"}function ig_vb(){this.b=ig_}
function DND_Module(a){this._urlMouseUp=ig_wb;this._urlMouseDown=ig_xb;this._urlClick=ig_yb;this._dragStart=ig_zb;this._drag=ig_Ab;this._dragEnd=ig_Bb;this.ke=ig_Cb;this.Ha=ig_Db;this.lc=ig_Eb;this.W=ig_b;this.b=a;this.B=_gel(a.id+"_h");this.h=_gel(a.id+"_url");this.wc=_gelstn("IFRAME",this.b).length>0;this.b.og=this;if(this.B){this.B.style.cursor="move";ig_Y.init(this.B,this.b);this.b.Ba=ig_Z.N(this,"_dragStart");this.b.za=ig_Z.N(this,"_drag");this.b.Aa=ig_Z.N(this,"_dragEnd");if(this.h){this.h.style.cursor=
"pointer";if(ig_Z.Hc){this.h.onmousedown=ig_Z.N(this,"_urlMouseDown");this.h.onclick=ig_Z.N(this,"_urlClick")}else this.h.onmouseup=ig_Z.N(this,"_urlMouseUp")}}}function ig_Eb(){if(this.B){if(this.h){this.h.onclick=ig_;this.h=this.h.onmouseup=ig_}ig_Y.ig(this.B,this.b);this.b.Ba=ig_;this.b.za=ig_;this.B=this.b.Aa=ig_}this.b=ig_}
function ig_wb(a){a=ig_Y.qa(a);if(this.W||!this.h||!this.h.href||a.which!=1)return ig_a;this.Ha("titleclick");if(this.h.target||a.shiftKey)window.open(this.h.href,this.h.target);else document.location=this.h.href;return ig_b}function ig_xb(a){a=ig_Y.qa(a);a.stopPropagation();return ig_a}function ig_yb(){if(!this.W&&this.h&&this.h.href){this.Ha("titleclick");return ig_a}return ig_b}
function ig_zb(){ig_Z.Md(this);ig_Z.Nd();this.jf=this.b.nextSibling;var a=ig_Z.ra(),b=this.b.offsetHeight;b-=parseInt(a.style.borderTopWidth,10)*2;var c=this.b.offsetWidth,d=ig_Z.Q(this.b,ig_a),e=ig_Z.Q(this.b,ig_b);this.b.style.width=c+"px";a.style.height=b+"px";this.b.parentNode.insertBefore(a,this.b.nextSibling);this.b.style.position="absolute";this.b.style.zIndex=10000;this.b.style.left=d+"px";this.b.style.top=e+"px";ig_Z.Dd(this);return this.W=ig_b}
function ig_Fb(){var a=0,b=0;if(typeof window.pageYOffset=="number"){a=window.pageXOffset;b=window.pageYOffset}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollLeft;b=document.body.scrollTop}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollLeft;b=document.documentElement.scrollTop}return[a,b]}
function ig_Ab(a,b){if(!this.W){this.b.style.filter="alpha(opacity=50)";this.b.style.opacity=0.5;this.W=ig_a;this.Ha("dragstart")}for(var c=ig_,d=100000000,e=0;e<ig_Z.w.length;e++){var f=ig_Z.w[e],g=a;if(document.body.dir=="rtl"&&f.b.offsetWidth==1)g+=this.b.offsetWidth;var i=Math.sqrt(Math.pow(g-f.b.Ca,2)+Math.pow(b-f.b.da,2));if(!(f==this))if(!isNaN(i))if(i<d){d=i;c=f}}this.G=ig_;var k=ig_Z.sc();for(e=0;e<k.length;e++){f=k[e];if(f.Re){var m=ig_Fb();if(this.b.ya>=f.Ca&&this.b.ya<=f.lf&&this.b.R+
m[1]>=f.da&&this.b.R+m[1]<=f.kf){this.G=f;var h=ig_Z.ra();h.parentNode!=ig_&&h.parentNode.removeChild(h);break}}}for(e=0;e<k.length;e++){f=k[e];if(f.id.indexOf("view")>=0||f.id.indexOf("contents")>=0)if(f==this.G){if(f.className.indexOf(" tab_hover")<0)f.className+=" tab_hover"}else f.className=f.className.replace(/ tab_hover/g,"")}h=ig_Z.ra();if(this.G==ig_&&c!=ig_&&h.nextSibling!=c.b){c.b.parentNode.insertBefore(h,c.b);if(ig_Z.mb){document.body.style.display="none";document.body.style.display=""}}}
function ig_Bb(){ig_Z.Vc();this.ke()&&ig_Z.Ff();if(this.G){var a=this.G.id.match(/.*?(\d+).*/)[1],b=this.b.id.match(/m_(\d+)/)[1];_xsetp("mt="+b+":"+a);this.b.style.display="none";this.G.className=this.G.className.replace(/ tab_hover/g,"");var c=_gel("left_nav_m_"+b+"_title"),d=_gel("gadget_set"+a);if(c&&d){c.parentNode.removeChild(c);d.appendChild(c);_gelstn("a",c)[0].onclick=function(){_select_gadget_and_log(a,b)}}}_hideNewUserTip();this.W&&this.Ha("dragend");return ig_a}
function _hideNewUserTip(){var a=_gel("new_user_tip");if(a)a.style.display="none"}
function ig_Cb(){var a=ig_b;this.b.style.position="";this.b.style.width="";this.b.style.zIndex="";this.b.style.filter="";this.b.style.opacity="";window.scrollBy(0,0);var b=ig_Z.ra();if(b.parentNode!=ig_){if(b.nextSibling!=this.jf){b.parentNode.insertBefore(this.b,b.nextSibling);a=ig_a}b.parentNode.removeChild(b)}if(ig_Z.mb){document.body.style.display="none";document.body.style.display=""}if(a&&this.wc&&(ig_Z.Hc||ig_Z.mb)){var c=_gelstn("IFRAME",this.b)[0],d=this.b.id.substring(2),e=_IG_Prefs.X(d,
c.src);if(c.src!=e)c.src=e}return a}function ig_Db(a){switch(a){case "titleclick":_IG_TriggerModuleEvent(this.b.id,a,this.h.href);_IG_TriggerEvent("module"+a,this.b.id,this.h.href);break;case "dragstart":case "dragend":_IG_TriggerDelayedModuleEvent(this.b.id,a);_IG_TriggerDelayedEvent("module"+a,this.b.id);break}}
function ig_sb(a,b){return function(){var c;{var d;d=window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.offsetHeight;c=d<document.body.clientHeight?d:document.body.clientHeight}var e=ig_Fb(),f=e[1],g=4,i=0.05*c,k=f,m=a.offsetTop;if(a.R<=i){m=a.offsetTop-g;k=f-g}else if(a.R>=c-i){m=Math.min(b-a.offsetHeight,a.offsetTop+g);k=Math.min(b-c,f+g)}var h=k-f;if(h!=0){window.scrollBy(0,h);a.style.top=m+"px"}}}
_IG_AddCustomEventHandler("initdrag",function(a,b){_IG_initDrag(a,b)});_exportSymbols("",["IG_DND",ig_Z]);window._IG_PU=function(){var a=ig_a,b;function c(d){if(!arguments.callee.Rd){var e={IG_PU_box:"div",IG_PU_iframe_cover:"iframe",IG_PU_bg:"div"};for(var f in e){var g=document.createElement(e[f]);g.id=f;g.style.display="none";document.body.insertBefore(g,document.body.firstChild)}arguments.callee.Rd=ig_a}return _gel(d)}return{open:function(d,e,f,g,i){a=typeof e=="string";var k=c("IG_PU_box");if(k&&k.style.display=="none"){f||(f=[_IG_PU_MakeDialogButton("Save"),_IG_PU_MakeDialogButton("Cancel")]);var m=
['<table class=dialog id=IG_PU_dlg cellspacing=0 cellpadding=0><tr><td><div class=outerborder><div class="border titlebar">',d,'</div><div class="border body" id=dialogcontent>',a?e:"",ig_Gb(f),"</div></td></tr></table>"].join("");ig_Hb(m,g,a?ig_:e,i)}},hf:function(d,e,f,g,i,k,m){var h=_IG_PU_createSimpleTitle(d)+(e||""),n=['<div class=url><iframe id=popup_iframe style="width:',g,';height:0px;" src="',f,'" onload="_ResizeIframeHeight();" scrolling=no frameborder=0></iframe><div class=c></div>',ig_Gb(i,
"colored_background")].join("");window._IG_PU.open(h,n,[],k,m)},Ge:function(d){var e=_gel("button_"+d);if(!(e&&e.firstChild&&e.firstChild.disabled)){c("IG_PU_box").style.display="none";c("IG_PU_iframe_cover").style.display="none";var f=c("IG_PU_bg");f.onclick="";f.style.height="";f.style.width="";if(!a){var g=_gel("dialogcontent").firstChild;d!=_DI_button_type.OK&&g.nodeName=="FORM"&&g.reset();setTimeout(function(){var m=_gel("popup_box_placeholder");m.parentNode.insertBefore(_gel("dialogcontent").firstChild,
m);m.parentNode.removeChild(m)},1000)}var i=_gel("popup_iframe"),k=i&&i.contentWindow.getPopupData?i.contentWindow.getPopupData():ig_;_IG_RemoveEventHandler("resize",i?_ResizeIframeHeight:ig__);_IG_RemoveDOMEventHandler(window,"scroll",ig__);b(d,k)}},Zd:function(d){return["<div class=popup_title>",d,'</div><div class=popup_title_buttons><a onclick="_IG_PU_hide(_DI_button_type.Close);" class=delbox  href="javascript:void(0)"></a></div><div class=c></div>'].join("")},je:function(d,e,f){if(!d.disabled){var g=
d.nodeName.toLowerCase();if(g=="input"||g=="button")return d;if(!f){if(g=="a"&&ig_Ib(d,"href"))return d;if(d.nodeType==1&&ig_Ib(d,"tabindex")&&d.tabIndex!=-1)return d}}if(!d.hasChildNodes())return ig_;var i=d.childNodes;if(e)for(var k=0,m;m=i[k];k++){var h=ig_0(m,e,f);if(h)return h}else for(k=i.length-1;m=i[k];k--)if(h=ig_0(m,e,f))return h;return ig_},af:function(d,e,f,g){var i=["<input type=button"];e&&i.push(' id="'+e+'"');f&&i.push(' class="'+f+'"');g&&i.push(' onclick="'+g+'"');i.push(' value="',
d,'"></input>');return i.join("")},ee:function(d){var e=_gel("button_"+d);if(e)e.onclick=function(){}},ug:function(d,e,f){return['<div class="popup_body thinpadding"><form onsubmit="_IG_PU_hide(_DI_button_type.OK); return false;"><table cellspacing=0 cellpadding=0 border=0><tr><td class=sidepadding>',_hesc(e),'</td><td class=sidepadding><input id="',_hesc(d),'" name="',_hesc(d),'" ','type=text size=45 value="'+_hesc(f)+'"></td>',"</tr></table></form></div>"].join("")},De:function(d,e){if(d.getAttributeNode){var f=
d.getAttributeNode(e);return f?f.specified:ig_b}return d.getAttribute(e)!=ig_},We:function(d){d=d||window.event;var e=d.target||d.srcElement,f=d.keyCode||d.charCode||d.which;if(f==9){var g=ig_0(this,ig_a,ig_b);if(!g)return ig_a;var i=ig_0(this,ig_b,ig_b);if(e==g&&d.shiftKey&&!(d.ctrlKey||d.altKey)){i.focus();return ig_b}else if(e==i&&!(d.shiftKey||d.ctrlKey||d.altKey)){g.focus();return ig_b}}return ig_a},Ld:function(d,e){if(!d||!d.length)return"";var f=['<div id=buttons class="button_background'];
e&&f.push(" "+e);f.push('"><table class=buttontable cellspacing=0 cols=');f.push(d.length,"><tr>");for(var g=0;g<d.length;++g){f.push("<td align=center>");f.push('<span id="button_',g,'" ');f.push('onclick="_IG_PU_hide(',g,')">');f.push(d[g]);f.push("</span>");f.push("</td>")}f.push("</tr></table></div></div>");return f.join("")},Qf:function(d,e,f,g){var i=3000,k=c("IG_PU_bg"),m=k.style;m.zIndex=i;m.background="#000";ig_Jb(k,ig_a);m.position="absolute";k.onclick=function(){};m.display="none";m.left=
"0px";m.top="0px";var h=c("IG_PU_box"),n=c("IG_PU_iframe_cover");h.innerHTML=d;if(!a&&f){var o=document.createElement("div");o.id="popup_box_placeholder";o.style.display="none";f.parentNode.insertBefore(o,f);_gel("dialogcontent").insertBefore(f,_gel("dialogcontent").firstChild)}var j=h.style;j.position="absolute";j.zIndex=i+1;var l=n.style;l.position="absolute";j.visibility="hidden";j.display="block";ig__();j.visibility="visible";l.display="";m.display="block";_IG_AddEventHandler("resize",_gel("popup_iframe")?
_ResizeIframeHeight:ig__);_IG_AddDOMEventHandler(window,"scroll",ig__);_gel("IG_PU_dlg").onkeydown=ig_Kb;e=e||function(){};if(g&&g.length){for(var p=[],q=0;q<g.length;++q){var r=_gel(g[q]);if(r){p.push(g[q]);r.setAttribute("old_position",r.style.position);r.setAttribute("old_left",r.style.left);r.style.position="relative";r.style.left="-99999px"}}b=function(t,u){e(t,u);for(var w=0;w<p.length;++w){var v=_gel(p[w]);if(v){v.style.position=v.getAttribute("old_position");v.style.left=v.getAttribute("old_left")}}}}else b=
e;var s=ig_0(h,ig_a,ig_a);s&&s.focus()},position:function(){var d=c("IG_PU_box");if(!(d.style.display!="block")){var e=c("IG_PU_iframe_cover"),f=c("IG_PU_bg"),g=document.body.clientWidth,i=window.innerHeight;if(!i)i=document.documentElement.clientHeight;var k=d.offsetHeight<i,m=d.style;if(d){var h=(g-d.offsetWidth)/2,n=Math.max((i-d.offsetHeight)/2+ig_C(),0);if(!k&&m.top)n=parseInt(m.top,10);m.left=h+"px";m.top=n+"px";var o=e.style;o.left=h+"px";o.top=n+"px";o.width=d.offsetWidth+"px";o.height=d.offsetHeight+
"px"}if(f){var j=parseInt(m.top,10)+d.offsetHeight,l=Math.max(ig_B(),i,j);f.style.height=l+"px";f.style.width=document.body.clientWidth+"px"}}},fg:function(d,e){var f=d.style;if("opacity"in f)f.opacity=e?0.5:1;else if("MozOpacity"in f)f.MozOpacity=e?0.5:1;else if("filter"in f)f.filter=e?"alpha(opacity=50)":"alpha(opacity=100)"},Bf:function(){var d=_gel("popup_iframe");if(d){var e=d.style;e.height=ig_B(d.contentWindow.document.body)+"px";e.display="block";e.display=""}ig__()}}}();
var _DI_button_type={Close:-1,OK:0,Cancel:1},_IG_PU_hide=window._IG_PU.Ge,_IG_PU_open=window._IG_PU.open,_IG_PU_openURL=window._IG_PU.hf,_IG_PU_disable_hide_for_button=window._IG_PU.ee,_IG_PU_MakeDialogButton=window._IG_PU.af,_ResizeIframeHeight=window._IG_PU.Bf,ig_Jb=window._IG_PU.fg,_IG_PU_createSimpleTitle=window._IG_PU.Zd,ig_0=window._IG_PU.je,ig_Ib=window._IG_PU.De,ig_Kb=window._IG_PU.We,ig_Gb=window._IG_PU.Ld,ig__=window._IG_PU.position,ig_Hb=window._IG_PU.Qf;function _IG_PU_init(){}
function _IG_PU_IGNORE(){};function _hide_sent_content_messages(){_gel("sent_content_msg").className="hidden_msg";_gel("sent_tab_box").className="hidden_msg_box";_gel("send_tab_error_box").className="hidden_msg_box";_gel("sent_gadget_box").className="hidden_msg_box"}var ig_1=ig_;
function _share_gadget(a,b,c,d,e,f,g,i){if(d){_hide_sent_content_messages();if(!ig_1)ig_1=_gel("sent_gadget_box").innerHTML;_gel("sent_gadget_box").innerHTML=ig_1.replace("GADGET_NAME",_get_module_title(d))}if(g)var k="_gel('popup_iframe').contentWindow.prepareEmail(_gel('share_userprefs') ? _gel('share_userprefs').checked : false)";else k="_gel('popup_iframe').contentWindow.prepareEmail();";var m=['<input type="button" id="send_btn" disabled="true" onclick="'+k+'" value="'+e+'"></input>',_IG_PU_MakeDialogButton(f)],
h="titlebar userprefs userprefs_border",n=_get_userprefs_checkbox_html(g,i,h);_IG_PU_openURL(a,n,b,c,m,d?_finish_sharing_gadget:ig_);_IG_PU_disable_hide_for_button(0)}
function _share_this_gadget(a,b,c,d){if(c){_hide_sent_content_messages();if(!ig_1)ig_1=_gel("sent_gadget_box").innerHTML;_gel("sent_gadget_box").innerHTML=ig_1.replace("GADGET_NAME",_get_module_title(c))}var e=d||function(){};function f(g,i){e(g,i);c&&_finish_sharing_gadget(g)}_IG_PU_openURL(a,ig_,b,"555px",ig_,f);_IG_PU_disable_hide_for_button(0)}
function _share_tab_with_gadget_checkboxes(a,b,c,d,e,f,g){var i='<iframe id="popup_iframe" width="100%" height="0px" src="'+_hesc(b)+'" onload="_ResizeIframeHeight();" scrolling="no"></iframe>',k="_gel('popup_iframe').contentWindow.storeTabAndPrepareEmail(_find_unshared_gadgets(), _gel('share_userprefs') ? _gel('share_userprefs').checked : false);",m=['<input type="button" id="send_btn" disabled="true" onclick="'+_hesc(k)+'" value="'+_hesc(f)+'"></input>',_IG_PU_MakeDialogButton(g)];if(_uli){for(var h=
_get_all_modules(),n=Math.max(h.length*160,400),o=7,j=0,l=0;l<h.length;l++)if(h[l].length>j)j=h[l].length;var p=j>o&&c!="NO_TRANSLATION",q=[a];q.push('<form id="module_list">');q.push('<table class="titlebar module_list_table" ','cols="',h.length,'"',' width="',n,'px">');p?q.push('<tr class="zipped_modules" id="module_list_zipper">'):q.push('<tr class="unzipped_modules">');for(var r=0;r<h.length;r++){q.push('<td width="',100/h.length,'%" ','valign="top">');for(var s=0;s<h[r].length;s++){var t=_hesc(h[r][s].id.replace("m_",
"")),u=_hesc(_get_module_title(h[r][s]));q.push('<div class="module_item');s>=o&&p&&q.push(" extra_items");q.push('">');q.push('<input id="share_',t,'" type="checkbox"'," checked ></input>");q.push('<label for="share_',t,'">',u,"</label>");q.push("</div>")}q.push("</td>")}q.push("</tr>");if(p){q.push('<tr class="zipped_module_list">');q.push('<td id="show_all_modules" colspan="',h.length,'" style="font-size:80%;text-align:center;">');q.push('<a href="javascript:void(0);" id="zipper_text"',' onclick="_modules_zipper();">');
q.push(c,"</a>");q.push("</td></tr>")}q.push("</table>");q.push(_get_userprefs_checkbox_html(d,e,"userprefs"));q.push("</form>");_IG_PU_open(q.join(""),i,m);_IG_PU_disable_hide_for_button(0);_gel("dialogcontent").className+=" url";_gel("buttons").className+=" colored_background"}else{_IG_PU_open(a,i,m);_gel("buttons").className+=" colored_background"}}
function _show_shared_userprefs_alert(){if(_gel("share_userprefs").checked){_gel("share_userprefs_alert").style.display="block";_gel("popup_iframe").contentWindow.shouldShareUserprefs(ig_a)}else{_gel("share_userprefs_alert").style.display="none";_gel("popup_iframe").contentWindow.shouldShareUserprefs(ig_b)}}
function _get_userprefs_checkbox_html(a,b,c){var d=[];if(a&&a!=""){d.push('<div class="',c,'">');d.push('<input id="share_userprefs" type="checkbox"');b!=""&&d.push(' onclick="_show_shared_userprefs_alert();"');d.push("></input>");d.push('<label for="share_userprefs">',a,"</label>");b!=""&&d.push('<div class="userprefs_alert"',' id="share_userprefs_alert">',b,"</div>");d.push("</div>")}return d.join("")}
function _modules_zipper(){if(_gel("module_list_zipper").className=="zipped_modules"){_gel("module_list_zipper").className="unzipped_modules";_gel("show_all_modules").style.display="none"}_ResizeIframeHeight()}
function _find_unshared_gadgets(){for(var a=_gel("module_list").elements,b=[],c=0;c<a.length;c++){var d;{var e=a[c];if(e&&e.tagName=="INPUT"){var f=_gel("module_list_zipper"),g=f&&/unzipped_modules/.test(_gel("module_list_zipper").className),i=/extra_items/.test(e.parentNode.className),k=!f||g||!i;d=e.checked&&k}else d=ig_b}d||(b[b.length]=a[c].id.replace("share_",""))}return b}
function _finish_sharing_gadget(a){if(a==_DI_button_type.OK){_gel("sent_content_msg").className="msg";_gel("sent_tab_box").className="hidden_msg_box";_gel("send_tab_error_box").className="hidden_msg_box";_gel("sent_gadget_box").className="msg_box"}}
function _finish_sharing_tab(a){_gel("sent_content_msg").className="msg";_gel("sent_gadget_box").className="hidden_msg_box";if(a){_gel("sent_tab_box").className="msg_box";_gel("send_tab_error_box").className="hidden_msg_box"}else{_gel("send_tab_error_box").className="msg_box";_gel("sent_tab_box").className="hidden_msg_box"}};function _IG_saveModuleEditPrefs(a,b,c){var d=ig_v("m",b),e=d.mt,f=_gel("remote_iframe_"+b),g=f&&f.src;ig_q(a,"sn",d.sn);ig_q(a,"ifr",g?"1":"0");if(c||!g){_fsetp(a,b,e);return ig_a}for(var i=a.elements,k=[],m=[],h=0;h<i.length;++h){var n=i[h].name,o=i[h].value;if(n&&n!="url"){k.push(_esc(n)+"="+_esc(o));var j=n.match(/^m_\d+_up_(.*)$/);if(j){m.push(j[1]);m.push(o)}}}_xsetp(k.join("&"));_closeUserPrefs(b);_IG_Prefs._setPrefs(b,m);var l=(new Date).getTime(),p=f.onload;f.onload=function(){var s=(new Date).getTime()-
l,t=d.sn;_sendx(["/ig/ui?action=refreshIfr&m=",_esc(t),"&ol=",s].join(""));typeof p=="function"&&p();f.onload=p};var q=f.src,r=_IG_Prefs.X(b,q);if(q==r)r=ig_T(q);f.src=r;return ig_b};function _IG_FRUC_init(){for(var a in ig_v("m")){var b=ig_v("m",a);b.mt==25&&_IG_RegisterMaximizeHandler(b.i,ig_Lb(a))}var c=[],d=[],e=[],f=0;for(var g in ig_v("m")){var i=ig_v("m",g);if(i.mt==25){c.push(_hesc(i.u));d.push(i.i);if(i.fa&&i.fa.length>0){for(var k=[],m=0;m<i.fa.length;++m)k.push(i.fa[m].i);e.push(k.join(","))}else e.push("");f++}}c.length==0||_sendx("/ig/unreadcounts?feed="+c.join("&feed=")+"&fa="+e.join("&fa="),ig_Mb(d))}
function ig_Lb(a){return function(b){b||ig_Nb(ig_v("m",a,"i"))}}function ig_Mb(a){return function(b){if(b){var c=eval("("+b+")");if(c&&c.uc&&c.uc.length==a.length)for(var d=0;d<a.length;++d){var e=ig_v("m",a[d]);if(e){var f=c.uc[d];e.uc=f;ig_Ob(e,f);var g=c.ua[d];if(e&&e.fa&&g&&e.fa.length==g.length)for(var i=0;i<e.fa.length;++i)e.fa[i].rs=g[i]}}}}}function ig_Nb(a){var b=ig_v("m",a);b&&b.mt==25&&_sendx("/ig/unreadcounts?feed="+b.u,ig_Mb([a]))}
function ig_Ob(a,b){if(a&&b!=ig_)b==0?_IG_SetTitle(a.ti,a.i):_IG_SetTitle(a.ti+" ("+b+")",a.i)}function _IG_FRUC_setFeedAsRead(a,b){if(ig_v("f","show_feed_unread_counts")&&ig_v("m",a,"fa",b)){var c=ig_v("m",a);if(c.fa[b].rs==1){if(c.uc){c.uc--;ig_Ob(c,c.uc);_sendx("/ig/markfeed?feed="+c.u+"&fa="+c.fa[b].i)}c.fa[b].rs=ig_b}}};function _IG_hoverModule(a,b){var c=_gel("m_"+a);ig_Pb(a,b,c,"modhover")}function _IG_hoverHeader(a,b){var c=_gel("m_"+a+"_drag");if(c)c.style.display=b?"":"none";var d=_gel("m_"+a+"_home_menu");d&&ig_Pb(a,b,d,"titlehover")}function ig_Pb(a,b,c,d){if(b)ig_5.aa(a)||ig_qb(c,d);else ig_e(c,d,ig_)};function _IG_inherits(a,b){function c(){}c.prototype=b.prototype;a.Yf=b.prototype;a.prototype=new c;a.prototype.constructor=a};function ig_6(){}ig_c=ig_6.prototype;ig_c._onPreDetachDashboard=function(){};ig_c._onPostDetachDashboard=function(){};ig_c._onPreAttachMaximized=function(){};ig_c._onPostAttachMaximized=function(){};ig_c._onPreDetachMaximized=function(){};ig_c._onPostDetachMaximized=function(){};ig_c._onPreAttachDashboard=function(){};ig_c._onPostAttachDashboard=function(){};
ig_6.Wd=function(a,b){if(!b.view)return new _IG_noMaxSupportTransitionStrategy(a,b.u);switch(b.view.ty){case 0:return new _IG_inlinedTransitionStrategy(a,b.view.max_u);case 1:return new _IG_scaleInlinedTransitionStrategy(a);case 2:return new _IG_iFrameTransitionStrategy(a,b.view.max_u);case 3:return new _IG_noMaxSupportTransitionStrategy(a,b.u)}return ig_};function ig_7(a){ig_6.call(this);this.d=a;this.dc=""}_IG_inherits(ig_7,ig_6);ig_c=ig_7.prototype;
ig_c.r=function(){return _gel("remote_iframe_"+this.d)};ig_c.Ec=function(){var a=this.r();a&&(a.src="")};ig_c.ja=function(){var a=this.r();if(a)a.src=_IG_Prefs.X(this.d,a.src)};ig_c._onPreAttachMaximized=function(){var a=_gel("m_"+this.d+"_b");this.dc=a.className;a.className="modboxin_max";ig_5.xf(this.d);_gel("rcam_t1").className="rnd1_max_top";_gel("rcam_t2").className="rnd2_max_top";_gel("rcam_t3").className="rnd3_max_top"};
ig_c._onPreAttachDashboard=function(){var a=_gel("m_"+this.d+"_b");a.className=this.dc;ig_5.Cf(this.d);_gel("rcam_t1").className="rnd1";_gel("rcam_t2").className="rnd2";_gel("rcam_t3").className="rnd3"};ig_c.Zc=function(a,b,c){b.style.width="200px";c=c||0;var d=_max(200,_IG_isIE()?a.scrollWidth-c:a.offsetWidth);b.style.width=d+"px"};
function _IG_iFrameTransitionStrategy(a,b,c,d){ig_7.call(this,a);this.ba=b;this.U=d||ig_b;this.na="";this.bb=c||"800px";this.gc=this.ec=this.fc=this.$a=ig_;if(this.U){var e=this;this.T=function(){e.Fd.call(e)}}}_IG_inherits(_IG_iFrameTransitionStrategy,ig_7);ig_c=_IG_iFrameTransitionStrategy.prototype;ig_c.Fd=function(){this.Zc(_gel("remote_"+this.d),this.r())};
ig_c._onPreDetachDashboard=function(){if(this.na=="")for(var a=0;a<remote_modules.length;a++){var b=remote_modules[a];if(b.id==this.d)this.na=b.base_iframe_url}this.gc=_isModuleZipped(this.d)};ig_c._onPostDetachMaximized=function(){this.Ec()};
ig_c._onPostAttachMaximized=function(){var a=this.r(),b=_gel("m_"+this.d),c=_gel("m_"+this.d+"_b");this.fc=b.style.height;this.ec=c.style.height;this.$a=a.style.height;if(this.U){_IG_AddEventHandler("resize",this.T);this.T()}a.src=this.ba;a.style.height=this.bb;this.ja()};
ig_c._onPostAttachDashboard=function(){var a=this.r(),b=_gel("m_"+this.d),c=_gel("m_"+this.d+"_b");if(this.$a!=ig_){a.style.height=this.$a;a.style.width="100%";b.style.height=this.fc;c.style.height=this.ec}if(this.gc)_IG_AddEventHandler("moduleunzip",this.kg());else{a.src=this.na;this.ja()}};ig_c._onPreDetachMaximized=function(){this.U&&_IG_RemoveEventHandler("resize",this.T)};ig_c.kg=function(){var a=this;return function(){a.r().src=a.na;a.ja();_IG_RemoveEventHandler("moduleunzip",this)}};
function _IG_inlinedTransitionStrategy(a,b,c,d){ig_7.call(this,a);this.ba=b;this.db="max_div";this.Cc="max_iframe";this.bb=c||"800px";this.U=d||ig_b;this.vb=this.ub=ig_;if(this.U){var e=this;this.T=function(){e.gf.call(e)}}}_IG_inherits(_IG_inlinedTransitionStrategy,ig_7);ig_c=_IG_inlinedTransitionStrategy.prototype;ig_c.r=function(){return _gel(this.Cc)};ig_c._updateIframeSrc=function(a){this.ba=a;var b=this.r();if(b)b.src=a};ig_c._setNextMaxIframeAddress=function(a){this.ba=a};
ig_c._setPostMaximizeCallback=function(a){if(!a||typeof a=="function")this.ub=a};ig_c._setPostRestoreCallback=function(a){if(!a||typeof a=="function")this.vb=a};ig_c.gf=function(){this.Zc(_gel("max_div"),this.r(),25)};
ig_c._onPostAttachMaximized=function(){var a=_gel(this.db),b=this.r(),c=_gel("m_"+this.d+"_b");if(!a){a=document.createElement("DIV");a.id=this.db}if(!b){b=document.createElement("IFRAME");b.frameBorder="0";b.scrolling="no";b.style.border="0";b.style.margin="0";b.style.padding="0";b.style.overflow="hidden";b.style.width="100%";b.id=this.Cc;a.appendChild(b)}if(this.U)_IG_AddEventHandler("resize",this.T);else{_IG_RemoveEventHandler("resize",this.T);b.style.width="100%"}c.nextSibling?c.parentNode.insertBefore(a,
c.nextSibling):c.parentNode.appendChild(a);a.className="modboxin_max";a.style.display="";b.style.height=this.bb;b.src=_IG_Prefs.X(this.d,this.ba);this.ub&&this.ub(this);return b.src};ig_c._onPostDetachMaximized=function(){this.Ec()};ig_c._onPostAttachDashboard=function(){var a=_gel(this.db);a.style.display="none";var b=this.r();if(b)b.src="";this.vb&&this.vb(this)};ig_c._onPreAttachDashboard=function(){_IG_inlinedTransitionStrategy.Yf._onPreAttachDashboard.call(this);window.onresize=ig_};
function _IG_scaleInlinedTransitionStrategy(a){ig_7.call(this,a)}_IG_inherits(_IG_scaleInlinedTransitionStrategy,ig_7);_IG_scaleInlinedTransitionStrategy.prototype._onPostAttachMaximized=function(){var a=_gel("m_"+this.d+"_b");a.style.display="block"};function _IG_noMaxSupportTransitionStrategy(a,b){ig_7.call(this,a);this.Bb=b}_IG_inherits(_IG_noMaxSupportTransitionStrategy,ig_7);
function _IG_noMaxSupportResizeIframe(a){var b=window.innerHeight;if(document.body.clientHeight)b=document.body.clientHeight;_gel(a).style.height=parseInt(b-_gel(a).offsetTop-8,10)+"px"}ig_c=_IG_noMaxSupportTransitionStrategy.prototype;ig_c._onPostAttachDashboard=function(){this.ja()};
ig_c._onPostAttachMaximized=function(){var a=_gel("m_"+this.d),b=_gel("mu_div");if(b==ig_){b=document.createElement("DIV");b.id="mu_div";b.innerHTML=['<table border=0 height=100% width=100%><tr valign=top><td width="450px" height=100%><div id="muph"></div><br></td><td height=100%><div style="padding-top:4px;padding-left:4px;"><b class="rnd_modtitle"><b class="rnd1"></b><b class="rnd2"></b><b class="rnd3"></b></b><div class="modtitle">',IG_MSGS.RG,'</div></div><iframe id="max_ifr2" onload="_IG_noMaxSupportResizeIframe(\'max_ifr2\')" frameBorder=0 scrolling="no" style="height:100%; border:0px" width="100%"></iframe></td></tr></table>'].join("")}a.parentNode.replaceChild(b,
a);var c=_gel("muph");c.appendChild(a);b.style.display="";a.style.minWidth="300px";var d=_gel("max_ifr2");if(d)d.src=this.Bb&&this.Bb.length?"/ig/directory"+_qs()+"output=brief&recommend="+this.Bb:"";this.ja()};ig_c._onPreDetachMaximized=function(){var a=_gel("m_"+this.d),b=_gel("mu_div");if(b){b.parentNode.replaceChild(a,b);b.style.display="none"}a.style.minWidth=""};ig_c._onPreAttachMaximized=function(){};ig_c._onPreAttachDashboard=function(){};var ig_5=new (function ViewManagerClass(){this.Oa="modules";this.Na="dash_ph";this.Ka="max_ph";this.o=ig_;this.qc="";this.Dc=ig_;if(window.onbeforeunload){var b=window.onbeforeunload;window.onbeforeunload=function(){b();ig_5.Oc()}}else window.onbeforeunload=function(){ig_5.Oc()}});ig_5.Tb=function(){return ig_5.o};ig_5.Oc=function(){if(this.o!=this.Dc){var a=ig_n(),b="/ig/setp?et="+_et+"&maxm="+(this.o?this.o:"-1");a.open("GET",b,ig_b);a.send(ig_)}};ig_5.Kf=function(a){this.Dc=a};
ig_5.If=function(a){this.qc=a};ig_5.fd=function(a){if(!(this.o==a))if(this.o){this.yb(this.o);this.Lc(a)}else this.Lc(a)};ig_5.Df=function(){this.o&&this.yb(this.o)};ig_5.aa=function(a){return this.o==a};ig_5.getStrategy=function(a){var b=_max_strategies[a];if(b==ig_){var c=ig_v("m",a);if(c){b=ig_6.Wd(a,c);_max_strategies[a]=b}}return b};
ig_5.Lc=function(a){var b=this.getStrategy(a);b._onPreDetachDashboard();this.be(a);b._onPostDetachDashboard();b._onPreAttachMaximized();this.Id(a);b._onPostAttachMaximized();this.o=a;_IG_suspend_refresh_cycle()};ig_5.yb=function(a){var b=this.getStrategy(a);b._onPreDetachMaximized();this.ce(a);b._onPostDetachMaximized();b._onPreAttachDashboard();this.Hd(a);b._onPostAttachDashboard();this.o=ig_;_IG_restart_refresh_cycle()};
ig_5.Hf=function(a){this.xb=function(){_IG_minimize_view(a,"delete",this.qc)};_IG_AddModuleEventHandler(a,"delete",this.xb)};ig_5.Td=function(a){this.xb&&_IG_RemoveModuleEventHandler(a,"delete",this.xb)};ig_5.be=function(a){var b=_gel(this.Na);if(b==ig_){b=document.createElement("DIV");b.id=this.Na;b.style.display="none"}var c=_gel("m_"+a),d=_gel(this.Oa).parentNode;c.parentNode.replaceChild(b,c);d.appendChild(c);b.style.display="block";b.style.height=c.clientHeight+"px";this.Zb(a)};
ig_5.Id=function(a){var b=_gel(this.Ka);if(b==ig_){b=document.createElement("DIV");b.id=this.Ka;b.style.display="none"}var c=_gel("m_"+a),d=_gel(this.Oa);b.appendChild(c);d.parentNode.appendChild(b);d.style.display="none";b.style.display="block";c.className=c.className.replace(/( |^)modbox( |$)/,"$1modbox_max$2");this.de(a);this.Hf(a);_IG_TriggerEvent("modulemaximize",a);_IG_TriggerModuleEvent(a,"maximize")};
ig_5.ce=function(a){var b=_gel(this.Oa),c=_gel(this.Ka);c.style.display="";b.style.display="";var d=_gel("m_"+a);d.className=d.className.replace(/modbox_max/,"modbox");this.Zb(a)};ig_5.Hd=function(a){var b=_gel(this.Na),c=_gel("m_"+a);b.parentNode.replaceChild(c,b);b.style.display="none";this.he(a);this.Td(a);_IG_TriggerEvent("moduleunmaximize",a);_IG_TriggerModuleEvent(a,"unmaximize")};
ig_5.de=function(a){var b=_gel("m_"+a),c=_gel("m_"+a+"_h");b.parentNode.className+=" ig_dnd_fixed_col";c.style.cursor="default";ig_ub()};ig_5.he=function(a){var b=_gel("m_"+a),c=_gel("m_"+a+"_h");b.parentNode.className=b.parentNode.className.replace(/ ig_dnd_fixed_col/,"");c.style.cursor="move";_IG_initDrag(_table,_tabs)};ig_5.Zb=function(a){_IG_hoverModule(a,ig_b);_IG_hoverHeader(a,ig_b)};
ig_5.tc=function(a){for(var b=_gel(a),c=b.childNodes,d=[],e=0;e<c.length;++e)if(c[e].className&&(c[e].className.indexOf("rnd_modtitle")==0||c[e].className.indexOf("rnd_modboxin")==0))for(var f=0;f<c[e].childNodes.length;++f)d[d.length]=c[e].childNodes[f];return d};ig_5.xf=function(a){for(var b=this.tc("m_"+a),c=0;c<b.length;++c)b[c].className+="_max"};ig_5.Cf=function(a){for(var b=this.tc("m_"+a),c=0;c<b.length;++c)b[c].className=b[c].className.replace(/_max/,"")};
function _IG_maximize_persistent_module(a,b){if(!window.location.hash.slice(1)){ig_5.Kf(a);_IG_maximize_view(a,"persist",b)}}function _IG_toggle_view(a){ig_5.fd(a)}function _IG_is_maximized_module(a){return ig_5.aa(a)}
function _IG_maximize_view(a,b,c){_IG_OS_hideGadgetInvitesManager();_IG_OS_hideUpdates();var d=_gel("m_"+a);if(!(!d||d.style.display=="none")){if(b==ig_)b="dunno";var e=["/ig/ui?xp=",c||"","&action=maximizeMod","&from=",b,"&m=",a,"&sn=",ig_v("m",a,"sn")];window["FEED"+a]&&e.push("&mt=feed");_sendx(e.join(""),ig_,ig_b,ig_);if(!ig_5.aa(a)){ig_5.If(c);ig_5.fd(a)}}}
function _IG_minimize_view(a,b,c){_IG_OS_hideGadgetInvitesManager();_IG_OS_hideUpdates();if(b==ig_)b="dunno";var d=["/ig/ui?xp=",c||"","&action=minimizeMod","&from=",b,"&m=",a,"&sn=",ig_v("m",a,"sn")];_sendx(d.join(""),ig_,ig_b,ig_);ig_5.aa(a)&&ig_5.yb(a)}function _IG_restore_view(){_IG_OS_hideGadgetInvitesManager();ig_5.Df()}var _IG_getCurrentMaxId=ig_5.Tb;_exportClass("gadgets.views","ViewManager",ig_5,ig_,["isModuleMaximized",ig_5.aa,"getCurrentMaxId",ig_5.Tb]);function ig_Qb(){this.ma="";this.vd=150;this.Ja=_IG_isIE();this.la=[];window.location.hash.slice(1);var a=this;_IG_callPostLoad(function(){_IG_AddDOMEventHandler(window,"load",function(){a.Ac()})})}ig_c=ig_Qb.prototype;ig_c.Ac=function(){var a=this;if(!(window._gjuc&&window._gjuc()==1)){window.setTimeout(function(){a.Ac()},this.vd);var b=this.ye();if(b!=this.ma){this.Pc(b);this.ma=b;if(this.Ja)window.location.hash="#"+(b||"home")}}};
ig_c.rc=function(){try{if(this.Ja&&!this.kb){this.kb=_gel("ighistory");var a=this.kb.contentWindow.document,b=window.location.hash.slice(1);a.open();a.write("<head></head><body>"+_esc(b)+"</body>");a.close()}return this.kb.contentWindow.document}catch(c){return undefined}};ig_c.ye=function(){if(this.Ja){var a=this.rc();return a?_unesc(a.body.innerHTML):""}else return window.location.hash.slice(1)};
ig_c.Nf=function(a){if(!(a==this.ma)){this.ma=a;this.Pc.apply(this,arguments);window.location.hash="#"+a;if(this.Ja){var b=this.rc();if(b){b.open();b.write("<head></head><body>"+_esc(a)+"</body>");b.close()}}}};ig_c.Pc=function(a){for(var b=0;b<this.la.length;++b)if(this.la[b][0].test(a)){this.la[b][1].apply(undefined,arguments);return}};ig_c.zd=function(a,b){this.la.push([a,b])};var ig_8;if(window._IG_CONTAINER)ig_8=new ig_Qb;function _IG_PushHistory(){ig_8&&ig_8.Nf.apply(ig_8,arguments)}
function _IG_AddHistoryCallback(a,b){ig_8&&ig_8.zd(a,b)}_IG_AddHistoryCallback(/^max\d+$/,function(a,b,c){var d=a.substr(3);if(b==ig_)b="history";_IG_maximize_view(d,b,c)});_IG_AddHistoryCallback(/^min\d+$/,function(a,b,c){var d=a.substr(3);b==ig_?_IG_restore_view():_IG_minimize_view(d,b,c)});_IG_AddHistoryCallback(/^restore$/,_IG_restore_view);_IG_AddHistoryCallback(/^$/,function(){var a=_args();a.le?_IG_maximize_view(a.le,"history",""):_IG_restore_view()});var _IG_Json=ig_I;var _IG_ViewType={CANVAS:"canvas",HOME:"home",PROFILE:"home",PREVIEW:"preview"};function _IG_View(a,b){this.cf=a;this.Ue=!!b}_IG_View.prototype.te=function(){return this.cf};_IG_View.prototype.Te=function(){return this.Ue};var _IG_SupportedViews={};_IG_SupportedViews.CANVAS=new _IG_View(_IG_ViewType.CANVAS,ig_a);_IG_SupportedViews.canvas=new _IG_View(_IG_ViewType.CANVAS,ig_a);_IG_SupportedViews.HOME=new _IG_View(_IG_ViewType.HOME,ig_b);_IG_SupportedViews.yg=new _IG_View(_IG_ViewType.HOME,ig_b);
_IG_SupportedViews.PROFILE=new _IG_View(_IG_ViewType.PROFILE,ig_b);function ig_Rb(a,b,c){b=b.toLowerCase();if(b==_IG_ViewType.CANVAS)_IG_is_maximized_module(a)||_IG_PushHistory("max"+a,"navTo","");else _IG_is_maximized_module(a)&&_IG_PushHistory("min"+a,"navTo","");if(c){var d=_IG_Json.stringify(c);_gel("remote_iframe_"+a).src+="&view-params="+_esc(d)}return ig_a}var _IG_NavigateToGadget=ig_Rb;function ig_Sb(a){return _IG_is_maximized_module(a)?_IG_SupportedViews.CANVAS:_IG_SupportedViews.HOME}
var _IG_GetCurrentView=ig_Sb;function ig_Tb(a){var b=_gel("remote_iframe_"+a).src,c=_argsUrl(b),d=_IG_Json.parse(_unesc(c["view-params"]));return d}var _IG_GetViewParams=ig_Tb;function _IG_GetSupportedViews(){return _IG_SupportedViews}_exportSymbols("gadgets.views",["ViewType",_IG_ViewType,"getSupportedViews",_IG_GetSupportedViews,"requestNavigateTo",_IG_NavigateToGadget,"getCurrentView",_IG_GetCurrentView,"getParams",_IG_GetViewParams]);
_exportClass("gadgets.views","View",_IG_View,["getName",_IG_View.prototype.te,"isOnlyVisibleGadget",_IG_View.prototype.Te]);var ig_9=function(){var a=ig_b;function b(h,n){return function(o,j){ig_9.Xc(h,n,_IG_Json.parse(j))}}function c(){var h=_gel("maximized_container");if(!h){h=document.createElement("div");h.id="maximized_container";_gel("modules").parentNode.appendChild(h)}return h}function d(){var h=_gel("gadget_invite_items");if(!h){h=document.createElement("div");h.id="gadget_invite_items";h.className="gadget_invite_items";_IG_AddDOMEventHandler(h,"click",ig_9.Be)}return h}function e(h){for(var n=ig_9.j.invite,o=
0;o<n.length;o++)if(n[o].osit==h)return n[o];return ig_}function f(h){for(var n=ig_9.j.invite,o=0;o<n.length;o++)if(n[o].osit==h){ig_9.j.invite.splice(o,1);ig_9.Ab(ig_9.j.invite.length,ig_9.sa)}}function g(h,n){var o=_gel("gadget_invite_content_"+h),j=document.createElement("div");j.className="gadget_invite_content_item cl ie_content_fix";var l=document.createElement("span");l.className="action_message";l.innerHTML=n;j.appendChild(l);o.appendChild(j)}function i(h,n){var o=document.createElement("span");
o.className="gadget_invite_content_item cl linkon";_IG_AddDOMEventHandler(o,"click",function(){n.osit&&_sendx("/ig/osinvites?et="+_et,function(){},ig_b,"action=accept&osit="+n.osit);n.mtid=n.mtid||0;_select_gadget_and_log(n.mtid,n.mid)});o.innerHTML=IG_MSGS.GIGTG.replace(/%1\$s/,h);return o}function k(h){var n=c();n.innerHTML="";n.style.display=h?"":"none";(h?_IG_showRoundedCornerOnMaximize:_IG_hideRoundedCornerOnRestore)();_gel("rcam_t1").className=h?"rnd1_max_top":"rnd1";_gel("rcam_t2").className=
h?"rnd2_max_top":"rnd2";_gel("rcam_t3").className=h?"rnd3_max_top":"rnd3";var o=_IG_getCurrentMaxId();if(o)_gel("max_ph").style.display=h?"none":"";else _gel("modules").style.display=h?"none":""}function m(){return typeof _IG_OS_updates_gadget_iframe_url=="undefined"?"":"remote_module_"+_IG_OS_updates_gadget_iframe_url.match(/mid=(-?\d+)/)[1]}return{j:ig_,z:0,sa:ig_b,Gc:ig_b,nb:ig_b,pb:ig_a,q:10,Jf:function(h){a=h},Ee:function(){return a},Se:function(){var h=_args(),n=h.force_sandbox;return n=="1"},
Xc:function(h,n,o){_IFPC.call(h,"shindig.requestShareApp_callback",[n,o.success,o.success?ig_:o.message,o.recipientIds],window._ifpc_relay_url[_ig_gmid_(h)],ig_,window.location.of+"/ig/images/rpc_relay.html",ig_a,ig_a)},Wc:function(h,n,o,j){var l=_ig_gmid_(h);o=o||[];var p="";if(typeof o=="object"&&o.join){o.length>50&&o.splice(50);p=o.join(",")}else if(typeof o=="string")p=o;else if(!o.eb||o.eb.ng!="VIEWER"&&o.eb.ng!="OWNER"||o.eb.xg!="FRIENDS"){var q={success:ig_b,message:"Invalid recipient.",recipientIds:[]};
ig_9.Xc(h,n,q);return}var r=ig_v("m",l,"u");_share_this_gadget(_hesc(_jesc(j)),ig_r(IG_URLS.sgu,["moduleurl="+_esc(r),"mid="+l,"source=os","uids="+p]),l,b(h,n))},Kc:function(){_sendx("/ig/osinvites",function(h){ig_9.j=eval("("+h+")");var n=ig_9.j;ig_9.z=n&&n.invite&&n.invite.length?n.invite.length:0;ig_9.sa=n&&!!n.n;_IG_OS_updateGadgetInvites();if(ig_9.z&&ig_9.pb){ig_9.q=Math.min(10,ig_9.z);ig_9.Ea(ig_9.j.invite,0,ig_9.q)}})},nd:function(){var h=_gel("gadget_invites_header"),n=_gel("gadget_shares_nav");
if(h&&n){h.style.display="none";n.style.display="none";if(ig_9.z){if(ig_9.sa){h.style.display="block";var o=ig_9.z>1?IG_MSGS.GIP:IG_MSGS.GI;o=o.replace(/%1\$d/,ig_9.z);var j=_gel("gadget_invites_header_link");j.innerHTML=o}n.style.display="block";var l=_gel("num_invites");l.innerHTML=ig_9.z}var p=_gel("show_all_invites");if(p)p.innerHTML=IG_MSGS.GISAI.replace(/%1\$d/,ig_9.z)}},Rf:function(){ig_9.pb=ig_a;ig_9.Kc();k(ig_a);_IG_highlight_invites();ig_9.cc(IG_MSGS.GIH,function(){_IG_PushHistory("","gadget_invites",
"")});c().appendChild(d())},He:function(){if(ig_9.nb){ig_9.nb=ig_b;setTimeout(function(){document.location.replace(ig_T(document.location.href))},0)}k(ig_b);ig_9.pb=ig_b;var h=_IG_getCurrentMaxId();h!=ig_?_IG_highlight_module(h):_IG_highlight_tab()},Vf:function(){k(ig_a);_IG_highlight_updates();ig_9.cc(IG_MSGS.GUH,function(){_IG_PushHistory("","social_updates","")});var h=_gel(m());if(!h){h=document.createElement("iframe");h.src=_IG_OS_updates_gadget_iframe_url;h.id=m();h.width="98%";h.height="900px";
h.frameBorder="0";h.style.marginTop="6px";h.style.marginLeft="6px"}c().appendChild(h)},Ke:function(){k(ig_b);var h=m();if(h){var n=_gel(h);n&&n.parentNode.removeChild(n);var o=_IG_getCurrentMaxId();o!=ig_?_IG_highlight_module(o):_IG_highlight_tab()}},cc:function(h,n){var o=_gel("maximized_container_header");if(!o){o=document.createElement("div");o.id="maximized_container_header";o.className="gititle";var j=document.createElement("h2");o.appendChild(j);var l=document.createElement("span");l.id="maximized_header_title";
l.className="gititle_text";j.appendChild(l);l.innerHTML=h;if(n){var p=document.createElement("a");p.id="maxContainerMinButton";p.className="v2shrinkbox";p.href="javascript:void(0);";_IG_AddDOMEventHandler(p,"click",n);o.appendChild(p)}}var q=document.createElement("div");q.style.clear="both";o.appendChild(q);c().appendChild(o)},Ea:function(h,n,o){var j=d();j.innerHTML="";var l=document.createElement("div");l.className="gadget_invite_legal";var p="http://www.google.com/support/websearch/bin/answer.py?answer=145550";
if(_hl)p+="&hl="+_hl;l.innerHTML=[IG_MSGS.GIL,' <a href="',p,'" target=_blank>',IG_MSGS.GILM,"</a>"].join("");j.appendChild(l);n=n||0;o=o||h.length;for(var q=n;q<o;q++){if(q!=n){var r=document.createElement("hr");r.id="invite_item_sep_"+h[q].osit;r.className="invite_item_sep";j.appendChild(r)}ig_9.zf(h[q])}var s=document.createElement("div");s.id="bulk_dismiss";s.className="gadget_invite_footer";var t=document.createElement("a");t.className="decline_invite";t.href="javascript:void(0);";t.innerHTML=
IG_MSGS.GIBD;_IG_AddDOMEventHandler(t,"click",function(){_sendx("/ig/osinvites?et="+_et,function(){ig_9.Ab(0,ig_b);_IG_PushHistory("","gadget_invites","")},ig_b,"action=declineall")});s.appendChild(t);j.appendChild(s);j.appendChild(ig_9.Af(h.length))},zf:function(h){var n=d(),o=_hesc(h.nam||""),j=_hesc(h.gti||IG_MSGS.GIDGN),l=document.createElement("div");l.className="gadget_invite_item";l.id="invite"+h.osit;var p=document.createElement("img");p.src=h.gtu;p.className="gadget_invite_thumb";l.appendChild(p);
var q=document.createElement("div");q.id="gadget_invite_content_"+h.osit;q.className="gadget_invite_content";var r='<a href="/ig/directory?type=gadgets&url='+h.gur+'" target="_blank">'+j+"</a>",s=IG_MSGS.GID;s=s.replace(/%1\$s/,"gadget_invite_content_item").replace(/%2\$s/,"<strong>"+o+"</strong>").replace(/%3\$s/,_hesc(h.ema||"")).replace(/%4\$s/,"gadget_invite_content_item cl").replace(/%5\$s/,r);q.innerHTML=s;var t=h.mid>-1;q.appendChild(document.createElement("br"));if(!t||t&&!h.isc){var u=document.createElement("input");
u.id="accept_button_"+h.osit;u.type="button";u.className="gadget_invite_content_item cl";if(t&&!h.isc){u.value=IG_MSGS.GIAUBT.replace(/%1\$s/,o);u.className+=" add_contact"}else{u.value=IG_MSGS.GIAG;u.className+=" accept_invite"}q.appendChild(u)}if(t&&h.isc){var w=i(j,h);q.appendChild(w)}var v=document.createElement("a");v.id="close_invite_"+h.osit;var z=t&&h.isc?IG_MSGS.GIDIS:IG_MSGS.GINT;v.innerHTML=z;v.href="javascript:void(0);";v.className="gadget_invite_content_item decline_invite";q.appendChild(v);
if(!h.isc&&!t){var y=IG_MSGS.GIAU;y=y.replace(/%1\$s/,o).replace(/%2\$s/,"javascript:void(0);").replace(/%3\$s/,"_IG_OS_openGroupPopup(true);");var x=document.createElement("span");x.id="add_contacts_container_"+h.osit;x.className="gadget_invite_content_item cl add_user_msg";x.innerHTML=y;q.appendChild(x)}l.appendChild(q);n.appendChild(l)},Af:function(h){var n=document.createElement("div");n.id="gadget_invite_footer";n.className="gadget_invite_footer";for(var o=3,j,l=0;l<o;l++){j=document.createElement("b");
j.className="rnd"+(l+1);n.appendChild(j)}var p=document.createElement("div");p.id="gadget_invite_footer_content";p.className="gadget_invite_footer_content";var q=document.createElement("a");q.className="leading_edge";q.href="javascript:void(0);";_IG_AddDOMEventHandler(q,"click",ig_9.Jd);q.innerHTML=IG_MSGS.GIBTT;p.appendChild(q);var r=document.createElement("a");r.className="trailing_edge";r.href="javascript:void(0);";_IG_AddDOMEventHandler(r,"click",ig_9.Tf);r.innerHTML=IG_MSGS.GIM;p.appendChild(r);
var s=document.createElement("span");s.className="trailing_edge spacer";s.appendChild(document.createTextNode("-"));p.appendChild(s);var t=document.createElement("a");t.id="show_all_invites";t.className="trailing_edge";t.href="javascript:void(0);";_IG_AddDOMEventHandler(t,"click",ig_9.Pf);t.innerHTML=IG_MSGS.GISAI.replace(/%1\$d/,h);p.appendChild(t);var u=document.createElement("div");u.style.clear="both";p.appendChild(u);n.appendChild(p);for(l=o;l>0;l--){j=document.createElement("b");j.className=
"rnd"+l;n.appendChild(j)}return n},Jd:function(){ig_9.q=Math.min(10,ig_9.j.invite.length);ig_9.Ea(ig_9.j.invite,0,ig_9.q)},Tf:function(){ig_9.q=Math.min(ig_9.q+10,ig_9.j.invite.length);ig_9.Ea(ig_9.j.invite,0,ig_9.q)},Pf:function(){ig_9.q=ig_9.j.invite.length;ig_9.Ea(ig_9.j.invite,0,ig_9.q)},Be:function(h){for(var n,o=h.target||h.srcElement,j=o;j;)if(j.className=="gadget_invite_item"){n=j.id.replace("invite","");break}else j=j.parentNode;if(n){var l="",p,q,r=o.className;if(r.indexOf("accept_invite")>=
0){var s=_gel("add_contacts_"+n),t=s?s.checked:ig_b;p="accept";l="addcontact=true";q={Y:t?1:0};ig_9.nb=ig_a}else if(r.indexOf("decline_invite")>=0)p="decline";else if(r.indexOf("add_contact")>=0){p="accept";l="addcontact=true";q={Y:2}}if(p){l+=(l?"&":"")+"action="+p+"&osit="+n;_sendx("/ig/osinvites?et="+_et,function(u){ig_9.Ce(u,n,p,q)},ig_b,l)}}},Ce:function(h,n,o,j){var l=e(n);if(l){h=h&&eval("("+h+")");var p=_gel("gadget_invite_content_"+n),q=_gel("accept_button_"+l.osit),r=_gel("close_invite_"+
l.osit),s=_gel("add_contacts_container_"+l.osit),t=_hesc(l.gti||IG_MSGS.GIDGN),u="";switch(o){case "accept":q.parentNode.removeChild(q);r.parentNode.removeChild(r);s&&s.parentNode.removeChild(s);if(j){if(j.Y==0||j.Y==1)u+=IG_MSGS.GIGA.replace(/%1\$s/,t);if(j.Y==1||j.Y==2)u+=(u?" ":"")+IG_MSGS.GICA.replace(/%1\$s/,_hesc(l.nam||"")).replace(/%2\$s/,"javascript:void(0);").replace(/%3\$s/,"_IG_OS_openGroupPopup(true);")}g(n,u);p.appendChild(i(t,h));break;case "decline":var w=_gel("invite"+l.osit),v;v=
w==w.parentNode.firstChild?w.nextSibling:_gel("invite_item_sep_"+l.osit);w.parentNode.removeChild(w);v&&v.parentNode.removeChild(v);break}f(n);ig_9.q=Math.min(ig_9.q,ig_9.j.invite.length)}},Qc:function(h,n){if(ig_9.Gc){window.goog.GroupPopupLauncher.launch("/ig/c","igoogle",window.goog.GroupPopupLauncher.Group.FRIENDS,h?window.goog.GroupPopupLauncher.PopupType.EDIT:window.goog.GroupPopupLauncher.PopupType.PICK,{hl:_hl});n&&n()}else _IG_LoadScriptCallback(IG_URLS.gpjsu,function(){ig_9.Gc=ig_a;ig_9.Qc(h,
n)})},yd:function(){var h=_gel("gadget_invites_header");if(h)h.style.display="none";_sendx("/ig/osinvites?et="+_et,function(){},ig_b,"action=ack")},Ab:function(h,n){ig_9.z=h;ig_9.sa=n;ig_9.nd()},Ne:function(){_gel("contacts_nav").style.display="";_gel("tab_separator_social").style.display=""}}}(),_IG_OS_loadGadgetInvitesData=ig_9.Kc,_IG_OS_updateGadgetInvites=ig_9.nd,_IG_OS_showGadgetInvitesManager=ig_9.Rf,_IG_OS_hideGadgetInvitesManager=ig_9.He,_IG_OS_showUpdates=ig_9.Vf,_IG_OS_hideUpdates=ig_9.Ke,
_IG_OS_requestShareApp=ig_9.Wc,_IG_OS_openGroupPopup=ig_9.Qc,_IG_OS_acknowledgeInvitations=ig_9.yd,_IG_OS_setPendingInvites=ig_9.Ab,_IG_OS_initOpenSocialUI=ig_9.Ne;_IFPC.registerService("shindig.requestShareApp",ig_9.Wc);_IG_AddHistoryCallback(/^social_updates$/,_IG_OS_showUpdates);_IG_AddHistoryCallback(/^gadget_invites$/,_IG_OS_showGadgetInvitesManager);var ig_$=function(){function a(b,c){var d=_gel("m_"+b+"_canvas_social_icon");if(d)d.className=c+d.className.replace(/\bsocialbox\S*/,"");var e=_gel("m_"+b+"_social_icon");if(e)e.className=c+e.className.replace(/\bsocialbox\S*/,"")}_IG_AddEventHandler("modulesocialedit",function(b){if(!ig_9.Ee()&&_gel("add_friends_promo"))_gel("add_friends_promo").style.display="block";var c=b.replace("m_",""),d=_gel("m_"+c+"_aclform");d&&ig_$.Yc(d,c)});return{Yc:function(b,c){if(b.module_url){b.reset();var d=b["access_profile"+
c],e=b["post_updates"+c];e.disabled=!d.checked}},ze:function(b,c){_closeUserPrefs(c);if(b.module_url){var d=b.module_url.value,e=b["access_profile"+c],f=b["post_updates"+c];e.defaultChecked=e.checked;f.defaultChecked=f.checked;a(c,e.checked?"socialboxon":"socialbox");var g=_gel("acl_cancel_"+c);if(g)g.style.display="";var i=_gel("reset_acl_"+c);if(i)i.style.display="";_IG_OS_makeAclXhr({moduleUrl:d,editToken:_et,accessProfile:e.checked,postUpdates:f.checked},function(){var k=_gel("remote_iframe_"+
c);if(k&&k.src){k.src=ig_T(_IG_Prefs.X(c,k.src));window.frames["remote_iframe_"+c].location.replace(k.src)}})}},$e:function(b,c){if(b&&b.moduleUrl){var d="/ig/osacl";d+="?url="+b.moduleUrl;if(ig_9.Se())d+="&force_sandbox=1";if(b.editToken){d+="&et="+b.editToken;var e=b.accessProfile?"t":"f",f=b.accessProfile&&b.postUpdates?"t":"f";d+="&osacl=0:"+e+",1:"+f}_sendx(d,c,ig_b,ig_b)}},Ae:function(b,c){var d=_gel("access_profile"+c),e=_gel("post_updates"+c),f=_gel("acl_cancel_"+c),g=_gel("reset_acl_"+c);
ig_9.Jf(b.has_friends);if(b.user_decided){d.checked=b.friends;e.checked=b.post&&b.friends;e.disabled=!b.friends;if(f)f.style.display="";if(g)g.style.display=""}else{d.checked=ig_a;e.checked=ig_a;e.disabled=ig_b;if(f)f.style.display="none";if(g)g.style.display="none";_showUserPrefs(c,ig_a)}d.defaultChecked=d.checked;e.defaultChecked=e.checked;a(c,b.friends?"socialboxon":"socialbox");_gel("acl_options_"+c).style.display="block";_gel("aowc_"+c).style.display="none"},lg:function(b){b=b||"";var c=_gel("access_profile"+
b),d=_gel("post_updates"+b);if(c.checked)d.disabled=ig_b;else{d.checked=ig_b;d.disabled=ig_a}},ge:function(b){if(ig_pb(b,ig_R.Pa))_gel("m_"+b+"_aclform")?_closeUserPrefs(b):ig_$.$b(b);else{_log("social_options:"+b);_showUserPrefs(b,ig_a)}},$b:function(b){if(ig_pb(b,ig_R.Pa)){_xsetp("m_"+b+"_dossip=1");_closeUserPrefs(b)}}}}(),_IG_OS_handleFormAclOptions=ig_$.ze,_IG_OS_resetFormAclOptions=ig_$.Yc,_IG_OS_makeAclXhr=ig_$.$e,_IG_OS_handleGetAclXhrResponse=ig_$.Ae,_IG_OS_updateAclOptions=ig_$.lg,_IG_OS_edit=
ig_$.ge,_IG_OS_closeSocialSignInPromo=ig_$.$b;function ig_Ub(){window._IG_CONTAINER&&setInterval(function(){_sendx("/ig/ostokens",ig_Vb)},1800000)}function ig_Wb(a,b){var c=a.split("#");if(!c[1])return a;for(var d=c[1].split("&"),e=0;e<d.length;++e)if(/^st=/.test(d[e]))d[e]="st="+_hesc(b);c[1]=d.join("&");return c.join("#")}
function ig_Vb(a){if(!(!a||a.length<27||a.charAt(27)!="{")){a=eval("("+a.substring(27)+")");if(a.m)for(var b=0;b<a.m.length;++b){var c=a.m[b];if(c){var d=c.i,e=c.st;if(!c.nsl){for(var f=0;f<remote_modules.length;++f)if(remote_modules[f].id==d)remote_modules[f].base_iframe_url=ig_Wb(remote_modules[f].base_iframe_url,e);var g=ig_v("m",d,"view","max_u");if(g)_IG_MD.m[d].view.max_u=ig_Wb(g,e)}_gel("remote_iframe_"+d)&&_IFPC.call("remote_iframe_"+d,"update_security_token",[e],window._ifpc_relay_url[d],
ig_,window.location.of+"/ig/images/rpc_relay.html",ig_a,ig_a)}}}}ig_Ub();var _handleAuthRefreshJsonResponse=ig_Vb;
