function ig_et_a(a){a=a||document.location.href;var b=a.indexOf("?");if(b==-1)return"";var c=a.indexOf("#");a=c==-1?a.substr(b+1):a.substr(b+1,c-b-1)+"&"+a.substr(c+1);return a.split("&")}function _esc(a){return window.encodeURIComponent?encodeURIComponent(a):escape(a)}function _unesc(a){return window.decodeURIComponent?decodeURIComponent(a):unescape(a)}
function _argsUrl(a){var b={};a=ig_et_a(a);for(var c=0;c<a.length;c++){var d=a[c].indexOf("=");if(d!=-1){var e=a[c].substring(0,d);d=a[c].substring(d+1);d=d.replace(/\+/g," ");b[e]=_unesc(d)}}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,c,d){a.g(b,c,d)}};
ig_et_.prototype.g=function(a,b,c){++window._varz_numerrors;try{var d={};d.msg=a;d.url=b;d.line=c;if(this.b)try{this.b(a,b,c)}catch(e){}this.h(d)}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_;
function ig_a(a){throw a;}var ig_b=true,ig_=null,ig_c=false;function ig_d(a){var b=window;if(a!="")for(a=a.split(".");a.length;){var c=a.shift();if(typeof b[c]!="object")b[c]={};b=b[c]}return b}(function(){function a(c,d){c=ig_d(c);for(var e=0;e<d.length;e+=2)c[d[e]]=d[e+1]}function b(c,d,e,f,g){if(f)for(var h=0;h<f.length;h+=2)e.prototype[f[h]]=f[h+1];if(g)for(h=0;h<g.length;h+=2)e[g[h]]=g[h+1];a(c,[d,e])}a("",["_exportSymbols",a]);a("",["_exportClass",b])})();function ig_aa(a,b,c){if(!a.className)return ig_c;for(var d=a.className.split(" "),e=[],f=ig_c,g=0;g<d.length;++g)if(d[g]!=b)e.push(d[g]);else{f=ig_b;c&&e.push(c)}a.className=e.join(" ");return f};function ig_e(a){a=a||document.location.href;var b=a.indexOf("?");if(b==-1)return"";var c=a.indexOf("#");a=c==-1?a.substr(b+1):a.substr(b+1,c-b-1)+"&"+a.substr(c+1);return a.split("&")}function _esc(a){return window.encodeURIComponent?encodeURIComponent(a):escape(a)}function _unesc(a){return window.decodeURIComponent?decodeURIComponent(a):unescape(a)}
function _argsUrl(a){var b={};a=ig_e(a);for(var c=0;c<a.length;c++){var d=a[c].indexOf("=");if(d!=-1){var e=a[c].substring(0,d);d=a[c].substring(d+1);d=d.replace(/\+/g," ");b[e]=_unesc(d)}}return b}function ig_ba(a){a=a.split("#");if(/[?&]$/.test(a[0]))a[0]=a[0].replace(/[?&]$/,"");else{var b=/\?/.test(a[0])?"&":"?";a[0]+=b}return a.join("#")};var ig_ca={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_f={},ig_da={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_ea(a){if(a.hasOwnProperty&&a.hasOwnProperty("ig_event_hashcode_"))return a.wa;a.wa||(a.wa=++ig_g.Fb);return a.wa}function ig_fa(a){return"builtin_"+a}function ig_ga(a,b){if(a.indexOf&&a.indexOf("m_")==0)a=a.substring(2);return"builtin_m"+a+"_"+b}function ig_ha(a,b){return"builtin_"+ig_g.Cb(a)+"_"+b}function ig_ia(a){return"custom_"+a}
function ig_ja(){for(var a in ig_g.c){for(var b=0;b<ig_g.c[a].length;b++)delete ig_g.c[a][b];if(a in ig_g.Q){var c=ig_g.Q[a];b=c[0];var d=c[1];c=c[2];if(b.removeEventListener)b.removeEventListener(d,c,ig_c);else b.detachEvent&&b.detachEvent("on"+d,c);delete ig_g.Q[a]}}ig_f={}}function ig_ka(a,b,c){for(c=c;c<b.length;c++)a[a.length]=b[c];return a}function ig_la(a,b){if(a in ig_g.c)for(var c=0;c<ig_g.c[a].length;c++)if(ig_g.c[a][c]===b){ig_g.c[a][c]=ig_;return ig_b}return ig_c}
function ig_ma(a){if(a in ig_g.c)for(var b=0;b<ig_g.c[a].length;b++)if(ig_g.c[a][b]){for(var c=[],d=1;d<arguments.length;d++)c[c.length]=arguments[d];ig_g.c[a][b].apply(this,c)}}function ig_na(a,b){if(!(a in ig_g.Mb))ig_a(Error("Unsupported event type: "+a));a=ig_g.ha(a);a in ig_g.c||(ig_g.c[a]=[]);ig_g.c[a][ig_g.c[a].length]=b;return ig_g.c[a].length}
function ig_oa(a,b,c){if(!(b in ig_g.Nb))ig_a(Error("Unsupported module event type: "+b));a=ig_g.ia(a,b);a in ig_g.c||(ig_g.c[a]=[]);ig_g.c[a][ig_g.c[a].length]=c}
function ig_pa(a,b,c){var d=ig_g.Ta(a,b);if(!(d in ig_g.c)){ig_g.c[d]=[];var e=function(f){if(!f)f=window.event;ig_g.$.apply(a,[d,f])};if(a.addEventListener)a.addEventListener(b,e,ig_c);else if(a.attachEvent)a.attachEvent("on"+b,e);else ig_a(Error("Object {"+a+"} does not support DOM events."));ig_g.Q[d]=[a,b,e]}e=ig_g.c[d].length;if(a===window&&b=="unload"&&e>0){ig_g.c[d][e]=ig_g.c[d][e-1];ig_g.c[d][e-1]=c}else if(ig_f[b])setTimeout(c,10);else ig_g.c[d][e]=c}
function ig_qa(a,b){a=ig_g.ga(a);a in ig_g.c||(ig_g.c[a]=[]);ig_g.c[a][ig_g.c[a].length]=b}function ig_ra(a,b){a=ig_g.ha(a);return ig_g.Y(a,b)}function ig_sa(a,b,c){a=ig_g.ia(a,b);return ig_g.Y(a,c)}function ig_ta(a,b,c){a=ig_g.Ta(a,b);return ig_g.Y(a,c)}function ig_ua(a,b){a=ig_g.ga(a);return ig_g.Y(a,b)}
function ig_va(a){var b=a=="load"||a=="domload",c=ig_c;if(b){(c=ig_f[a])||_IG_TriggerCustomEvent(a+"_start");ig_f[a]=ig_b}var d=ig_g.I([ig_g.ha(a)],arguments,1);ig_g.$.apply(window,d);b&&!c&&_IG_TriggerCustomEvent(a+"_end")}function ig_h(){var a=ig_g.I([],arguments,0);setTimeout(function(){ig_g.triggerEvent.apply(window,a)},0)}function ig_wa(a,b){var c=ig_g.I([ig_g.ia(a,b)],arguments,2);ig_g.$.apply(window,c)}
function ig_i(){var a=ig_g.I([],arguments,0);setTimeout(function(){ig_g.triggerModuleEvent.apply(window,a)},0)}function ig_xa(a){var b=ig_g.I([ig_g.ga(a)],arguments,1);ig_g.$.apply(window,b)}function ig_ya(){var a=ig_g.I([],arguments,0);setTimeout(function(){ig_g.triggerCustomEvent.apply(window,a)},0)}
function ig_j(a,b){switch(a){case "delete":case "undelete":case "edit":case "socialedit":case "canceledit":case "zip":case "unzip":case "maximize":case "unmaximize":ig_i(b,a);ig_h("module"+a,b);break}}function _IG_delayScript(a,b){function c(){clearTimeout(d);_IG_RemoveEventHandler("load",c);setTimeout(a,0)}var d;b=!isNaN(b)&&b||1E4;d=setTimeout(c,b);_IG_AddEventHandler("load",c)}
var ig_g={Fb:0,c:{},Q:{},Mb:ig_ca,Nb:ig_da,Cb:ig_ea,ha:ig_fa,ia:ig_ga,Ta:ig_ha,ga:ig_ia,yb:ig_ja,I:ig_ka,Y:ig_la,$:ig_ma,addEventHandler:ig_na,addModuleEventHandler:ig_oa,addDOMEventHandler:ig_pa,addCustomEventHandler:ig_qa,removeEventHandler:ig_ra,removeModuleEventHandler:ig_sa,removeDOMEventHandler:ig_ta,removeCustomEventHandler:ig_ua,triggerEvent:ig_va,triggerModuleEvent:ig_wa,triggerCustomEvent:ig_xa,triggerDelayedEvent:ig_h,triggerDelayedModuleEvent:ig_i,triggerDelayedCustomEvent:ig_ya},_IG_AddEventHandler=
ig_g.addEventHandler,_IG_AddModuleEventHandler=ig_g.addModuleEventHandler,_IG_AddGadgetEventHandler=ig_g.addModuleEventHandler,_IG_AddDOMEventHandler=ig_g.addDOMEventHandler,_IG_AddCustomEventHandler=ig_g.addCustomEventHandler,_IG_RemoveEventHandler=ig_g.removeEventHandler,_IG_RemoveModuleEventHandler=ig_g.removeModuleEventHandler,_IG_RemoveGadgetEventHandler=ig_g.removeModuleEventHandler,_IG_RemoveDOMEventHandler=ig_g.removeDOMEventHandler,_IG_RemoveCustomEventHandler=ig_g.removeCustomEventHandler,
_IG_TriggerEvent=ig_g.triggerEvent,_IG_TriggerModuleEvent=ig_g.triggerModuleEvent,_IG_TriggerGadgetEvent=ig_g.triggerModuleEvent,_IG_TriggerCustomEvent=ig_g.triggerCustomEvent,_IG_TriggerDelayedEvent=ig_g.triggerDelayedEvent,_IG_TriggerDelayedModuleEvent=ig_g.triggerDelayedModuleEvent,_IG_TriggerDelayedGadgetEvent=ig_g.triggerDelayedModuleEvent,_IG_TriggerDelayedCustomEvent=ig_g.triggerDelayedCustomEvent;_IG_AddDOMEventHandler(window,"unload",ig_g.yb);_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_c)});_IG_AddModuleEventHandler(a,"maximize",function(){b(ig_b)})};function ig_k(a,b){var c=function(){};c.prototype=a.prototype;b.prototype=new c}function _gel(a){return document.getElementById(a)}function _gelstn(a,b){b=b||document;if(a=="*"&&b.all)return b.all;return b.getElementsByTagName?b.getElementsByTagName(a):[]}function _gelsbyregex(a,b,c){a=_gelstn(a,c);c=[];for(var d=0,e;e=a[d];++d)b.test(e.id)&&c.push(e);return c}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_l("m_"+a+"_editbox","none");ig_l("m_"+a+"_aclbox","block");ig_j("socialedit","m_"+a)}else{ig_l("m_"+a+"_editbox","");ig_l("m_"+a+"_aclbox","none");ig_j("edit","m_"+a)}if(a=_gel("m_"+a))a.className="modbox_e"}function _closeUserPrefs(a){ig_l("m_"+a+"_editbox","none");ig_l("m_"+a+"_aclbox","none");if(a=_gel("m_"+a))a.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){function d(){eval(b)?c():setTimeout(function(){d()},100)}var e=document.createElement("script");e.src=a;_gelstn("head")[0].appendChild(e);b&&d()}
function _IG_LoadCss(a){var b=_gelstn("head")[0];if(!b)ig_a(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){a="/ig/log?msg="+_esc(a);_sendx(a)}
function _sendx(a,b,c,d){var e=ig_m();e.open(d?"POST":"GET",a,ig_b);if(b)e.onreadystatechange=function(){if(e.readyState==4)b(c&&e.responseXML?e.responseXML:e.responseText)};e.send(d||ig_)}function ig_m(){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_b,_use_old_feed_styles=ig_b,ig_n=ig_,ig_o=ig_;function ig_p(a,b,c){var d=a.elements[b];if(d)d.value=c;else{d=document.createElement("input");d.type="hidden";d.name=b;d.value=c;a.appendChild(d)}}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};a=a||_args();var c=["?"];for(var d in a)b[d]&&c.push(d,"=",_esc(a[d]),"&");return c.join("")}var ig_za=/^([^?#]+)(?:\?([^#]*))?(#.*)?/;function ig_q(a,b){a=ig_za.exec(a);var c=[a[1],"?",a[2]];c.push(a[2]?"&":"",b.join("&"),a[3]);return c.join("")}function ig_r(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_p(a,c,b[c])}
function _submit_form(a,b){a.action=_setp_url+_qs()+b;a.method="get";ig_r(a);a.submit()}function _fsetp(a,b,c){a.action=_setp_url;a.method="get";ig_r(a);ig_p(a,"m_"+b+"_t",c);c=_args();b=c.host;c=c.hl;b&&ig_p(a,"host",b);c&&ig_p(a,"hl",c);return ig_b}var ig_s=[],ig_t=ig_c;function ig_Aa(a){for(var b=[],c=0;c<a.length;++c)if(a[c].length==2){var d=a[c][0],e=a[c][1];e!=ig_&&e!=""&&b.push(d+"="+e)}return b.join("&")}
function ig_u(){return ig_Aa([["et",_et],["pid",_pid],["ap",_authpath],["brand",_brand],["bmod",_bmod],["source",_source],["ae",_ae],["prefid",_prefid]])}function ig_v(){if(ig_s.length==0)ig_t=ig_c;else{ig_t=ig_b;var a=_setp_url+_qs()+ig_u(),b=ig_s.join("&");ig_s=[];var c=a.length+b.length>=1800;if(c)_sendx(a,ig_w,ig_c,b);else{a+="&"+b;_sendx(a,ig_w,ig_c,ig_)}}}function ig_w(){_IG_TriggerDelayedEvent("xsetpdone");ig_v()}function _xsetp(a){ig_s.push(a);ig_t||ig_v()}
function _xsetp_is_done(){return ig_s.length==0&&ig_t==ig_c}function _dlsetp(a,b){b||(b=_esc(document.location));document.location=_setp_url+_qs()+ig_u()+"&url="+b+"&"+a}function _removeTabParam(a){a=a.split("#");a[0]=a[0].replace(/([?&])t=[^&#]*([&#]|$)/g,"$1");a[0]=a[0].replace(/[?&]$/,"");return a.join("#")}function _select_tab(a,b){b=b||"/ig";ig_x(b+_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._FLAGS_use_server_side_persistent_maximized_module?ig_x("/ig"+_qs()+"t="+a+"&g="+b):ig_x("/ig"+_qs()+"t="+a+"#max"+b)}function ig_x(a){window.location.href=a}function ig_l(a,b){if(a=_gel(a))a.style.display=b}_exportSymbols("",["setDisplayStyle",ig_l]);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 ig_Ba(a){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]}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){if(typeof a.currentStyle!="undefined")a=a.currentStyle;else if(document.defaultView.getComputedStyle!="undefined")a=document.defaultView.getComputedStyle(a,ig_);else return"";return a[b]}function ig_y(){for(var a=_IG_MD,b=0;b<arguments.length;++b){a=a[arguments[b]];if(a==ig_)return ig_}return a}function _bidi_span_wrap(a,b){return _bidi_span_wrap_html(_hesc(a),b)}
function _bidi_span_wrap_html(a,b){if(b=="ltr")return"<span dir=ltr>"+a+"</span>&rlm;";return a}
function _bidi_unicode_wrap(a,b){if(b=="ltr")return"\u202a"+a+"\u202c\u200f";return a}_exportSymbols("google.gadgets.Util",["args",_args]);_exportSymbols("",["addParamPairsToUrl",ig_q,"xmlhttp",ig_m]);if(!window.FLAG_isInSplitJS)window.FLAG_isInSplitJS=ig_c;function ig_z(a){this.l=[];this.xa=a;this.L("_IG_DD_open");this.L("_IG_hoverHeader");this.L("_IG_hoverModule");this.r("_IG_DD_create");this.r("_IG_DD_init");this.r("_IG_initDrag");this.r("_IG_PushHistory");this.r("_IG_PU_MakeDialogButton")}ig_z.prototype.Ea=ig_c;ig_z.prototype.ka=ig_c;ig_z.pb=1E4;
ig_z.prototype.r=function(a){if(this.xa){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].$a)ig_a(new Error(a+" is already defined."));b[a]=this.Ua(a)}};ig_z.prototype.L=function(a){if(this.xa){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_z.prototype.Ua=function(a){var b=this,c=function(){for(var d=[],e=0;e<arguments.length;e++)d.push(arguments[e]);b.l.push([a,this,d])};c.$a=ig_b;return c};ig_z.prototype.ea=function(){if(this.l.length!=0){var a=this.l.shift(),b=a[0],c=a[1];a=a[2];try{var d=b instanceof Function?b:window[b];d.apply(c,a)}catch(e){}if(this.l.length>0){var f=this;setTimeout(function(){f.ea()},0)}else{this.ka=ig_b;this.gb()}}};
ig_z.prototype.Ra=function(){for(var a=[],b=0;b<this.l.length;b++){var c=this.l[b][0];if(!(c instanceof Function))if(window[c].$a){a.push(c);this.l.splice(b,1);b--}}var d=this;setTimeout(function(){d.ea()},0);if(a.length>0)ig_a(new Error("The following functions were not found in the post load file: "+a.join(", ")))};ig_z.prototype.gb=function(){for(var a=_gelstn("*"),b=0;b<a.length;b++){var c=a[b];c.className&&c.className.split&&ig_aa(c,"disabled",ig_)}};
ig_z.prototype.db=function(a,b){b=this.cb(b);_IG_AddEventHandler(a,b);setTimeout(b,ig_z.pb)};ig_z.prototype.cb=function(a){var b=this;return function(){if(!b.Ea){_IG_LoadScriptXDomain(a,"window._IG_DD_position",function(){b.Ra()});b.Ea=ig_b}}};ig_z.prototype.Qa=function(a){this.ka||!this.xa?a():this.l.push([a,ig_,[]])};var ig_A;ig_A||(ig_A=new ig_z(window.FLAG_isInSplitJS));function _IG_callPostLoad(a){ig_A.Qa(a)}function _IG_deferFunction(a){ig_A.r(a)}function _IG_ignoreFunction(a){ig_A.L(a)}
function _IG_loadPostloadJS(a,b){ig_A.db(a,b)};function _edit(a,b){var c=function(){b&&b();_sendx("/ig/ui?action=editsettings&m="+a);ig_j("edit","m_"+a)},d=ig_B[a];if(d){d();c()}else _IG_LL_load("m_"+a+"_editbox",{mid:a},function(){_showUserPrefs(a,ig_c);c()});return ig_c}var ig_B={};function _IG_AddCustomEditHandler(a,b){ig_B[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_j("canceledit","m_"+a);return ig_c}}
function _uhc(a,b,c){b="m_"+a+"_"+b;var d=_gel(b);if(!d){d=document.createElement("INPUT");d.type="hidden";d.disabled=ig_b;d.name=b;_gel("m_"+a+"_form").appendChild(d)}d.value=c;d.disabled=ig_c}function _confirmDel(a,b,c,d){var e=_bidi_unicode_wrap(_get_module_title(a),_get_module_title_dir(a));d=d.replace(/MODULE_TITLE/,e);d="\u202b"+d+"\u202c";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_","");if(typeof _IG_MD!="undefined")return _IG_MD.m[a].ti;else return(a=_gel("m_"+a+"_title"))?_striptags(a.innerHTML):""}function _get_module_title_dir(a){if(typeof a=="object")a=a.id.replace("m_","");else if(typeof a=="string")a=a.replace("m_","");if(typeof _IG_MD!="undefined")return _IG_MD.m[a].ti_dir}
function _get_all_modules(){for(var a=ig_Ca(),b=[],c=/^m_[0-9]+$/,d=0;d<a.length;d++){b[d]=[];for(var e=b[d],f=0;f<a[d].childNodes.length;f++){var g=a[d].childNodes[f];g.tagName=="DIV"&&g.style.display!="none"&&g.id&&c.test(g.id)&&e.push(g)}}if(window.gadgets&&window.gadgets.views&&window.gadgets.views.ViewManager&&window.gadgets.views.ViewManager.getCurrentMaxId)(a=window.gadgets.views.ViewManager.getCurrentMaxId())&&b.length>0&&a&&b[0].unshift(_gel("m_"+a));return b}
function ig_Ca(){for(var a=_gelsbyregex("DIV",/^c_[0-9]+$/),b=[],c=0;c<a.length;c++)a[c].style.display!="none"&&b.push(a[c]);return b}var ig_C=ig_c;function _del_is_done(){return _xsetp_is_done()&&ig_C}
function _del(a,b,c){ig_C=ig_c;_xsetp("m_"+a+"_enab=0&m_"+a+"_t="+b);if(b=_gel("undel_msg")){_gel("undel_title").innerHTML="&quot;"+_bidi_span_wrap(_get_module_title(a),_get_module_title_dir(a))+"&quot; ";b.style.display="block";ig_l("undo_msg","none");ig_l("undo_restore_msg","none")}ig_l("m_"+a,"none");ig_n=a;ig_o=c;ig_l(c,"");_mod=ig_b;ig_j("delete","m_"+a);ig_C=ig_b;return ig_c}
function _undel(){if(ig_n!=ig_){var a="m_"+ig_n,b=_gel(a);if(b){ig_l(a,"block");_xsetp("undel")}ig_l("undel_msg","none");ig_o!=ig_&&ig_l(ig_o,"none");ig_o=ig_n=ig_;ig_j("undelete",a)}}function _isModuleZipped(a){if(a=_gel("m_"+a+"_b"))return a.style.display=="none";return ig_c}
function _zm(a,b,c){var d=_gel("m_"+a+"_b");if(d){var e=!_isModuleZipped(a);d.style.display=e?"none":"block";if(d=_gel("m_"+a+"_zippy"))d.className=e?d.className.replace(/minbox/,"maxbox"):d.className.replace(/maxbox/,"minbox");c=c?"mmz":"mz";_xsetp(c+"="+a+":"+(e?"1":"0")+"&t="+b);ig_j(e?"zip":"unzip",a)}return ig_c}function ig_Da(a){_xsetp("pnlo="+(a?1:0))}var _uli,_pnlo,_mpnlo,_pl,_mod,_cbp=ig_c,ig_D=ig_c,_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",""]}ig_Ba(a);_IG_callPostLoad(_init_drag_drop)}
function _init_drag_drop(){if(_pl)if(_cbp||_uli)if(!ig_D&&!_mpnlo){_IG_TriggerCustomEvent("initdrag",_table,_tabs);ig_D=ig_b}}var ig_E=0;
function _tp(a){ig_E>0&&clearInterval(ig_E);_pnlo=a;_mod=ig_b;ig_Da(a);_upc();var b=_gel("cpnl"),c=_gel("cpnlc"),d=b.offsetWidth,e,f;if(a){e=c.offsetWidth;f="visible";ig_l("ehdr","");ig_l("nhdr","none")}else{e=1;f="hidden";ig_l("ehdr","none");ig_l("nhdr","")}b.style.overflow="hidden";a=100;var g=10,h=0;ig_E=setInterval(function(){var j=h/g,i=d+(e-d)*j;b.style.width=i+"px";h++;if(j>=1){clearInterval(ig_E);ig_E=0;b.style.width=e+"px";b.style.overflow=f}},a/g);return ig_c}
function _ts(a,b){a=_gel(a+b);if(a.className=="mlist_open"){a.className="mlist_closed";a="pnlsc"}else{a.className="mlist_open";a="pnlso"}_xsetp(a+"="+_esc(b));return ig_c}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_F=/^_add_m(_confirm)?\(\"[^"]+\"(, *\"[^"]+\")?\)$/,ig_G=ig_b;function _find_feed_is_done(){return ig_G}
function _find_feed(a){ig_G=ig_c;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_l("ffresults","none");ig_l("ffloading","block");_sendx("/ig/feeds"+_qs()+"q="+_esc(a)+"&page="+_esc(b),ig_Ea);return ig_c}
function ig_Ea(a){ig_l("ffloading","none");ig_l("ffresults","block");if(a.length>0&&a.charAt(0)=="<"){if(_gel("ffresults"))_gel("ffresults").innerHTML=a}else{a.match(ig_F)!=ig_;eval(a)}ig_G=ig_b}function _add_remote_module(a,b,c){_sendx("/ig/feeds"+_qs()+"module=1&q="+_esc(a),function(d){b();ig_Fa(d,c)});return ig_c}
function ig_Fa(a,b){var c=/_add_m_confirm\((\"[^"]+\"),\s*(\"[^"]+\")(,\s*\"[^"]+\")?\)/,d=/^alert\(\"[^"]+\"\)$/;if(a.match(ig_F)!=ig_||a.match(d)!=ig_){if(b)a=a.replace(c,"_add_m($1$3)");eval(a)}}
function _ListApp(a,b,c){this.items=a;this.deleted=[];this.item_constructor=b;this.module_id=c;this.app_name="m_"+c+"_App";this.display_area=_gel("m_"+c+"_disp");this.sort_on_refresh=ig_b;this.value_input_field=_gel("m_"+c+"_val");this.name_input_field=_gel("m_"+c+"_name");if(!this.name_input_field)this.name_input_field=this.value_input_field;if(this.name_input_field){this.default_name=this.name_input_field.value;this.default_value=this.value_input_field.value}this.prev_items=[].concat(this.items)}
_ListApp.prototype.reset=function(){this.items=[].concat(this.prev_items);this.deleted=[];this.refresh()};_ListApp.prototype.sort=function(a,b){return a.F(b)};
_ListApp.prototype.fb=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].K()+'</font></td><td><a href="#" onclick="'+this.app_name+"._del("+d+');return false"><img src="/ig/images/x.gif" width=16 height=13 border=0></a></td></tr>':'<a href="#" onclick="'+this.app_name+"._del("+d+');return false" class="delbox listdelbox"></a>'+c[d].K()+'<div class="c"></div>';if(parseInt(c[d]._uid,
10)<0)b+=c[d].p(d)}else{this.items.splice(d,1);d--}c=this.deleted;var e="";for(d=0;d<c.length;d++)if(parseInt(c[d]._uid,10)>=0)e+=","+c[d]._uid;a+=this.ua(b,e);return a};_ListApp.prototype.ua=function(a,b){var c="<input type=hidden name=m_"+this.module_id+'_del value="'+b+'"><input type=hidden name=m_'+this.module_id+'_add value="'+a+'">';if(_old_html)c="</table><input type=hidden name=m_"+this.module_id+'_del value="'+b+'"><input type=hidden name=m_'+this.module_id+'_add value="'+a+'">';return c};
_ListApp.prototype.refresh=function(){this.sort_on_refresh&&this.items.sort(this.sort);this.display_area.innerHTML="<font size=-1>"+this.fb()+"</font>"};_ListApp.prototype.add=function(a,b){a||(a=_trim(this.name_input_field.value));b||(b=_trim(this.value_input_field.value));a=new this.item_constructor(a,b,-1);if(a.H()){this.items[this.items.length]=a;this.refresh();this.name_input_field.value=this.default_name;this.value_input_field.value=this.default_value}};
_ListApp.prototype._del=function(a){this.deleted[this.deleted.length]=this.items[a];this.items.splice(a,1);this.refresh()};
function _PrefListApp(a,b,c,d,e){var f=typeof c=="string"?[]:c;d=new _ListApp(f,d,e);for(var g in d)this[g]=d[g];typeof c=="string"&&this.eb(c);this.prefidx=a;this.prefname=b;this.app_name="m_"+e+"_"+a+"_App";this.display_area=_gel("m_"+e+"_"+a+"_disp");this.name_input_field=this.value_input_field=_gel("m_"+e+"_"+a+"_val");this.default_value=this.default_name="";this.ua=_PrefListApp_get_tail}
function _PrefListApp_get_tail(){var a="</table>";_gel("m_"+this.module_id+"_"+this.prefidx).value=this.kb();return a}_PrefListApp.prototype.eb=function(a){if(a.length!=0){a=_IG_Prefs._strToArray(a);for(var b=[],c=0;c<a.length;c++){var d=new this.item_constructor(a[c],a[c],-1);b[b.length]=d}this.items=b;this.prev_items=[].concat(b)}};_PrefListApp.prototype.kb=function(){for(var a=[],b=0;b<this.items.length;b++)a[a.length]=this.items[b]._v;return _IG_Prefs._arrayToStr(a)};
function _ListItem(a,b,c){this._n=a;this._v=b;this._uid=c}_ListItem.prototype.H=function(){return this._n!=""};_ListItem.prototype.F=function(){return 0};_ListItem.prototype.K=function(){return _hesc(this._n)};_ListItem.prototype.p=function(){return"&"+_esc(this._n)+"="+_esc(this._v)};function _BMListItem(a,b,c){_ListItem.call(this,a,b,c)}ig_k(_ListItem,_BMListItem);_BMListItem.prototype.H=function(){return _ListItem.prototype.H.call(this)&&this._n!="http://"};
_BMListItem.prototype.S=function(){if(this._v)return this._v;else{var a=this._n;if(a.indexOf("http://")==0)a=a.substring(7);if(a.indexOf("www.")==0)a=a.substring(4);return a}};_BMListItem.prototype.K=function(){return'<a href="'+this._n+'" target=bmwindow>'+_hesc(this.S())+"</a>"};_BMListItem.prototype.p=function(a){return"&b"+a+"="+_esc(this._n)+"&t"+a+"="+_esc(this._v)};_BMListItem.prototype.F=function(a){var b=_uc(this.S());a=_uc(a.S());if(b==a)return 0;return b<a?-1:1};
function _WthrListItem(a,b,c){_ListItem.call(this,a,b,c)}ig_k(_ListItem,_WthrListItem);_WthrListItem.prototype.p=function(){var a="&"+_esc(this._n);if(this._v)a+="="+_esc(this._v);return a};function _FListItem(a,b,c,d){_ListItem.call(this,a,b,c);this._s=d||0}ig_k(_ListItem,_FListItem);_FListItem.prototype.p=function(){return"&"+_esc(this._n)};_FListItem.prototype.F=function(a){var b=this;if(b._s<a._s)return-1;if(b._s>a._s)return 1;b=_uc(b._n);a=_uc(a._n);if(b<a)return-1;if(b>a)return 1;return 0};
function ig_H(a){if(!a)a=document.body;return a.scrollHeight>a.offsetHeight?a.scrollHeight:a.offsetHeight}function ig_I(){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_H,"scrollTop",ig_I]);var ig_J={},ig_K={};
function _place(a,b){var c=ig_K[a];if(c)c(b);else{ig_J[a]||(ig_J[a]=[]);ig_J[a].push(b)}}function _register_place(a,b){ig_K[a]=b;var c=ig_J[a];if(c){for(var d=0;d<c.length;d++)b(c[d]);ig_J[a]=ig_}}function _enableGS(a,b){a.action="https://www.google.com/accounts/CheckCookie";a.method="get";ig_p(a,"service",b);ig_p(a,"continue",document.location);ig_p(a,"skipvpage",ig_b);return ig_b};function _reload(a,b){var c=a-(new Date).getTime();if(c>1E3)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+="?";if(b=c[2])d+=b;if(!_argsUrl(a).refresh){if(b)d+="&";d+="refresh=1"}return d}
var ig_L={ma:0,mb:1800,Ba:ig_,Aa:ig_,ca:ig_b,M:ig_,ob:ig_,Sa:600,O:function(){ig_L.ma=(new Date).getTime()+ig_L.mb*1E3},Hb:function(){if((new Date).getTime()>ig_L.ma)window.gTalkNotifier&&window.gTalkNotifier._isAnyMoleOpen&&window.gTalkNotifier._isAnyMoleOpen()?ig_L.O():_testConnection(function(){_reload(ig_L.ma,ig_L.ob)},ig_L.O)},Da:function(a){ig_L.O();ig_L.Ba&&ig_L.Ba(a)},Ca:function(a){ig_L.O();ig_L.Aa&&ig_L.Aa(a)}};
function _IG_disable_refresh_cycle(){ig_L.ca=ig_c;_IG_suspend_refresh_cycle()}function _IG_suspend_refresh_cycle(){if(ig_L.M!=ig_){clearInterval(ig_L.M);ig_L.M=ig_}}function _IG_restart_refresh_cycle(){!ig_L.ca||ig_L.M!=ig_||ig_M()}
function _IG_start_refresh_cycle(a,b,c){if(ig_L.ca){ig_L.Ba=document.onmousedown;ig_L.Aa=document.onkeyup;ig_L.mb=a;ig_L.Sa=b;if(c)ig_L.ob=c;if(document.addEventListener){document.addEventListener("keyup",ig_L.Ca,ig_c);document.addEventListener("mousedown",ig_L.Da,ig_c)}else if(document.attachEvent){document.attachEvent("onkeyup",ig_L.Ca);document.attachEvent("onmousedown",ig_L.Da)}else{document.onkeyup=ig_L.Ca;document.onmousedown=ig_L.Da}ig_M()}}
function ig_M(){ig_L.O();ig_L.M=setInterval(ig_L.Hb,ig_L.Sa*1E3)}function _testConnection(a,b,c){var d=ig_m(),e="/ig/nop?t="+(new Date).getTime();c||(c=3500);d.open("GET",e,ig_b);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){}e=function(){if(b){a=ig_;b()}};setTimeout(e,c)};var ig_Ia=new RegExp("^[\u0000- !-@[-`{-\u00bf\u00d7\u00f7\u02b9-\u02ff\u2000-\u2bff]*([0-9][\u0000- !-@[-`{-\u00bf\u00d7\u00f7\u02b9-\u02ff\u2000-\u2bff]*$|[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u2c00-\ufb1c\ufdfe-\ufe6f\ufefd-\uffff])"),ig_Ja=new RegExp("^[\u0000- !-@[-`{-\u00bf\u00d7\u00f7\u02b9-\u02ff\u2000-\u2bff]*$");function _IG_fixdir(a){a.dir=ig_Ia.test(a.value)?"ltr":ig_Ja.test(a.value)?"":"rtl"}function _IG_GetCachedUrl(a,b){b=typeof b=="object"?b:{};var c=window.location.href,d="/ig/proxy?",e=/^http:\/\/[^\/]+\/ig\/ifr[?]/;if((e=e.exec(c))||c.indexOf("http://www.google.cn/ig/china")==0){if(window.location.host!="p.gmodules.com"&&_et)d+="et="+_esc(_et)+"&"}else d="http://p.gmodules.com/ig/proxy?";if(!isNaN(b.refreshInterval)&&b.refreshInterval>=0)d=_appendMaxAgeParameter(d,b.refreshInterval);return d+"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)}}function ig_N(){var a=_IG_Callback.apply(ig_,arguments);return function(){a()}};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_c;if(e.src.indexOf("_highlight")!=-1)e.src=e.src.substring(0,e.src.indexOf("_highlight"))+".gif"}else{b[c].checked=ig_b;if(e.src.indexOf("_highlight")==-1)e.src=e.src.substring(0,e.src.indexOf(".gif"))+"_highlight.gif"}}};var ig_O=function(){function a(){if(!(e||c)){c=ig_b;_IG_LoadScript("/ig/ll"+window.location.search,"")}}function b(){f(e,d);d=[]}var c=ig_c,d=[],e=ig_,f=ig_;return{init:function(){},load:function(g,h,j){if(_gel(g))j(h);else{d.push({id:g,args:h,callback:j});if(!c)if(e)b();else{_sendx("/ig/ui?action=lazy&id="+g,ig_,ig_c,ig_);a()}}},loaded:function(g,h){e=g;f=h;c=ig_c;b()},Vb:function(){c=ig_c;d=[];f=e=ig_}}}(),_IG_LL_init=ig_O.init,_IG_LL_load=ig_O.load,_IG_LL_loaded=ig_O.loaded;function ig_Ka(){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_P(){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{x:a,y:b}};var ig_Q=[];function _IG_isModuleInVisibleArea(a){var b=ig_I(),c=ig_Ka().height,d=parseInt(a.style.height,10);a=_findPos(a)[1];return a+d>b&&a<b+c}function _IG_delayLoadGadget(a){ig_Q.push(a)}function _IG_loadDelayLoadGadgets(){for(var a=0;a<ig_Q.length;++a){var b=_gel("remote_iframe_"+ig_Q[a].id);if(b){var c=b.getAttribute("src");if(c==ig_||c=="")b.src=ig_Q[a].base_iframe_url}}};function _IG_MD_Generate(a){var b={t:{},dt:[],m:{},f:{}};ig_La(a,b);ig_Ma(a,b);ig_Na(a,b);if(a.ct!=ig_&&b.t)b.ct=b.t[a.ct];ig_Oa(a,b);return b}function ig_La(a,b){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={}}}function ig_Ma(a,b){if(a.f)for(var c=0;c<a.f.length;++c){var d=a.f[c];b.f[d.n]=d}}function ig_Na(a,b){if(a.m)for(var c=0;c<a.m.length;++c){var d=a.m[c];d.fa||(d.fa={});b.m[d.i]=d;var e=b.t[d.t];if(e)e.m[d.i]=d}}
function ig_Oa(a,b){if(a.dt)for(var c=0;c<a.dt.length;++c)b.dt[c]=b.t[a.dt[c]]};var ig_R;
ig_R||(ig_R=function(){function a(i){return i<10?"0"+i:i}function b(i){e.lastIndex=0;return e.test(i)?'"'+i.replace(e,function(k){var l=h[k];if(typeof l==="string")return l;return"\\u"+("0000"+(+k.charCodeAt(0)).toString(16)).slice(-4)})+'"':'"'+i+'"'}function c(i,k){var l,n,o=f,p,m=k[i];if(m&&typeof m==="object"&&typeof m.toJSON==="function")m=m.toJSON(i);if(typeof j==="function")m=j.call(k,i,m);switch(typeof m){case "string":return b(m);case "number":return isFinite(m)?String(m):"null";case "boolean":case "null":return String(m);
case "object":if(!m)return"null";f+=g;p=[];if(typeof m.length==="number"&&!m.propertyIsEnumerable("length")){n=m.length;for(i=0;i<n;i+=1)p[i]=c(i,m)||"null";k=p.length===0?"[]":f?"[\n"+f+p.join(",\n"+f)+"\n"+o+"]":"["+p.join(",")+"]";f=o;return k}if(j&&typeof j==="object"){n=j.length;for(i=0;i<n;i+=1){l=j[i];if(typeof l==="string")if(k=c(l,m))p.push(b(l)+(f?": ":":")+k)}}else for(l in m)if(Object.hasOwnProperty.call(m,l))if(k=c(l,m))p.push(b(l)+(f?": ":":")+k);k=p.length===0?"{}":f?"{\n"+f+p.join(",\n"+
f)+"\n"+o+"}":"{"+p.join(",")+"}";f=o;return k}}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 d=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
f,g,h={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},j;return{stringify:function(i,k,l){k=k;l=l;var n;g=f="";if(typeof l==="number")for(n=0;n<l;n+=1)g+=" ";else if(typeof l==="string")g=l;if((j=k)&&typeof k!=="function"&&(typeof k!=="object"||typeof k.length!=="number"))ig_a(new Error("JSON.stringify"));return c("",{"":i})},parse:function(i,k){function l(o,p){var m,r,q=o[p];if(q&&typeof q==="object")for(m in q)if(Object.hasOwnProperty.call(q,m)){r=l(q,m);if(r!==
undefined)q[m]=r;else delete q[m]}return n.call(o,p,q)}var n=k;d.lastIndex=0;if(d.test(i))i=i.replace(d,function(o){return"\\u"+("0000"+(+o.charCodeAt(0)).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(i.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){i=eval("("+i+")");return typeof n==="function"?l({"":i},""):i}ig_a(new Error("JSON.parse"))}}}());
ig_R.parse=function(){var a=ig_R.parse;return function(b,c){try{return a(b,c)}catch(d){return ig_c}}}();function ig_Pa(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.pool_locked=a;this.j[this.j.length]=c;b.removeChild(c);return c}
function ig_Qa(a){if(a.match(/^http[s]?:\/\//)){var b=this;window.setTimeout(function(){for(var c=ig_,d=b.j.length-1;d>=0;d--){var e=b.j[d];if(e&&!e.pool_locked){e.parentNode.removeChild(e);if(window.ActiveXObject){b.j[d]=ig_;b.j.splice(d,1)}else{e.pool_locked=ig_b;c=e;break}}}c=c?c:b.xb(ig_b);c.src=a;document.body.appendChild(c)},0)}}function ig_Ra(){for(var a=0;a<this.j.length;a++){this.j[a].onload=ig_;this.j[a]=ig_}this.j.length=0;this.j=[]}
function ig_Sa(){for(var a=0;a<this.j.length;a++){var b=this.j[a];b&&b.parentNode.removeChild(b)}}function ig_Ta(){this.j=[];this.xb=ig_Pa;this.iframe=ig_Qa;this.clear=ig_Ra;this.dispose=ig_Sa}function ig_Ua(a,b){_IFPC.N[a]=b}function ig_Va(a){delete _IFPC.N[a]}
function ig_Wa(a,b,c,d,e,f,g,h){if(!_IFPC.la){var j=4095-d.length;j=parseInt(j/3,10);if(typeof g=="undefined")g=ig_b;if(h){g={s:b,a:c,f:"..",t:window._isk[a.split("_")[2]]};a=[a,"..",_IFPC.da,1,1,encodeURIComponent(ig_R.stringify(g))].join("&");_IFPC.V.iframe(d+"#"+a)}else{c=c.slice(0);c.unshift(_IFPC.Ib(e));c.unshift(f);c.unshift(b);c.unshift(a);b=_IFPC.Xa(c);c=parseInt(b.length/j,10);if(b.length%j>0)c+=1;for(e=0;e<c;e++){f=b.substr(e*j,j);f=[a,_IFPC.da,c,e,f,g];_IFPC.V.iframe(d+"#"+_IFPC.Xa(f))}}_IFPC.da++}}
function ig_Xa(){_IFPC.N={};_IFPC.B={};_IFPC.V.clear()}function ig_Ya(){if(!_IFPC.la){_IFPC.la=ig_b;_IFPC.V.dispose();_IFPC.clear()}}
function ig_S(a){var b=_IFPC.ja(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{b=function(){c._IFPC.handleRequest(a)};window.ActiveXObject?b():c.setTimeout(b,0)}}
function ig_Za(a){a=_IFPC.ja(a);var b=a.shift(),c=a.shift(),d=a.shift(),e=a.shift(),f=a.shift();a=a.shift();b=b+"_"+c;_IFPC.z[b]||(_IFPC.z[b]=[]);_IFPC.z[b].push([e,f]);if(_IFPC.z[b].length==d){_IFPC.z[b].sort(function(h,j){return parseInt(h[0],10)-parseInt(j[0],10)});f="";for(e=0;e<d;e++)f+=_IFPC.z[b][e][1];_IFPC.z[b]=ig_;e=_IFPC.ja(f);b=e.shift();c=e.shift();d=e.shift();f=e.shift();var g=_IFPC.Eb(c);if(g){a=g.apply(ig_,e);if(_IFPC.Gb(f)){a.unshift(f);_IFPC.call(b,_IFPC.Ia,a,d,ig_,"")}}else if(a)ig_a(new Error("Service "+
c+" not registered."))}}function ig__a(a){return _IFPC.N.hasOwnProperty(a)?_IFPC.N[a]:ig_}function ig_0a(a){var b="";if(a&&typeof a=="function"){b=_IFPC.Db();_IFPC.B[b]=a}return b}function ig_1a(a){if(_IFPC.B.hasOwnProperty(a))_IFPC.B[a]=ig_}function ig_2a(a){if(a&&_IFPC.B.hasOwnProperty(a))return _IFPC.B[a];return ig_}function ig_3a(){return _IFPC.Ha+_IFPC.vb++}function ig_4a(a){return(a+"").indexOf(_IFPC.Ha)==0}
function ig_5a(a){a=a.split("&");for(var b=0;b<a.length;b++){var c=decodeURIComponent(a[b]);try{c=ig_R.parse(c)}catch(d){}a[b]=c}return a}function ig_6a(a){for(var b=[],c=0;c<a.length;c++){var d=ig_R.stringify(a[c]);b.push(encodeURIComponent(d))}return b.join("&")}function ig_7a(a){var b=_IFPC.Bb(a);if(b){for(var c=[],d=1;d<arguments.length;d++)c[c.length]=arguments[d];b.apply(ig_,c);_IFPC.Ob(a)}else ig_a(new Error("Invalid callbackId"))}var _IFPC={};
function ig_8a(a){if((a=window._argsUrl&&window._argsUrl(a))&&a.exp_rpc_js==1)window.FLAG_use_rpc_js=ig_b;if(window.FLAG_use_rpc_js){}else{_IFPC={registerService:ig_Ua,unregisterService:ig_Va,call:ig_Wa,clear:ig_Xa,dispose:ig_Ya,relayRequest:ig_S,processRequest:ig_S,handleRequest:ig_Za,Ha:"cbid",Ia:"ifpc_callback",V:new ig_Ta,z:{},N:{},B:{},vb:0,da:0,la:ig_c,Eb:ig__a,Ib:ig_0a,Ob:ig_1a,Bb:ig_2a,Db:ig_3a,Gb:ig_4a,ja:ig_5a,Xa:ig_6a,wb:ig_7a};_IFPC.registerService(_IFPC.Ia,
_IFPC.wb);}}ig_8a(document.location.href);function _IG_Prefs_PrefsData(){}_IG_Prefs_PrefsData.prototype.value=ig_;function _IG_Prefs(a){a=a;if(typeof remote_modules!=="object"){a=(a=_args().mid)?a:0;_IG_Prefs._parseURL(a);_IG_Prefs.W[a]=ig_c}else{if(!a)ig_a(new Error("Module ID is required as first argument to _IG_Prefs() for inlined modules"));_IG_Prefs.W[a]=ig_b}_IG_Prefs.d[_IG_Prefs.q+a]||(_IG_Prefs.d[_IG_Prefs.q+a]={});this.d=_IG_Prefs.d[_IG_Prefs.q+a];this.za=a;this.Ub=/(.*)(\<ph.*?\>\s*(\<ex\>(.*?)\<\/ex\>)?\s*%1\s*\<\/ph\>)(.*)/}
_IG_Prefs.prototype.U=function(a,b){if(b==undefined)b=ig_;a=this.d[a];if(a==undefined)return b;a=a.value;return a!=undefined?a:b};_IG_Prefs.prototype.T=function(a,b){return this.U(_IG_Prefs.h+a,b)};_IG_Prefs.prototype.v=function(a){var b="";a=this.T(a,b);return a!=ig_?a+"":b};_IG_Prefs.prototype.qa=function(a){var b=0;a=parseInt(this.T(a,b),10);return isNaN(a)?b:a};_IG_Prefs.prototype.oa=function(a){a=this.v(a);return a==="true"||!!parseInt(a,10)};
_IG_Prefs.prototype.na=function(a){return _IG_Prefs._strToArray(this.T(a,""))};_IG_Prefs.prototype.Fa=function(a,b){this.set(a,_IG_Prefs._arrayToStr(b))};_IG_Prefs.prototype.pa=function(){return this.v(".country")};_IG_Prefs.prototype.ra=function(){return this.v(".lang")};_IG_Prefs.prototype.sa=function(a){return this.U(_IG_Prefs.La+a,"")+""};
_IG_Prefs.prototype.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.h+d,f=arguments[c*2+1]+"";this.nb(e,f)&&b.push(d,f)}if(b.length!=0)_IG_Prefs.W[this.za]?_IG_Prefs._setP(this.za,b):_IFPC_SetPref(b)}};
function ig_9a(a){var b="todos",c=_ig_gmid_(a);b=(new _IG_Prefs(Number(c))).v(b);if(navigator.userAgent.indexOf("MSIE")!=-1&&b.length>1E3){c=Math.ceil(b.length/1E3);for(var d=0;d<c;d++){var e=b.substr(d*1E3,1E3);ig_$a(a,e,d,c)}}else ig_$a(a,b)}function ig_$a(a,b,c,d){var e=_ig_gmid_(a);b=[b];d&&b.push(c,d);_IFPC.call(a,"populate_todos_pref",b,window._ifpc_relay_url[e],ig_,"http://"+window.location.host+"/ig/images/rpc_relay.html",ig_b,ig_b)}
window._IG_CONTAINER&&_IFPC.registerService("get_todos_pref_for_migration",ig_9a);_IG_Prefs.prototype.ta=function(){var a=["__module_id__="+this.za];for(var b in this.d)a.push(encodeURIComponent(b)+"="+encodeURIComponent(this.d[b].value));return a.join("&")};_IG_Prefs.prototype.dump=function(){document.write("<pre>");for(var a in this.d)document.writeln(a+" = "+this.U(a,ig_));document.write("</pre>")};
_IG_Prefs.prototype.nb=function(a,b){var c=this.d[a];if(c&&c.value===b)return ig_c;if(c)c.value=b;else{c=new _IG_Prefs_PrefsData;c.value=b;this.d[a]=c}return ig_b};_IG_Prefs.W={};_IG_Prefs.d={};_IG_Prefs.q="m_";_IG_Prefs.h="up_";_IG_Prefs.qb="up_";_IG_Prefs.La="msg_";_IG_Prefs.ba={};_IG_Prefs.ba[_IG_Prefs.qb]="value";_IG_Prefs.Rb=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.W[a]=ig_c;for(var b={},c=ig_e(),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," ");e=c[d].substring(e+1);e=e.replace(/\+/g," ");e=_unesc(e);var g=ig_c;for(var h in _IG_Prefs.ba)if(f.indexOf(h)===0){g=ig_b;f=f.substring(h.length);f=_IG_Prefs.h+f;b[f]=b[f]?b[f]:new _IG_Prefs_PrefsData;if(h===_IG_Prefs.Qb||h===_IG_Prefs.Pb)e=e=="true";b[f][_IG_Prefs.ba[h]]=e;break}if(!g)if(f.indexOf(_IG_Prefs.La)===0)_IG_Prefs._add(a,
f,e);else if(f===".lang"||f===".country")_IG_Prefs._add(a,_IG_Prefs.h+f,e)}}if(window.IDIModule){b=window.IDIModule.getPrefs();for(d in b)_IG_Prefs._add(a,d,b[d])}else for(f in b)_IG_Prefs._add(a,f,b[f].value)};_IG_Prefs._add=function(a,b,c){a=_IG_Prefs.q+a;if(typeof _IG_Prefs.d[a]!=="object")_IG_Prefs.d[a]={};if(typeof _IG_Prefs.d[a][b]!=="object"){_IG_Prefs.d[a][b]=new _IG_Prefs_PrefsData;b=_IG_Prefs.d[a][b];b.value=c}};
_IG_Prefs.Kb=function(a,b,c){var d=_IG_Prefs.q+a;if(typeof _IG_Prefs.d[d]!=="object")_IG_Prefs._add(a,b,c);else if(typeof _IG_Prefs.d[d][b]!=="object")_IG_Prefs.d[d][b]=new _IG_Prefs_PrefsData;a=_IG_Prefs.d[d][b];a.value=c};_IG_Prefs._addAll=function(a,b){for(var c=0;c<b.length;++c)_IG_Prefs._add(a,b[c][0],b[c][1])};_IG_Prefs._arrayToStr=function(a){var b=a.length&&a.join;if(b){b=[];for(var c=0;c<a.length;++c)b.push(a[c].replace(/\|/g,"%7C"));return b.join("|")}else return a};
_IG_Prefs._strToArray=function(a){a=a.length>0?a.split("|"):[];for(var b=0;b<a.length;++b)a[b]=a[b].replace(/%7C/g,"|");return a};
_IG_Prefs._updatePrefsInUrl=function(a,b){a=_IG_Prefs.q+a;a=_IG_Prefs.d[a];if(a==ig_)return b;b=b.split("#");var c=b[0].split("?"),d=c;if(b.length>1&&("&"+b[1]).indexOf("&"+_IG_Prefs.h)!==-1&&(c.length===1||("&"+c[1]).indexOf("&"+_IG_Prefs.h)===-1))d=b;var e=[];if(d.length>1&&d[1].length!==0)e=d[1].split("&");for(var f=0;f<e.length;++f)e[f].indexOf(_IG_Prefs.h)===0&&e.splice(f--,1);for(var g in a)g.indexOf(_IG_Prefs.h)!==0||g.indexOf(_IG_Prefs.h+".lang")===0||g.indexOf(_IG_Prefs.h+".country")===0||
g.indexOf(_IG_Prefs.h+"synd")===0||e.push(_esc(g)+"="+_esc(a[g].value));d[1]=e.join("&");b[0]=c.join("?");return b.join("#")};_IG_Prefs._setPrefs=function(a,b){for(var c=Math.floor(b.length/2),d=0;d<c;++d){var e=_IG_Prefs.h+b[d*2],f=b[d*2+1];_IG_Prefs.Kb(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.h+b[e*2],g=b[e*2+1];d.push(_IG_Prefs.q+a+"_"+f+"="+_esc(g))}d.length!==0&&_xsetp(d.join("&"))}};
_exportClass("google.gadgets","Prefs",_IG_Prefs,["getString",_IG_Prefs.prototype.v,"getInt",_IG_Prefs.prototype.qa,"getBool",_IG_Prefs.prototype.oa,"getArray",_IG_Prefs.prototype.na,"setArray",_IG_Prefs.prototype.Fa,"getLang",_IG_Prefs.prototype.ra,"getCountry",_IG_Prefs.prototype.pa,"getMsg",_IG_Prefs.prototype.sa,"getPreloadedString",_IG_Prefs.prototype.ta,"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_ab(e,f,g,c);else{var h=_IG_FR_getFeed(a);if(!h.has_entries&&!h.is_fetching){h.is_fetching=ig_b;_IG_FetchFeedAsJSON(h.url,_IG_Callback(ig_bb,a,b,c,d),h.num_items+15,ig_b)}else{for(var j=0;j<h.num_items;++j){var i=_gel("ftl_"+a+"_"+j);i&&ig_ab(_gel("ft_"+a+"_"+j),_gel("fb_"+a+"_"+j),i,c)}ig_cb(a,b,e,f,g,d);if(f.style.maxHeight&&parseInt(f.style.maxHeight,
10)<ig_db(g.offsetWidth,f))f.style.height=f.style.maxHeight}}}function ig_bb(a,b,c,d,e){var f=_IG_FR_getFeed(b);f.is_fetching=ig_c;if(a&&a.Entry){for(var g=0;g<a.Entry.length;g++)if(a.Entry[g].ID!="no_id"){var h=_gel("fb_"+b+"_"+a.Entry[g].ID);if(h)h.innerHTML=a.Entry[g].Summary}f.has_entries=ig_b;_IG_FR_toggle(b,c,d,e)}}function ig_T(a){return a.className.match(/reverse_directionality$/)=="reverse_directionality"}
function ig_ab(a,b,c,d){a.className=ig_T(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_T(a)?"uftl_reverse_directionality":"uftl"}
function ig_cb(a,b,c,d,e,f){c.className=ig_T(c)?"fminbox_reverse_directionality":"fminbox";c.title=f;if(_old_html||_use_old_feed_styles)c.className="fbox fminbox";d.style.display="block";d.style.maxHeight=d.offsetWidth*1.5+"px";e.className=ig_T(c)?"sftl_reverse_directionality":"sftl";window._IG_FRUC_setFeedAsRead&&window._IG_FRUC_setFeedAsRead(a,b)}
function ig_db(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);a=c.clientHeight;document.body.removeChild(c);return a}function _IG_RegisterContainerScrollHandler(a){if(navigator.userAgent.indexOf("Firefox")>=0)window.addEventListener("scroll",a,ig_c);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_eb(a){var b=_gel("hl");b=b?b.value:"en";return"/reader/ig/feed/"+_esc(_IG_FR_getFeed(a).url)+"?hl="+b}function ig_fb(a,b){if(window._max_strategies){b=ig_eb(a)+(b?"&i="+b:"");window._max_strategies[a]._updateIframeSrc(b)}}function _IG_FR_maxModule(a,b,c){ig_fb(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_eb(a),ig_,_IG_isIE())});_IG_AddModuleEventHandler(a,"unmaximize",function(){ig_fb(a)})}var _IG_FR_listOfFeeds=[];function ig_gb(a,b,c,d){if(!a||a==""||a.length<=27||a.charAt(27)!="{")c(d?ig_:"");else{a=eval("("+a.substring(27)+")");if(b in a){b=a[b].body;c(d?ig_U(b):b)}}}function ig_hb(a){var b;if(window.ActiveXObject){b=new ActiveXObject("Microsoft.XMLDOM");b.async=ig_c;b.validateOnParse=ig_c;b.resolveExternals=ig_c;b.loadXML(a)}else{b=new DOMParser;b=b.parseFromString(a,"text/xml")}return b}
function ig_U(a){var b=ig_hb(a),c=b.documentElement;if(c&&c.nodeName=="parsererror"||navigator.userAgent.indexOf("Safari")>=0&&_gelstn("parsererror",b)[0])return a;return b}var ig_ib=(new Date).getTime();
function ig_jb(a){if(!a.post_data&&!a.headers&&window._pl_data&&_pl_data[a.url]&&!(!isNaN(a.refreshInterval)&&a.refreshInterval>=0&&(new Date).getTime()>ig_ib+a.refreshInterval*1E3))if(a.asXml){var b=ig_U(_pl_data[a.url]);a.callback(b)}else a.callback(_pl_data[a.url]);else{b="/ig/jsonp?";if(_et!="")b+="et="+_et+"&";if(!isNaN(a.refreshInterval)&&a.refreshInterval>=0)b=_appendMaxAgeParameter(b,a.refreshInterval);if(a.encoding)b+="enc="+_esc(a.encoding)+"&";if(a.headers){for(var c=[],d=0;d<a.headers.length;d++)c.push(_esc(a.headers[d][0]+
":"+a.headers[d][1]));b+="hdrs="+_esc(c.join(","))+"&"}b+="url="+_esc(a.url);_sendx(b,function(e){ig_gb(e,a.url,a.callback,a.asXml)},ig_c,a.post_data)}}function ig_kb(a){var b={};for(var c in a)b[c]=a[c];return b}function _IG_FetchContent(a,b,c){c=c!=ig_&&typeof c=="object"?ig_kb(c):{};c.url=a;c.callback=b;c.asXml=ig_c;ig_jb(c)}function _IG_FetchXmlContent(a,b,c){c=c!=ig_&&typeof c=="object"?ig_kb(c):{};c.url=a;c.callback=b;c.asXml=ig_b;ig_jb(c)}
function ig_lb(a,b,c){_IG_FetchContent(a,function(d){if(d){d=ig_U(d);if(typeof d=="object"&&d.firstChild){var e=d.firstChild;e.nodeType==7&&e.nodeName=="xml"&&d.removeChild(e);b(d);return}}b(ig_)},c)}function ig_mb(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){d=e[g]?e[g]:ig_;b[g](d)}b=ig_},ig_c,a)}var ig_nb=ig_c,ig_ob=0,ig_V="",ig_W={};
function _IG_FetchFeedAsJSON(a,b,c,d,e){if(typeof e!="object")e={};var f="fr_"+ig_ob++;a="url="+_esc(a);if(!isNaN(e.refreshInterval)&&e.refreshInterval>=0)a=_appendMaxAgeParameter(a,e.refreshInterval);if(c)a+="&val="+_esc(c);if(d)a+="&sum=1";c=f+"="+_esc(a);if(ig_nb){d={};d[f]=b;ig_mb(c,d)}else{if(ig_V!="")ig_V+="&";ig_V+=c;ig_W[f]=b}}function ig_pb(){ig_nb=ig_b;ig_V!=""&&ig_mb(ig_V,ig_W);ig_V="";ig_W=ig_}_IG_AddEventHandler("domload",ig_pb);
_exportSymbols("google.gadgets.Fetchers",["getContent",_IG_FetchContent,"getXMLContent",ig_lb,"getFeedAsJSON",_IG_FetchFeedAsJSON]);function ig_qb(a,b,c){var d=ig_y("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_X(e)}):ig_X(e))}}
function ig_X(a,b){b=b||121;var c=a.title;if(!(a.offsetWidth<=b)){var d=0,e=c.length,f,g=c.match(/\(\d+\)$/);if(g=g?g[0]:""){g=" "+g;e=c.length-g.length;f=5*g.length;if(f>b>>1)g=""}for(;f=e-d>>1;){f=d+f;a.innerHTML=ig_rb(c,f,g);if(a.offsetWidth>b)e=f;else d=f}a.innerHTML=ig_rb(c,d,g)}}function ig_rb(a,b,c){a=[a.substring(0,b),"..."];c&&a.push(c);return _hesc(a.join(""))}function ig_Y(a){return typeof a=="undefined"||!a||a=="undefined"}function ig_sb(a,b){ig_Y(a)||ig_qb(b,_ig_gmid_(a))}
_IFPC.registerService("set_title",ig_sb);function _IG_SetTitle(a,b,c){if(ig_Y(b))ig_a(new Error("Inline modules must specify their __MODULE_ID__ when using _IG_SetTitle"));else ig_qb(a,b,c)}
function _IG_SetTitleDir(a,b){if(ig_Y(b))ig_a(new Error("Inline modules must specify their __MODULE_ID__ when using _IG_SetTitleDir"));else{var c=ig_y("m",b);if(c)if(a)c.ti_dir=a;else delete c.ti_dir;if(c=_gel("m_"+b+"_title"))a?c.setAttribute("dir",a):c.removeAttribute("dir");if(c=_gel("left_nav_m_"+b+"_title"))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(a=0;a<b.length;++a){var c=b[a];(c=c.firstChild)&&ig_X(c)}for(a=0;a<_IG_MD.dt.length;++a)if(c=_gel("tab"+_IG_MD.dt[a].i+"_view_title")){b=c.className=="selected_tab_view_title"?80:100;(c=c.firstChild)&&ig_X(c,b)}})};var ig_Z={X:"javascript:void(0);",zb:{u:"",ti:"",mt:""},gmc:function(a,b){return[IG_MSGS.GMC,ig_q(IG_URLS.gmc,["moduleurl="+_esc(b.u),"mid="+a]),ig_]},gmp:function(a){return[IG_MSGS.GMP,ig_q(IG_URLS.gmp,["mid="+a]),ig_]},gmi:function(a,b){return[IG_MSGS.GMI,ig_q(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_Z.X,ig_N(_edit,a,c)]},Va:function(a,b,c){a=ig_N(_confirmDel,a,b.mt,"n_"+
b.mt+"="+_esc("url="+_esc(b.u)),c.replace("MODULE_TITLE",_bidi_unicode_wrap(b.ti,b.ti_dir)));return[IG_MSGS.DEL,ig_Z.X,a]},del:function(a,b){return ig_Z.Va(a,b,IG_MSGS.DEL_CONFIRM)},del2:function(a,b){return ig_Z.Va(a,b,IG_MSGS.DEL_CONFIRM2)},ming:function(a,b){return[IG_MSGS.MING,ig_Z.X,ig_N(_zm,a,b.mt),undefined,"zip"]},maxg:function(a,b){a=ig_Z.ming(a,b);a[0]=IG_MSGS.MAXG;return a},shg:function(a,b){var c=ig_N(_share_this_gadget,IG_MSGS.SHG,ig_q(IG_URLS.sgu,["moduleurl="+_esc(b.u),"mid="+a,"source=share_gadget"]),
a);return[_hesc(IG_MSGS.SHG),"#",function(){c();return ig_c}]},osShare:function(a,b){var c=function(){_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_Z.X,c]},Lb:/^http:\/\//,lb:function(a){return _esc(a.replace(ig_Z.Lb,""))},rg:function(a,b){return ig_Z.rgv1(a,b).concat("dd_separator")},rgv1:function(a,b){return[IG_MSGS.RG,ig_q(IG_URLS.dir,["recommend="+ig_Z.lb(b.u)]),ig_]},ag:function(a,
b){return[IG_MSGS.AG,ig_q(IG_URLS.dir,["url="+ig_Z.lb(b.u)]),ig_]}};_exportSymbols("",["_IG_DDI",ig_Z]);var ig__,ig_0,ig_1={};function _IG_AddDropDownEventHandler(a,b){ig_1[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);a=document.createElement("div");a.id="IG_DD_div";a.className="dd_layer_hidden";a.onclick=_IG_DD_hide;document.body.insertBefore(a,document.body.firstChild)}
function _IG_DD_create(a,b){if(!b){b=[];for(var c=ig_y("m",a,"dd"),d=0;d<c.length;++d)b[d]=ig_Z[c[d]]}c=document.createElement("div");c.setAttribute("id","DD_"+a);c.className="dd dd_border";c.style.display="none";c.onkeydown=_IG_DD_keys;d=0;for(var e;e=b[d];d++){var f=e;if(typeof e=="function")f=e(a,ig_y("m",a)||ig_Z.zb);f[3]&&c.appendChild(ig_tb(f[3]));e=undefined;if(f[4])e="DD_"+a+"_"+f[4];c.appendChild(_IG_DD_add(f[0],f[1],f[2],d,e))}_gel("IG_DD_div").appendChild(c)}
function _IG_DD_add(a,b,c,d,e){b=b||"javascript:void(0)";var f=document.createElement("div"),g="";if(typeof c=="string"&&c!="")g=' onclick="'+c+'"';f.innerHTML='<a href="'+b+'"'+g+">"+a+"</a>";a=f.firstChild;if(typeof c=="string"&&c!="")c=a.onclick;if(c)a.onclick=function(h){c(h);_IG_DD_hide();return ig_c};a.className=d==0?"dd_item dd_item_first":"dd_item";a.onblur=function(){ig_0=ig_c;return ig_b};a.onmouseover=function(){return _IG_DD_select(this)};if(e)a.id=e;return a}
function ig_tb(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){a=_gel("DD_"+b);if(!a){_IG_DD_create(b);a=_gel("DD_"+b)}if(a.style.display=="none"){ig__=b;var c=_gel("IG_DD_div");c.className="dd_layer";_IG_AddEventHandler("resize",_IG_DD_position);_IG_DD_position();ig_0=ig_c;if(a.hasChildNodes()){a=a.firstChild;if(a.tagName!="A")a=a.nextSibling;_IG_DD_select(a)}b=_gel("DD_tg_"+b);b.className+=" ddbox_sel";(b=ig_1[ig__])&&b(ig_b)}}
function _IG_DD_position(){var a=_gel("DD_"+ig__),b=_gel("DD_tg_"+ig__),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";b=_gel("IG_DD_iframe_cover");b.style.left=a.style.left;b.style.top=a.style.top;b.style.width=a.offsetWidth+"px";b.style.height=a.offsetHeight+"px";b.style.display="block";c.style.height=
ig_H()+"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__){var b=_gel("DD_"+ig__);b.style.display="none";_gel("IG_DD_iframe_cover").style.display="none";b=_gel("DD_tg_"+ig__);b.className=b.className.replace(/ ddbox_sel/,"");(b=ig_1[ig__])&&b(ig_c);if(ig_0)(b=_gel("DD_tg_"+ig__))&&b.focus();ig_0=ig_c;ig__=ig_}a.className="dd_layer_hidden"}_IG_DD_select(ig_)}
function _IG_DD_gcn(a,b,c){c=new RegExp("(^| )"+c+"( |$)");a=_gelstn(b,a);b=[];for(var d=0,e;e=a[d];d++)c.test(e.className)&&b.push(e);return b}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.")ig_a(e)}a.className+=" dd_sel"}}
function _IG_DD_keys(a){function b(e,f){var g=e;do{g=f?g.nextSibling:g.previousSibling;if(!g){g=e.parentNode;g=f?g.firstChild:g.lastChild}}while(g!=e&&g.tagName!="A");return g}var c=ig_b,d=_IG_DD_gcn(_gel("IG_DD_div"),"a","dd_sel");if(d==ig_||d.length!=1)return ig_b;d=d[0];if(!a)a=window.event;a=a.keyCode||a.charCode||a.which;switch(a){case 13:ig_0=ig_b;break;case 38:_IG_DD_select(b(d,ig_c));c=ig_c;break;case 40:_IG_DD_select(b(d,ig_b));c=ig_c;break;case 27:case 9:ig_0=ig_b;c=ig__==ig_&&a==9;_IG_DD_hide();
break}return c};var ig_2={obj:ig_,init:function(a,b){a.onmousedown=ig_2.start;a.obj=b;if(isNaN(parseInt(b.style.left,10)))b.style.left="0px";if(isNaN(parseInt(b.style.top,10)))b.style.top="0px";b.onDragStart=new Function;b.onDragEnd=new Function;b.onDrag=new Function},uninit:function(a,b){window.clearInterval(b.jb);a.onmousedown=ig_;a.obj=ig_;b.onDragStart=ig_;b.onDragEnd=ig_;b.onDrag=ig_},start:function(a){var b=ig_2.obj=this.obj;a=ig_2.fixE(a);if(a.which!=1)return ig_b;b.onDragStart(a);var c=a.clientY;ig_3.bb||
(c+=document.body.scrollTop);b.lastMouseX=a.clientX;b.lastMouseY=c;b.offsetMouseX=parseInt(b.style.left,10)-a.clientX;b.offsetMouseY=parseInt(b.style.top,10)-c;b.jb=window.setInterval(ig_ub(b,document.body.scrollHeight>document.documentElement.clientHeight?document.body.scrollHeight:document.documentElement.clientHeight),10);document.onmouseup=ig_2.end;document.onmousemove=ig_2.drag;return ig_c},drag:function(a){a=ig_2.fixE(a);if(a.which==0)return ig_2.end();var b=ig_2.obj,c=a.clientY;ig_3.bb||(c+=
document.body.scrollTop);a=a.clientX;if(b.lastMouseX==a&&b.lastMouseY==c)return ig_c;var d=a+b.offsetMouseX,e=c+b.offsetMouseY;b.style.left=d+"px";b.style.top=e+"px";b.lastMouseX=a;b.lastMouseY=c;b.onDrag(d,e);return ig_c},end:function(){document.onmousemove=ig_;document.onmouseup=ig_;window.clearInterval(ig_2.obj.jb);var a=ig_2.obj.onDragEnd();ig_2.obj=ig_;return a},fixE: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_vb(a,b,c){if(!a)return[];a=b=="*"&&a.all?a.all:_gelstn(b,a);b=[];c=c.replace(/\-/g,"\\-");c=new RegExp("(^|\\s)"+c+"(\\s|$)");for(var d,e=0;e<a.length;e++){d=a[e];c.test(d.className)&&b.push(d)}return b}
var _IG_initDrag=function(a,b){ig_3.P=a;ig_3.Z=b;ig_3.D=ig_vb(ig_3.P,"div","yui-u");if(_old_html){ig_3.ib=ig_3.P.tBodies[0].rows[0];ig_3.D=ig_3.ib.cells}ig_3.k=[];for(b=a=0;b<ig_3.D.length;b++){var c=ig_3.D[b];if(!(c.className.indexOf("ig_dnd_fixed_col")!=-1||c.style.display=="none"))for(var d=0;d<c.childNodes.length;d++){var e=c.childNodes[d];if(e.tagName=="DIV"){ig_3.k[a]=e.className!="dm"?new ig_wb(e):new ig_xb(e);a++}}}_IG_AddEventHandler("unload",ig_yb)};
function ig_yb(){if(ig_3.k)for(var a=0;a<ig_3.k.length;a++){ig_3.k[a].Wa();ig_3.k[a]=ig_}ig_3.k=ig_;ig_3.D=ig_;if(_old_html)ig_3.ib=ig_;ig_3.P=ig_}var ig_3={};ig_3.Ga=navigator.userAgent;ig_3.ab=ig_3.Ga.indexOf("Gecko")!=-1;ig_3.ya=ig_3.Ga.indexOf("Opera")!=-1;ig_3.bb=ig_3.Ga.indexOf("Safari")!=-1;ig_3.Na="IG_pageDivMaskId";ig_3.Ma="IG_moduleDivMaskId";ig_3.Sb=function(){ig_3.P.style.display="none"};ig_3.Tb=function(){ig_3.P.style.display=""};ig_3.A=ig_;
ig_3.R=function(){if(!ig_3.A){ig_3.A=document.createElement("DIV");ig_3.A.className="modbox";ig_3.A.backgroundColor="";ig_3.A.style.border="2px dashed #aaa";ig_3.A.innerHTML="&nbsp;"}return ig_3.A};ig_3.C=function(a,b){return function(){return a[b].apply(a,arguments)}};
ig_3.Ya=function(){var a=[];if(ig_3.Z){var b;b=_old_html?ig_3.Z.tBodies[0].rows[0].cells:_gelstn("LI",ig_3.Z);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_3.Z);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_3.ub=function(){for(var a=ig_3.Ya(),b=0;b<a.length;b++){var c=a[b];c.isDraggableTo=ig_b;c.pagePosLeft=ig_3.G(c,ig_b);c.pagePosRight=c.pagePosLeft+c.offsetWidth;c.pagePosTop=ig_3.G(c,ig_c);c.pagePosBottom=c.pagePosTop+c.offsetHeight}};ig_3.tb=function(a){for(var b=0;b<ig_3.k.length;b++){var c=ig_3.k[b];c.b.pagePosLeft=ig_3.G(c.b,ig_b);c.b.pagePosTop=ig_3.G(c.b,ig_c)}for(b=a.b.nextSibling;b;){b.pagePosTop-=a.b.offsetHeight;b=b.nextSibling}};
ig_3.G=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_3.rb=function(a){ig_3.hb();var b=document.createElement("DIV");b.id=ig_3.Na;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.Za){b=b.cloneNode(ig_b);b.id=ig_3.Ma;b.style.height=a.b.offsetHeight-a.o.offsetHeight+"px";b.style.top=a.o.offsetHeight+"px";a.b.appendChild(b)}};
ig_3.hb=function(){for(var a=[ig_3.Ma,ig_3.Na],b=0;b<a.length;b++){var c=_gel(a[b]);c&&c.parentNode.removeChild(c)}};ig_3.Jb=function(){for(var a="",b=0;b<ig_3.D.length;b++)for(var c=ig_3.D[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_xb(a){this.Wa=ig_zb;this.b=a;this.b.innerHTML="<br />"}function ig_zb(){this.b=ig_}
function ig_wb(a){this._urlMouseUp=ig_Ab;this._urlMouseDown=ig_Bb;this._urlClick=ig_Cb;this._dragStart=ig_Db;this._drag=ig_Eb;this._dragEnd=ig_Fb;this.Ab=ig_Gb;this.aa=ig_Hb;this.Wa=ig_Ib;this.J=ig_c;this.b=a;this.o=_gel(a.id+"_h");this.g=_gel(a.id+"_url");this.Za=_gelstn("IFRAME",this.b).length>0;this.b.DND_Module=this;if(this.o){this.o.style.cursor="move";ig_2.init(this.o,this.b);this.b.onDragStart=ig_3.C(this,"_dragStart");this.b.onDrag=ig_3.C(this,"_drag");this.b.onDragEnd=ig_3.C(this,"_dragEnd");
if(this.g){this.g.style.cursor="pointer";if(ig_3.ab){this.g.onmousedown=ig_3.C(this,"_urlMouseDown");this.g.onclick=ig_3.C(this,"_urlClick")}else this.g.onmouseup=ig_3.C(this,"_urlMouseUp")}}}function ig_Ib(){if(this.o){if(this.g){this.g.onclick=ig_;this.g=this.g.onmouseup=ig_}ig_2.uninit(this.o,this.b);this.b.onDragStart=ig_;this.b.onDrag=ig_;this.o=this.b.onDragEnd=ig_}this.b=ig_}
function ig_Ab(a){a=ig_2.fixE(a);if(this.J||!this.g||!this.g.href||a.which!=1)return ig_b;this.aa("titleclick");if(this.g.target||a.shiftKey)window.open(this.g.href,this.g.target);else document.location=this.g.href;return ig_c}function ig_Bb(a){a=ig_2.fixE(a);a.stopPropagation();return ig_b}function ig_Cb(){if(!this.J&&this.g&&this.g.href){this.aa("titleclick");return ig_b}return ig_c}
function ig_Db(){ig_3.tb(this);ig_3.ub();this.origNextSibling=this.b.nextSibling;var a=ig_3.R(),b=this.b.offsetHeight;b-=parseInt(a.style.borderTopWidth,10)*2;var c=this.b.offsetWidth,d=ig_3.G(this.b,ig_b),e=ig_3.G(this.b,ig_c);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=1E4;this.b.style.left=d+"px";this.b.style.top=e+"px";ig_3.rb(this);return this.J=ig_c}
function ig_Eb(a,b){if(!this.J){this.b.style.filter="alpha(opacity=50)";this.b.style.opacity=0.5;this.J=ig_b;this.aa("dragstart")}for(var c=ig_,d=1E8,e=0;e<ig_3.k.length;e++){var f=ig_3.k[e],g=a;if(document.body.dir=="rtl"&&f.b.offsetWidth==1)g+=this.b.offsetWidth;g=Math.sqrt(Math.pow(g-f.b.pagePosLeft,2)+Math.pow(b-f.b.pagePosTop,2));if(f!=this)if(!isNaN(g))if(g<d){d=g;c=f}}this.w=ig_;a=ig_3.Ya();for(e=0;e<a.length;e++){f=a[e];if(f.isDraggableTo){b=ig_P();if(this.b.lastMouseX>=f.pagePosLeft&&this.b.lastMouseX<=
f.pagePosRight&&this.b.lastMouseY+b.y>=f.pagePosTop&&this.b.lastMouseY+b.y<=f.pagePosBottom){this.w=f;e=ig_3.R();e.parentNode!=ig_&&e.parentNode.removeChild(e);break}}}for(e=0;e<a.length;e++){f=a[e];if(f.id.indexOf("view")>=0||f.id.indexOf("contents")>=0)if(f==this.w){if(f.className.indexOf(" tab_hover")<0)f.className+=" tab_hover"}else f.className=f.className.replace(/ tab_hover/g,"")}e=ig_3.R();if(this.w==ig_&&c!=ig_&&e.nextSibling!=c.b){c.b.parentNode.insertBefore(e,c.b);if(ig_3.ya){document.body.style.display=
"none";document.body.style.display=""}}}
function ig_Fb(){ig_3.hb();this.Ab()&&ig_3.Jb();if(this.w){var a=this.w.id.match(/.*?(\d+).*/)[1],b=this.b.id.match(/m_(\d+)/)[1];_xsetp("mt="+b+":"+a);this.b.style.display="none";this.w.className=this.w.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.J&&this.aa("dragend");return ig_b}
function _hideNewUserTip(){var a=_gel("new_user_tip");if(a)a.style.display="none"}
function ig_Gb(){var a=ig_c;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_3.R();if(b.parentNode!=ig_){if(b.nextSibling!=this.origNextSibling){b.parentNode.insertBefore(this.b,b.nextSibling);a=ig_b}b.parentNode.removeChild(b)}if(ig_3.ya){document.body.style.display="none";document.body.style.display=""}if(a&&this.Za&&(ig_3.ab||ig_3.ya)){b=_gelstn("IFRAME",this.b)[0];var c=this.b.id.substring(2);c=_IG_Prefs._updatePrefsInUrl(c,
b.src);if(b.src!=c)b.src=c}return a}function ig_Hb(a){switch(a){case "titleclick":_IG_TriggerModuleEvent(this.b.id,a,this.g.href);_IG_TriggerEvent("module"+a,this.b.id,this.g.href);break;case "dragstart":case "dragend":_IG_TriggerDelayedModuleEvent(this.b.id,a);_IG_TriggerDelayedEvent("module"+a,this.b.id);break}}
function ig_ub(a,b){return function(){var c=ig_Jb(),d=ig_P(),e=d.y,f=4,g=0.05*c,h=e;d=a.offsetTop;if(a.lastMouseY<=g){d=a.offsetTop-f;h=e-f}else if(a.lastMouseY>=c-g){d=Math.min(b-a.offsetHeight,a.offsetTop+f);h=Math.min(b-c,e+f)}c=h-e;if(c!=0){window.scrollBy(0,c);a.style.top=d+"px"}}}
function ig_Jb(){var a;a=window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.offsetHeight;if(a<document.body.clientHeight)return a;return document.body.clientHeight}_IG_AddCustomEventHandler("initdrag",function(a,b){_IG_initDrag(a,b)});_exportSymbols("",["IG_DND",ig_3]);window._IG_PU=function(){function a(d){if(!arguments.callee.calledOnce){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.calledOnce=ig_b}return _gel(d)}var b=ig_b,c;return{open:function(d,e,f,g,h){b=typeof e=="string";var j=a("IG_PU_box");if(j&&j.style.display=="none"){f||(f=[_IG_PU_MakeDialogButton("Save"),_IG_PU_MakeDialogButton("Cancel")]);
d=['<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>',b?e:"",ig_Kb(f),"</div></td></tr></table>"].join("");ig_Lb(d,g,b?ig_:e,h)}},openUrl:function(d,e,f,g,h,j,i){d=_IG_PU_createSimpleTitle(d)+(e||"");f=['<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_Kb(h,"colored_background")].join("");window._IG_PU.open(d,f,[],j,i)},hide:function(d){var e=_gel("button_"+d);if(!(e&&e.firstChild&&e.firstChild.disabled)){a("IG_PU_box").style.display="none";a("IG_PU_iframe_cover").style.display="none";e=a("IG_PU_bg");e.onclick="";e.style.height="";e.style.width="";if(!b){e=_gel("dialogcontent").firstChild;d!=_DI_button_type.OK&&e.nodeName=="FORM"&&e.reset();setTimeout(function(){var g=_gel("popup_box_placeholder");g.parentNode.insertBefore(_gel("dialogcontent").firstChild,
g);g.parentNode.removeChild(g)},1E3)}var f=(e=_gel("popup_iframe"))&&e.contentWindow.getPopupData?e.contentWindow.getPopupData():ig_;_IG_RemoveEventHandler("resize",e?_ResizeIframeHeight:ig_4);_IG_RemoveDOMEventHandler(window,"scroll",ig_4);c(d,f)}},createSimpleTitle: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("")},findFocusable: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_Mb(d,"href"))return d;if(d.nodeType==1&&ig_Mb(d,"tabindex")&&d.tabIndex!=-1)return d}}if(!d.hasChildNodes())return ig_;d=d.childNodes;if(e){g=0;for(var h;h=d[g];g++)if(h=ig_5(h,e,f))return h}else for(g=d.length-1;h=d[g];g--)if(h=ig_5(h,e,f))return h;return ig_},makeDialogButton:function(d,e,f,g){var h=["<input type=button"];e&&h.push(' id="'+e+'"');f&&h.push(' class="'+f+'"');g&&h.push(' onclick="'+
g+'"');h.push(' value="',d,'"></input>');return h.join("")},disableHideForButton:function(d){if(d=_gel("button_"+d))d.onclick=function(){}},createSimpleInputBox: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("")},
hasAttr:function(d,e){if(d.getAttributeNode)return(d=d.getAttributeNode(e))?d.specified:ig_c;return d.getAttribute(e)!=ig_},limitFocus:function(d){d=d||window.event;var e=d.target||d.srcElement,f=d.keyCode||d.charCode||d.which;if(f==9){f=ig_5(this,ig_b,ig_c);if(!f)return ig_b;var g=ig_5(this,ig_c,ig_c);if(e==f&&d.shiftKey&&!(d.ctrlKey||d.altKey)){g.focus();return ig_c}else if(e==g&&!(d.shiftKey||d.ctrlKey||d.altKey)){f.focus();return ig_c}}return ig_b},buildButtons: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(e=0;e<d.length;++e){f.push("<td align=center>");f.push('<span id="button_',e,'" ');f.push('onclick="_IG_PU_hide(',e,')">');f.push(d[e]);f.push("</span>");f.push("</td>")}f.push("</tr></table></div></div>");return f.join("")},showDialog:function(d,e,f,g){var h=3E3,j=a("IG_PU_bg"),i=j.style;i.zIndex=h;i.background="#000";ig_Nb(j,ig_b);i.position="absolute";
j.onclick=function(){};i.display="none";i.left="0px";i.top="0px";j=a("IG_PU_box");var k=a("IG_PU_iframe_cover");j.innerHTML=d;if(!b&&f){d=document.createElement("div");d.id="popup_box_placeholder";d.style.display="none";f.parentNode.insertBefore(d,f);_gel("dialogcontent").insertBefore(f,_gel("dialogcontent").firstChild)}f=j.style;f.position="absolute";f.zIndex=h+1;h=k.style;h.position="absolute";f.visibility="hidden";f.display="block";ig_4();f.visibility="visible";h.display="";i.display="block";_IG_AddEventHandler("resize",
_gel("popup_iframe")?_ResizeIframeHeight:ig_4);_IG_AddDOMEventHandler(window,"scroll",ig_4);_gel("IG_PU_dlg").onkeydown=ig_Ob;e=e||function(){};if(g&&g.length){var l=[];for(i=0;i<g.length;++i)if(h=_gel(g[i])){l.push(g[i]);h.setAttribute("old_position",h.style.position);h.setAttribute("old_left",h.style.left);h.style.position="relative";h.style.left="-99999px"}c=function(n,o){e(n,o);for(n=0;n<l.length;++n)if(o=_gel(l[n])){o.style.position=o.getAttribute("old_position");o.style.left=o.getAttribute("old_left")}}}else c=
e;(g=ig_5(j,ig_b,ig_b))&&g.focus()},position:function(){var d=a("IG_PU_box");if(d.style.display=="block"){var e=a("IG_PU_iframe_cover"),f=a("IG_PU_bg"),g=document.body.clientWidth,h=window.innerHeight;if(!h)h=document.documentElement.clientHeight;var j=d.offsetHeight<h,i=d.style;if(d){g=(g-d.offsetWidth)/2;var k=Math.max((h-d.offsetHeight)/2+ig_I(),0);if(!j&&i.top)k=parseInt(i.top,10);i.left=g+"px";i.top=k+"px";e=e.style;e.left=g+"px";e.top=k+"px";e.width=d.offsetWidth+"px";e.height=d.offsetHeight+
"px"}if(f){d=parseInt(i.top,10)+d.offsetHeight;h=Math.max(ig_H(),h,d);f.style.height=h+"px";f.style.width=document.body.clientWidth+"px"}}},toggleTransparency:function(d,e){d=d.style;if("opacity"in d)d.opacity=e?0.5:1;else if("MozOpacity"in d)d.MozOpacity=e?0.5:1;else if("filter"in d)d.filter=e?"alpha(opacity=50)":"alpha(opacity=100)"},resizeIframeHeight:function(){var d=_gel("popup_iframe");if(d){var e=d.style;e.height=ig_H(d.contentWindow.document.body)+"px";e.display="block";e.display=""}ig_4()}}}();
var _DI_button_type={Close:-1,OK:0,Cancel:1},_IG_PU_hide=window._IG_PU.hide,_IG_PU_open=window._IG_PU.open,_IG_PU_openURL=window._IG_PU.openUrl,_IG_PU_disable_hide_for_button=window._IG_PU.disableHideForButton,_IG_PU_MakeDialogButton=window._IG_PU.makeDialogButton,_ResizeIframeHeight=window._IG_PU.resizeIframeHeight,ig_Nb=window._IG_PU.toggleTransparency,_IG_PU_createSimpleTitle=window._IG_PU.createSimpleTitle,_IG_PU_createSimpleInputBox=window._IG_PU.createSimpleInputBox,ig_5=window._IG_PU.findFocusable,
ig_Mb=window._IG_PU.hasAttr,ig_Ob=window._IG_PU.limitFocus,ig_Kb=window._IG_PU.buildButtons,ig_4=window._IG_PU.position,ig_Lb=window._IG_PU.showDialog;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_6=ig_;
function _share_gadget(a,b,c,d,e,f,g,h){if(d){_hide_sent_content_messages();if(!ig_6)ig_6=_gel("sent_gadget_box").innerHTML;_gel("sent_gadget_box").innerHTML=ig_6.replace("GADGET_NAME",_bidi_span_wrap(_get_module_title(d),_get_module_title_dir(d)))}var j=g?"_gel('popup_iframe').contentWindow.prepareEmail(_gel('share_userprefs') ? _gel('share_userprefs').checked : false)":"_gel('popup_iframe').contentWindow.prepareEmail();";e=['<input type="button" id="send_btn" disabled="true" onclick="'+j+'" value="'+
e+'"></input>',_IG_PU_MakeDialogButton(f)];f="titlebar userprefs userprefs_border";g=_get_userprefs_checkbox_html(g,h,f);_IG_PU_openURL(a,g,b,c,e,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_6)ig_6=_gel("sent_gadget_box").innerHTML;_gel("sent_gadget_box").innerHTML=ig_6.replace("GADGET_NAME",_bidi_span_wrap(_get_module_title(c),_get_module_title_dir(c)))}var e=d||function(){};d=function(f,g){e(f,g);c&&_finish_sharing_gadget(f)};_IG_PU_openURL(a,ig_,b,"555px",ig_,d);_IG_PU_disable_hide_for_button(0)}
function _share_tab_with_gadget_checkboxes(a,b,c,d,e,f,g){b='<iframe id="popup_iframe" width="100%" height="0px" src="'+_hesc(b)+'" onload="_ResizeIframeHeight();" scrolling="no"></iframe>';var h="_gel('popup_iframe').contentWindow.storeTabAndPrepareEmail(_find_unshared_gadgets(), _gel('share_userprefs') ? _gel('share_userprefs').checked : false);";f=['<input type="button" id="send_btn" disabled="true" onclick="'+_hesc(h)+'" value="'+_hesc(f)+'"></input>',_IG_PU_MakeDialogButton(g)];if(_uli){g=_get_all_modules();
var j=Math.max(g.length*160,400);h=7;for(var i=0,k=0;k<g.length;k++)if(g[k].length>i)i=g[k].length;i=i>h&&c!="NO_TRANSLATION";a=[a];a.push('<form id="module_list">');a.push('<table class="titlebar module_list_table" ','cols="',g.length,'"',' width="',j,'px">');i?a.push('<tr class="zipped_modules" id="module_list_zipper">'):a.push('<tr class="unzipped_modules">');for(j=0;j<g.length;j++){a.push('<td width="',100/g.length,'%" ','valign="top">');for(k=0;k<g[j].length;k++){var l=_hesc(g[j][k].id.replace("m_",
"")),n=_bidi_span_wrap(_get_module_title(l),_get_module_title_dir(l));a.push('<div class="module_item');k>=h&&i&&a.push(" extra_items");a.push('">');a.push('<input id="share_',l,'" type="checkbox"'," checked ></input>");a.push('<label for="share_',l,'">',n,"</label>");a.push("</div>")}a.push("</td>")}a.push("</tr>");if(i){a.push('<tr class="zipped_module_list">');a.push('<td id="show_all_modules" colspan="',g.length,'" style="font-size:80%;text-align:center;">');a.push('<a href="javascript:void(0);" id="zipper_text"',
' onclick="_modules_zipper();">');a.push(c,"</a>");a.push("</td></tr>")}a.push("</table>");a.push(_get_userprefs_checkbox_html(d,e,"userprefs"));a.push("</form>");_IG_PU_open(a.join(""),b,f);_IG_PU_disable_hide_for_button(0);_gel("dialogcontent").className+=" url"}else _IG_PU_open(a,b,f);_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_b)}else{_gel("share_userprefs_alert").style.display="none";_gel("popup_iframe").contentWindow.shouldShareUserprefs(ig_c)}}
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++)ig_Pb(a[c])||(b[b.length]=a[c].id.replace("share_",""));return b}
function ig_Pb(a){if(a&&a.tagName=="INPUT"){var b=_gel("module_list_zipper"),c=b&&/unzipped_modules/.test(_gel("module_list_zipper").className),d=/extra_items/.test(a.parentNode.className);b=!b||c||!d;return a.checked&&b}return ig_c}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_y("m",b),e=d.mt;d=d.sn;var f=_gel("remote_iframe_"+b),g=f&&f.src;ig_p(a,"sn",d);ig_p(a,"ifr",g?"1":"0");if(c||!g){_fsetp(a,b,e);return ig_b}ig_Tb(a,b);_closeUserPrefs(b);ig_Ub(f,b,d);return ig_c}function ig_Tb(a,b){a=a.elements;for(var c=[],d=[],e=0;e<a.length;++e){var f=a[e].name,g=a[e].value;if(f&&f!="url"){c.push(_esc(f)+"="+_esc(g));if(f=f.match(/^m_\d+_up_(.*)$/)){d.push(f[1]);d.push(g)}}}_xsetp(c.join("&"));_IG_Prefs._setPrefs(b,d)}
function ig_Ub(a,b,c){var d=(new Date).getTime(),e=a.onload;a.onload=function(){var g=(new Date).getTime()-d;_sendx(["/ig/ui?action=refreshIfr&m=",_esc(c),"&ol=",g].join(""));typeof e=="function"&&e();a.onload=e};var f=a.src.replace(/&+$/,"");b=_IG_Prefs._updatePrefsInUrl(b,f);if(f.split("#")[0]==b.split("#")[0])b=ig_ba(b);a.src=b};function _delpromobox(){_xsetp("hp=0");var a=_gel("promobox");a.parentNode.removeChild(a);return ig_c}function _delmessage(){_xsetp("gm=0");var a=_gel("googlemessage");a.parentNode.removeChild(a);return ig_c}function _delpromomod(){_xsetp("pm=0");var a=_gel("promomod");a.parentNode.removeChild(a);return ig_c};var ig_$=function(){},_IG_ViewType=ig_$,_IG_GetSupportedViews=ig_$,_IG_NavigateToGadget=ig_$,_IG_GetCurrentView=ig_$,_IG_GetViewParams=ig_$,_IG_is_maximized_module=function(){return ig_c},_IFPC_NavigateTo=function(){},_IG_maximize_persistent_module=function(){},_IG_toggle_view=ig_$,_IG_maximize_view=ig_$,_IG_minimize_view=ig_$,_IG_restore_view=ig_$,_IG_iFrameTransitionStrategy=function(){},_IG_inlinedTransitionStrategy=function(){},_IG_scaleInlinedTransitionStrategy=function(){},_IG_noMaxSupportTransitionStrategy=
function(){},_IG_noMaxSupportResizeIframe=function(){},ig_Vb=new function(){};ig_Vb.isModuleMaximized=function(){return ig_c};_exportSymbols("gadgets.views",["ViewType",_IG_ViewType,"getSupportedViews",_IG_GetSupportedViews,"requestNavigateTo",_IG_NavigateToGadget,"getCurrentView",_IG_GetCurrentView,"getParams",_IG_GetViewParams]);_exportClass("gadgets.views","ViewManager",["isModuleMaximized",ig_Vb.isModuleMaximized]);
