0){var h=new _IG_PubSub(this.Q);h.publishMultiple(c)}}function igR_ea(a){var b=this.c[_IG_Prefs.e+a],c=b.value,d=b.datatype;switch(d){case "list":c=_IG_Prefs._strToArray(c);break;case "location":c={};c.location=b.value;c["long"]=this.c[_IG_Prefs.e+a+".long"];c.lat=this.c[_IG_Prefs.e+a+".lat"];break;case "bool":c=!isNaN(parseInt(c,10));break;case "string":break;case "enum":break;case "hidden":break;default:break}return c}
function igR_fa(a,b){var c=a;switch(b){case "list":c=_IG_Prefs._arrayToStr(a);break;case "location":c=[];c.push=a.location;c.push=a["long"];c.push=a.lat;break;case "bool":c=a?"1":"a";break;case "string":break;case "enum":break;case "hidden":break;default:break}return c}function igR_ga(a,b){if(typeof b=="undefined"){b=null}var c=this.c[a];if(typeof c=="undefined"){return b}else{var d=c.value;return typeof d!="undefined"?d:b}}function igR_ha(){document.write("");for(var a in this.c){document.writeln(a+
" = "+this.s(a,null))}document.write("")}function igR_Y(){var a=["__module_id__="+this.Q];for(var b in this.c){a.push(encodeURIComponent(b)+"="+encodeURIComponent(this.c[b].value))}return a.join("&")}function _IG_Prefs(a){this.getString=igR_L;this.getInt=igR_M;this.getBool=igR_N;this.getArray=igR_O;this.setArray=igR_P;this.getCountry=igR_T;this.getLang=igR_S;this.getMsg=igR_V;this.getMsgFormatted=igR_aa;this.set=igR_X;this.getPreloadedString=igR_Y;this.dump=igR_ha;this.oa=igR_fa;this.ca=igR_ea;
this.Ba=igR_ca;this.Ca=igR_da;this.Da=igR_ba;if(typeof remote_modules!="object"){var b=_args().mid;if(b){a=b}else{a=0}_IG_Prefs._parseURL(a)}else if(!a){throw new Error("Module ID is required as first argument to _IG_Prefs() for inlined gadgets");}this.getModuleHeight=igR_Q;this.getModuleWidth=igR_R;this.c=_IG_Prefs.c[_IG_Prefs.G+a]||{};this.s=igR_ga;this.M=igR_U;this.Q=a;this.Aa=igR_W}_IG_Prefs.ha="h";_IG_Prefs.ia="w";_IG_Prefs.G="m_";_IG_Prefs.e="up_";_IG_Prefs.USER_PREF_PREFIX_PUBLISH="upp_";_IG_Prefs.USER_PREF_PREFIX_LISTEN=
"upl_";_IG_Prefs.USER_PREF_PREFIX_GROUP="upg_";_IG_Prefs.USER_PREF_PREFIX_ONCHANGE="upo_";_IG_Prefs.USER_PREF_PREFIX_DATATYPE="upt_";_IG_Prefs.USER_PREF_PREFIX_VALUE="up_";_IG_Prefs.PREFIXES_TO_FIELDS={};_IG_Prefs.PREFIXES_TO_FIELDS[_IG_Prefs.USER_PREF_PREFIX_PUBLISH]="publish";_IG_Prefs.PREFIXES_TO_FIELDS[_IG_Prefs.USER_PREF_PREFIX_LISTEN]="listen";_IG_Prefs.PREFIXES_TO_FIELDS[_IG_Prefs.USER_PREF_PREFIX_GROUP]="group";_IG_Prefs.PREFIXES_TO_FIELDS[_IG_Prefs.USER_PREF_PREFIX_ONCHANGE]="onChange";_IG_Prefs.PREFIXES_TO_FIELDS[_IG_Prefs.USER_PREF_PREFIX_DATATYPE]=
"datatype";_IG_Prefs.PREFIXES_TO_FIELDS[_IG_Prefs.USER_PREF_PREFIX_VALUE]="value";_IG_Prefs.F="msg_";_IG_Prefs._parseURL=function(a){_IG_Prefs.N=false;var b={},c=igR_e();for(var d=0;d=0){var f=c[d].substring(0,e);f=f.replace(/\+/g," ");var g=c[d].substring(e+1);g=g.replace(/\+/g," ");g=_unesc(g);var i=false;for(var h in _IG_Prefs.PREFIXES_TO_FIELDS){if(f.indexOf(h)==0){i=true;f=f.substring(h.length);f=_IG_Prefs.e+f;b[f]=b[f]?b[f]:{};if(h==_IG_Prefs.USER_PREF_PREFIX_PUBLISH||
h==_IG_Prefs.USER_PREF_PREFIX_LISTEN){if(g=="true"){g=true}else{g=false}}b[f][_IG_Prefs.PREFIXES_TO_FIELDS[h]]=g;break}}if(!i){if(f.indexOf(_IG_Prefs.F)==0){_IG_Prefs._add(a,f,g)}else if(f==".lang"||f==".country"){_IG_Prefs._add(a,_IG_Prefs.e+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,b[f])}}};_IG_Prefs._add=function(a,b,c,d){var e=_IG_Prefs.G+a;if(typeof _IG_Prefs.c[e]!="object"){_IG_Prefs.c[e]=
{}}if(typeof _IG_Prefs.c[e][b]!="object"){_IG_Prefs.c[e][b]={}}else{return}var f=_IG_Prefs.c[e][b];f.value=c;f.datatype="string";f.publish=false;f.listen=false;f.onChange=false;f.group=false;if(d){f.datatype=d.datatype?d.datatype:"string";f.publish=d.publish?d.publish:false;f.listen=d.listen?d.listen:false;f.onChange=d.onChange?d.onChange:false;f.group=d.group?d.group:false;if(d.listen){_IG_Prefs._subscribePrefs(a,b)}}};_IG_Prefs._addAll=function(a,b){for(var c=0;c0){e.unsubscribeMultiple(i);f=f.concat(i)}}var k=function(p,m,s){var n=new _IG_Prefs(a),l=[];for(var o=0;o0?a.split("|"):[];for(var c=0;c=0&&b.getElementsByTagName("parsererror")[0]){return a}return b}
function igR__(a){if(!a.post_data&&!a.headers&&window._pl_data&&_pl_data[a.url]){if(a.asXml){var b=igR_Z(_pl_data[a.url]);a.callback(b)}else{a.callback(_pl_data[a.url])}return}if(!isNaN(a.refreshInterval)&&a.refreshInterval>=0){a.url=_appendCacheParameter(a.url,a.refreshInterval)}var c="/ig/jsonp?";if(_et!=""){c+="et="+_et+"&"}if(a.encoding){c+="enc="+_esc(a.encoding)+"&"}if(a.headers){var d=[];for(var e=0;e=0){a=_appendCacheParameter(a,f.refreshInterval)}var g="fr_"+igR_la++,f="url="+_esc(a);if(c){f+="&val="+_esc(c)}if(d){f+="&sum=1"}var i=g+"="+_esc(f);if(igR_2){var h={};h[g]=b;igR_1(i,h)}else{if(igR_3!="")igR_3+="&";igR_3+=i;igR_4[g]=b}}function igR_ma(){igR_2=true;if(igR_3!=""){igR_1(igR_3,igR_4)}igR_3="";igR_4=null}_IG_AddEventHandler("domload",igR_ma);_exportSymbols("google.gadgets.Fetchers",["getContent",_IG_FetchContent,"getXMLContent",igR_ka,"getFeedAsJSON",_IG_FetchFeedAsJSON]);var igR_5=(function(){var a={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},b={"boolean":function(c){return String(c)},number:function(c){return isFinite(c)?String(c):"null"},string:function(c){if(/["\\\x00-\x1f]/.test(c)){c=c.replace(/([\x00-\x1f\\"])/g,function(d,e){var f=a[e];if(f){return f}f=e.charCodeAt();return"\\u00"+Math.floor(f/16).toString(16)+(f%16).toString(16)})}return'"'+c+'"'},object:function(c){if(c){var d=[],e,f,g,i,h;if(c instanceof Array){d[0]=
"[";i=c.length;for(g=0;g";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.g[this.g.length]=c;b.removeChild(c);b=null;return c}function igR_oa(a){if(!a.match(/^http[s]?:\/\//)){return}var b=this;window.setTimeout(function(){var c=null;for(var d=b.g.length-1;d>=0;d--){var e=b.g[d];
if(e&&!e.pool_locked){e.parentNode.removeChild(e);if(window.ActiveXObject){e=null;b.g[d]=null;b.g.splice(d,1)}else{e.pool_locked=true;c=e;break}}}c=c?c:b.pa(true);c.src=a;document.body.appendChild(c)},0)}function igR_pa(){for(var a=0;a0){k+=1}for(var j=0;j"}function igR_La(){this.a=null}function igR_Ia(a){this._urlMouseUp=igR_Ma;this._urlMouseDown=igR_Na;this._urlClick=igR_Oa;this._dragStart=igR_Pa;this._drag=igR_Qa;this._dragEnd=igR_Ra;this.L=igR_8;this.D=igR_Sa;this.z=igR_9;this.i=false;this.a=a;this.f=_gel(a.id+"_h");this.d=_gel(a.id+"_url");this.xa=this.a.getElementsByTagName("IFRAME").length>
0;this.a.DND_Module=this;if(this.f){this.f.style.cursor="move";igR_7.init(this.f,this.a);this.a.onDragStart=igR_.j(this,"_dragStart");this.a.onDrag=igR_.j(this,"_drag");this.a.onDragEnd=igR_.j(this,"_dragEnd");if(this.d){this.d.style.cursor="pointer";if(igR_.O){this.d.onmousedown=igR_.j(this,"_urlMouseDown");this.d.onclick=igR_.j(this,"_urlClick")}else{this.d.onmouseup=igR_.j(this,"_urlMouseUp")}}}}function igR_9(){if(this.f){if(this.d){this.d.onclick=null;this.d.onmouseup=null;this.d=null}igR_7.uninit(this.f,
this.a);this.a.onDragStart=null;this.a.onDrag=null;this.a.onDragEnd=null;this.f=null}this.a=null}function igR_Ma(a){a=igR_7.fixE(a);if(this.i||!this.d||!this.d.href||a.which!=1){return true}this.D("titleclick");if(this.d.target||a.shiftKey){window.open(this.d.href,this.d.target)}else{document.location=this.d.href}return false}function igR_Na(a){a=igR_7.fixE(a);a.stopPropagation();return true}function igR_Oa(a){if(!this.i&&this.d&&this.d.href){this.D("titleclick");return true}return false}function igR_Pa(a){igR_.ka(this);
igR_.la();this.origNextSibling=this.a.nextSibling;var b=igR_.r(),c=this.a.offsetHeight;c-=parseInt(b.style.borderTopWidth,10)*2;var d=this.a.offsetWidth,e=igR_.h(this.a,true),f=igR_.h(this.a,false);this.a.style.width=d+"px";b.style.height=c+"px";this.a.parentNode.insertBefore(b,this.a.nextSibling);this.a.style.position="absolute";this.a.style.zIndex=10000;this.a.style.left=e+"px";this.a.style.top=f+"px";igR_.Y(this);this.i=false;return false}function igR_$(){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 igR_Qa(a,b){if(!this.i){this.a.style.filter="alpha(opacity=50)";this.a.style.opacity=0.5;this.i=true;this.D("dragstart")}var c=
null,d=100000000;for(var e=0;e=f.pagePosLeft&&
this.a.lastMouseX<=f.pagePosRight&&this.a.lastMouseY+k[1]>=f.pagePosTop&&this.a.lastMouseY+k[1]<=f.pagePosBottom){this.m=f;var j=igR_.r();if(j.parentNode!=null){j.parentNode.removeChild(j)}break}}for(var e=0;e=0){if(f==this.m){if(f.className.indexOf(" tab_hover")<0){f.className+=" tab_hover"}}else{f.className=f.className.replace(/ tab_hover/g,"")}}}}var j=igR_.r();if(this.m==null&&c!=null&&j.nextSibling!=c.a){c.a.parentNode.insertBefore(j,c.a);if(igR_.P){document.body.style.display=
"none";document.body.style.display=""}}}function igR_Ra(){igR_.R();if(this.L()){igR_.Fa()}if(this.m){var a=this.m.id.match(/tab(\d+)_/)[1],b=this.a.id.match(/m_(\d+)/)[1];_xsetp("mt="+b+":"+a);this.a.style.display="none";this.m.className=this.m.className.replace(/ tab_hover/g,"")}_hideNewUserTip();if(this.i){this.D("dragend")}return true}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 igR_8(){var a=
false;this.a.style.position="";this.a.style.width="";this.a.style.zIndex="";this.a.style.filter="";this.a.style.opacity="";window.scrollBy(0,0);var b=igR_.r();if(b.parentNode!=null){if(b.nextSibling!=this.origNextSibling){b.parentNode.insertBefore(this.a,b.nextSibling);a=true}b.parentNode.removeChild(b)}if(igR_.P){document.body.style.display="none";document.body.style.display=""}return a}function igR_Sa(a){switch(a){case "titleclick":_IG_TriggerModuleEvent(this.a.id,a,this.d.href);_IG_TriggerEvent("module"+
a,this.a.id,this.d.href);break;case "dragstart":case "dragend":_IG_TriggerDelayedModuleEvent(this.a.id,a);_IG_TriggerDelayedEvent("module"+a,this.a.id);break}}function igR_Fa(a,b){return function(){var c=igR_Ta(),d=igR_$(),e=d[1],f=4,g=0.05*c,i=e,h=a.offsetTop;if(a.lastMouseY<=g){h=a.offsetTop-f;i=e-f}else if(a.lastMouseY>=c-g){h=Math.min(b-a.offsetHeight,a.offsetTop+f);i=Math.min(b-c,e+f)}var k=i-e;if(k!=0){window.scrollBy(0,k);a.style.top=h+"px"}}}function igR_Ta(){var a;if(window.innerHeight){a=
window.innerHeight}else if(document.documentElement&&document.documentElement.clientHeight){a=document.documentElement.clientHeight}else{a=document.body.offsetHeight}if(adocument.documentElement.clientHeight){return document.body.scrollHeight}else{return document.documentElement.clientHeight}}_IG_AddCustomEventHandler("initdrag",function(a,b){_IG_initDrag(a,b)});function igR_Ua(a){var b=_gel("mobile_screen");b.insertBefore(a,b.firstChild);a.style.display="block";var c=igR_Va(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(!igR_.O){d.style.width="100%"}}function _addToMobileDisplayAndLog(a){igR_Ua(a);igR_.S("add")}function _delFromMobileAndLog(a,b,c){igR_Wa(a,b,c);igR_.S("del")}function igR_Wa(a,b,c){var d=_gel("mobile_m_"+a),e=_gel("m_"+a);d.style.display=
"none";if(e){e.style.filter="alpha(opacity=100)";e.style.opacity=1;var f=_gel("add_"+e.id),g=_gel("added_"+e.id);g.style.display="none";f.style.display=""}}function igR_Va(a){if(a.indexOf("mobile")==0){return a.substring("mobile_m_".length)}return a.substring("m_".length)}function igR_Xa(){for(var a=0;a=0){return true}}}function igR_2a(a){var b=_gel(a.id+"_b");for(var c=0;c