var ig_a=false,ig_=null,ig_b=true;function ig_c(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){var b={},c=ig_c(a),d=0;for(;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};function ig_d(a,b){var c=function(){};c.prototype=a.prototype;b.prototype=new c}function _gel(a){return document.getElementById?document.getElementById(a):ig_}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){var d=_gelstn(a,c),e=[],f=0,g;for(;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]}var ig_aa=0;
function _uid(){return"obj"+ig_aa++}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_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_e();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 _uhc(a,b,c){var d="m_"+a+"_"+b,e=_gel(d);if(!e){e=document.createElement("INPUT");e.type="hidden";e.disabled=ig_b;e.name=d;_gel("m_"+a+"_form").appendChild(e)}e.value=c;e.disabled=ig_a}
function ig_e(){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",_old_html=ig_b,_use_old_feed_styles=ig_b,ig_f=ig_,ig_g=ig_;function ig_h(a,b,c){var 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},c=a||_args(),d="?";for(var e in c)if(b[e])d+=e+"="+_esc(c[e])+"&";return d}var ig_ba=/^([^?#]+)(?:\?([^#]*))?(#.*)?/;function ig_i(a,b){var c=ig_ba.exec(a),d=[c[1],"?",c[2]];d.push(c[2]?"&":"",b.join("&"),c[3]);return d.join("")}
function ig_j(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)ig_h(a,c,b[c])}function _submit_form(a,b){a.action=_setp_url+_qs()+b;a.method="get";ig_j(a);a.submit()}function _fsetp(a,b,c){a.action=_setp_url;a.method="get";ig_j(a);ig_h(a,"m_"+b+"_t",c);var d=_args(),e=d.host,f=d.hl;e&&ig_h(a,"host",e);f&&ig_h(a,"hl",f);_handleFormAclOptions(a,b);return ig_b}var ig_k=[],ig_l=ig_a;
function ig_ca(a){var b=[],c=0;for(;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_m(){return ig_ca([["et",_et],["pid",_pid],["ap",_authpath],["brand",_brand],["bmod",_bmod],["source",_source],["ae",_ae],["prefid",_prefid]])}function ig_n(){if(ig_k.length==0)ig_l=ig_a;else{ig_l=ig_b;var a=_setp_url+_qs()+ig_m(),b=ig_k.shift(),c=a.length+b.length>=1800;if(c)_sendx(a,ig_o,ig_a,b);else{a+="&"+b;_sendx(a,ig_o,ig_a,ig_)}}}
function ig_o(){_IG_TriggerDelayedEvent("xsetpdone");ig_n()}function _xsetp(a){ig_k.push(a);ig_l||ig_n()}function _xsetp_is_done(){return ig_k.length==0&&ig_l==ig_a}function _dlsetp(a,b){b||(b=_esc(document.location));document.location=_setp_url+_qs()+ig_m()+"&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 _ssbc(a,b,c){var d=_gelstn("*"),e=0,f;for(;f=d[e];e++)if(f.className==a)f.style[b]=c}function ig_da(a){var b=_gelstn("*"),c=0,d;for(;d=b[c];c++){var e=0;for(;e<a.length;e++)if(d.className==a[e][0])d.style[a[e][1]]=a[e][2]}}
function _findPos(a){var b=0,c=0;for(;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 _handleFormAclOptions(a,b){if(!!a.module_url){var c=a.module_url.value,d=a["access_profile"+b];d.savedValue=d.checked;var e=a["post_updates"+b];e.savedValue=e.checked;_makeACLXHR({moduleUrl:c,editToken:_et,accessProfile:d.checked,postUpdates:e.checked},ig_)}}
function _makeACLXHR(a,b){if(!(!a||!a.moduleUrl)){var c="/ig/osacl";c+="?url="+a.moduleUrl;if(a.editToken){c+="&et="+a.editToken;var d=a.accessProfile?"t":"f",e=a.accessProfile&&a.postUpdates?"t":"f";c+="&osacl=0:"+d+",1:"+e}_sendx(c,b,ig_a,ig_a)}}
function _handleGetAclXhrResponse(a,b){var c=_gel("access_profile"+b),d=_gel("post_updates"+b);if(a.user_decided){c.checked=c.savedValue=a.friends;d.checked=d.savedValue=a.post&&a.friends;d.disabled=!a.friends}else{c.checked=c.savedValue=ig_b;d.checked=d.savedValue=ig_b;_gel("m_"+b).className="modbox_e";_gel("acl_buttons_"+b).style.display="block";_gel("gadget_prefs_"+b).style.display="none"}_gel("acl_options_"+b).style.display="";_gel("aowc_"+b).style.display="none"}
function _cancelUnsetAclOptions(a,b){_gel("m_"+b).className="modbox";var c=_gel("access_profile"+b),d=_gel("post_updates"+b);if(c&&d){d.disabled=ig_a;c.checked=d.checked=ig_b;_handleFormAclOptions(a,b);_gel("acl_buttons_"+b).style.display="none";_gel("gadget_prefs_"+b).style.display=""}}function _updateACLOptions(a){a=a||"";var b=_gel("access_profile"+a),c=_gel("post_updates"+a);if(b.checked)c.disabled=ig_a;else{c.checked=ig_a;c.disabled=ig_b}}
(function(){function a(d){var e=window;if(d!=""){var f=d.split(".");for(;f.length;){var g=f.shift();if(typeof e[g]!="object")e[g]={};e=e[g]}}return e}function b(d,e){var f=a(d),g=0;for(;g<e.length;g+=2)f[e[g]]=e[g+1]}function c(d,e,f,g,h){if(g){var k=0;for(;k<g.length;k+=2)f.prototype[g[k]]=g[k+1]}if(h){var k=0;for(;k<h.length;k+=2)f[h[k]]=h[k+1]}b(d,[e,f])}b("",["_exportSymbols",b]);b("",["_exportClass",c]);b("google.gadgets.Util",["args",_args]);b("",["addParamPairsToUrl",ig_i,"xmlhttp",ig_e])})();function _edit(a,b){function c(){b&&b();_sendx("/ig/ui?action=editsettings&m="+a);ig_p("edit","m_"+a)}var d=ig_q[a];if(d){d();c()}else _IG_LL_load("m_"+a+"_editbox",{mid:a},function(){_gel("m_"+a).className="modbox_e";c()});return ig_a}var ig_q={};function _IG_AddCustomEditHandler(a,b){ig_q[a]=b}function _cedit(a){_gel("m_"+a).className="modbox";var b=_gel("m_"+a+"_form");if(!!b){b.reset();ig_ea(b,a);_sendx("/ig/ui?action=canceledit&m="+a);ig_p("canceledit","m_"+a);return ig_a}}
function ig_ea(a,b){var c=a["access_profile"+b],d=a["post_updates"+b];if(c&&d){c.checked=c.savedValue;d.checked=d.savedValue;d.disabled=!c.checked}}function _confirmDel(a,b,c,d){var e=_striptags(_gel("m_"+a+"_title").innerHTML);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(){var a=ig_fa(),b=[],c=/^m_[0-9]+$/,d=0;for(;d<a.length;d++){b[d]=[];var e=b[d],f=0;for(;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){var h=window.gadgets.views.ViewManager.getCurrentMaxId();h&&b.length>0&&h&&b[0].unshift(_gel("m_"+h))}return b}
function ig_fa(){var a=_gelsbyregex("DIV",/^c_[0-9]+$/),b=[],c=0;for(;c<a.length;c++)a[c].style.display!="none"&&b.push(a[c]);return b}var ig_r={},ig_s={};function _place(a,b){var c=ig_s[a];if(c)c(b);else{ig_r[a]||(ig_r[a]=[]);ig_r[a].push(b)}}function _register_place(a,b){ig_s[a]=b;var c=ig_r[a];if(c){var d=0;for(;d<c.length;d++)b(c[d]);ig_r[a]=ig_}}
function _del(a,b,c){_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";var e=_gel("undo_msg");if(e)e.style.display="none";if(e=_gel("undo_restore_msg"))e.style.display="none"}var f=_gel("m_"+a);if(f)f.style.display="none";ig_f=a;ig_g=c;var g=_gel(c);if(g)g.style.display="";_mod=ig_b;ig_p("delete","m_"+a);return ig_a}
function _undel(){if(!(ig_f==ig_)){var a="m_"+ig_f,b=_gel(a);if(b){b.style.display="block";_xsetp("undel")}var c=_gel("undel_msg");if(c)c.style.display="none";if(ig_g!=ig_){var d=_gel(ig_g);if(d)d.style.display="none"}ig_g=ig_f=ig_;ig_p("undelete",a)}}
function _zm(a,b,c){var d=_gel("m_"+a+"_b");if(d){var e=d.style.display!="none";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_p(e?"zip":"unzip",a)}return ig_a}var ig_ga="https://www.google.com/accounts";
function _enableGS(a,b){a.action=ig_ga+"/CheckCookie";a.method="get";ig_h(a,"service",b);ig_h(a,"continue",document.location);ig_h(a,"skipvpage",ig_b);return ig_b}function _reload(a,b){var c=a-(new Date).getTime();if(c>1000)setTimeout("_reload("+a+")",c);else if(b)document.location.replace(ig_ha(document.location.href,document.location.pathname));else{document.cookie="IGREL=1";document.location.replace(document.location.href.split("#")[0])}}var ig_ia=/^([^?#]+)(?:\?([^#]*))?(#.*)?/;
function ig_ha(a,b){var c=ig_ia.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}function ig_p(a,b){switch(a){case "delete":case "undelete":case "edit":case "canceledit":case "zip":case "unzip":case "mazimize":case "unmaximize":_IG_TriggerDelayedModuleEvent(b,a);_IG_TriggerDelayedEvent("module"+a,b);break}}function ig_ja(a){_xsetp("pnlo="+(a?1:0))}var _uli,_pnlo,_mpnlo,_pl,_mod,_cbp=ig_a,ig_t=ig_a,_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_da(a);_IG_callPostLoad(_init_drag_drop)}
function _init_drag_drop(){if(_pl)if(_cbp||_uli)if(!ig_t&&!_mpnlo){_IG_TriggerCustomEvent("initdrag",_table,_tabs);ig_t=ig_b}}var ig_u=0;
function _tp(a){ig_u>0&&clearInterval(ig_u);_pnlo=a;_mod=ig_b;ig_ja(a);_upc();var b=_gel("cpnl"),c=_gel("cpnlc"),d=_gel("nhdr"),e=_gel("ehdr"),f=b.offsetWidth,g,h;if(a){g=c.offsetWidth;h="visible";e.style.display="";d.style.display="none"}else{g=1;h="hidden";e.style.display="none";d.style.display=""}b.style.overflow="hidden";var k=100,j=10,i=0;ig_u=setInterval(function(){var l=i/j,m=f+(g-f)*l;b.style.width=m+"px";i++;if(l>=1){clearInterval(ig_u);ig_u=0;b.style.width=g+"px";b.style.overflow=h}},k/
j);return ig_a}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_a}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_v=/^_add_m(_confirm)?\(\"[^"]+\"(, *\"[^"]+\")?\)$/;
function _find_feed(a){var b="acd";if(!a){var c=_gelstn("div");if(c){var d=0,e;for(;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}var f=_gel("ffresults");if(f)f.style.display="none";var g=_gel("ffloading");if(g)g.style.display="block";_sendx("/ig/feeds"+_qs()+"q="+_esc(a)+"&page="+_esc(b),ig_ka);return ig_a}
function ig_ka(a){var b=_gel("ffloading");if(b)b.style.display="none";var c=_gel("ffresults");if(c)c.style.display="block";if(a.length>0&&a.charAt(0)=="<")c.innerHTML=a;else a.match(ig_v)!=ig_?eval(a):eval(a)}function _add_remote_module(a,b,c){_sendx("/ig/feeds"+_qs()+"module=1&q="+_esc(a),function(d){b();ig_la(d,c)});return ig_a}
function ig_la(a,b){var c=/_add_m_confirm\((\"[^"]+\"),\s*(\"[^"]+\")(,\s*\"[^"]+\")?\)/,d=/^alert\(\"[^"]+\"\)$/;if(a.match(ig_v)!=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.H(b)};
_ListApp.prototype.wb=function(){var a="";if(_old_html)a="<table cellspacing=0 cellpadding=0 border=0>";var b="",c=this.items,d=0;for(;d<c.length;d++)if(c[d]){a+=_old_html?"<tr><td nowrap><font size=-1>"+c[d].O()+'</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].O()+'<div class="c"></div>';if(parseInt(c[d]._uid,
10)<0)b+=c[d].z(d)}else{this.items.splice(d,1);d--}var e=this.deleted,f="",d=0;for(;d<e.length;d++)if(parseInt(e[d]._uid,10)>=0)f+=","+e[d]._uid;a+=this.Ea(b,f);return a};_ListApp.prototype.Ea=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.wb()+"</font>"};_ListApp.prototype.add=function(a,b){a||(a=_trim(this.name_input_field.value));b||(b=_trim(this.value_input_field.value));var c=new this.item_constructor(a,b,-1);if(!!c.L()){this.items[this.items.length]=c;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,g=new _ListApp(f,d,e);for(var h in g)this[h]=g[h];typeof c=="string"&&this.vb(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.Ea=_PrefListApp_get_tail}
function _PrefListApp_get_tail(){var a="</table>";_gel("m_"+this.module_id+"_"+this.prefidx).value=this.Ab();return a}_PrefListApp.prototype.vb=function(a){if(!(a.length==0)){var b=_IG_Prefs._strToArray(a),c=[],d=0;for(;d<b.length;d++){var e=new this.item_constructor(b[d],b[d],-1);c[c.length]=e}this.items=c;this.prev_items=[].concat(c)}};_PrefListApp.prototype.Ab=function(){var a=[],b=0;for(;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.L=function(){return this._n!=""};_ListItem.prototype.H=function(){return 0};_ListItem.prototype.O=function(){return _hesc(this._n)};_ListItem.prototype.z=function(){return"&"+_esc(this._n)+"="+_esc(this._v)};function _BMListItem(a,b,c){_ListItem.call(this,a,b,c)}ig_d(_ListItem,_BMListItem);_BMListItem.prototype.L=function(){return _ListItem.prototype.L.call(this)&&this._n!="http://"};
_BMListItem.prototype.Y=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.O=function(){return'<a href="'+this._n+'" target=bmwindow>'+_hesc(this.Y())+"</a>"};_BMListItem.prototype.z=function(a){return"&b"+a+"="+_esc(this._n)+"&t"+a+"="+_esc(this._v)};_BMListItem.prototype.H=function(a){var b=_uc(this.Y()),c=_uc(a.Y());if(b==c)return 0;return b<c?-1:1};
function _WthrListItem(a,b,c){_ListItem.call(this,a,b,c)}ig_d(_ListItem,_WthrListItem);_WthrListItem.prototype.z=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_d(_ListItem,_FListItem);_FListItem.prototype.z=function(){return"&"+_esc(this._n)};_FListItem.prototype.H=function(a){var b=this;if(b._s<a._s)return-1;if(b._s>a._s)return 1;var c=_uc(b._n),d=_uc(a._n);if(c<d)return-1;if(c>d)return 1;return 0};
var ig_w={ta:0,Cb:1800,Ma:ig_,La:ig_,ia:ig_b,Q:ig_,Eb:ig_,hb:600,U:function(){ig_w.ta=(new Date).getTime()+ig_w.Cb*1000},hc:function(){if((new Date).getTime()>ig_w.ta)window.gTalkNotifier&&window.gTalkNotifier._isAnyMoleOpen&&window.gTalkNotifier._isAnyMoleOpen()?ig_w.U():_testConnection(function(){_reload(ig_w.ta,ig_w.Eb)},ig_w.U)},Pa:function(a){ig_w.U();ig_w.Ma&&ig_w.Ma(a)},Oa:function(a){ig_w.U();ig_w.La&&ig_w.La(a)}};
function _IG_disable_refresh_cycle(){ig_w.ia=ig_a;_IG_suspend_refresh_cycle()}function _IG_suspend_refresh_cycle(){if(ig_w.Q!=ig_){clearInterval(ig_w.Q);ig_w.Q=ig_}}function _IG_restart_refresh_cycle(){!ig_w.ia||ig_w.Q!=ig_||ig_x()}
function _IG_start_refresh_cycle(a,b,c){if(ig_w.ia){ig_w.Ma=document.onmousedown;ig_w.La=document.onkeyup;ig_w.Cb=a;ig_w.hb=b;if(c)ig_w.Eb=c;if(document.addEventListener){document.addEventListener("keyup",ig_w.Oa,ig_a);document.addEventListener("mousedown",ig_w.Pa,ig_a)}else if(document.attachEvent){document.attachEvent("onkeyup",ig_w.Oa);document.attachEvent("onmousedown",ig_w.Pa)}else{document.onkeyup=ig_w.Oa;document.onmousedown=ig_w.Pa}ig_x()}}
function ig_x(){ig_w.U();ig_w.Q=setInterval(ig_w.hc,ig_w.hb*1000)}function _testConnection(a,b,c){var d=ig_e(),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){}var g=function(){if(b){a=ig_;b()}};setTimeout(g,c)}function _mailWindow(a){window.open(a,"mailwindow","width=400,height=340,left=50,top=50,scrollbars=no")}
function ig_y(a){if(!a)a=document.body;return a.scrollHeight>a.offsetHeight?a.scrollHeight:a.offsetHeight}function ig_ma(){return self.pageYOffset?self.pageYOffset:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop}
function _setHomepage(a,b){var c=_gel("hp_url").innerHTML;a.style.behavior="url(#default#homepage)";a.setHomePage(c);_sendx("/ig/ui?action=sethomepage&url="+_esc(c)+"&type="+b+"&confirmed="+(_IGoogleIsHomepage()?1:0))}function _IGoogleIsHomepage(){var a=_gel("shp"),b=_gel("hp_url").innerHTML;return a.isHomePage(b)}function _maybeShowSetHPMsg(){if(!_IGoogleIsHomepage()){_gel("set_homepage_msg").style.display="inline";if(_gel("new_user_demo")!=ig_)_gel("new_user_demo").style.display="none"}}
function _hideSetHPMsg(){if(_gel("set_homepage_msg")!=ig_)_gel("set_homepage_msg").style.display="none";if(_gel("new_user_demo")!=ig_)_gel("new_user_demo").style.display="block"}function _iGoogleRejectedAsHomepage(){if(_gel("set_homepage_msg")!=ig_)_gel("set_homepage_msg").style.display="none";if(_gel("new_user_demo")!=ig_)_gel("new_user_demo").style.display="block";if(_gel("set_homepage_footer")!=ig_)_gel("set_homepage_footer").style.display="inline"}
function _maybeShowSetHPFooter(){if(!_IGoogleIsHomepage()&&_gel("set_homepage_msg")==ig_)_gel("set_homepage_footer").style.display="inline"}_exportSymbols("",["pageHeight",ig_y,"scrollTop",ig_ma]);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(){var c=[],d=0;for(;d<arguments.length;d++)c[c.length]=arguments[d];var d=1;for(;d<b.length;d++)c[c.length]=b[d];a.apply(ig_,c)}};var ig_na={domload:1,xsetpdone:1,moduledragstart:1,moduledragend:1,moduletitleclick:1,moduleedit:1,modulecanceledit:1,moduledelete:1,moduleundelete:1,modulezip:1,moduleunzip:1,modulemaximize:1,moduleunmaximize:1,load:1,unload:1,resize:1},ig_z={},ig_oa={dragstart:1,dragend:1,titleclick:1,edit:1,canceledit:1,"delete":1,undelete:1,zip:1,unzip:1,maximize:1,unmaximize:1};
function ig_pa(a){var b="ig_event_hashcode_";if(a.hasOwnProperty&&a.hasOwnProperty(b))return a[b];a[b]||(a[b]=++ig_A.cc);return a[b]}function ig_qa(a){return"builtin_"+a}function ig_ra(a,b){if(a.indexOf&&a.indexOf("m_")==0)a=a.substring(2);return"builtin_m"+a+"_"+b}function ig_sa(a,b){return"builtin_"+ig_A.Zb(a)+"_"+b}function ig_ta(a){return"custom_"+a}
function ig_ua(){for(var a in ig_A.d){var b=0;for(;b<ig_A.d[a].length;b++)ig_A.d[a][b]=ig_;if(a in ig_A.X){var c=ig_A.X[a],d=c[0],e=c[1],f=c[2];if(d.removeEventListener)d.removeEventListener(e,f,ig_a);else d.detachEvent&&d.detachEvent("on"+e,f);ig_A.X[a]=ig_}}}function ig_va(a,b,c){var d=c;for(;d<b.length;d++)a[a.length]=b[d];return a}function ig_wa(a,b){if(a in ig_A.d){var c=0;for(;c<ig_A.d[a].length;c++)if(ig_A.d[a][c]===b){ig_A.d[a][c]=ig_;return ig_b}}return ig_a}
function ig_xa(a){if(a in ig_A.d){var b=0;for(;b<ig_A.d[a].length;b++)if(ig_A.d[a][b]){var c=[],d=1;for(;d<arguments.length;d++)c[c.length]=arguments[d];ig_A.d[a][b].apply(this,c)}}}function ig_ya(a,b){if(!(a in ig_A.oc))throw Error("Unsupported event type: "+a);var c=ig_A.ka(a);c in ig_A.d||(ig_A.d[c]=[]);ig_A.d[c][ig_A.d[c].length]=b}
function ig_za(a,b,c){if(!(b in ig_A.pc))throw Error("Unsupported module event type: "+b);var d=ig_A.la(a,b);d in ig_A.d||(ig_A.d[d]=[]);ig_A.d[d][ig_A.d[d].length]=c}
function ig_Aa(a,b,c){var d=ig_A.jb(a,b);if(!(d in ig_A.d)){ig_A.d[d]=[];var e=function(g){if(!g)g=window.event;ig_A.ca.apply(a,[d,g])};if(a.addEventListener)a.addEventListener(b,e,ig_a);else if(a.attachEvent)a.attachEvent("on"+b,e);else throw Error("Object {"+a+"} does not support DOM events.");ig_A.X[d]=[a,b,e]}var f=ig_A.d[d].length;if(a===window&&b=="unload"&&f>0){ig_A.d[d][f]=ig_A.d[d][f-1];ig_A.d[d][f-1]=c}else if(ig_z[b])setTimeout(c,10);else ig_A.d[d][f]=c}
function ig_Ba(a,b){var c=ig_A.ja(a);c in ig_A.d||(ig_A.d[c]=[]);ig_A.d[c][ig_A.d[c].length]=b}function ig_Ca(a,b){var c=ig_A.ka(a);return ig_A.aa(c,b)}function ig_Da(a,b,c){var d=ig_A.la(a,b);return ig_A.aa(d,c)}function ig_Ea(a,b,c){var d=ig_A.jb(a,b);return ig_A.aa(d,c)}function ig_Fa(a,b){var c=ig_A.ja(a);return ig_A.aa(c,b)}function ig_Ga(a){if(a=="load"||a=="domload")ig_z[a]=ig_b;var b=ig_A.M([ig_A.ka(a)],arguments,1);ig_A.ca.apply(window,b)}
function ig_Ha(){var a=ig_A.M([],arguments,0);setTimeout(function(){ig_A.triggerEvent.apply(window,a)},0)}function ig_Ia(a,b){var c=ig_A.M([ig_A.la(a,b)],arguments,2);ig_A.ca.apply(window,c)}function ig_Ja(){var a=ig_A.M([],arguments,0);setTimeout(function(){ig_A.triggerModuleEvent.apply(window,a)},0)}function ig_Ka(a){var b=ig_A.M([ig_A.ja(a)],arguments,1);ig_A.ca.apply(window,b)}function ig_La(){var a=ig_A.M([],arguments,0);setTimeout(function(){ig_A.triggerCustomEvent.apply(window,a)},0)}
var ig_A={cc:0,d:{},X:{},oc:ig_na,pc:ig_oa,Zb:ig_pa,ka:ig_qa,la:ig_ra,jb:ig_sa,ja:ig_ta,Qb:ig_ua,M:ig_va,aa:ig_wa,ca:ig_xa,addEventHandler:ig_ya,addModuleEventHandler:ig_za,addDOMEventHandler:ig_Aa,addCustomEventHandler:ig_Ba,removeEventHandler:ig_Ca,removeModuleEventHandler:ig_Da,removeDOMEventHandler:ig_Ea,removeCustomEventHandler:ig_Fa,triggerEvent:ig_Ga,triggerModuleEvent:ig_Ia,triggerCustomEvent:ig_Ka,triggerDelayedEvent:ig_Ha,triggerDelayedModuleEvent:ig_Ja,triggerDelayedCustomEvent:ig_La},
_IG_AddEventHandler=ig_A.addEventHandler,_IG_AddModuleEventHandler=ig_A.addModuleEventHandler,_IG_AddGadgetEventHandler=ig_A.addModuleEventHandler,_IG_AddDOMEventHandler=ig_A.addDOMEventHandler,_IG_AddCustomEventHandler=ig_A.addCustomEventHandler,_IG_RemoveEventHandler=ig_A.removeEventHandler,_IG_RemoveModuleEventHandler=ig_A.removeModuleEventHandler,_IG_RemoveGadgetEventHandler=ig_A.removeModuleEventHandler,_IG_RemoveDOMEventHandler=ig_A.removeDOMEventHandler,_IG_RemoveCustomEventHandler=ig_A.removeCustomEventHandler,
_IG_TriggerEvent=ig_A.triggerEvent,_IG_TriggerModuleEvent=ig_A.triggerModuleEvent,_IG_TriggerGadgetEvent=ig_A.triggerModuleEvent,_IG_TriggerCustomEvent=ig_A.triggerCustomEvent,_IG_TriggerDelayedEvent=ig_A.triggerDelayedEvent,_IG_TriggerDelayedModuleEvent=ig_A.triggerDelayedModuleEvent,_IG_TriggerDelayedGadgetEvent=ig_A.triggerDelayedModuleEvent,_IG_TriggerDelayedCustomEvent=ig_A.triggerDelayedCustomEvent;_IG_AddDOMEventHandler(window,"unload",ig_A.Qb);_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_a)});_IG_AddModuleEventHandler(a,"maximize",function(){b(ig_b)})};var _currentLayout,_layoutData,_IG_Layouts={savedModulePositions:ig_};_IG_Layouts._selectLayout=function(a){var b=_gel("edit_this_tab_form").edit_this_tab_selected_layout,c=0;for(;c<b.length;c++){var d=b[c].value,e=_gel("edit_this_tab_layoutimg_"+d);if(d!=a){b[c].checked=ig_a;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"}}};
_IG_Layouts._renderLayout=function(a){if(!_IG_Layouts.isLayoutValid(a))return ig_a;var b=_IG_Layouts.getColumnsInOrder(),c=_layoutData[a],d=ig_a,e=0;for(;e<b.length;e++){b[e].style.width=c.sizes[e];if(b[e].style.display!=c.display[e]){b[e].style.display=c.display[e];d=ig_b}}if((a==_currentLayout||d)&&!_IG_Layouts.rearrangeModules(a))return ig_a;return ig_b};
_IG_Layouts.rearrangeModules=function(a){if(!_IG_Layouts.isLayoutValid(a))return ig_a;var b=_IG_Layouts.getColumnsInOrder(),c=_gel("lc_opt"),d=b[_layoutData[a].visibleColumns-1];d.insertBefore(c,d.firstChild);if(_IG_Layouts.savedModulePositions!=ig_&&a==_currentLayout){var e=0;for(;e<b.length;e++){var f=_IG_Layouts.savedModulePositions[e],g=0;for(;g<f.length;g++){var h=_gel(f[g]);h!=ig_&&b[e].insertBefore(h,b[e].lastChild)}}return ig_b}var k=[],j=[],e=0;for(;e<b.length;e++)j.push(b[e].firstChild);
var i=ig_a;do{i=ig_a;var e=0;for(;e<j.length;e++){for(;j[e]!=ig_&&j[e].id.indexOf("m_")==-1;)j[e]=j[e].nextSibling;if(j[e]!=ig_&&j[e].id.indexOf("m_")!=-1){k.push(j[e].id);i=ig_b;j[e]=j[e].nextSibling}}}while(i);var l=0,g=0;for(;g<k.length;g++){b[l].insertBefore(_gel(k[g]),b[l].lastChild);do{l++;if(l>=b.length)l=0}while(b[l].style.display=="none")}return ig_b};
_IG_Layouts._saveModulePositions=function(){var a=_IG_Layouts.getColumnsInOrder();_IG_Layouts.savedModulePositions=[];var b=0;for(;b<a.length;b++){_IG_Layouts.savedModulePositions[b]=[];var c=_IG_Layouts.savedModulePositions[b],d=0;for(;d<a[b].childNodes.length-1;d++){var e=a[b].childNodes[d];e.tagName=="DIV"&&e.id.indexOf("m_")!=-1&&c.push(e.id)}}};
_IG_Layouts._editTabSettingsSubmit=function(a){var b=_gel("edit_this_tab_form").edit_this_tab_selected_layout,c=-1,d=0;for(;d<b.length;d++)if(b[d].checked==ig_b)c=b[d].value;var e="",f=_gel("edit_this_tab_name").value;if(_gel("tab"+a+"_view_title").innerHTML!=f&&f!=""){e+="rt_"+a+"="+_esc(f);_gel("tab"+a+"_view_title").innerHTML=_hesc(f);_gel("tab"+a+"_title").value=_hesc(f);var g=_gel("tip_tabtitle");if(g!=ig_)g.innerHTML=_hesc(f)}if(c!=_currentLayout){e+=e==""?"":"&";e+="lt_"+a+"="+c;_currentLayout=
c;var h=_IG_Layouts.getColumnsInOrder(),k="",j=0;for(;j<h.length;j++){var i=0;for(;i<h[j].childNodes.length-1;i++){var l=h[j].childNodes[i];if(l.tagName=="DIV"&&l.id.indexOf("m_")!=-1){k+=k==""?"":":";k+=l.id.substring(2)+"_"+(j+1)}}}e+="&mp="+_esc(k)}e!=""&&_xsetp(e);_IG_Layouts.savedModulePositions=ig_};_IG_Layouts._editTabSettingsCancel=function(){_IG_Layouts._renderLayout(_currentLayout);_IG_Layouts.savedModulePositions=ig_};
_IG_Layouts.getColumnsInOrder=function(){var a=4,b=[],c=1;for(;c<=a;c++){var d=_gel("c_"+c);if(d==ig_)break;b.push(d)}return b};_IG_Layouts.isLayoutValid=function(a){if(a<0||a>_layoutData.length-1)return ig_a;return ig_b};var ig_B=(function(){var a=ig_a,b=[],c=ig_,d=ig_;function e(){if(!(c||a)){a=ig_b;_IG_LoadScriptXDomain("/ig/ll"+window.location.search)}}function f(){d(c,b);b=[]}return{init:function(){},load:function(g,h,k){if(_gel(g))k(h);else{b.push({id:g,args:h,callback:k});if(!a)if(c)f();else{_sendx("/ig/ui?action=lazy&id="+g,ig_,ig_a,ig_);e()}}},loaded:function(g,h){c=g;d=h;a=ig_a;f()},wc:function(){a=ig_a;b=[];d=c=ig_}}})(),_IG_LL_init=ig_B.init,_IG_LL_load=ig_B.load,_IG_LL_loaded=ig_B.loaded;function _IG_MD_Generate(a){var 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_Ma(a,b){if(a.t){b.t={};var c=0;for(;c<a.t.length;++c){var d=a.t[c];b.t[d.i]=d;b.t[d.i].m={}}}}function ig_Na(a,b){if(a.m){b.m={};var c=0;for(;c<a.m.length;++c){var d=a.m[c];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){b.dt=[];var c=0;for(;c<a.dt.length;++c)b.dt[c]=b.t[a.dt[c]]}};var _IG_time=(function(){function a(){return(new Date).getTime()}var b=window._IG_time_epoch||a(),c={},d={},e={set_epoch:function(f){b=f},start:function(f){c[f]=a();e.start_callback(f)},since:function(f){var g=c[f]||b;return a()-g},stop:function(f){d[f]=e.since(f);e.stop_callback(f)},get:function(f){return d[f]},print:function(f){document.write("<div style='color:#999999;font-size:75%'>"+f+" : "+e.get(f)+"ms</div>")},stop_and_print:function(f){e.stop(f);e.print(f)},start_callback:function(){},stop_callback:function(){}};
return e})();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.$[b]=ig_a}else{if(!b)throw new Error("Module ID is required as first argument to _IG_Prefs() for inlined modules");_IG_Prefs.$[b]=ig_b}_IG_Prefs.e[_IG_Prefs.A+b]||(_IG_Prefs.e[_IG_Prefs.A+b]={});this.e=_IG_Prefs.e[_IG_Prefs.A+b];this.c=b;this.vc=/(.*)(\<ph.*?\>\s*(\<ex\>(.*?)\<\/ex\>)?\s*%1\s*\<\/ph\>)(.*)/}
_IG_Prefs.prototype.K=function(a,b){if(b==undefined)b=ig_;var c=this.e[a];if(c==undefined)return b;var d=c.value;return d!=undefined?d:b};_IG_Prefs.prototype.Z=function(a,b){return this.K(_IG_Prefs.l+a,b)};_IG_Prefs.prototype.J=function(a){var b="",c=this.Z(a,b);return c!=ig_?c+"":b};_IG_Prefs.prototype.za=function(a){var b=0,c=parseInt(this.Z(a,b),10);return isNaN(c)?b:c};_IG_Prefs.prototype.wa=function(a){var b=this.J(a);return b==="true"||!!parseInt(b,10)};
_IG_Prefs.prototype.va=function(a){return _IG_Prefs._strToArray(this.Z(a,""))};_IG_Prefs.prototype.Va=function(a,b){this.set(a,_IG_Prefs._arrayToStr(b))};_IG_Prefs.prototype.ya=function(){return this.J(".country")};_IG_Prefs.prototype.Aa=function(){return this.J(".lang")};_IG_Prefs.prototype.Ba=function(a){return this.K(_IG_Prefs.ab+a,"")+""};
_IG_Prefs.prototype.set=function(){var a=Math.floor(arguments.length/2);if(!(a==0)){var b=[],c=[],d=0;for(;d<a;++d){var e=arguments[d*2],f=_IG_Prefs.l+e,g=arguments[d*2+1]+"";if(this.Db(f,g)){b.push(f,g);c.push(e,g)}}b.length==0||(_IG_Prefs.$[this.c]?_IG_Prefs._setP(this.c,c):_IFPC_SetPref(c))}};_IG_Prefs.prototype.Da=function(){var a=["__module_id__="+this.c];for(var b in this.e)a.push(encodeURIComponent(b)+"="+encodeURIComponent(this.e[b].value));return a.join("&")};
_IG_Prefs.prototype.dump=function(){document.write("<pre>");for(var a in this.e)document.writeln(a+" = "+this.K(a,ig_));document.write("</pre>")};_IG_Prefs.prototype.Db=function(a,b){var c=this.e[a];if(c&&c.value===b)return ig_a;if(c)c.value=b;else{c=new _IG_Prefs_PrefsData;c.value=b;this.e[a]=c}return ig_b};_IG_Prefs.$={};_IG_Prefs.e={};_IG_Prefs.A="m_";_IG_Prefs.l="up_";_IG_Prefs.Fb="up_";_IG_Prefs.ab="msg_";_IG_Prefs.fa={};_IG_Prefs.fa[_IG_Prefs.Fb]="value";
_IG_Prefs.uc=function(a,b){if(a.indexOf)return a.indexOf(b);else{var c=0;for(;c<a.length;++c)if(a[c]===b)return c;return-1}};
_IG_Prefs._parseURL=function(a){_IG_Prefs.$[a]=ig_a;var b={},c=ig_c(),d=0;for(;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 h=ig_a;for(var k in _IG_Prefs.fa)if(f.indexOf(k)===0){h=ig_b;f=f.substring(k.length);f=_IG_Prefs.l+f;b[f]=b[f]?b[f]:new _IG_Prefs_PrefsData;if(k===_IG_Prefs.tc||k===_IG_Prefs.sc)g=g=="true";b[f][_IG_Prefs.fa[k]]=g;break}if(!h)if(f.indexOf(_IG_Prefs.ab)===0)_IG_Prefs._add(a,
f,g);else if(f===".lang"||f===".country")_IG_Prefs._add(a,_IG_Prefs.l+f,g)}}if(window.IDIModule){var b=window.IDIModule.getPrefs();for(var d in b)_IG_Prefs._add(a,d,b[d])}else for(var f in b)_IG_Prefs._add(a,f,b[f].value)};_IG_Prefs._add=function(a,b,c){var d=_IG_Prefs.A+a;if(typeof _IG_Prefs.e[d]!=="object")_IG_Prefs.e[d]={};if(typeof _IG_Prefs.e[d][b]!=="object"){_IG_Prefs.e[d][b]=new _IG_Prefs_PrefsData;var e=_IG_Prefs.e[d][b];e.value=c}};
_IG_Prefs.mc=function(a,b,c){var d=_IG_Prefs.A+a;if(typeof _IG_Prefs.e[d]!=="object")_IG_Prefs._add(a,b,c);else if(typeof _IG_Prefs.e[d][b]!=="object")_IG_Prefs.e[d][b]=new _IG_Prefs_PrefsData;var e=_IG_Prefs.e[d][b];e.value=c};_IG_Prefs._addAll=function(a,b){var c=0;for(;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){var c=[],d=0;for(;d<a.length;++d)c.push(a[d].replace(/\|/g,"%7C"));return c.join("|")}else return new String(a)};
_IG_Prefs._strToArray=function(a){var b=a.length>0?a.split("|"):[],c=0;for(;c<b.length;++c)b[c]=b[c].replace(/%7C/g,"|");return b};
_IG_Prefs._updatePrefsInUrl=function(a,b){var c=_IG_Prefs.A+a,d=_IG_Prefs.e[c];if(d==ig_)return b;var e=b.split("&"),f=0;for(;f<e.length;++f)e[f].indexOf(_IG_Prefs.l)===0&&e.splice(f--,1);for(var g in d)g.indexOf(_IG_Prefs.l)!==0||g.indexOf(_IG_Prefs.l+".lang")===0||g.indexOf(_IG_Prefs.l+".country")===0||g.indexOf(_IG_Prefs.l+"synd")===0||e.push(_esc(g)+"="+_esc(d[g].value));return e.join("&")};
_IG_Prefs._setPrefs=function(a,b){var c=Math.floor(b.length/2),d=0;for(;d<c;++d){var e=_IG_Prefs.l+b[d*2],f=b[d*2+1];_IG_Prefs.mc(a,e,f)}};_IG_Prefs._setP=function(a,b){if(!(_args().synd==="open")){var c=Math.floor(b.length/2),d=[],e=0;for(;e<c;++e){var f=_IG_Prefs.l+b[e*2],g=b[e*2+1];d.push(_IG_Prefs.A+a+"_"+f+"="+_esc(g))}d.length===0||_xsetp(d.join("&"))}};
_exportClass("google.gadgets","Prefs",_IG_Prefs,["getString",_IG_Prefs.prototype.J,"getInt",_IG_Prefs.prototype.za,"getBool",_IG_Prefs.prototype.wa,"getArray",_IG_Prefs.prototype.va,"setArray",_IG_Prefs.prototype.Va,"getLang",_IG_Prefs.prototype.Aa,"getCountry",_IG_Prefs.prototype.ya,"getMsg",_IG_Prefs.prototype.Ba,"getPreloadedString",_IG_Prefs.prototype.Da,"set",_IG_Prefs.prototype.set,"dump",_IG_Prefs.prototype.dump]);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_C(e,f,g,c);else{var h=eval("FEED"+a);if(!h.has_entries&&!h.is_fetching){h.is_fetching=ig_b;_IG_FetchFeedAsJSON(h.url,_IG_Callback(ig_Pa,a,b,c,d),h.num_items+15,ig_b)}else{var k=0;for(;k<eval("FEED"+a).num_items;k++){var j=_gel("ftl_"+a+"_"+k);j&&ig_C(_gel("ft_"+a+"_"+k),_gel("fb_"+a+"_"+k),j,c)}ig_Qa(e,f,g,d);if(f.style.maxHeight&&parseInt(f.style.maxHeight,
10)<ig_Ra(g.offsetWidth,f))f.style.height=f.style.maxHeight}}}function ig_Pa(a,b,c,d,e){var f=eval("FEED"+b);f.is_fetching=ig_a;if(a&&a.Entry){var g=0;for(;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}eval("FEED"+b).has_entries=ig_b;_IG_FR_toggle(b,c,d,e)}}function ig_D(a){return a.className.match("reverse_directionality$")=="reverse_directionality"}
function ig_C(a,b,c,d){a.className=ig_D(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_D(a)?"uftl_reverse_directionality":"uftl"}
function ig_Qa(a,b,c,d){a.className=ig_D(a)?"fminbox_reverse_directionality":"fminbox";a.title=d;if(_old_html||_use_old_feed_styles)a.className="fbox fminbox";b.style.display="block";b.style.maxHeight=b.offsetWidth*1.5+"px";c.className=ig_D(a)?"sftl_reverse_directionality":"sftl"}
function ig_Ra(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_a);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_E(a){var b=_gel("hl"),c=b?b.value:"en";return"/reader/ig/feed/"+_esc(eval("FEED"+a).url)+"?hl="+c}function ig_F(a,b){if(window._max_strategies){var c=ig_E(a)+(b?"&i="+b:"");window._max_strategies[a]._updateIframeSrc(c)}}function _IG_FR_maxModule(a,b,c){ig_F(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_E(a),ig_,_IG_isIE())});_IG_AddModuleEventHandler(a,"unmaximize",function(){ig_F(a)})}var _IG_FR_listOfFeeds=[];window._IG_PU=(function(){var a=ig_b,b;function c(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)}return{open:function(d,e,f,g,h){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 j=["<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_G(f),"</div></td></tr></table>"].join("");ig_Sa(j,g,a?ig_:e,h)}},openUrl:function(d,e,f,g,h,k,j){var i=_IG_PU_createSimpleTitle(d)+(e||""),l=["<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_G(h,"colored_background")].join("");window._IG_PU.open(i,l,[],k,j)},hide: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 j=_gel("popup_box_placeholder");j.parentNode.insertBefore(_gel("dialogcontent").firstChild,
j);j.parentNode.removeChild(j)},1000)}var h=_gel("popup_iframe"),k=h&&h.contentWindow.getPopupData?h.contentWindow.getPopupData():ig_;_IG_RemoveEventHandler("resize",h?_ResizeIframeHeight:ig_H);_IG_RemoveDOMEventHandler(window,"scroll",ig_H);b(d,k)}},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_I(d,"href"))return d;if(d.nodeType==1&&ig_I(d,"tabindex")&&d.tabIndex!=-1)return d}}if(!d.hasChildNodes())return ig_;var h=d.childNodes;if(e){var k=0,j;for(;j=h[k];k++){var i=ig_J(j,e,f);if(i)return i}}else{var k=h.length-1,j;for(;j=h[k];k--){var i=ig_J(j,e,f);if(i)return i}}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){var e=_gel("button_"+d);if(e)e.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){var f=d.getAttributeNode(e);return f?f.specified:ig_a}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){var g=ig_J(this,ig_b,ig_a);if(!g)return ig_b;var h=ig_J(this,ig_a,ig_a);if(e==g&&d.shiftKey&&!(d.ctrlKey||d.altKey)){h.focus();return ig_a}else if(e==h&&!(d.shiftKey||d.ctrlKey||d.altKey)){g.focus();return ig_a}}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>");var g=0;for(;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("")},showDialog:function(d,e,f,g){var h=3000,k=c("IG_PU_bg"),j=k.style;
j.zIndex=h;j.background="#000";ig_Ta(k,ig_b);j.position="absolute";k.onclick=function(){};j.display="none";j.left="0px";j.top="0px";var i=c("IG_PU_box"),l=c("IG_PU_iframe_cover");i.innerHTML=d;if(!a&&f){var m=document.createElement("div");m.id="popup_box_placeholder";m.style.display="none";f.parentNode.insertBefore(m,f);_gel("dialogcontent").insertBefore(f,_gel("dialogcontent").firstChild)}var o=i.style;o.position="absolute";o.zIndex=h+1;var q=l.style;q.position="absolute";o.visibility="hidden";o.display=
"block";ig_H();o.visibility="visible";q.display="";j.display="block";_IG_AddEventHandler("resize",_gel("popup_iframe")?_ResizeIframeHeight:ig_H);_IG_AddDOMEventHandler(window,"scroll",ig_H);_gel("IG_PU_dlg").onkeydown=ig_Ua;e=e||function(){};if(g&&g.length){var r=[],n=0;for(;n<g.length;++n){var p=_gel(g[n]);if(p){r.push(g[n]);p.setAttribute("old_position",p.style.position);p.setAttribute("old_left",p.style.left);p.style.position="relative";p.style.left="-99999px"}}b=function(u,v){e(u,v);var w=0;for(;w<
r.length;++w){var t=_gel(r[w]);if(t){t.style.position=t.getAttribute("old_position");t.style.left=t.getAttribute("old_left")}}}}else b=e;var s=ig_J(i,ig_b,ig_b);s&&s.focus()},position:function(){var d=c("IG_PU_box"),e=c("IG_PU_iframe_cover"),f=c("IG_PU_bg"),g=document.body.clientWidth,h=window.innerHeight;if(!h)h=document.documentElement.offsetHeight;var k=d.offsetHeight<h,j=d.style;if(d){var i=(g-d.offsetWidth)/2,l=Math.max((h-d.offsetHeight)/2+(self.pageYOffset?self.pageYOffset:document.documentElement&&
document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop),0);if(!k&&j.top)l=parseInt(j.top,10);j.left=i+"px";j.top=l+"px";var m=e.style;m.left=i+"px";m.top=l+"px";m.width=d.offsetWidth+"px";m.height=d.offsetHeight+"px"}if(f){var o=parseInt(j.top,10)+d.offsetHeight,q=Math.max(ig_y(),h,o);f.style.height=q+"px";f.style.width=document.body.clientWidth+"px"}},toggleTransparency: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)"},resizeIframeHeight:function(){var d=_gel("popup_iframe");if(d){var e=d.style;e.height=ig_y(d.contentWindow.document.body)+"px";e.display="block";e.display=""}ig_H()}}})();
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_Ta=window._IG_PU.toggleTransparency,_IG_PU_createSimpleTitle=window._IG_PU.createSimpleTitle,ig_J=window._IG_PU.findFocusable,ig_I=window._IG_PU.hasAttr,ig_Ua=window._IG_PU.limitFocus,
ig_G=window._IG_PU.buildButtons,ig_H=window._IG_PU.position,ig_Sa=window._IG_PU.showDialog;function _IG_PU_init(){}function _IG_PU_IGNORE(){};var ig_K={Ka:"javascript:void(0);",Vb:{u:"",ti:"",mt:""},gmc:function(a,b){return[IG_MSGS.GMC,ig_i(IG_URLS.gmc,["moduleurl="+_esc(b.u),"mid="+a]),""]},gmp:function(a){return[IG_MSGS.GMP,ig_i(IG_URLS.gmp,["mid="+a]),""]},gmi:function(a,b){return[IG_MSGS.GMI,ig_i(IG_URLS.gmi,["moduleurl="+_esc(b.u),"mid="+a,"moduletitle="+_esc(_hesc(b.ti))]),""]},ed:function(a,b){var c=["_edit(",a,",",b.eh?"function(){"+b.eh+"();}":"null",")"];return[IG_MSGS.ED,ig_K.Ka,c.join("")]},mb:function(a,b,c){var d=["_confirmDel('",
a,"','",b.mt,"','n_",b.mt,"=",_esc("url="+_esc(b.u)),"','",c.replace("MODULE_TITLE",_jesc(b.ti)),"');"];return[IG_MSGS.DEL,ig_K.Ka,d.join("")]},del:function(a,b){return ig_K.mb(a,b,IG_MSGS.DEL_CONFIRM)},del2:function(a,b){return ig_K.mb(a,b,IG_MSGS.DEL_CONFIRM2)},ming:function(a,b){var c=["_zm('",a,"','",b.mt,"');"];return[IG_MSGS.MING,ig_K.Ka,c.join("")]},maxg:function(a,b){var c=ig_K.ming(a,b);c[0]=IG_MSGS.MAXG;return c},shg:function(a,b){var c=["_share_this_gadget('",_jesc(IG_MSGS.SHG),"','",ig_i(IG_URLS.sgu,
["moduleurl="+_esc(b.u),"mid="+a,"source=share_gadget"]),"','",a,"');return false;"];return[_hesc(IG_MSGS.SHG),"#",c.join("")]},nc:/^http:\/\//,Bb:function(a){return _esc(a.replace(ig_K.nc,""))},rg:function(a,b){return ig_K.rgv1(a,b).concat("dd_separator")},rgv1:function(a,b){return[IG_MSGS.RG,ig_i(IG_URLS.dir,["recommend="+ig_K.Bb(b.u)]),""]},ag:function(a,b){return[IG_MSGS.AG,ig_i(IG_URLS.dir,["url="+ig_K.Bb(b.u)]),""]}};_exportSymbols("",["_IG_DDI",ig_K]);var ig_L,ig_M,ig_N={};function _IG_AddDropDownEventHandler(a,b){ig_N[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){var c=document.createElement("div");c.setAttribute("id","DD_"+a);c.className="dd dd_border";c.style.display="none";c.onkeydown=_IG_DD_keys;var d=0,e;for(;e=b[d];d++){var f=e;if(typeof e=="function"){var g=window._IG_MD?_IG_MD.m[a]:_DD["m_"+a];f=e(a,g||ig_K.Vb)}f[3]&&c.appendChild(ig_Va(f[3]));c.appendChild(_IG_DD_add(f[0],f[1],f[2],d))}_gel("IG_DD_div").appendChild(c)}
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(h){c(h);_IG_DD_hide();return ig_a};g.className=d==0?"dd_item dd_item_first":"dd_item";g.onblur=function(){ig_M=ig_a;return ig_b};g.onmouseover=function(){return _IG_DD_select(this)};return g}
function ig_Va(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.style.display=="none"){ig_L=b;var d=_gel("IG_DD_div");d.className="dd_layer";_IG_AddEventHandler("resize",_IG_DD_position);_IG_DD_position();ig_M=ig_a;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_N[ig_L];g&&g(ig_b)}}
function _IG_DD_position(){var a=_gel("DD_"+ig_L),b=_gel("DD_tg_"+ig_L),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 h=_gel("IG_DD_iframe_cover");h.style.left=a.style.left;h.style.top=a.style.top;h.style.width=a.offsetWidth+"px";h.style.height=a.offsetHeight+"px";h.style.display="block";c.style.height=
ig_y()+"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_L){var b=_gel("DD_"+ig_L);b.style.display="none";_gel("IG_DD_iframe_cover").style.display="none";var c=_gel("DD_tg_"+ig_L);c.className=c.className.replace(/ ddbox_sel/,"");var d=ig_N[ig_L];d&&d(ig_a);if(ig_M){var e=_gel("DD_tg_"+ig_L);e&&e.focus()}ig_M=ig_a;ig_L=ig_}a.className="dd_layer_hidden"}_IG_DD_select(ig_)}
function _IG_DD_gcn(a,b,c){var d=new RegExp("(^| )"+c+"( |$)"),e=_gelstn(b,a),f=[],g=0,h;for(;h=e[g];g++)d.test(h.className)&&f.push(h);return f}
function _IG_DD_select(a){var b=_IG_DD_gcn(_gel("IG_DD_div"),"a","dd_sel");if(b!=ig_){var c=0,d;for(;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,h){var k=g;do{k=h?k.nextSibling:k.previousSibling;if(!k){var j=g.parentNode;k=h?j.firstChild:j.lastChild}}while(k!=g&&k.tagName!="A");return k}var c=ig_b,d=_IG_DD_gcn(_gel("IG_DD_div"),"a","dd_sel");if(d==ig_||d.length!=1)return ig_b;var e=d[0];if(!a)a=window.event;var f=a.keyCode||a.charCode||a.which;switch(f){case 13:ig_M=ig_b;break;case 38:_IG_DD_select(b(e,ig_a));c=ig_a;break;case 40:_IG_DD_select(b(e,ig_b));c=ig_a;break;case 27:case 9:ig_M=ig_b;c=ig_L==ig_&&
f==9;_IG_DD_hide();break}return c};function ig_Wa(a,b,c,d){a||c(d?ig_:"");var e=eval("("+a.substring(27)+")");if(b in e){var f=e[b].body;c(d?ig_O(f):f)}}function ig_Xa(a){var b;if(window.ActiveXObject){b=new ActiveXObject("Microsoft.XMLDOM");b.async=ig_a;b.validateOnParse=ig_a;b.resolveExternals=ig_a;b.loadXML(a)}else{var c=new DOMParser;b=c.parseFromString(a,"text/xml")}return b}
function ig_O(a){var b=ig_Xa(a),c=b.documentElement;if(c&&c.nodeName=="parsererror"||navigator.userAgent.indexOf("Safari")>=0&&_gelstn("parsererror",b)[0])return a;return b}var ig_Ya=(new Date).getTime();
function ig_P(a){if(!a.post_data&&!a.headers&&window._pl_data&&_pl_data[a.url]&&!(!isNaN(a.refreshInterval)&&a.refreshInterval>=0&&(new Date).getTime()>ig_Ya+a.refreshInterval*1000))if(a.asXml){var b=ig_O(_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){var d=[],e=0;for(;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){ig_Wa(f,a.url,a.callback,a.asXml)},ig_a,a.post_data)}}function ig_Q(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_Q(c):{};d.url=a;d.callback=b;d.asXml=ig_a;ig_P(d)}function _IG_FetchXmlContent(a,b,c){var d;d=c!=ig_&&typeof c=="object"?ig_Q(c):{};d.url=a;d.callback=b;d.asXml=ig_b;ig_P(d)}
function ig_Za(a,b,c){_IG_FetchContent(a,function(d){if(d){var e=ig_O(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_R(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 h=e[g]?e[g]:ig_;b[g](h)}b=ig_},ig_a,a)}var ig_S=ig_a,ig__a=0,ig_T="",ig_U={};
function _IG_FetchFeedAsJSON(a,b,c,d,e){if(typeof e!="object")e={};var f="fr_"+ig__a++,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 h=f+"="+_esc(g);if(ig_S){var k={};k[f]=b;ig_R(h,k)}else{if(ig_T!="")ig_T+="&";ig_T+=h;ig_U[f]=b}}function ig_0a(){ig_S=ig_b;ig_T!=""&&ig_R(ig_T,ig_U);ig_T="";ig_U=ig_}_IG_AddEventHandler("domload",ig_0a);
_exportSymbols("google.gadgets.Fetchers",["getContent",_IG_FetchContent,"getXMLContent",ig_Za,"getFeedAsJSON",_IG_FetchFeedAsJSON]);var ig_V;
ig_V||(ig_V=(function(){function a(j){return j<10?"0"+j:j}Date.prototype.w=function(){return this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z"};String.prototype.w=Number.prototype.w=Boolean.prototype.w=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 h(j){c.lastIndex=0;return c.test(j)?'"'+j.replace(c,function(i){var l=f[i];if(typeof l==="string")return l;return"\\u"+("0000"+(+i.charCodeAt(0)).toString(16)).slice(-4)})+'"':'"'+j+'"'}function k(j,i){var l,m,o,q,r=d,n,p=i[j];if(p&&typeof p==="object"&&typeof p.w==="function")p=p.w(j);if(typeof g==="function")p=g.call(i,j,p);switch(typeof p){case "string":return h(p);case "number":return isFinite(p)?
String(p):"null";case "boolean":case "null":return String(p);case "object":if(!p)return"null";d+=e;n=[];if(typeof p.length==="number"&&!p.propertyIsEnumerable("length")){q=p.length;l=0;for(;l<q;l+=1)n[l]=k(l,p)||"null";o=n.length===0?"[]":d?"[\n"+d+n.join(",\n"+d)+"\n"+r+"]":"["+n.join(",")+"]";d=r;return o}if(g&&typeof g==="object"){q=g.length;l=0;for(;l<q;l+=1){m=g[l];if(typeof m==="string")if(o=k(m,p))n.push(h(m)+(d?": ":":")+o)}}else for(m in p)if(Object.hasOwnProperty.call(p,m))if(o=k(m,p))n.push(h(m)+
(d?": ":":")+o);o=n.length===0?"{}":d?"{\n"+d+n.join(",\n"+d)+"\n"+r+"}":"{"+n.join(",")+"}";d=r;return o}}return{stringify:function(j,i,l){var m=i,o=l,q;e=d="";if(typeof o==="number"){q=0;for(;q<o;q+=1)e+=" "}else if(typeof o==="string")e=o;if((g=m)&&typeof m!=="function"&&(typeof m!=="object"||typeof m.length!=="number"))throw new Error("JSON.stringify");return k("",{"":j})},parse:function(j,i){var l=i,m;function o(q,r){var n,p,s=q[r];if(s&&typeof s==="object")for(n in s)if(Object.hasOwnProperty.call(s,
n)){p=o(s,n);if(p!==undefined)s[n]=p;else delete s[n]}return l.call(q,r,s)}b.lastIndex=0;if(b.test(j))j=j.replace(b,function(q){return"\\u"+("0000"+(+q.charCodeAt(0)).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(j.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){m=eval("("+j+")");return typeof l==="function"?o({"":m},""):m}throw new Error("JSON.parse");}}})());
ig_V.parse=(function(){var a=ig_V.parse;return function(b,c){try{return a(b,c)}catch(d){return ig_a}}})();function ig_1a(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_2a(a){if(!!a.match(/^http[s]?:\/\//)){var b=this;window.setTimeout(function(){var c=ig_,d=b.j.length-1;for(;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.Pb(ig_b);c.src=a;document.body.appendChild(c)},0)}}function ig_3a(){var a=0;for(;a<this.j.length;a++){this.j[a].onload=ig_;this.j[a]=ig_}this.j.length=0;this.j=[]}
function ig_4a(){var a=0;for(;a<this.j.length;a++){var b=this.j[a];b&&b.parentNode.removeChild(b)}}function ig_5a(){this.j=[];this.Pb=ig_1a;this.iframe=ig_2a;this.clear=ig_3a;this.dispose=ig_4a}function ig_6a(a,b){_IFPC.T[a]=b}function ig_7a(a){delete _IFPC.T[a]}
function ig_8a(a,b,c,d,e,f,g){if(!_IFPC.ra){c=c.slice(0);c.unshift(_IFPC.ic(e));c.unshift(f);c.unshift(b);c.unshift(a);var h=4095-d.length;h=parseInt(h/3,10);if(typeof g=="undefined")g=ig_b;var k=_IFPC.nb(c),j=parseInt(k.length/h,10);if(k.length%h>0)j+=1;var i=0;for(;i<j;i++){var l=k.substr(i*h,h),m=[a,_IFPC.gb,j,i,l,g];_IFPC.Ga.iframe(d+"#"+_IFPC.nb(m))}_IFPC.gb++}}function ig_9a(){_IFPC.T={};_IFPC.F={};_IFPC.Ga.clear()}
function ig_$a(){if(!_IFPC.ra){_IFPC.ra=ig_b;_IFPC.Ga.dispose();_IFPC.clear()}}function ig_W(a){var b=_IFPC.pa(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(d){}if(!c)c=window.parent.parent;if(!c||c._IFPC==undefined)c=ig_;else{var e=function(){c._IFPC.handleRequest(a)};window.ActiveXObject?e():c.setTimeout(e,0)}}
function ig_ab(a){var a=_IFPC.pa(a),b=a.shift(),c=a.shift(),d=a.shift(),e=a.shift(),f=a.shift(),g=a.shift(),h=b+"_"+c;_IFPC.C[h]||(_IFPC.C[h]=[]);_IFPC.C[h].push([e,f]);if(_IFPC.C[h].length==d){_IFPC.C[h].sort(function(r,n){return parseInt(r[0],10)-parseInt(n[0],10)});f="";var k=0;for(;k<d;k++)f+=_IFPC.C[h][k][1];_IFPC.C[h]=ig_;var j=_IFPC.pa(f),b=j.shift(),i=j.shift(),l=j.shift(),m=j.shift(),o=_IFPC.ac(i);if(o){var q=o.apply(ig_,j);if(_IFPC.dc(m)){q.unshift(m);_IFPC.call(b,_IFPC.$a,q,l,ig_,"")}}else if(g)throw new Error("Service "+
i+" not registered.");}}function ig_bb(a){return _IFPC.T.hasOwnProperty(a)?_IFPC.T[a]:ig_}function ig_cb(a){var b="";if(a&&typeof a=="function"){b=_IFPC.$b();_IFPC.F[b]=a}return b}function ig_db(a){if(_IFPC.F.hasOwnProperty(a))_IFPC.F[a]=ig_}function ig_eb(a){if(a&&_IFPC.F.hasOwnProperty(a))return _IFPC.F[a];return ig_}function ig_fb(){return _IFPC.Za+_IFPC.Mb++}function ig_gb(a){return(a+"").indexOf(_IFPC.Za)==0}
function ig_hb(a){var b=a.split("&"),c=0;for(;c<b.length;c++){var d=decodeURIComponent(b[c]);try{d=ig_V.parse(d)}catch(e){}b[c]=d}return b}function ig_ib(a){var b=[],c=0;for(;c<a.length;c++){var d=ig_V.stringify(a[c]);b.push(encodeURIComponent(d))}return b.join("&")}function ig_jb(a){var b=_IFPC.Yb(a);if(b){var c=[],d=1;for(;d<arguments.length;d++)c[c.length]=arguments[d];b.apply(ig_,c);_IFPC.qc(a)}else throw new Error("Invalid callbackId");}var _IFPC;
function ig_kb(a){var b=window._argsUrl&&window._argsUrl(a);if(b&&b.exp_rpc_js==1)window.FLAG_use_rpc_js=ig_b;if(window.FLAG_use_rpc_js)_IFPC={registerService:function(c,d){window.gadgets.rpc.register(c,function(){var e=this.a.slice(0);e.unshift(this.f);d.apply(ig_,e)})},unregisterService:function(c){window.gadgets.rpc.unregister(c)},call:function(c,d,e,f,g){var h=window.gadgets.rpc;if(f==h.getRelayUrl(".."))c="..";e||(e=[]);e=e.slice(1);e.unshift(g);e.unshift(d);e.unshift(c);window.gadgets.rpc.call.apply(ig_,
e)}};else{_IFPC={registerService:ig_6a,unregisterService:ig_7a,call:ig_8a,clear:ig_9a,dispose:ig_$a,relayRequest:ig_W,processRequest:ig_W,handleRequest:ig_ab,Za:"cbid",$a:"ifpc_callback",Ga:new ig_5a,C:{},T:{},F:{},Mb:0,gb:0,ra:ig_a,ac:ig_bb,ic:ig_cb,qc:ig_db,Yb:ig_eb,$b:ig_fb,dc:ig_gb,pa:ig_hb,nb:ig_ib,Nb:ig_jb};_IFPC.registerService(_IFPC.$a,_IFPC.Nb)}}ig_kb(document.location.href);function ig_X(a,b){var c=_gel("m_"+b+"_title");if(c)c.innerHTML=_hesc(a);if(c=_gel("left_nav_m_"+b+"_title"))if(c=c.firstChild){c.innerHTML=_hesc(a);c.title=a}}function ig_Y(a){return typeof a=="undefined"||!a||a=="undefined"}function ig_lb(a,b){ig_Y(a)||ig_X(b,_ig_gmid_(a))}_IFPC.registerService("set_title",ig_lb);function _IG_SetTitle(a,b){if(ig_Y(b))throw new Error("Inline modules must specify their __MODULE_ID__ when using _IG_SetTitle");else ig_X(a,b)};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_Z=ig_;
function _share_gadget(a,b,c,d,e,f,g,h){if(d){_hide_sent_content_messages();if(!ig_Z)ig_Z=_gel("sent_gadget_box").innerHTML;_gel("sent_gadget_box").innerHTML=ig_Z.replace("GADGET_NAME",_get_module_title(d))}var k=g?"_gel('popup_iframe').contentWindow.prepareEmail(_gel('share_userprefs') ? _gel('share_userprefs').checked : false)":"_gel('popup_iframe').contentWindow.prepareEmail();",j=['<input type="button" id="send_btn" disabled="true" onclick="'+k+'" value="'+e+'"></input>',_IG_PU_MakeDialogButton(f)],
i="titlebar userprefs userprefs_border",l=_get_userprefs_checkbox_html(g,h,i);_IG_PU_openURL(a,l,b,c,j,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_Z)ig_Z=_gel("sent_gadget_box").innerHTML;_gel("sent_gadget_box").innerHTML=ig_Z.replace("GADGET_NAME",_get_module_title(c))}var e=d||function(){},f=function(g,h){e(g,h);c&&_finish_sharing_gadget(g)};_IG_PU_openURL('<img src="/ig/images/sharegadget.gif"> '+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 h='<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);",j=['<input type="button" id="send_btn" disabled="true" onclick="'+_hesc(k)+'" value="'+_hesc(f)+'"></input>',_IG_PU_MakeDialogButton(g)];if(_uli){var i=
_get_all_modules(),l=Math.max(i.length*160,400),m=7,o=0,q=0;for(;q<i.length;q++)if(i[q].length>o)o=i[q].length;var r=o>m&&c!="NO_TRANSLATION",n=[a];n.push('<form id="module_list">');n.push('<table class="titlebar module_list_table" ','cols="',i.length,'"',' width="',l,'px">');r?n.push('<tr class="zipped_modules" id="module_list_zipper">'):n.push('<tr class="unzipped_modules">');var p=0;for(;p<i.length;p++){n.push('<td width="',100/i.length,'%" ','valign="top">');var s=0;for(;s<i[p].length;s++){var u=
_hesc(i[p][s].id.replace("m_","")),v=_hesc(_get_module_title(i[p][s]));n.push('<div class="module_item');s>=m&&r&&n.push(" extra_items");n.push('">');n.push('<input id="share_',u,'" type="checkbox"'," checked ></input>");n.push('<label for="share_',u,'">',v,"</label>");n.push("</div>")}n.push("</td>")}n.push("</tr>");if(r){n.push('<tr class="zipped_module_list">');n.push('<td id="show_all_modules" colspan="',i.length,'" style="font-size:80%;text-align:center;">');n.push('<a href="javascript:void(0);" id="zipper_text"',
' onclick="_modules_zipper();">');n.push(c,"</a>");n.push("</td></tr>")}n.push("</table>");n.push(_get_userprefs_checkbox_html(d,e,"userprefs"));n.push("</form>");_IG_PU_open(n.join(""),h,j);_IG_PU_disable_hide_for_button(0);_gel("dialogcontent").className+=" url";_gel("buttons").className+=" colored_background"}else{_IG_PU_open(a,h,j);_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_a)}}
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(){var a=_gel("module_list").elements,b=[],c=0;for(;c<a.length;c++)ig_mb(a[c])||(b[b.length]=a[c].id.replace("share_",""));return b}
function ig_mb(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),e=!b||c||!d;return a.checked&&e}return ig_a}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_callPostLoad(a){a()};var ig__={obj:ig_,init:function(a,b){a.onmousedown=ig__.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.yb);a.onmousedown=ig_;a.obj=ig_;b.onDragStart=ig_;b.onDragEnd=ig_;b.onDrag=ig_},start:function(a){var b=ig__.obj=this.obj;a=ig__.fixE(a);if(a.which!=1)return ig_b;b.onDragStart(a);var c=a.clientY;ig_0.tb||
(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.yb=window.setInterval(ig_nb(b,document.body.scrollHeight>document.documentElement.clientHeight?document.body.scrollHeight:document.documentElement.clientHeight),10);document.onmouseup=ig__.end;document.onmousemove=ig__.drag;return ig_a},drag:function(a){a=ig__.fixE(a);if(a.which==0)return ig__.end();var b=ig__.obj,c=a.clientY;ig_0.tb||(c+=
document.body.scrollTop);var d=a.clientX;if(b.lastMouseX==d&&b.lastMouseY==c)return ig_a;var e=d+b.offsetMouseX,f=c+b.offsetMouseY;b.style.left=e+"px";b.style.top=f+"px";b.lastMouseX=d;b.lastMouseY=c;b.onDrag(e,f);return ig_a},end:function(a){a=ig__.fixE(a);document.onmousemove=ig_;document.onmouseup=ig_;window.clearInterval(ig__.obj.yb);var b=ig__.obj.onDragEnd();ig__.obj=ig_;return b},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_ob(a,b,c){if(!a)return[];var d=b=="*"&&a.all?a.all:_gelstn(b,a),e=[];c=c.replace(/\-/g,"\\-");var f=new RegExp("(^|\\s)"+c+"(\\s|$)"),g,h=0;for(;h<d.length;h++){g=d[h];f.test(g.className)&&e.push(g)}return e}
var _IG_initDrag=function(a,b){ig_0.N=a;ig_0.ba=b;ig_0.G=ig_ob(ig_0.N,"div","yui-u");if(_old_html){ig_0.xb=ig_0.N.tBodies[0].rows[0];ig_0.G=ig_0.xb.cells}ig_0.q=[];var c=0,d=0;for(;d<ig_0.G.length;d++){var e=ig_0.G[d];if(!(e.className.indexOf("ig_dnd_fixed_col")!=-1||e.style.display=="none")){var f=0;for(;f<e.childNodes.length;f++){var g=e.childNodes[f];if(g.tagName=="DIV"){ig_0.q[c]=g.className!="dm"?new ig_pb(g):new ig_qb(g);c++}}}}_IG_AddEventHandler("unload",ig_1)};
function ig_1(){if(ig_0.q){var a=0;for(;a<ig_0.q.length;a++){ig_0.q[a].W();ig_0.q[a]=ig_}}ig_0.q=ig_;ig_0.G=ig_;if(_old_html)ig_0.xb=ig_;ig_0.N=ig_}var ig_0={};ig_0.Xa=navigator.userAgent;ig_0.Ha=ig_0.Xa.indexOf("Gecko")!=-1;ig_0.Ja=ig_0.Xa.indexOf("Opera")!=-1;ig_0.tb=ig_0.Xa.indexOf("Safari")!=-1;ig_0.cb="IG_pageDivMaskId";ig_0.bb="IG_moduleDivMaskId";ig_0.Ub=function(){ig_0.N.style.display="none"};ig_0.Xb=function(){ig_0.N.style.display=""};ig_0.D=ig_;
ig_0.I=function(){if(!ig_0.D){ig_0.D=document.createElement("DIV");ig_0.D.className="modbox";ig_0.D.backgroundColor="";ig_0.D.style.border="2px dashed #aaa";ig_0.D.innerHTML="&nbsp;"}return ig_0.D};ig_0.s=function(a,b){return function(){return a[b].apply(a,arguments)}};
ig_0.pb=function(){var a=[];if(ig_0.ba){var b;b=_old_html?ig_0.ba.tBodies[0].rows[0].cells:_gelstn("LI",ig_0.ba);var c=0;for(;c<b.length;c++){var d=b[c];(" "+d.className+" ").indexOf(" unselectedtab ")<0||d.style.display=="none"||a.push(d)}b=_gelstn("DIV",ig_0.ba);var c=0;for(;c<b.length;c++){var d=b[c];(" "+d.className+" ").indexOf(" leftunselectedtab ")<0||d.style.display=="none"||a.push(d)}}return a};
ig_0.Lb=function(){var a=ig_0.pb(),b=0;for(;b<a.length;b++){var c=a[b];c.isDraggableTo=ig_b;c.pagePosLeft=ig_0.p(c,ig_b);c.pagePosRight=c.pagePosLeft+c.offsetWidth;c.pagePosTop=ig_0.p(c,ig_a);c.pagePosBottom=c.pagePosTop+c.offsetHeight}};ig_0.Kb=function(a){var b=0;for(;b<ig_0.q.length;b++){var c=ig_0.q[b];c.b.pagePosLeft=ig_0.p(c.b,ig_b);c.b.pagePosTop=ig_0.p(c.b,ig_a)}var d=a.b.nextSibling;for(;d;){d.pagePosTop-=a.b.offsetHeight;d=d.nextSibling}};
ig_0.p=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_0.eb=function(a){ig_0.Ta();var b=document.createElement("DIV");b.id=ig_0.cb;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.bc){b=b.cloneNode(ig_b);b.id=ig_0.bb;b.style.height=a.b.offsetHeight-a.n.offsetHeight+"px";b.style.top=a.n.offsetHeight+"px";a.b.appendChild(b)}};
ig_0.Ta=function(){var a=[ig_0.bb,ig_0.cb],b=0;for(;b<a.length;b++){var c=_gel(a[b]);c&&c.parentNode.removeChild(c)}};ig_0.kc=function(){var a="",b=0;for(;b<ig_0.G.length;b++){var c=ig_0.G[b],d=0;for(;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_qb(a){this.W=ig_rb;this.b=a;this.b.innerHTML="<br />"}function ig_rb(){this.b=ig_}
function ig_pb(a){this._urlMouseUp=ig_sb;this._urlMouseDown=ig_tb;this._urlClick=ig_ub;this._dragStart=ig_vb;this._drag=ig_wb;this._dragEnd=ig_xb;this.ua=ig_2;this.da=ig_yb;this.W=ig_3;this.r=ig_a;this.b=a;this.n=_gel(a.id+"_h");this.h=_gel(a.id+"_url");this.bc=_gelstn("IFRAME",this.b).length>0;this.b.DND_Module=this;if(this.n){this.n.style.cursor="move";ig__.init(this.n,this.b);this.b.onDragStart=ig_0.s(this,"_dragStart");this.b.onDrag=ig_0.s(this,"_drag");this.b.onDragEnd=ig_0.s(this,"_dragEnd");
if(this.h){this.h.style.cursor="pointer";if(ig_0.Ha){this.h.onmousedown=ig_0.s(this,"_urlMouseDown");this.h.onclick=ig_0.s(this,"_urlClick")}else this.h.onmouseup=ig_0.s(this,"_urlMouseUp")}}}function ig_3(){if(this.n){if(this.h){this.h.onclick=ig_;this.h=this.h.onmouseup=ig_}ig__.uninit(this.n,this.b);this.b.onDragStart=ig_;this.b.onDrag=ig_;this.n=this.b.onDragEnd=ig_}this.b=ig_}
function ig_sb(a){a=ig__.fixE(a);if(this.r||!this.h||!this.h.href||a.which!=1)return ig_b;this.da("titleclick");if(this.h.target||a.shiftKey)window.open(this.h.href,this.h.target);else document.location=this.h.href;return ig_a}function ig_tb(a){a=ig__.fixE(a);a.stopPropagation();return ig_b}function ig_ub(){if(!this.r&&this.h&&this.h.href){this.da("titleclick");return ig_b}return ig_a}
function ig_vb(){ig_0.Kb(this);ig_0.Lb();this.origNextSibling=this.b.nextSibling;var a=ig_0.I(),b=this.b.offsetHeight;b-=parseInt(a.style.borderTopWidth,10)*2;var c=this.b.offsetWidth,d=ig_0.p(this.b,ig_b),e=ig_0.p(this.b,ig_a);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_0.eb(this);return this.r=ig_a}
function ig_4(){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_wb(a,b){if(!this.r){this.b.style.filter="alpha(opacity=50)";this.b.style.opacity=0.5;this.r=ig_b;this.da("dragstart")}var c=ig_,d=100000000,e=0;for(;e<ig_0.q.length;e++){var f=ig_0.q[e],g=a;if(document.body.dir=="rtl"&&f.b.offsetWidth==1)g+=this.b.offsetWidth;var h=Math.sqrt(Math.pow(g-f.b.pagePosLeft,2)+Math.pow(b-f.b.pagePosTop,2));if(!(f==this))if(!isNaN(h))if(h<d){d=h;c=f}}this.B=ig_;var k=ig_0.pb(),e=0;for(;e<k.length;e++){var f=k[e];if(!!f.isDraggableTo){var j=ig_4();if(this.b.lastMouseX>=
f.pagePosLeft&&this.b.lastMouseX<=f.pagePosRight&&this.b.lastMouseY+j[1]>=f.pagePosTop&&this.b.lastMouseY+j[1]<=f.pagePosBottom){this.B=f;var i=ig_0.I();i.parentNode!=ig_&&i.parentNode.removeChild(i);break}}}var e=0;for(;e<k.length;e++){var f=k[e];if(f.id.indexOf("view")>=0||f.id.indexOf("contents")>=0)if(f==this.B){if(f.className.indexOf(" tab_hover")<0)f.className+=" tab_hover"}else f.className=f.className.replace(/ tab_hover/g,"")}var i=ig_0.I();if(this.B==ig_&&c!=ig_&&i.nextSibling!=c.b){c.b.parentNode.insertBefore(i,
c.b);if(ig_0.Ja){document.body.style.display="none";document.body.style.display=""}}}
function ig_xb(){ig_0.Ta();this.ua()&&ig_0.kc();if(this.B){var a=this.B.id.match(/.*(\d+).*/)[1],b=this.b.id.match(/m_(\d+)/)[1];_xsetp("mt="+b+":"+a);this.b.style.display="none";this.B.className=this.B.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.r&&this.da("dragend");return ig_b}
function _hideNewUserTip(){var a=_gel("new_user_tip");if(a)a.style.display="none";var b=_gel("new_user_save");if(b)b.style.display="block"}
function ig_2(){var a=ig_a;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_0.I();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_0.Ja){document.body.style.display="none";document.body.style.display=""}return a}
function ig_yb(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_nb(a,b){return function(){var c=ig_zb(),d=ig_4(),e=d[1],f=4,g=0.05*c,h=e,k=a.offsetTop;if(a.lastMouseY<=g){k=a.offsetTop-f;h=e-f}else if(a.lastMouseY>=c-g){k=Math.min(b-a.offsetHeight,a.offsetTop+f);h=Math.min(b-c,e+f)}var j=h-e;if(j!=0){window.scrollBy(0,j);a.style.top=k+"px"}}}
function ig_zb(){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_0]);function ig_Ab(a){var b=_gel("mobile_screen");b.insertBefore(a,b.firstChild);a.style.display="block";var c=ig_Bb(a.id),d=_gel("m_"+c);_gel("added_m_"+c).style.display="";_gel("add_m_"+c).style.display="none";d.style.filter="alpha(opacity=30)";d.style.opacity=0.3;if(!ig_0.Ha)d.style.width="100%"}function _addToMobileDisplayAndLog(a){ig_Ab(a);ig_0.Ua("add")}function _delFromMobileAndLog(a,b,c){ig_Cb(a,b,c);ig_0.Ua("del")}
function ig_Cb(a){var b=_gel("mobile_m_"+a),c=_gel("m_"+a);b.style.display="none";if(c){c.style.filter="alpha(opacity=100)";c.style.opacity=1;var d=_gel("add_"+c.id),e=_gel("added_"+c.id);e.style.display="none";d.style.display=""}}function ig_Bb(a){if(a.indexOf("mobile")==0)return a.substring("mobile_m_".length);return a.substring("m_".length)}function ig_Db(){var a=0;for(;a<ig_0.v.length;a++){ig_0.v[a].W();ig_0.v[a]=ig_}ig_0.v=ig_}
ig_0.Jb=function(a){var b=0;for(;b<ig_0.v.length;b++){var c=ig_0.v[b];c.b.pagePosLeft=ig_0.p(c.b,ig_b);c.b.pagePosTop=ig_0.p(c.b,ig_a)}var d=a.b.nextSibling;for(;d;){d.pagePosTop-=a.b.offsetHeight;d=d.nextSibling}};ig_0.Ua=function(a){var b="",c=_gel("mobile_screen"),d=0;for(;d<c.childNodes.length;d++){var e=c.childNodes[d];if(e.style.display!="none"){b+=b!=""?":":"";b+=e.id.substring(9)}}_xsetp("mobile_mp="+_esc(b)+"&action="+_esc(a))};
function ig_Eb(a){this._dragStart=ig_Fb;this._drag=ig_Gb;this._dragEnd=ig_Hb;this.W=ig_3;this.ua=ig_2;this.r=ig_a;this.b=a;this.b.style.cursor="move";this.n=_gel(a.id+"_h");this.fb=_gel(a.id+"_b");this.n&&ig__.init(this.n,this.b);this.fb&&ig__.init(this.fb,this.b);this.b.onDragStart=ig_0.s(this,"_dragStart");this.b.onDrag=ig_0.s(this,"_drag");this.b.onDragEnd=ig_0.s(this,"_dragEnd")}
function ig_Fb(){ig_0.Jb(this);this.origNextSibling=this.b.nextSibling;var a=ig_0.I(),b=this.b.offsetHeight;if(ig_0.Ha)b-=parseInt(a.style.borderTopWidth,10)*2;a.className="";var c=this.b.offsetWidth,d=ig_0.p(this.b,ig_b),e=ig_0.p(this.b,ig_a);ig_0.Ub();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=100;this.b.style.left=d+"px";this.b.style.top=e+"px";ig_0.Xb();ig_0.eb(this);return this.r=ig_a}
function ig_Gb(a,b){if(!this.r){this.b.style.filter="alpha(opacity=70)";this.b.style.opacity=0.7;this.r=ig_b}var c=ig_,d=100000000,e=0;for(;e<ig_0.v.length;e++){var f=ig_0.v[e],g=Math.sqrt(Math.pow(a-f.b.pagePosLeft,2)+Math.pow(b-f.b.pagePosTop,2));if(!(f==this))if(!isNaN(g))if(g<d){d=g;c=f}}var h=ig_0.I();h.className="";if(c!=ig_&&h.nextSibling!=c.b){c.b.parentNode.insertBefore(h,c.b);if(ig_0.Ja){document.body.style.display="none";document.body.style.display=""}}}
function ig_Hb(){ig_0.Ta();this.ua()&&ig_0.Ua("move");return ig_b}var _IG_initMobileDrag=function(a){ig_0.N=a;ig_0.v=[];var b=0,c=_gel("mobile_screen").childNodes,d=0;for(;d<c.length;d++){var e=c[d];if(e.tagName=="DIV"){ig_Ib(e)&&ig_Jb(e);ig_0.v[b]=new ig_Eb(e);b++}}_IG_AddEventHandler("unload",ig_Db)};function ig_Ib(a){var b=_gel(a.id+"_h");if(b){var c=_gel(a.id+"_h").innerHTML;if(c.indexOf("Google Reader")>=0)return ig_b}}
function ig_Jb(a){var b=_gel(a.id+"_b"),c=0;for(;c<b.childNodes.length;c++){var d=b.childNodes[c];if(d.tagName=="TABLE")d.className="mmc"}};function _delpromobox(){_xsetp("hp=0");var a=_gel("promobox");a.parentNode.removeChild(a);return ig_a}function _delmessage(){_xsetp("gm=0");var a=_gel("googlemessage");a.parentNode.removeChild(a);return ig_a}function _delpromomod(){_xsetp("pm=0");var a=_gel("promomod");a.parentNode.removeChild(a);return ig_a};var ig_Kb=" modhover",ig_Lb="titlehover";function _IG_hoverModule(a,b){var c=_gel("m_"+a);ig_Mb(a,b,c,ig_Kb)}function _IG_hoverHeader(a,b){var c=_gel("m_"+a+"_drag");c.style.display=b?"":"none";var d=_gel("m_"+a+"_home_menu");ig_Mb(a,b,d,ig_Lb)}function ig_Mb(a,b,c,d){if(b){var e=ig_5.isModuleMaximized(a);if(!e&&c.className.indexOf(d)==-1)c.className+=d}else c.className=c.className.replace(d,"")};function ig_Nb(a){a&&(a.src="")}function ig_6(a){var b=_gel("remote_iframe_"+a);if(!!b)b.src=_IG_Prefs._updatePrefsInUrl(a,b.src)}var _IG_iFrameTransitionStrategy=function(a,b,c){this.c=a;this.R=b;this.dashboardBodyClass=this.na="";this.qa=c||"800px";this.kb=this.lb=this.oa=ig_};_IG_iFrameTransitionStrategy.prototype._onPreDetachDashboard=function(){_gel("remote_iframe_"+this.c);if(this.na==""){var a=0;for(;a<remote_modules.length;a++){var b=remote_modules[a];if(b.id==this.c)this.na=b.base_iframe_url}}};
_IG_iFrameTransitionStrategy.prototype._onPreAttachMaximized=function(){var a=_gel("m_"+this.c+"_b");this.dashboardBodyClass=a.className;a.className="modboxin_max";ig_5.removeRoundedCorners(this.c);_gel("rcam_t1").className="rnd1_max_top";_gel("rcam_t2").className="rnd2_max_top";_gel("rcam_t3").className="rnd3_max_top"};_IG_iFrameTransitionStrategy.prototype._onPostDetachMaximized=function(){ig_Nb(_gel("remote_iframe_"+this.c))};
_IG_iFrameTransitionStrategy.prototype._onPreAttachDashboard=function(){var a=_gel("m_"+this.c),b=_gel("m_"+this.c+"_b"),c=/_e/.test(a.className)?"_e":"";a.className="modbox"+c;b.className=this.dashboardBodyClass;ig_5.restoreRoundedCorners(this.c);_gel("rcam_t1").className="rnd1";_gel("rcam_t2").className="rnd2";_gel("rcam_t3").className="rnd3"};
_IG_iFrameTransitionStrategy.prototype._onPostAttachMaximized=function(){var a=_gel("remote_iframe_"+this.c),b=_gel("m_"+this.c),c=_gel("m_"+this.c+"_b");this.lb=b.style.height;this.kb=c.style.height;this.oa=a.style.height;a.src=this.R;a.style.height=this.qa;ig_6(this.c)};
_IG_iFrameTransitionStrategy.prototype._onPostAttachDashboard=function(){var a=_gel("remote_iframe_"+this.c),b=_gel("m_"+this.c),c=_gel("m_"+this.c+"_b");if(this.oa!=ig_){a.style.height=this.oa;b.style.height=this.lb;c.style.height=this.kb}a.src=this.na;ig_6(this.c)};var _IG_inlinedTransitionStrategy=function(a,b,c,d){this.c=a;this.ub=ig_a;this.R=b;this.sa="max_div";this.P="max_iframe";this.qa=c||"800px";this.rc=d||ig_a;this.Ra=this.Qa=ig_;this.dashboardBodyClass=""};
_IG_inlinedTransitionStrategy.prototype._updateIframeSrc=function(a){this.R=a;var b=_gel(this.P);if(b)b.src=a};_IG_inlinedTransitionStrategy.prototype._setNextMaxIframeAddress=function(a){this.R=a};_IG_inlinedTransitionStrategy.prototype._setPostMaximizeCallback=function(a){if(!a||typeof a=="function")this.Qa=a};_IG_inlinedTransitionStrategy.prototype._setPostRestoreCallback=function(a){if(!a||typeof a=="function")this.Ra=a};
_IG_inlinedTransitionStrategy.prototype._onresizeHandler=function(){var a=_gel("max_iframe"),b=_gel("max_div"),c;a.style.width="200px";c=_IG_isIE()?b.scrollWidth-25:b.offsetWidth;c=Math.max(200,c);a.style.width=c+"px"};
_IG_inlinedTransitionStrategy.prototype._onPostAttachMaximized=function(){var a=_gel(this.sa),b=_gel(this.P),c=_gel("m_"+this.c+"_b");if(!a){a=document.createElement("DIV");a.id=this.sa}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.P;a.appendChild(b)}if(this.rc)_IG_AddEventHandler("resize",this._onresizeHandler);else{_IG_RemoveEventHandler("resize",this._onresizeHandler);
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.qa;b.src=_IG_Prefs._updatePrefsInUrl(this.c,this.R);this.Qa&&this.Qa(this);return b.src};_IG_inlinedTransitionStrategy.prototype._onPostDetachMaximized=function(){ig_Nb(_gel(this.P))};
_IG_inlinedTransitionStrategy.prototype._onPostAttachDashboard=function(){var a=_gel(this.sa);a.style.display="none";var b=_gel(this.P);if(b)b.src="";this.Ra&&this.Ra(this)};_IG_inlinedTransitionStrategy.prototype._onPreAttachMaximized=function(){_gel("m_"+this.c);var a=_gel("m_"+this.c+"_b");this.dashboardBodyClass=a.className;a.className="modboxin_max";ig_5.removeRoundedCorners(this.c);_gel("rcam_t1").className="rnd1_max_top";_gel("rcam_t2").className="rnd2_max_top";_gel("rcam_t3").className="rnd3_max_top"};
_IG_inlinedTransitionStrategy.prototype._onPreAttachDashboard=function(){var a=_gel("m_"+this.c),b=_gel("m_"+this.c+"_b"),c=/_e/.test(a.className)?"_e":"";a.className="modbox"+c;b.className=this.dashboardBodyClass;ig_5.restoreRoundedCorners(this.c);window.onresize=ig_;_gel("rcam_t1").className="rnd1";_gel("rcam_t2").className="rnd2";_gel("rcam_t3").className="rnd3"};var _IG_scaleInlinedTransitionStrategy=function(a){this.c=a;this.ub=ig_a};
_IG_scaleInlinedTransitionStrategy.prototype._onPostAttachMaximized=function(){var a=_gel("m_"+this.c+"_b");a.style.display="block"};_IG_scaleInlinedTransitionStrategy.prototype._onPreAttachMaximized=_IG_iFrameTransitionStrategy.prototype._onPreAttachMaximized;_IG_scaleInlinedTransitionStrategy.prototype._onPreAttachDashboard=_IG_iFrameTransitionStrategy.prototype._onPreAttachDashboard;var _IG_noMaxSupportTransitionStrategy=function(a,b){this.c=a;this.ub=ig_a;this.Wa=b};
_IG_noMaxSupportTransitionStrategy.prototype._onPreDetachDashboard=function(){};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,ig_)+"px"}_IG_noMaxSupportTransitionStrategy.prototype._onPostAttachDashboard=function(){ig_6(this.c)};
_IG_noMaxSupportTransitionStrategy.prototype._onPostAttachMaximized=function(){var a=_gel("m_"+this.c),b=_gel("mu_div");if(b==ig_){b=document.createElement("DIV");b.id="mu_div";var c=["<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>'];b.innerHTML=c.join("")}a.parentNode.replaceChild(b,a);var d=_gel("muph");d.appendChild(a);b.style.display="";a.style.minWidth="300px";var e=_gel("max_ifr2");if(this.Wa&&this.Wa.length){if(e)e.src="/ig/directory"+_qs()+"output=brief&recommend="+this.Wa}else if(e)e.src="";ig_6(this.c)};
_IG_noMaxSupportTransitionStrategy.prototype._onPreDetachMaximized=function(){var a=_gel("m_"+this.c),b=_gel("mu_div");if(b){b.parentNode.replaceChild(a,b);b.style.display="none"}a.style.minWidth=""};var ig_5=new (function ViewManagerClass(){this.ha="modules";this.ga="dash_ph";this.ea="max_ph";this.k=ig_;this.ob="";this.sb=ig_;if(window.onbeforeunload){var b=window.onbeforeunload;window.onbeforeunload=function(){b();ig_5.onCommitServerState()}}else window.onbeforeunload=function(){ig_5.onCommitServerState()}});ig_5._getCurrentMaxId=function(){return ig_5.k};
ig_5.onCommitServerState=function(){if(this.k!=this.sb){var a=ig_e(),b="/ig/setp?et="+_et+"&maxm="+(this.k?this.k:"-1");a.open("GET",b,ig_a);a.send(ig_)}};ig_5.setInitialMaximizedModuleId=function(a){this.sb=a};ig_5.setExperimentName=function(a){this.ob=a};ig_5.swapMaximizedModule=function(a){if(!(this.k==a))if(this.k){this.restoreModule(this.k);this.maximizeModule(a)}else this.maximizeModule(a)};ig_5.restoreView=function(){this.k&&this.restoreModule(this.k)};
ig_5.isModuleMaximized=function(a){return this.k==a};ig_5.getStrategy=function(a){var b=_max_strategies[a];if(b==ig_){b=new _IG_noMaxSupportTransitionStrategy(a);_max_strategies[a]=b}return b};ig_5.maximizeModule=function(a){var b=this.getStrategy(a);b._onPreDetachDashboard&&b._onPreDetachDashboard();this.Rb(a);b._onPostDetachDashboard&&b._onPostDetachDashboard();b._onPreAttachMaximized&&b._onPreAttachMaximized();this.Ib(a);b._onPostAttachMaximized&&b._onPostAttachMaximized();this.k=a};
ig_5.restoreModule=function(a){var b=this.getStrategy(a);b._onPreDetachMaximized&&b._onPreDetachMaximized();this.Sb(a);b._onPostDetachMaximized&&b._onPostDetachMaximized();b._onPreAttachDashboard&&b._onPreAttachDashboard();this.Hb(a);b._onPostAttachDashboard&&b._onPostAttachDashboard();this.k=ig_};ig_5.lc=function(a){this.Sa=function(){_IG_minimize_view(a,"delete",this.ob)};_IG_AddModuleEventHandler(a,"delete",this.Sa)};ig_5.Ob=function(a){this.Sa&&_IG_RemoveModuleEventHandler(a,"delete",this.Sa)};
ig_5.Rb=function(a){var b=_gel(this.ga);if(b==ig_){b=document.createElement("DIV");b.id=this.ga;b.style.display="none"}var c=_gel("m_"+a),d=_gel(this.ha).parentNode;c.parentNode.replaceChild(b,c);d.appendChild(c);b.style.display="block";b.style.height=c.clientHeight+"px";this.ib(a)};
ig_5.Ib=function(a){var b=_gel(this.ea);if(b==ig_){b=document.createElement("DIV");b.id=this.ea;b.style.display="none"}var c=_gel("m_"+a),d=_gel(this.ha);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.Tb(a);this.lc(a);_IG_TriggerEvent("modulemaximize",a);_IG_TriggerModuleEvent(a,"maximize")};
ig_5.Sb=function(a){var b=_gel(this.ha),c=_gel(this.ea);c.style.display="";b.style.display="";var d=_gel("m_"+a);d.className=d.className.replace(/modbox_max/,"modbox");this.ib(a)};ig_5.Hb=function(a){var b=_gel(this.ga),c=_gel("m_"+a);b.parentNode.replaceChild(c,b);b.style.display="none";this.Wb(a);this.Ob(a);_IG_TriggerEvent("moduleunmaximize",a);_IG_TriggerModuleEvent(a,"unmaximize")};
ig_5.Tb=function(a){var b=_gel("m_"+a),c=_gel("m_"+a+"_h");b.parentNode.className+=" ig_dnd_fixed_col";c.style.cursor="default";ig_1()};ig_5.Wb=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.ib=function(a){_IG_hoverModule(a,ig_a);_IG_hoverHeader(a,ig_a)};
ig_5.qb=function(a){var b=_gel(a),c=b.childNodes,d=[],e=0;for(;e<c.length;++e)if(c[e].className&&(c[e].className.indexOf("rnd_modtitle")==0||c[e].className.indexOf("rnd_modboxin")==0)){var f=0;for(;f<c[e].childNodes.length;++f)d[d.length]=c[e].childNodes[f]}return d};ig_5.removeRoundedCorners=function(a){var b=this.qb("m_"+a),c=0;for(;c<b.length;++c)b[c].className+="_max"};
ig_5.restoreRoundedCorners=function(a){var b=this.qb("m_"+a),c=0;for(;c<b.length;++c)b[c].className=b[c].className.replace(/_max/,"")};
var _IG_maximize_persistent_module=function(a,b){ig_5.setInitialMaximizedModuleId(a);_IG_maximize_view(a,"persist",b)},_IG_toggle_view=function(a){ig_5.swapMaximizedModule(a)},_IG_is_maximized_module=function(a){return ig_5.isModuleMaximized(a)},_IG_maximize_view=function(a,b,c){var d=_gel("m_"+a);if(!(!d||d.style.display=="none")){if(b==ig_)b="dunno";var e=[];e.push("/ig/ui?xp=",c||"","&action=maximizeMod","&from=",b,"&m=",a);window["FEED"+a]&&e.push("&mt=feed");_sendx(e.join(""),ig_,ig_a,ig_);if(!ig_5.isModuleMaximized(a)){ig_5.setExperimentName(c);
ig_5.swapMaximizedModule(a)}}},_IG_minimize_view=function(a,b,c){if(b==ig_)b="dunno";_sendx("/ig/ui?xp="+(c||"")+"&action=minimizeMod&from="+b+"&m="+a,ig_,ig_a,ig_);ig_5.isModuleMaximized(a)&&ig_5.restoreModule(a)},_IG_restore_view=function(){ig_5.restoreView()};_exportClass("gadgets.views","ViewManager",ig_5,ig_,["isModuleMaximized",ig_5.isModuleMaximized,"getCurrentMaxId",ig_5._getCurrentMaxId]);var ig_7=function(){this.POLLING_INTERVAL=150;this.Ya=_IG_isIE();this.V=[];var a=window.location.hash.slice(1);if(this.Ya&&!window.FLAG_history_static_iframe){this.o=_gel("ighistory");if(!this.o)if(document.body){this.o=document.createElement("iframe");this.o.style.display="none";this.o.id="ighistory";document.body.insertBefore(this.o,document.body.firstChild)}else{document.write("<iframe id=ighistory style=display:none></iframe>");this.o=_gel("ighistory");var b=this.o.contentWindow.document;b.open();
b.write("<head></head><body>"+_esc(a)+"</body>");b.close()}}var c=this;_IG_callPostLoad(function(){_IG_AddDOMEventHandler(window,"load",function(){c.Fa()})})};ig_7.prototype.Fa=function(){var a=this;if(!(window._gjuc&&window._gjuc()==1)){window.setTimeout(function(){a.Fa()},this.POLLING_INTERVAL);var b=this.rb();if(b!=this.ma){this.Na(b);this.ma=b}}};
ig_7.prototype.xa=function(){try{if(window.FLAG_history_static_iframe&&!this.o){this.o=_gel("ighistory");var a=this.o.contentWindow.document,b=window.location.hash.slice(1);a.open();a.write("<head></head><body>"+_esc(b)+"</body>");a.close()}return this.o.contentWindow.document}catch(c){return undefined}};ig_7.prototype.rb=function(){if(this.Ya){var a=this.xa();return a?_unesc(a.body.innerHTML):""}else return window.location.hash.slice(1)};
ig_7.prototype.zb=function(a){if(!(a==this.ma)){this.ma=a;this.Na.apply(this,arguments);if(this.Ya){var b=this.xa();if(!!b){b.open();b.write("<head></head><body>"+_esc(a)+"</body>");b.close()}}else window.location.hash="#"+a}};ig_7.prototype.Na=function(a){var b=0;for(;b<this.V.length;++b)if(this.V[b][0].test(a)){this.V[b][1].apply(undefined,arguments);return}};ig_7.prototype.db=function(a,b){this.V.push([a,b])};var ig_8;if(window._IG_CONTAINER)ig_8=new ig_7;
function _IG_PushHistory(){ig_8&&ig_8.zb.apply(ig_8,arguments)}function _IG_AddHistoryCallback(a,b){ig_8&&ig_8.db(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.g?_IG_maximize_view(a.g,"history",""):_IG_restore_view()});var _IG_Json=ig_V;var _IG_ViewType={CANVAS:"canvas",HOME:"home",PROFILE:"home",PREVIEW:"PREVIEW",FULL_PAGE:"canvas",DASHBOARD:"home",POPUP:"POPUP"},_IG_View=function(a,b){this.gc=a;this.ec=!!b};_IG_View.prototype.Ca=function(){return this.gc};_IG_View.prototype.Ia=function(){return this.ec};var _IG_SupportedViews={};_IG_SupportedViews.CANVAS=new _IG_View(_IG_ViewType.CANVAS,ig_b);_IG_SupportedViews.FULL_PAGE=new _IG_View(_IG_ViewType.FULL_PAGE,ig_b);_IG_SupportedViews.canvas=new _IG_View(_IG_ViewType.CANVAS,ig_b);
_IG_SupportedViews.HOME=new _IG_View(_IG_ViewType.HOME,ig_a);_IG_SupportedViews.DASHBOARD=new _IG_View(_IG_ViewType.DASHBOARD,ig_a);_IG_SupportedViews.home=new _IG_View(_IG_ViewType.HOME,ig_a);_IG_SupportedViews.PROFILE=new _IG_View(_IG_ViewType.PROFILE,ig_a);
function ig_Ob(a,b,c){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_b}var _IG_NavigateToGadget=ig_Ob;function ig_Pb(a){return _IG_is_maximized_module(a)?_IG_SupportedViews.CANVAS:_IG_SupportedViews.HOME}var _IG_GetCurrentView=ig_Pb;
function ig_Qb(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_Qb;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.Ca,"isOnlyVisibleGadget",_IG_View.prototype.Ia]);var ig_9=new (function SetPreferenceOnBeforeUnloadManagerClass(){this.S={};var b=window.onbeforeunload;window.onbeforeunload=function(){b&&b();ig_9.fc()}});ig_9.Gb=function(a,b){this.S[a]=b};ig_9.jc=function(a){delete this.S[a]};ig_9.K=function(a){return this.S[a]};ig_9.fc=function(){var a=[];for(var b in this.S)a.push(b+"="+this.S[b]);if(a.length){var c=ig_e(),d="/ig/setp?et="+_et+"&"+a.join("&");c.open("GET",d,ig_a);c.send(ig_)}};
var _IG_add_setp_parameter_onbeforeunload=function(a,b){ig_9.Gb(a,b)},_IG_remove_setp_parameter_onbeforeunload=function(a){ig_9.jc(a)},_IG_get_setp_parameter_onbeforeunload=function(a){return ig_9.K(a)};var ig_$=(function(){var a=ig_,b=ig_,c=ig_a,d={},e={},f=ig_b,g=ig_;function h(){var i=[],l=[];for(var m in e)if(e[m]&&!d[m])i.push(m);else!e[m]&&d[m]&&l.push(m);i.length?_IG_add_setp_parameter_onbeforeunload("exptabs",i.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",f+"")}function k(i){_gel("gadget_set"+i).style.display=
"block";_gel("triangle"+i).className="v2minbox";e[i]=ig_b;_sendx("/ig/ui?xp=v2&action=expandTab&t="+i,ig_,ig_a,ig_)}function j(i){_gel("gadget_set"+i).style.display="none";_gel("triangle"+i).className="v2maxbox";e[i]=ig_a;_sendx("/ig/ui?xp=v2&action=collapseTab&t="+i,ig_,ig_a,ig_)}return{setSelectedTabId:function(i){a=i},getSelectedTabId:function(){return a},setNextTabId:function(){var i=_gel("section"+a+"_contents").nextSibling;for(;i;){if(i.id&&i.id.match(/section\d+_contents/)){b=i.id.match(/\d+/);
break}i=i.nextSibling}},setZipMessage:function(i){g=i},highlightModule:function(i){var l=_gel("section"+a+"_contents");l.className="section_contents leftunselectedtab leftborder";_gel("tab"+a).className="section_title unselected_section_title";var m=_gel("left_nav_m_"+i+"_title");m.className="selected_gadget_title gadget_title leftselectedtab surroundborder";var o=_gel("gadget_set"+a);o.insertBefore(l.previousSibling,m);o.insertBefore(l.nextSibling,m.nextSibling);_gel("tab_separator"+a).style.display=
"";if(b)_gel("tab_separator"+b).style.display="";else if(_gel("tab_separator_bot"))_gel("tab_separator_bot").style.display=""},highlightSelectedTab:function(i){var l=_gel("section"+a+"_contents");l.className="selected_section_contents leftselectedtab surroundborder";_gel("tab"+a).className="section_title selected_section_title";var m=_gel("left_nav_m_"+i+"_title");m.className="gadget_title";_gel("tab_separator"+a).style.display="none";if(b)_gel("tab_separator"+b).style.display="none";else if(_gel("tab_separator_bot"))_gel("tab_separator_bot").style.display=
"none";_gel("gadget_set"+a);l.parentNode.insertBefore(m.previousSibling,l);l.parentNode.insertBefore(m.nextSibling,l.nextSibling)},swapHeaderToCanvasMenu:function(i){var l=_gel("m_"+i+"_home_menu");if(l)l.style.display="none";var m=_gel("m_"+i+"_canvas_menu");if(m)m.style.display=""},swapHeaderToHomeMenu:function(i){var l=_gel("m_"+i+"_canvas_menu");if(l)l.style.display="none";var m=_gel("m_"+i+"_home_menu");if(m)m.style.display=""},hideLeftNavModuleTitle:function(i){var l=_gel("left_nav_"+i+"_title");
if(l)l.style.display="none"},showLeftNavModuleTitle:function(i){var l=_gel("left_nav_"+i+"_title");if(l)l.style.display=""},maybeUnzipModule:function(i){var l=_gel("m_"+i+"_b");c=l&&l.style.display=="none";var m=!_gel("remote_iframe_"+i),o=!(_max_strategies[i]instanceof window._IG_noMaxSupportTransitionStrategy);l.style.display=m&&o?"none":""},maybeZipModule:function(i){var l=_gel("m_"+i+"_b");l.style.display=c?"none":""},showRoundedCornerOnload:function(){if(a!="0"){_gel("rcbg").style.display="";
_gel("col2").className="botborder"}},showRoundedCornerOnMaximize:function(){if(a=="0"){_gel("rcbg").style.display="";_gel("col2").className="botborder"}},hideRoundedCornerOnRestore:function(){if(a=="0"){_gel("rcbg").style.display="none";_gel("col2").className="topbotborder"}},expandTabOnLoad:function(i){d[i]=ig_b;e[i]=ig_b},collapseTabOnLoad:function(i){d[i]=ig_a;e[i]=ig_a},toggleTab:function(i,l){if(!i)var i=window.event;i.cancelBubble=ig_b;i.stopPropagation&&i.stopPropagation();_gel("gadget_set"+
l).style.display=="none"?k(l):j(l);h()},toggleRoster:function(){if(!!_gel("talk_container")){f=!f;_gel("roster_triangle").className=f?"v2minbox":"v2maxbox";if(window.gTalkNotifier&&window.gTalkNotifier._setRosterExpanded)window.gTalkNotifier._setRosterExpanded(f);else _gel("talk_container").style.display=f?"":"none";_log("roster_toggle:"+(f?"1":"0"));h()}},rosterStateOnload:function(i){f=i},isRosterExpanded:function(){return f},hidePromo:function(i){var l=_gel(i);if(l)l.style.display="none"},swapZipMessage:function(i){var l,
m=_gel("DD_"+i).firstChild;for(;m;m=m.nextSibling)if(m.innerHTML&&(m.innerHTML.match(g[0])||m.innerHTML.match(g[1]))){l=m;break}var o=_gel("m_"+i+"_b"),q=o&&o.style.display=="none";if(l)l.innerHTML=q?g[0]:g[1]},swapRoundedCornerClassNameOnZip:function(i){var l=_gel("m_"+i+"_b"),m=l&&l.style.display=="none",o=l.nextSibling;if(o&&o.className)o.className=m?"rnd_modtitle":"rnd_modboxin"}}})(),_IG_LN_init=function(){_IG_AddEventHandler("modulemaximize",ig_$.highlightModule);_IG_AddEventHandler("modulemaximize",
ig_$.swapHeaderToCanvasMenu);_IG_AddEventHandler("modulemaximize",ig_$.maybeUnzipModule);_IG_AddEventHandler("modulemaximize",ig_$.showRoundedCornerOnMaximize);_IG_AddEventHandler("moduleunmaximize",ig_$.highlightSelectedTab);_IG_AddEventHandler("moduleunmaximize",ig_$.swapHeaderToHomeMenu);_IG_AddEventHandler("moduleunmaximize",ig_$.maybeZipModule);_IG_AddEventHandler("moduleunmaximize",ig_$.hideRoundedCornerOnRestore);_IG_AddEventHandler("moduledelete",ig_$.hideLeftNavModuleTitle);_IG_AddEventHandler("moduleundelete",
ig_$.showLeftNavModuleTitle);_IG_AddEventHandler("modulezip",ig_$.swapZipMessage);_IG_AddEventHandler("modulezip",ig_$.swapRoundedCornerClassNameOnZip);_IG_AddEventHandler("moduleunzip",ig_$.swapZipMessage);_IG_AddEventHandler("moduleunzip",ig_$.swapRoundedCornerClassNameOnZip);_IG_RegisterOnloadHandler(ig_$.setNextTabId);_IG_RegisterOnloadHandler(ig_$.showRoundedCornerOnload)},_IG_set_selected_tab_id=ig_$.setSelectedTabId,_IG_get_selected_tab_id=ig_$.getSelectedTabId,_IG_expand_tab_onload=ig_$.expandTabOnLoad,
_IG_collapse_tab_onload=ig_$.collapseTabOnLoad,_IG_toggle_tab=ig_$.toggleTab,_IG_toggle_roster=ig_$.toggleRoster,_IG_roster_state_onload=ig_$.rosterStateOnload,_IG_is_roster_expanded=ig_$.isRosterExpanded,_IG_hide_promo=ig_$.hidePromo,_IG_set_zip_msg=ig_$.setZipMessage,_IG_maybe_unzip_module=ig_$.maybeUnzipModule,_IG_maybe_zip_module=ig_$.maybeZipModule;function _IG_FRUC_init(){ig_Rb();ig_Sb()}function ig_Tb(a){return function(b){b||ig_Ub(_IG_MD.m[a].i)}}function ig_Rb(){for(var a in _IG_MD.m)_IG_MD.m[a].mt==25&&_IG_RegisterMaximizeHandler(_IG_MD.m[a].i,ig_Tb(a))}function ig_Vb(a){return function(b){ig_Wb(a,b)}}function ig_Ub(a){var b=_IG_MD.m[a];b&&b.mt==25&&_sendx("/ig/unreadcounts?feed="+b.u,ig_Vb([a]))}
function ig_Sb(){var a=[],b=[];for(var c in _IG_MD.m){var d=_IG_MD.m[c];if(d.mt==25){a.push(d.u);b.push(d.i)}}a.length==0||_sendx("/ig/unreadcounts?feed="+a.join("&feed="),ig_Vb(b))}function ig_Wb(a,b){if(!!b){var c=eval(b);if(c&&c.length==a.length){var d=0;for(;d<a.length;++d)ig_Xb(_IG_MD.m[a[d]],c[d])}}}function ig_Xb(a,b){if(a&&b!=ig_)b==0?_IG_SetTitle(a.ti,a.i):_IG_SetTitle(a.ti+" ("+b+")",a.i)};function ig_Yb(a,b,c){_IFPC.call(a,"shindig.requestShareApp_callback",[b,ig_b,"",c],window._GGS_URL+"/gadgets/files/container/rpc_relay.html",window.location.path+"/ig/ifpc_relay","")}function ig_Zb(a,b,c,d){var e=a.split("_")[2],f=_DD["m_"+e],g=f.u||f.url;_share_this_gadget(_jesc(d),ig_i(IG_URLS.sgu,["moduleurl="+_esc(g),"mid="+e,"source=os"]),e,ig__b(a,b))}function ig__b(a,b){return function(c,d){ig_Yb(a,b,d)}}_IFPC.registerService("shindig.requestShareApp",ig_Zb);

