function ig_a(a,b){var c=function(){};c.prototype=a.prototype;b.prototype=new c}function _gel(a){return document.getElementById?document.getElementById(a):null}function _gelstn(a){if(a=="*"&&document.all)return document.all;return document.getElementsByTagName?document.getElementsByTagName(a):[]}function _gelsbyregex(a,b){var c=_gelstn(a),d=[];for(var e=0;e<c.length;e++)if(b.test(c[e].id))d.push(c[e]);return d}function _uc(a){return a.toUpperCase()}function _trim(a){return a.replace(/^\s*|\s*$/g,
"")}function _esc(a){return window.encodeURIComponent?encodeURIComponent(a):escape(a)}var ig_aa=function(a){return window.decodeURIComponent?decodeURIComponent(a):unescape(a)},_unesc=ig_aa;function _toggle(a){if(!a)return;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){a=a.replace(/</g,"&lt;").replace(/>/g,"&gt;");a=a.replace(/"/g,"&quot;").replace(/'/g,"&#39;");return a}function _striptags(a){return a.replace(/<\/?[^>]+>/gi,
"")}var ig_ba=0;function _uid(){return"obj"+ig_ba++}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)},false,null)}function _IG_LoadCss(a){var b=document.getElementsByTagName("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,null,null,null)}function _sendx(a,b,c,d){var e=ig_b();e.open(d?"POST":"GET",a,true);if(b)e.onreadystatechange=function(){if(e.readyState==4)b(c&&e.responseXML?e.responseXML:e.responseText)};e.send(d)}function _uhc(a,b,c){var d="m_"+a+"_"+b,e=_gel(d);if(!e){e=document.createElement("INPUT");e.type="hidden";e.disabled=true;e.name=d;_gel("m_"+a+"_form").appendChild(e)}e.value=c;e.disabled=false}function ig_b(){var a=
null;if(window.ActiveXObject){a=new ActiveXObject("Msxml2.XMLHTTP");if(!a)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=true,_use_old_feed_styles=true,ig_c=null,ig_d=null;function ig_e(a,b,c){var d=document.createElement("input");d.type="hidden";d.name=b;d.value=c;a.appendChild(d)}function ig_f(a){var b=a||document.location.href,c;{var d=
b.indexOf("?"),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 _argsUrl(a){var b={},c=ig_f(a);for(var d=0;d<c.length;d++){var e=c[d].indexOf("=");if(e==-1)continue;var f=c[d].substring(0,e),g=c[d].substring(e+1);g=g.replace(/\+/g," ");b[f]=_unesc(g)}return b}function _args(){return _argsUrl(document.location.href)}function ig_g(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}function ig_h(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_e(a,c,b[c])}function _submit_form(a,b){a.action=_setp_url+ig_g()+b;a.method="get";ig_h(a);a.submit()}function _fsetp(a,b,c){a.action=_setp_url;a.method="get";ig_h(a);ig_e(a,"m_"+b+"_t",c);var d=_args(),e=d.host,f=d.hl;if(typeof e!="undefined")ig_e(a,"host",e);if(typeof f!="undefined")ig_e(a,"hl",f);return true}var ig_i=[],ig_j=false;function ig_ca(a){var b=[];for(var c=
0;c<a.length;++c){if(a[c].length!=2)continue;var d=a[c][0],e=a[c][1];if(e!=null&&e!="")b.push(d+"="+e)}return b.join("&")}function ig_k(){return ig_ca([["et",_et],["pid",_pid],["ap",_authpath],["brand",_brand],["bmod",_bmod],["source",_source],["ae",_ae],["prefid",_prefid]])}function ig_l(){if(ig_i.length==0){ig_j=false;return}ig_j=true;var a=_setp_url+ig_g()+ig_k(),b=ig_i.shift(),c=a.length+b.length>=1800;if(c)_sendx(a,ig_m,false,b);else{a+="&"+b;_sendx(a,ig_m,false,null)}}function ig_m(){_IG_TriggerDelayedEvent("xsetpdone");
ig_l()}function _xsetp(a){ig_i.push(a);if(!ig_j)ig_l()}function _dlsetp(a,b){if(!b)b=_esc(document.location);document.location=_setp_url+ig_g()+ig_k()+"&url="+b+"&"+a}function _removeTabParam(a){return a.replace(/(\?.*\b)(t\=[^&#]*[&#]?)/g,"$1")}function _select_tab(a){document.location="/ig"+ig_g()+"t="+a}function _ssbc(a,b,c){var d=_gelstn("*");for(var e=0;e<d.length;e++)if(d[e].className==a)d[e].style[b]=c}function ig_da(a){var b=_gelstn("*");for(var c=0;c<b.length;c++)for(var d=0;d<a.length;d++)if(b[c].className==
a[d][0])b[c].style[a[d][1]]=a[d][2]}function _findPos(a){var b=0,c=0;while(a!=null){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(){function a(d){var e=window;if(d!=""){var f=d.split(".");while(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);for(var g=0;g<e.length;g+=2)f[e[g]]=e[g+1]}function c(d,e,f,g,h){if(g)for(var j=0;j<g.length;j+=2)f.prototype[g[j]]=g[j+1];if(h)for(var j=0;j<h.length;j+=2)f[h[j]]=h[j+1];b(d,[e,f])}b("",["_exportSymbols",b]);b("",["_exportClass",c]);b("google.gadgets.Util",["args",_args])})();function _preloadImages(a,b){var c=a.length,d=[];for(var e=0;e<a.length;e++){var f=new Image;d.push(f);f.src=a[e];if(f.complete){c--;ig_n(c,b,d)}else f.onload=function(){c--;ig_n(c,b,d)}}}function ig_n(a,b,c){if(a==0){if(b)b();for(var d=0;d<c.length;d++){c[d].onload=null;c[d]=null}}}function _edit(a,b){var c=ig_o[a];if(c)c();else _gel("m_"+a).className="modbox_e";if(b)b();ig_p("edit","m_"+a);return false}var ig_o={};function _IG_AddCustomEditHandler(a,b){ig_o[a]=b}function _cedit(a){_gel("m_"+a).className=
"modbox";var b=_gel("m_"+a+"_form");b.reset();ig_p("canceledit","m_"+a);return false}function _confirmDel(a,b,c,d){var e=_striptags(_gel("m_"+a+"_title").innerHTML);d=d.replace(/MODULE_TITLE/,'"'+e+'"');if(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_ea(),b=[],c=/^m_[0-9]+$/;for(var d=0;d<a.length;d++){b[d]=
[];var e=b[d];for(var f=0;f<a[d].childNodes.length-1;f++){var g=a[d].childNodes[f];if(g.tagName=="DIV"&&g.style.display!="none"&&g.id&&c.test(g.id))e.push(g)}}return b}function ig_ea(){var a=_gelsbyregex("DIV",/^c_[0-9]+$/),b=[];for(var c=0;c<a.length;c++)if(a[c].style.display!="none")b.push(a[c]);return b}var ig_q={},ig_r={};function _place(a,b){var c=ig_r[a];if(c){c(b);return}if(!ig_q[a])ig_q[a]=[];ig_q[a].push(b)}function _register_place(a,b){ig_r[a]=b;var c=ig_q[a];if(c){for(var d=0;d<c.length;d++)b(c[d]);
ig_q[a]=null}}function ig_fa(){var a="";for(var b in ig_q){var c=ig_q[b];if(!c)continue;for(var d=0;d<c.length;d++)a+="&m_"+c[d]+"_enab=0"}ig_q={};if(a)_xsetp("noundo"+a)}setTimeout(ig_fa,300000);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";e=_gel("undo_restore_msg");if(e)e.style.display="none"}var f=_gel("m_"+
a);if(f)f.style.display="none";ig_c=a;ig_d=c;var g=_gel(c);if(g)g.style.display="";_mod=true;ig_p("delete","m_"+a);return false}function _undel(){if(ig_c==null)return;var a="m_"+ig_c,b=_gel(a);if(b){b.style.display="block";_xsetp("undel")}var c=_gel("undel_msg");if(c)c.style.display="none";if(ig_d!=null){var d=_gel(ig_d);if(d)d.style.display="none"}ig_c=null;ig_d=null;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=_gel("m_"+a+"_maximize");if(g)g.style.display=e?"none":"";var h=c?"mmz":"mz";_xsetp(h+"="+a+":"+(e?"1":"0")+"&t="+b);ig_p(e?"zip":"unzip",a)}return false}var ig_ga="https://www.google.com/accounts";function _enableGS(a,b){a.action=ig_ga+"/CheckCookie";a.method="get";ig_e(a,"service",b);ig_e(a,"continue",document.location);ig_e(a,"skipvpage",true);return true}function _reload(a){var b=
a-(new Date).getTime();if(b>1000){setTimeout("_reload("+a+")",b);return}document.cookie="IGREL=1";document.location.reload()}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_ha(a){_xsetp("pnlo="+(a?1:0))}var _uli,_pnlo,_mpnlo,_pl,_mod,_cbp=false,ig_s=false,_table=null,_tabs=null;function _upc(){var a=[];if(!_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);_init_drag_drop()}function _init_drag_drop(){if(_pl)if(_cbp||_uli)if(!ig_s&&!_mpnlo){_IG_TriggerCustomEvent("initdrag",_table,_tabs);ig_s=true}}var ig_t=0;function _tp(a){if(ig_t>0)clearInterval(ig_t);
_pnlo=a;_mod=true;ig_ha(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 j=100,m=10,i=0;ig_t=setInterval(function(){var k=i/m,l=f+(g-f)*k;b.style.width=l+"px";i++;if(k>=1){clearInterval(ig_t);ig_t=0;b.style.width=g+"px";b.style.overflow=h}},j/m);return false}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 false}function _add_m(a,b){_dlsetp(a,b)}function _add_m_confirm(a,b,c){if(confirm(b))_add_m(a,c)}function _add_f(a){_add_m("n_25="+_esc("url="+_esc(a)))}var ig_u=/^_add_m(_confirm)?\(\"[^"]+\"(, *\"[^"]+\")?\)$/;function _find_feed(a){var b="acd";if(!a){var c=_gelstn("div");if(c)for(var d=0;d<c.length;d++)if(c[d].id&&c[d].id.indexOf("ps")==0&&c[d].className==
"mlist_open")_ts("ps",c[d].id.substring(2));if(_gel("add_custom"))a=_gel("add_custom").value}if(!a||a==""){b="advdsrch";a=_gel("add_advd").value}var e=_gel("ffresults");if(e)e.style.display="none";var f=_gel("ffloading");if(f)f.style.display="block";_sendx("/ig/feeds"+ig_g()+"q="+_esc(a)+"&page="+_esc(b),ig_ia,false,null);return false}function ig_ia(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 if(a.match(ig_u)!=null)eval(a);else eval(a)}function _add_remote_module(a,b){_sendx("/ig/feeds"+ig_g()+"module=1&q="+_esc(a),function(c){b();ig_ja(c)},false,null);return false}function ig_ja(a){var b=/^alert\(\"[^"]+\"\)$/;if(a.match(ig_u)!=null||a.match(b)!=null)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=true;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.s(b)};_ListApp.prototype.Ia=function(){var a="";if(_old_html)a="<table cellspacing=0 cellpadding=0 border=0>";
var b="",c=this.items;for(var d=0;d<c.length;d++)if(!c[d]){this.items.splice(d,1);d--}else{a+=_old_html?"<tr><td nowrap><font size=-1>"+c[d].A()+'</font></td><td><a href="#" onclick="'+this.app_name+"._del("+d+')"><img src="/ig/images/x.gif" width=16 height=13 border=0></a></td></tr>':'<a href="#" onclick="'+this.app_name+"._del("+d+')" class="delbox"style="float:left;margin:1px 3px 0px 0px;"></a>'+c[d].A()+"<br>";if(parseInt(c[d]._uid,10)<0)b+=c[d].l(d)}var e=this.deleted,f="";for(var d=0;d<e.length;d++)if(parseInt(e[d]._uid,
10)>=0)f+=","+e[d]._uid;a+=this.aa(b,f);return a};_ListApp.prototype.aa=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(){if(this.sort_on_refresh)this.items.sort(this.sort);this.display_area.innerHTML="<font size=-1>"+
this.Ia()+"</font>"};_ListApp.prototype.add=function(a,b){if(!a)a=_trim(this.name_input_field.value);if(!b)b=_trim(this.value_input_field.value);var c=new this.item_constructor(a,b,-1);if(!c.u())return;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];if(typeof c=="string")this.Ha(c);this.prefidx=a;this.prefname=b;this.app_name="m_"+e+"_"+a+"_App";this.display_area=_gel("m_"+e+"_"+a+"_disp");this.value_input_field=_gel("m_"+e+"_"+a+"_val");this.name_input_field=this.value_input_field;this.default_name="";this.default_value="";this.aa=_PrefListApp_get_tail}function _PrefListApp_get_tail(){var a="</table>";_gel("m_"+this.module_id+"_"+this.prefidx).value=this.Ma();return a}
_PrefListApp.prototype.Ha=function(a){if(a.length==0)return;var b=_IG_Prefs._strToArray(a),c=[];for(var d=0;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.Ma=function(){var a=[];for(var b=0;b<this.items.length;b++)a[a.length]=this.items[b]._v;return _IG_Prefs._arrayToStr(a)};function _ListItem(a,b,c){this._n=a;this._v=b;this._uid=c}_ListItem.prototype.u=function(){return this._n!=""};_ListItem.prototype.s=
function(){return 0};_ListItem.prototype.A=function(){return _hesc(this._n)};_ListItem.prototype.l=function(){return"&"+_esc(this._n)+"="+_esc(this._v)};function _BMListItem(a,b,c){_ListItem.call(this,a,b,c)}ig_a(_ListItem,_BMListItem);_BMListItem.prototype.u=function(){return _ListItem.prototype.u.call(this)&&this._n!="http://"};_BMListItem.prototype.H=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.A=function(){return'<a href="'+this._n+'" target=bmwindow>'+_hesc(this.H())+"</a>"};_BMListItem.prototype.l=function(a){return"&b"+a+"="+_esc(this._n)+"&t"+a+"="+_esc(this._v)};_BMListItem.prototype.s=function(a){var b=_uc(this.H()),c=_uc(a.H());if(b==c)return 0;return b<c?-1:1};function _WthrListItem(a,b,c){_ListItem.call(this,a,b,c)}ig_a(_ListItem,_WthrListItem);_WthrListItem.prototype.l=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_a(_ListItem,_FListItem);_FListItem.prototype.l=function(){return"&"+_esc(this._n)};_FListItem.prototype.s=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_v={Y:0,Na:1800,ha:null,ga:null,sa:true,I:null,M:function(){ig_v.Y=(new Date).getTime()+ig_v.Na*1000},ub:function(){if((new Date).getTime()>ig_v.Y)_testConnection(function(){_reload(ig_v.Y)},ig_v.M)},ja:function(a){ig_v.M();
if(ig_v.ha)ig_v.ha(a)},ia:function(a){ig_v.M();if(ig_v.ga)ig_v.ga(a)}};function _IG_disable_refresh_cycle(){ig_v.sa=false;if(ig_v.I!=null){clearInterval(ig_v.I);ig_v.I=null}}function _IG_start_refresh_cycle(a,b){if(ig_v.sa){ig_v.ha=document.onmousedown;ig_v.ga=document.onkeyup;ig_v.Na=a;if(document.addEventListener){document.addEventListener("keyup",ig_v.ia,false);document.addEventListener("mousedown",ig_v.ja,false)}else if(document.attachEvent){document.attachEvent("onkeyup",ig_v.ia);document.attachEvent("onmousedown",
ig_v.ja)}else{document.onkeyup=ig_v.ia;document.onmousedown=ig_v.ja}ig_v.M();ig_v.I=setInterval(ig_v.ub,b*1000)}}function _testConnection(a,b,c){var d=ig_b(),e="/ig/nop?t="+(new Date).getTime();if(!c)c=3500;d.open("GET",e,true);d.onreadystatechange=function(){if(d.readyState==4&&a)if(200<=d.status&&d.status<300||d.status==1223){b=null;a()}};try{d.send(null)}catch(f){}var g=function(){if(b){a=null;b()}};setTimeout(g,c)}function _mailWindow(a){window.open(a,"mailwindow","width=400,height=340,left=50,top=50,scrollbars=no")}
function ig_w(a){if(!a)a=document.body;return a.scrollHeight>a.offsetHeight?a.scrollHeight:a.offsetHeight}function ig_ka(){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),
null,false,null)}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")!=null)_gel("new_user_demo").style.display="none"}}function _hideSetHPMsg(){if(_gel("set_homepage_msg")!=null)_gel("set_homepage_msg").style.display="none";if(_gel("new_user_demo")!=null)_gel("new_user_demo").style.display="block"}function _iGoogleRejectedAsHomepage(){if(_gel("set_homepage_msg")!=
null)_gel("set_homepage_msg").style.display="none";if(_gel("new_user_demo")!=null)_gel("new_user_demo").style.display="block";if(_gel("set_homepage_footer")!=null)_gel("set_homepage_footer").style.display="inline"}function _maybeShowSetHPFooter(){if(!_IGoogleIsHomepage()&&_gel("set_homepage_msg")==null)_gel("set_homepage_footer").style.display="inline"};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){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=[];for(var d=0;d<arguments.length;d++)c[c.length]=arguments[d];for(var d=1;d<b.length;d++)c[c.length]=b[d];a.apply(null,c)}};var ig_la={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_ma={dragstart:1,dragend:1,titleclick:1,edit:1,canceledit:1,"delete":1,undelete:1,zip:1,unzip:1,maximize:1,unmaximize:1};function ig_na(a){var b="ig_event_hashcode_";if(a.hasOwnProperty&&a.hasOwnProperty(b))return a[b];if(!a[b])a[b]=++ig_x.lb;return a[b]}function ig_oa(a){return"builtin_"+
a}function ig_pa(a,b){if(a.indexOf&&a.indexOf("m_")==0)a=a.substring(2);return"builtin_m"+a+"_"+b}function ig_qa(a,b){return"builtin_"+ig_x.hb(a)+"_"+b}function ig_ra(a){return"custom_"+a}function ig_sa(){for(var a in ig_x.b){for(var b=0;b<ig_x.b[a].length;b++)ig_x.b[a][b]=null;if(a in ig_x.F){var c=ig_x.F[a],d=c[0],e=c[1],f=c[2];if(d.removeEventListener)d.removeEventListener(e,f,false);else if(d.detachEvent)d.detachEvent("on"+e,f);ig_x.F[a]=null}}}function ig_ta(a,b,c){for(var d=c;d<b.length;d++)a[a.length]=
b[d];return a}function ig_ua(a,b){if(a in ig_x.b)for(var c=0;c<ig_x.b[a].length;c++)if(ig_x.b[a][c]===b){ig_x.b[a][c]=null;return true}return false}function ig_va(a){if(a in ig_x.b)for(var b=0;b<ig_x.b[a].length;b++)if(ig_x.b[a][b]){var c=[];for(var d=1;d<arguments.length;d++)c[c.length]=arguments[d];ig_x.b[a][b].apply(this,c)}}function ig_wa(a,b){if(!(a in ig_x.Bb))throw Error("Unsupported event type: "+a);var c=ig_x.S(a);if(!(c in ig_x.b))ig_x.b[c]=[];ig_x.b[c][ig_x.b[c].length]=b}function ig_xa(a,
b,c){if(!(b in ig_x.Cb))throw Error("Unsupported module event type: "+b);var d=ig_x.T(a,b);if(!(d in ig_x.b))ig_x.b[d]=[];ig_x.b[d][ig_x.b[d].length]=c}function ig_ya(a,b,c){var d=ig_x.va(a,b);if(!(d in ig_x.b)){ig_x.b[d]=[];var e=function(g){if(!g)g=window.event;ig_x.N.apply(a,[d,g])};if(a.addEventListener)a.addEventListener(b,e,false);else if(a.attachEvent)a.attachEvent("on"+b,e);else throw Error("Object {"+a+"} does not support DOM events.");ig_x.F[d]=[a,b,e]}var f=ig_x.b[d].length;if(a===window&&
b=="unload"&&f>0){ig_x.b[d][f]=ig_x.b[d][f-1];ig_x.b[d][f-1]=c}else ig_x.b[d][f]=c}function ig_za(a,b){var c=ig_x.R(a);if(!(c in ig_x.b))ig_x.b[c]=[];ig_x.b[c][ig_x.b[c].length]=b}function ig_Aa(a,b){var c=ig_x.S(a);return ig_x.K(c,b)}function ig_Ba(a,b,c){var d=ig_x.T(a,b);return ig_x.K(d,c)}function ig_Ca(a,b,c){var d=ig_x.va(a,b);return ig_x.K(d,c)}function ig_Da(a,b){var c=ig_x.R(a);return ig_x.K(c,b)}function ig_Ea(a){var b=ig_x.v([ig_x.S(a)],arguments,1);ig_x.N.apply(window,b)}function ig_Fa(){var a=
ig_x.v([],arguments,0);setTimeout(function(){ig_x.triggerEvent.apply(window,a)},0)}function ig_Ga(a,b){var c=ig_x.v([ig_x.T(a,b)],arguments,2);ig_x.N.apply(window,c)}function ig_Ha(){var a=ig_x.v([],arguments,0);setTimeout(function(){ig_x.triggerModuleEvent.apply(window,a)},0)}function ig_Ia(a){var b=ig_x.v([ig_x.R(a)],arguments,1);ig_x.N.apply(window,b)}function ig_Ja(){var a=ig_x.v([],arguments,0);setTimeout(function(){ig_x.triggerCustomEvent.apply(window,a)},0)}var ig_x={lb:0,b:{},F:{},Bb:ig_la,
Cb:ig_ma,hb:ig_na,S:ig_oa,T:ig_pa,va:ig_qa,R:ig_ra,ab:ig_sa,v:ig_ta,K:ig_ua,N:ig_va,addEventHandler:ig_wa,addModuleEventHandler:ig_xa,addDOMEventHandler:ig_ya,addCustomEventHandler:ig_za,removeEventHandler:ig_Aa,removeModuleEventHandler:ig_Ba,removeDOMEventHandler:ig_Ca,removeCustomEventHandler:ig_Da,triggerEvent:ig_Ea,triggerModuleEvent:ig_Ga,triggerCustomEvent:ig_Ia,triggerDelayedEvent:ig_Fa,triggerDelayedModuleEvent:ig_Ha,triggerDelayedCustomEvent:ig_Ja},_IG_AddEventHandler=ig_x.addEventHandler,
_IG_AddModuleEventHandler=ig_x.addModuleEventHandler,_IG_AddGadgetEventHandler=ig_x.addModuleEventHandler,_IG_AddDOMEventHandler=ig_x.addDOMEventHandler,_IG_AddCustomEventHandler=ig_x.addCustomEventHandler,_IG_RemoveEventHandler=ig_x.removeEventHandler,_IG_RemoveModuleEventHandler=ig_x.removeModuleEventHandler,_IG_RemoveGadgetEventHandler=ig_x.removeModuleEventHandler,_IG_RemoveDOMEventHandler=ig_x.removeDOMEventHandler,_IG_RemoveCustomEventHandler=ig_x.removeCustomEventHandler,_IG_TriggerEvent=ig_x.triggerEvent,
_IG_TriggerModuleEvent=ig_x.triggerModuleEvent,_IG_TriggerGadgetEvent=ig_x.triggerModuleEvent,_IG_TriggerCustomEvent=ig_x.triggerCustomEvent,_IG_TriggerDelayedEvent=ig_x.triggerDelayedEvent,_IG_TriggerDelayedModuleEvent=ig_x.triggerDelayedModuleEvent,_IG_TriggerDelayedGadgetEvent=ig_x.triggerDelayedModuleEvent,_IG_TriggerDelayedCustomEvent=ig_x.triggerDelayedCustomEvent;_IG_AddDOMEventHandler(window,"unload",ig_x.ab);_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(false)});_IG_AddModuleEventHandler(a,"maximize",function(){b(true)})};var _currentLayout,_layoutData,_IG_Layouts={savedModulePositions:null};_IG_Layouts._selectLayout=function(a){var b=_gel("edit_this_tab_form").edit_this_tab_selected_layout;for(var c=0;c<b.length;c++){var d=b[c].value,e=_gel("edit_this_tab_layoutimg_"+d);if(d!=a){b[c].checked=false;if(e.src.indexOf("_highlight")!=-1)e.src=e.src.substring(0,e.src.indexOf("_highlight"))+".gif"}else{b[c].checked=true;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 false;var b=_IG_Layouts.getColumnsInOrder(),c=_layoutData[a],d=false;for(var e=0;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=true}}if((a==_currentLayout||d)&&!_IG_Layouts.rearrangeModules(a))return false;return true};_IG_Layouts.rearrangeModules=function(a){if(!_IG_Layouts.isLayoutValid(a))return false;var b=_IG_Layouts.getColumnsInOrder(),c=_gel("lc_opt"),
d=b[_layoutData[a].visibleColumns-1];d.insertBefore(c,d.firstChild);if(_IG_Layouts.savedModulePositions!=null&&a==_currentLayout){for(var e=0;e<b.length;e++){var f=_IG_Layouts.savedModulePositions[e];for(var g=0;g<f.length;g++){var h=_gel(f[g]);if(h!=null)b[e].insertBefore(h,b[e].lastChild)}}return true}var j=[],m=[];for(var e=0;e<b.length;e++)m.push(b[e].firstChild);var i=false;do{i=false;for(var e=0;e<m.length;e++){while(m[e]!=null&&m[e].id.indexOf("m_")==-1)m[e]=m[e].nextSibling;if(m[e]!=null&&
m[e].id.indexOf("m_")!=-1){j.push(m[e].id);i=true;m[e]=m[e].nextSibling}}}while(i);var k=0;for(var g=0;g<j.length;g++){b[k].insertBefore(_gel(j[g]),b[k].lastChild);do{k++;if(k>=b.length)k=0}while(b[k].style.display=="none")}return true};_IG_Layouts._saveModulePositions=function(){var a=_IG_Layouts.getColumnsInOrder();_IG_Layouts.savedModulePositions=[];for(var b=0;b<a.length;b++){_IG_Layouts.savedModulePositions[b]=[];var c=_IG_Layouts.savedModulePositions[b];for(var d=0;d<a[b].childNodes.length-
1;d++){var e=a[b].childNodes[d];if(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;for(var d=0;d<b.length;d++)if(b[d].checked==true)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!=
null)g.innerHTML=_hesc(f)}if(c!=_currentLayout){e+=e==""?"":"&";e+="lt_"+a+"="+c;_currentLayout=c;var h=_IG_Layouts.getColumnsInOrder(),j="";for(var m=0;m<h.length;m++)for(var i=0;i<h[m].childNodes.length-1;i++){var k=h[m].childNodes[i];if(k.tagName=="DIV"&&k.id.indexOf("m_")!=-1){j+=j==""?"":":";j+=k.id.substring(2)+"_"+(m+1)}}e+="&mp="+_esc(j)}if(e!="")_xsetp(e);_IG_Layouts.savedModulePositions=null};_IG_Layouts._editTabSettingsCancel=function(){_IG_Layouts._renderLayout(_currentLayout);_IG_Layouts.savedModulePositions=
null};_IG_Layouts.getColumnsInOrder=function(){var a=4,b=[];for(var c=1;c<=a;c++){var d=_gel("c_"+c);if(d==null)break;b.push(d)}return b};_IG_Layouts.isLayoutValid=function(a){if(a<0||a>_layoutData.length-1)return false;return true};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()},stop:function(f){var g=c[f]||b;d[f]=a()-g},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)}};return e})();function ig_y(a,b){if(a.indexOf)return a.indexOf(b);else{for(var c=0;c<a.length;++c)if(a[c]==b)return c;return-1}}function ig_z(a){var b="",c=this.$(a,b);return c!=null?c+"":b}function ig_A(a){var b=0,c=parseInt(this.$(a,b),10);return isNaN(c)?b:c}function ig_B(a){var b=this.getString(a);return b=="true"||!!parseInt(b,10)}function ig_C(a){return _IG_Prefs._strToArray(this.$(a,""))}function ig_D(a,b){this.set(a,_IG_Prefs._arrayToStr(b))}function ig_Ka(){return parseInt(this.j(_IG_Prefs.Oa,"0"),10)}
function ig_La(){return parseInt(this.j(_IG_Prefs.Pa,"0"),10)}function ig_E(){return this.getString(".lang")}function ig_F(){return this.getString(".country")}function ig_Ma(a,b){return this.j(_IG_Prefs.f+a,b)}function ig_G(a){return this.j(_IG_Prefs.P+a,"")}var ig_Na=/(.*)(\<ph.*?\>\s*(\<ex\>(.*?)\<\/ex\>)?\s*%1\s*\<\/ph\>)(.*)/;function ig_Oa(a,b){var c=this.j(_IG_Prefs.P+a,""),d=c.match(this.rb);if(!d||!d[0])return c;if(!b){var e=d[4]||"";return d[1]+e+d[5]}return d[1]+b+d[5]}function ig_H(){var a=
Math.floor(arguments.length/2);if(a==0)return;var b=[];for(var c=0;c<a;++c){var d=arguments[c*2],e=arguments[c*2+1],f=this.d[_IG_Prefs.f+d];if(f&&f.value==e)continue;if(_IG_Prefs.ca)b.push("m_"+this.fa+"_up_"+d+"="+_esc(e));else b.push(d,e);if(f)f.value=e;else{f={};f.value=e;this.d[_IG_Prefs.f+d]=f}}if(b.length>0){this.wb(arguments);if(_IG_Prefs.ca)_xsetp(b.join("&"));else{if(_args().synd=="open")return;_IFPC_SetPref(b)}}}function ig_Pa(a){this.tb(a);var b=a.length%2?a[a.length-1]:true;if(b)this.vb(a)}
function ig_Qa(a){var b=Math.floor(a.length/2),c={};for(var d=0;d<b;++d){var e=a[d*2],f=this.d[_IG_Prefs.f+e];if(f.onChange){var g=f.group?f.group:e;g+="_"+f.onChange;c[g]=window[f.onChange]}}for(var e in c)c[e]()}function ig_Ra(a){var b=Math.floor(a.length/2),c=[];for(var d=0;d<b;++d){var e=a[d*2],f=this.d[_IG_Prefs.f+e];if(f.publish){if(!(ig_y(c,e)%2==0))c.push(e,this.Ba(e));if(f.group)for(var g in this.d){var h=this.d[g];g=g.substring(_IG_Prefs.f.length);if(g!=e&&h.publish&&h.group&&h.group==f.group)if(!(ig_y(c,
g)%2==0))c.push(g,this.Ba(g))}}}if(typeof _IG_PubSub!="undefined"&&c.length>0){var j=new _IG_PubSub(this.fa);j.publishMultiple(c)}}function ig_Sa(a){var b=this.d[_IG_Prefs.f+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.d[_IG_Prefs.f+a+".long"];c.lat=this.d[_IG_Prefs.f+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 ig_Ta(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 ig_Ua(a,b){if(typeof b=="undefined")b=null;var c=this.d[a];if(typeof c=="undefined")return b;else{var d=c.value;return typeof d!="undefined"?d:b}}function ig_Va(){document.write("<pre>");for(var a in this.d)document.writeln(a+" = "+this.j(a,
null));document.write("</pre>")}function ig_I(){var a=["__module_id__="+this.fa];for(var b in this.d)a.push(encodeURIComponent(b)+"="+encodeURIComponent(this.d[b].value));return a.join("&")}function _IG_Prefs(a){this.getString=ig_z;this.getInt=ig_A;this.getBool=ig_B;this.getArray=ig_C;this.setArray=ig_D;this.getCountry=ig_F;this.getLang=ig_E;this.getMsg=ig_G;this.getMsgFormatted=ig_Oa;this.set=ig_H;this.getPreloadedString=ig_I;this.dump=ig_Va;this.Za=ig_Ta;this.Ba=ig_Sa;this.tb=ig_Qa;this.vb=ig_Ra;
this.wb=ig_Pa;if(typeof remote_modules!="object"){var b=_args().mid;a=b?b: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=ig_Ka;this.getModuleWidth=ig_La;this.d=_IG_Prefs.d[_IG_Prefs.Q+a]||{};this.j=ig_Ua;this.$=ig_Ma;this.fa=a;this.rb=ig_Na}_IG_Prefs.Oa="h";_IG_Prefs.Pa="w";_IG_Prefs.Q="m_";_IG_Prefs.f="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.P="msg_";_IG_Prefs._parseURL=function(a){_IG_Prefs.ca=false;var b={},c=ig_f();for(var d=0;d<c.length;++d){var e=c[d].indexOf("=");if(e>=0){var f=c[d].substring(0,e);f=f.replace(/\+/g," ");var g=c[d].substring(e+1);g=g.replace(/\+/g," ");g=_unesc(g);var h=false;for(var j in _IG_Prefs.PREFIXES_TO_FIELDS)if(f.indexOf(j)==0){h=true;f=f.substring(j.length);f=_IG_Prefs.f+f;b[f]=b[f]?b[f]:{};if(j==_IG_Prefs.USER_PREF_PREFIX_PUBLISH||
j==_IG_Prefs.USER_PREF_PREFIX_LISTEN)g=g=="true"?true:false;b[f][_IG_Prefs.PREFIXES_TO_FIELDS[j]]=g;break}if(!h)if(f.indexOf(_IG_Prefs.P)==0)_IG_Prefs._add(a,f,g);else if(f==".lang"||f==".country")_IG_Prefs._add(a,_IG_Prefs.f+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.Q+a;if(typeof _IG_Prefs.d[e]!="object")_IG_Prefs.d[e]={};if(typeof _IG_Prefs.d[e][b]!=
"object")_IG_Prefs.d[e][b]={};else return;var f=_IG_Prefs.d[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;c<b.length;++c)_IG_Prefs._add(a,b[c][0],b[c][1],b[c][2])};_IG_Prefs._subscribePrefs=
function(a,b){var c=_IG_Prefs.Q+a,d=_IG_Prefs.d[c][b],e=new _IG_PubSub(a),f=[b.substring(_IG_Prefs.f.length)];if(d.group){var g=_IG_Prefs.d[c],h=[];for(var j in g)if(g[j].group&&g[j].listen&&g[j].group==d.group&&j!=b)h.push(j.substring(_IG_Prefs.f.length));if(h.length>0){e.unsubscribeMultiple(h);f=f.concat(h)}}var m=function(k,l){var o=new _IG_Prefs(a),p=[];for(var q=0;q<k.length;++q){var n=o.d[_IG_Prefs.f+l[q]],s=n.datatype,r=l[q],u=k[q],t=o.Za(u,s);if(s=="location"){p.push(r+".long",t[1]);p.push(r+
".lat",t[2]);p.push(r,t[0])}else p.push(r,t)}p.push(false);o.set.apply(o,p)},i={};i.triggerOn="any";i.shouldReceiveLocalEvents=false;e.subscribeMultiple(f,m,i)};_IG_Prefs._arrayToStr=function(a){var b=a.length&&a.join;if(b){var c=[];for(var d=0;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("|"):[];for(var c=0;c<b.length;++c)b[c]=b[c].replace(/%7C/g,"|");return b};_IG_Prefs.d={};_IG_Prefs.ca=
true;_exportClass("google.gadgets","Prefs",_IG_Prefs,["getString",ig_z,"getInt",ig_A,"getBool",ig_B,"getArray",ig_C,"getLang",ig_E,"getCountry",ig_F,"getMsg",ig_G,"getPreloadedString",ig_I,"set",ig_H,"setArray",ig_D]);var _IG_iFrameTransitionStrategy=function(a,b,c){this.c=a;this.J=b;this.wa="";this.W=c||"800px";this.U=null;this.ya=null;this.xa=null};_IG_iFrameTransitionStrategy.prototype._onPreDetachDashboard=function(){var a=_gel("remote_iframe_"+this.c);this.wa=a.src};_IG_iFrameTransitionStrategy.prototype._onPreAttachMaximized=function(){var a=_gel("m_"+this.c),b=_gel("m_"+this.c+"_b");a.className="modbox_max";b.className="modboxin_max";ig_J.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._onPreAttachDashboard=function(){var a=_gel("m_"+this.c),b=_gel("m_"+this.c+"_b");a.className="modbox";b.className="modboxin";ig_J.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.ya=b.style.height;this.xa=c.style.height;this.U=a.style.height;a.src=this.J;a.style.height=this.W};_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.U!=null){a.style.height=this.U;b.style.height=this.ya;c.style.height=this.xa}a.src=this.wa};var _IG_inlinedTransitionStrategy=function(a,b,c){this.c=a;this.pb=false;this.J=b;this.X="max_div";this.ba="max_iframe";
this.W=c||"800px"};_IG_inlinedTransitionStrategy.prototype._updateIframeSrc=function(a){this.J=a;var b=_gel(this.ba);if(b)b.src=a};_IG_inlinedTransitionStrategy.prototype._onPostAttachMaximized=function(){var a=_gel(this.X),b=_gel(this.ba),c=_gel("m_"+this.c+"_b");if(!a){a=document.createElement("DIV");a.id=this.X}if(!b){b=document.createElement("IFRAME");b.id=this.ba;a.appendChild(b)}if(c.nextSibling)c.parentNode.insertBefore(a,c.nextSibling);else c.parentNode.appendChild(a);a.className="modboxin_max";
a.style.display="";b.style.width="100%";b.style.height=this.W;b.style.padding="0px";b.style.margin="0px";b.style.overflow="hidden";b.src=this.J};_IG_inlinedTransitionStrategy.prototype._onPostAttachDashboard=function(){var a=_gel(this.X);a.style.display="none"};_IG_inlinedTransitionStrategy.prototype._onPreAttachMaximized=function(){var a=_gel("m_"+this.c),b=_gel("m_"+this.c+"_b");a.className="modbox_max";b.className="modboxin_max";ig_J.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");a.className="modbox";b.className="modboxin";ig_J.restoreRoundedCorners(this.c);_gel("rcam_t1").className="rnd1";_gel("rcam_t2").className="rnd2";_gel("rcam_t3").className="rnd3"};var _IG_noMaxSupportTransitionStrategy=function(a,b){this.c=a;this.pb=false;this.L=b};_IG_noMaxSupportTransitionStrategy.prototype._onPreDetachDashboard=
function(){};function _IG_noMaxSupportResizeIframe(a){var b=window.innerWidth;if(document.body.clientHeight)b=document.body.clientHeight;_gel(a).style.height=parseInt(b-_gel(a).offsetTop-8,null)+"px"}_IG_noMaxSupportTransitionStrategy.prototype._onPostAttachMaximized=function(){var a=_gel("m_"+this.c),b=_gel("mu_div");if(b==null){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 style="padding-top:4px;padding-left:15px;" id="muph"></div><br>',
'<iframe id="max_ifr1" ',"onload=\"_IG_noMaxSupportResizeIframe('max_ifr1')\" ",'frameBorder=0 scrolling="no" style="height:100%; border:0px" ','width="100%"></iframe></td><td height=100%>','<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_ifr1"),f=_gel("max_ifr2");if(this.L&&this.L.length){if(e)e.src="/ig/directory?output=brief&comments="+this.L;if(f)f.src="/ig/directory?output=brief&recommend="+this.L}else{if(e)e.src="";if(f)f.src=""}};_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_Wa=" modhover",ig_Xa="titlehover";function _IG_hoverModule(a,b){var c=_gel("m_"+a);ig_K(a,b,c,ig_Wa)}function _IG_hoverHeader(a,b){var c=_gel("m_"+a+"_drag");c.style.display=b?"":"none";var d=_gel("m_"+a+"_home_menu");ig_K(a,b,d,ig_Xa)}function ig_K(a,b,c,d){if(b){var e=ig_J.isModuleMaximized(a);if(!e&&c.className.indexOf(d)==-1)c.className+=d}else c.className=c.className.replace(RegExp(d),"")};var ig_L={obj:null,init:function(a,b){a.onmousedown=ig_L.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.La);a.onmousedown=null;a.obj=null;b.onDragStart=null;b.onDragEnd=null;b.onDrag=null},start:function(a){var b=ig_L.obj=this.obj;a=ig_L.fixE(a);if(a.which!=1)return true;b.onDragStart(a);var c=a.clientY;if(!ig_.Ga)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.La=window.setInterval(ig_Ya(b,document.body.scrollHeight>document.documentElement.clientHeight?document.body.scrollHeight:document.documentElement.clientHeight),10);document.onmouseup=ig_L.end;document.onmousemove=ig_L.drag;return false},drag:function(a){a=ig_L.fixE(a);if(a.which==0)return ig_L.end();var b=ig_L.obj,c=a.clientY;if(!ig_.Ga)c+=document.body.scrollTop;
var d=a.clientX;if(b.lastMouseX==d&&b.lastMouseY==c)return false;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 false},end:function(a){a=ig_L.fixE(a);document.onmousemove=null;document.onmouseup=null;window.clearInterval(ig_L.obj.La);var b=ig_L.obj.onDragEnd();ig_L.obj=null;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_Za(a,b,c){if(!a)return[];var d=b=="*"&&a.all?a.all:a.getElementsByTagName(b),e=[];c=c.replace(/\-/g,"\\-");var f=new RegExp("(^|\\s)"+c+"(\\s|$)"),g;for(var h=0;h<d.length;h++){g=d[h];if(f.test(g.className))e.push(g)}return e}var _IG_initDrag=function(a,b){ig_.D=a;ig_.w=b;ig_.r=ig_Za(ig_.D,"div","yui-u");if(_old_html){ig_.Ka=ig_.D.tBodies[0].rows[0];ig_.r=ig_.Ka.cells}ig_.i=[];var c=0;for(var d=0;d<ig_.r.length;d++){var e=
ig_.r[d];if(e.className.indexOf("ig_dnd_fixed_col")!=-1||e.style.display=="none")continue;for(var f=0;f<e.childNodes.length;f++){var g=e.childNodes[f];if(g.tagName=="DIV"){ig_.i[c]=g.className!="dm"?new ig__a(g):new ig_0a(g);c++}}}_IG_AddEventHandler("unload",ig_M)};function ig_M(){if(ig_.i)for(var a=0;a<ig_.i.length;a++){ig_.i[a].za();ig_.i[a]=null}ig_.i=null;ig_.r=null;if(_old_html)ig_.Ka=null;ig_.D=null}var ig_={};ig_.na=navigator.userAgent;ig_.nb=ig_.na.indexOf("Gecko")!=-1;ig_.Fa=ig_.na.indexOf("Opera")!=
-1;ig_.Ga=ig_.na.indexOf("Safari")!=-1;ig_.ra="IG_pageDivMaskId";ig_.qa="IG_moduleDivMaskId";ig_.Eb=function(){ig_.D.style.display="none"};ig_.Fb=function(){ig_.D.style.display=""};ig_.o=null;ig_.G=function(){if(!ig_.o){ig_.o=document.createElement("DIV");ig_.o.className="modbox";ig_.o.backgroundColor="";ig_.o.style.border="2px dashed #aaa";ig_.o.innerHTML="&nbsp;"}return ig_.o};ig_.q=function(a,b){return function(){return a[b].apply(a,arguments)}};ig_.Va=function(){if(ig_.w){var a=ig_.w.getElementsByTagName("LI");
if(_old_html)a=ig_.w.tBodies[0].rows[0].cells;for(var b=0;b<a.length;b++){var c=a[b];if(c.className.indexOf("unselectedtab")<0)continue;if(c.style.display=="none")continue;c.isDraggableTo=true;c.pagePosLeft=ig_.t(c,true);c.pagePosRight=c.pagePosLeft+c.offsetWidth;c.pagePosTop=ig_.t(c,false);c.pagePosBottom=c.pagePosTop+c.offsetHeight}}};ig_.Ua=function(a){for(var b=0;b<ig_.i.length;b++){var c=ig_.i[b];c.a.pagePosLeft=ig_.t(c.a,true);c.a.pagePosTop=ig_.t(c.a,false)}var d=a.a.nextSibling;while(d){d.pagePosTop-=
a.a.offsetHeight;d=d.nextSibling}};ig_.t=function(a,b){var c=0,d=0;if(a&&a.offsetParent&&a.offsetParent.id)if(!b){var e=a.offsetParent.getElementsByTagName(a.tagName);if(e&&e[0])d=e[0].offsetTop}while(a){c+=a["offset"+(b?"Left":"Top")];a=a.offsetParent}return c-d};ig_.Qa=function(a){ig_.Ja();var b=document.createElement("DIV");b.id=ig_.ra;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/ig/images/cleardot.gif)";b.style.zIndex="9999";document.body.appendChild(b);if(a.kb){b=b.cloneNode(true);b.id=ig_.qa;b.style.height=a.a.offsetHeight-a.k.offsetHeight+"px";b.style.top=a.k.offsetHeight+"px";a.a.appendChild(b)}};ig_.Ja=function(){var a=[ig_.qa,ig_.ra];for(var b=0;b<a.length;b++){var c=_gel(a[b]);if(c){c.parentNode.removeChild(c);c=null}}};ig_.zb=function(){var a="";for(var b=0;b<ig_.r.length;b++){var c=ig_.r[b];for(var d=0;d<c.childNodes.length-1;d++){var e=
c.childNodes[d];if(e.tagName=="DIV"){a+=a!=""?":":"";a+=e.id.substring(2)+"_"+c.id.substring(2)}}}_xsetp("mp="+_esc(a))};function ig_0a(a){this.za=ig_1a;this.a=a;this.a.innerHTML="<br />"}function ig_1a(){this.a=null}function ig__a(a){this._urlMouseUp=ig_2a;this._urlMouseDown=ig_3a;this._urlClick=ig_4a;this._dragStart=ig_5a;this._drag=ig_6a;this._dragEnd=ig_7a;this.fb=ig_8a;this.O=ig_9a;this.za=ig_$a;this.z=false;this.a=a;this.k=_gel(a.id+"_h");this.e=_gel(a.id+"_url");this.kb=this.a.getElementsByTagName("IFRAME").length>
0;this.a.DND_Module=this;if(this.k){this.k.style.cursor="move";ig_L.init(this.k,this.a);this.a.onDragStart=ig_.q(this,"_dragStart");this.a.onDrag=ig_.q(this,"_drag");this.a.onDragEnd=ig_.q(this,"_dragEnd");if(this.e){this.e.style.cursor="pointer";if(ig_.nb){this.e.onmousedown=ig_.q(this,"_urlMouseDown");this.e.onclick=ig_.q(this,"_urlClick")}else this.e.onmouseup=ig_.q(this,"_urlMouseUp")}}}function ig_$a(){if(this.k){if(this.e){this.e.onclick=null;this.e.onmouseup=null;this.e=null}ig_L.uninit(this.k,
this.a);this.a.onDragStart=null;this.a.onDrag=null;this.a.onDragEnd=null;this.k=null}this.a=null}function ig_2a(a){a=ig_L.fixE(a);if(this.z||!this.e||!this.e.href||a.which!=1)return true;this.O("titleclick");if(this.e.target||a.shiftKey)window.open(this.e.href,this.e.target);else document.location=this.e.href;return false}function ig_3a(a){a=ig_L.fixE(a);a.stopPropagation();return true}function ig_4a(){if(!this.z&&this.e&&this.e.href){this.O("titleclick");return true}return false}function ig_5a(){ig_.Ua(this);
ig_.Va();this.origNextSibling=this.a.nextSibling;var a=ig_.G(),b=this.a.offsetHeight;b-=parseInt(a.style.borderTopWidth,10)*2;var c=this.a.offsetWidth,d=ig_.t(this.a,true),e=ig_.t(this.a,false);this.a.style.width=c+"px";a.style.height=b+"px";this.a.parentNode.insertBefore(a,this.a.nextSibling);this.a.style.position="absolute";this.a.style.zIndex=10000;this.a.style.left=d+"px";this.a.style.top=e+"px";ig_.Qa(this);this.z=false;return false}function ig_N(){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_6a(a,b){if(!this.z){this.a.style.filter="alpha(opacity=50)";this.a.style.opacity=0.5;this.z=true;this.O("dragstart")}var c=null,
d=100000000;for(var e=0;e<ig_.i.length;e++){var f=ig_.i[e],g=a;if(document.body.dir=="rtl"&&f.a.offsetWidth==1)g+=this.a.offsetWidth;var h=Math.sqrt(Math.pow(g-f.a.pagePosLeft,2)+Math.pow(b-f.a.pagePosTop,2));if(f==this)continue;if(isNaN(h))continue;if(h<d){d=h;c=f}}this.m=null;if(ig_.w){var j=ig_.w.getElementsByTagName("LI");if(_old_html)j=ig_.w.tBodies[0].rows[0].cells;for(var e=0;e<j.length;e++){var f=j[e];if(!f.isDraggableTo)continue;var m=ig_N();if(this.a.lastMouseX>=f.pagePosLeft&&this.a.lastMouseX<=
f.pagePosRight&&this.a.lastMouseY+m[1]>=f.pagePosTop&&this.a.lastMouseY+m[1]<=f.pagePosBottom){this.m=f;var i=ig_.G();if(i.parentNode!=null)i.parentNode.removeChild(i);break}}for(var e=0;e<j.length;e++){var f=j[e];if(f.id.indexOf("view")>=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 i=ig_.G();if(this.m==null&&c!=null&&i.nextSibling!=c.a){c.a.parentNode.insertBefore(i,c.a);if(ig_.Fa){document.body.style.display=
"none";document.body.style.display=""}}}function ig_7a(){ig_.Ja();if(this.fb())ig_.zb();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.z)this.O("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 ig_8a(){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=ig_.G();if(b.parentNode!=null){if(b.nextSibling!=this.origNextSibling){b.parentNode.insertBefore(this.a,b.nextSibling);a=true}b.parentNode.removeChild(b)}if(ig_.Fa){document.body.style.display="none";document.body.style.display=""}return a}function ig_9a(a){switch(a){case "titleclick":_IG_TriggerModuleEvent(this.a.id,a,this.e.href);_IG_TriggerEvent("module"+
a,this.a.id,this.e.href);break;case "dragstart":case "dragend":_IG_TriggerDelayedModuleEvent(this.a.id,a);_IG_TriggerDelayedEvent("module"+a,this.a.id);break}}function ig_Ya(a,b){return function(){var c=ig_ab(),d=ig_N(),e=d[1],f=4,g=0.05*c,h=e,j=a.offsetTop;if(a.lastMouseY<=g){j=a.offsetTop-f;h=e-f}else if(a.lastMouseY>=c-g){j=Math.min(b-a.offsetHeight,a.offsetTop+f);h=Math.min(b-c,e+f)}var m=h-e;if(m!=0){window.scrollBy(0,m);a.style.top=j+"px"}}}function ig_ab(){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)});var ig_J=new function(){this.ma="modules";this.la="dash_ph";this.ea="max_ph";this.g=null;this.Ea=null;if(window.onbeforeunload){var a=window.onbeforeunload;window.onbeforeunload=function(){a();ig_J.onCommitServerState()}}else window.onbeforeunload=function(){ig_J.onCommitServerState()}};ig_J.onCommitServerState=function(){if(this.g!=this.Ea){var a=ig_b(),b="/ig/setp?et="+_et+"&maxm="+(this.g?this.g:"-1");a.open("GET",b,false);a.send(null)}};ig_J.setInitialMaximizedModuleId=function(a){this.Ea=a};
ig_J.swapMaximizedModule=function(a){if(this.g==a){}else if(this.g){this.restoreModule(this.g);this.maximizeModule(a)}else this.maximizeModule(a)};ig_J.restoreView=function(){if(this.g)this.restoreModule(this.g)};ig_J.isModuleMaximized=function(a){return this.g==a};ig_J.getStrategy=function(a){var b=_max_strategies[a];if(b==null){b=new _IG_noMaxSupportTransitionStrategy(a);_max_strategies[a]=b}return b};ig_J.maximizeModule=function(a){var b=this.getStrategy(a);if(b._onPreDetachDashboard)b._onPreDetachDashboard();
this.bb(a);if(b._onPostDetachDashboard)b._onPostDetachDashboard();if(b._onPreAttachMaximized)b._onPreAttachMaximized();this.Ta(a);if(b._onPostAttachMaximized)b._onPostAttachMaximized();this.g=a};ig_J.restoreModule=function(a){var b=this.getStrategy(a);if(b._onPreDetachMaximized)b._onPreDetachMaximized();this.cb(a);if(b._onPostDetachMaximized)b._onPostDetachMaximized();if(b._onPreAttachDashboard)b._onPreAttachDashboard();this.Sa(a);if(b._onPostAttachDashboard)b._onPostAttachDashboard();this.g=null};
ig_J.Ab=function(a){this.ka=function(){_IG_minimize_view(a)};_IG_AddModuleEventHandler(a,"delete",this.ka)};ig_J.Ya=function(a){if(this.ka)_IG_RemoveModuleEventHandler(a,"delete",this.ka)};ig_J.bb=function(a){var b=_gel(this.la);if(b==null){b=document.createElement("DIV");b.id=this.la;b.style.display="none"}var c=_gel("m_"+a),d=_gel(this.ma).parentNode;c.parentNode.replaceChild(b,c);d.appendChild(c);b.style.display="block";b.style.height=c.clientHeight+"px";this.ua(a)};ig_J.Ta=function(a){var b=_gel(this.ea);
if(b==null){b=document.createElement("DIV");b.id=this.ea;b.style.display="none"}var c=_gel("m_"+a),d=_gel(this.ma);b.appendChild(c);d.parentNode.appendChild(b);d.style.display="none";b.style.display="block";c.className=c.className.replace(/modbox/,"modbox_max");this.db(a);this.Ab(a);_IG_TriggerEvent("modulemaximize",a);_IG_TriggerModuleEvent(a,"maximize")};ig_J.cb=function(a){var b=_gel(this.ma),c=_gel(this.ea);c.style.display="";b.style.display="";var d=_gel("m_"+a);d.className=d.className.replace(/modbox_max/,
"modbox");this.ua(a)};ig_J.Sa=function(a){var b=_gel(this.la),c=_gel("m_"+a);c.style.height=b.clientHeight;b.parentNode.replaceChild(c,b);b.style.display="none";this.eb(a);this.Ya(a);_IG_TriggerEvent("moduleunmaximize",a);_IG_TriggerModuleEvent(a,"unmaximize")};ig_J.db=function(a){var b=_gel("m_"+a),c=_gel("m_"+a+"_h");b.parentNode.className+=" ig_dnd_fixed_col";c.style.cursor="default";ig_M()};ig_J.eb=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_J.ua=function(a){_IG_hoverModule(a,false);_IG_hoverHeader(a,false)};ig_J.Ca=function(a){var b=_gel(a),c=b.childNodes,d=[];for(var e=0;e<c.length;++e)if(c[e].className=="rnd_modtitle"||c[e].className=="rnd_modboxin")for(var f=0;f<c[e].childNodes.length;++f)d[d.length]=c[e].childNodes[f];return d};ig_J.removeRoundedCorners=function(a){var b=this.Ca("m_"+a);for(var c=0;c<b.length;++c)b[c].className+="_max"};ig_J.restoreRoundedCorners=function(a){var b=
this.Ca("m_"+a);for(var c=0;c<b.length;++c)b[c].className=b[c].className.replace(/_max/,"")};var _IG_maximize_persistent_module=function(a){ig_J.setInitialMaximizedModuleId(a);_IG_maximize_view(a)},_IG_toggle_view=function(a){ig_J.swapMaximizedModule(a)},_IG_is_maximized_module=function(a){return ig_J.isModuleMaximized(a)},_IG_maximize_view=function(a){if(!ig_J.isModuleMaximized(a))ig_J.swapMaximizedModule(a)},_IG_minimize_view=function(a){if(ig_J.isModuleMaximized(a))ig_J.restoreModule(a)},_IG_restore_view=
function(){ig_J.restoreView()};_exportClass("gadgets.views","ViewManager",["isModuleMaximized",ig_J.isModuleMaximized]);var ig_O=(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,h,j;if(c instanceof Array){d[0]=
"[";h=c.length;for(g=0;g<h;g+=1){j=c[g];f=b[typeof j];if(f){j=f(j);if(typeof j=="string"){if(e)d[d.length]=",";d[d.length]=j;e=true}}}d[d.length]="]"}else if(typeof c.hasOwnProperty==="function"){d[0]="{";for(g in c)if(c.hasOwnProperty(g)){j=c[g];f=b[typeof j];if(f){j=f(j);if(typeof j=="string"){if(e)d[d.length]=",";d.push(b.string(g),":",j);e=true}}}d[d.length]="}"}else return;return d.join("")}return"null"}};return{copyright:"(c)2005 JSON.org",license:"http://www.JSON.org/license.html",stringify:function(c){var d=
b[typeof c];if(d){c=d(c);if(typeof c=="string")return c}return null},parse:function(c){try{return!/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(c.replace(/"(\\.|[^"\\])*"/g,""))&&eval("("+c+")")}catch(d){return false}}}})();var _IG_Json=ig_O;var _IG_ViewType={FULL_PAGE:"canvas",DASHBOARD:"home",POPUP:"POPUP"},_IG_View=function(a,b){this.sb=a;this.ob=!!b};_IG_View.prototype.Z=function(){return this.sb};_IG_View.prototype.da=function(){return this.ob};var _IG_SupportedViews={};_IG_SupportedViews.FULL_PAGE=new _IG_View(_IG_ViewType.FULL_PAGE,true);_IG_SupportedViews.canvas=new _IG_View(_IG_ViewType.FULL_PAGE,true);_IG_SupportedViews.DASHBOARD=new _IG_View(_IG_ViewType.DASHBOARD,false);_IG_SupportedViews.home=new _IG_View(_IG_ViewType.DASHBOARD,
false);function _navigateto(a,b,c){if(b==_IG_ViewType.FULL_PAGE){if(!_IG_is_maximized_module(a))_IG_maximize_view(a)}else if(_IG_is_maximized_module(a))_IG_minimize_view(a);if(c){var d=_IG_Json.stringify(c);_gel("remote_iframe_"+a).src+="&view-params="+_esc(d)}return true}function _IG_NavigateToGadget(a,b,c){_navigateto(a,b,c)}function _getCurrentView(a){return _IG_is_maximized_module(a)?_IG_SupportedViews.FULL_PAGE:_IG_SupportedViews.DASHBOARD}function _IG_GetCurrentView(a){return _getCurrentView(a)}
function _getParams(a){var b=_gel("remote_iframe_"+a).src,c=_argsUrl(b),d=_IG_Json.parse(_unesc(c["view-params"]));return d}function _IG_GetViewParams(a){return _getParams(a)}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.Z,
"isOnlyVisibleGadget",_IG_View.prototype.da]);function _IG_FR_toggle(a,b){var c=_gel("ft_"+a+"_"+b),d=_gel("fb_"+a+"_"+b),e=_gel("ftl_"+a+"_"+b);if(d.style.display=="block")ig_P(c,d,e);else{var f=eval("FEED"+a);if(!f.has_entries&&!f.is_fetching){f.is_fetching=true;_IG_FetchFeedAsJSON(f.url,_IG_Callback(ig_bb,a,b),f.num_items+15,true)}else{for(var g=0;g<eval("FEED"+a).num_items;g++){var h=_gel("ftl_"+a+"_"+g);if(h)ig_P(_gel("ft_"+a+"_"+g),_gel("fb_"+a+"_"+g),h)}ig_cb(c,d,e);if(d.style.maxHeight&&parseInt(d.style.maxHeight,10)<ig_db(e.offsetWidth,
d))d.style.height=d.style.maxHeight}}}function ig_bb(a,b,c){var d=eval("FEED"+b);d.is_fetching=false;if(a&&a.Entry){for(var e=0;e<a.Entry.length;e++)if(a.Entry[e].ID!="no_id"){var f=_gel("fb_"+b+"_"+a.Entry[e].ID);if(f)f.innerHTML=a.Entry[e].Summary}eval("FEED"+b).has_entries=true;_IG_FR_toggle(b,c)}}function ig_Q(a){return a.className.match("reverse_directionality$")=="reverse_directionality"}function ig_P(a,b,c){a.className=ig_Q(a)?"fmaxbox_reverse_directionality":"fmaxbox";if(_old_html||_use_old_feed_styles)a.className=
"fbox fmaxbox";b.style.display="none";b.style.maxHeight="";c.className=ig_Q(a)?"uftl_reverse_directionality":"uftl"}function ig_cb(a,b,c){a.className=ig_Q(a)?"fminbox_reverse_directionality":"fminbox";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_Q(a)?"sftl_reverse_directionality":"sftl"}function ig_db(a,b){var c=document.createElement("div");c.style.left=-screen.width;c.style.top=-screen.height;c.style.width=
a;c.innerHTML=b.innerHTML;document.body.appendChild(c);var d=c.clientHeight;document.body.removeChild(c);return d}function _IG_RegisterContainerScrollHandler(a){if(navigator.userAgent.indexOf("Firefox")>=0)window.addEventListener("scroll",a,false);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_R(a){return"/reader/ig/feed/"+eval("FEED"+a).url}function ig_S(a,b){if(window._max_strategies){var c=ig_R(a)+(b?"?i="+b:"");window._max_strategies[a]._updateIframeSrc(c)}}function _IG_FR_maxModule(a,b){ig_S(a,b);_IG_maximize_view(a)}function _IG_FR_init(a){window._max_strategies[a]=new _IG_inlinedTransitionStrategy(a,ig_R(a));_IG_AddModuleEventHandler(a,"unmaximize",function(){ig_S(a)})};var ig_T='<table class="dialog" id="IG_PU_dlg" cellspacing="0" cellpadding="0"><tr><td>',ig_U="</td></tr></table>",ig_V,_DI_button_type={Close:-1,OK:0,Cancel:1},ig_W=true;function _IG_PU_init(){var a=_gel("IG_PU_box");if(!a){document.write('<iframe id="IG_PU_iframe_cover" style="display:none;"></iframe>');document.write('<div id="IG_PU_box" style="display:none;"></div>')}var b=_gel("IG_PU_bg");if(!b)document.write('<div id="IG_PU_bg" style="display:none;"></div>')}function _IG_PU_open(a,b,c,d){ig_W=
typeof b=="string";var e=_gel("IG_PU_box");if(e&&e.style.display=="none"){if(!c)c=[_IG_PU_MakeDialogButton("Save"),_IG_PU_MakeDialogButton("Cancel")];var f=[ig_T,'<div class="outerborder"><div class="border titlebar">',a,"</div>"];f.push('<div class="border body" id="',"dialogcontent",'">');if(ig_W)f.push(b);f.push(ig_X(c));f.push("</div>");f.push(ig_U);ig_Y(f.join(""),d,ig_W?null:b)}}function ig_X(a,b){var c=['<div id="buttons" class="button_background'];if(b)c.push(" "+b);c.push('"><table class="buttontable" cellspacing="0" cols=');
c.push(a.length,"><tr>");for(var d=0;d<a.length;++d){c.push("<td align=center>");c.push('<span id="button_',d,'" ');c.push('onclick="_IG_PU_hide(',d,')">');c.push(a[d]);c.push("</span>");c.push("</td>")}c.push("</tr></table></div></div>");return c.join("")}function ig_Y(a,b,c){if(b){if(typeof b!="function")b=_IG_PU_IGNORE;ig_V=b}else ig_V=_IG_PU_IGNORE;var d=_gel("IG_PU_bg");d.style.zIndex=3000;d.style.background="#000";ig_Z(d,true);d.style.position="absolute";d.onclick=_IG_PU_IGNORE;d.style.display=
"none";d.style.left="0px";d.style.top="0px";var e=_gel("IG_PU_box"),f=_gel("IG_PU_iframe_cover");e.innerHTML=a;if(!ig_W&&c){var g=document.createElement("div");g.id="popup_box_placeholder";g.style.display="none";c.parentNode.insertBefore(g,c);_gel("dialogcontent").insertBefore(c,_gel("dialogcontent").firstChild)}e.style.position="absolute";e.style.zIndex=3001;f.style.position="absolute";e.style.visibility="hidden";e.style.display="block";ig__();e.style.visibility="visible";f.style.display="";d.style.display=
"block";if(_gel("popup_iframe"))_IG_AddEventHandler("resize",_ResizeIframeHeight);else _IG_AddEventHandler("resize",ig__);window.onscroll=ig__;var h=_gel("IG_PU_dlg");h.onkeydown=_IG_PU_limitFocus;var j=_IG_PU_findFocusable(e,true,true);if(j)j.focus()}function _IG_PU_openURL(a,b,c,d,e,f){var g=[ig_T,'<div class="outerborder">'];g.push('<div class="border titlebar">');g.push(_IG_PU_createSimpleTitle(a));g.push(b);g.push("</div>");g.push('<div class="border body url">');g.push('<iframe id="popup_iframe" style="width:',
d,';height:0px;"',' src="',c,'" onload="_ResizeIframeHeight();"',' scrolling="no" frameborder="0"></iframe>');g.push('<div class="c"></div>');if(e)g.push(ig_X(e,"colored_background"));g.push("</div></div>");g.push(ig_U);ig_Y(g.join(""),f)}function ig__(){var a=_gel("IG_PU_box"),b=_gel("IG_PU_iframe_cover"),c=_gel("IG_PU_bg"),d=document.body.clientWidth,e=window.innerHeight;if(!e)e=document.documentElement.offsetHeight;var f=a.offsetHeight<e;if(a){var g=(d-a.offsetWidth)/2,h=Math.max((e-a.offsetHeight)/
2+ig_ka(),0);if(!f&&a.style.top)h=parseInt(a.style.top,10);a.style.left=g+"px";a.style.top=h+"px";b.style.left=g+"px";b.style.top=h+"px";b.style.width=a.offsetWidth+"px";b.style.height=a.offsetHeight+"px"}if(c){var j=parseInt(a.style.top,10)+a.offsetHeight,m=Math.max(ig_w(),e,j);c.style.height=m+"px";c.style.width=document.body.clientWidth+"px"}}function _ResizeIframeHeight(){if(_gel("popup_iframe")){_gel("popup_iframe").style.height=ig_w(_gel("popup_iframe").contentWindow.document.body)+"px";_gel("popup_iframe").style.display=
"block";_gel("popup_iframe").style.display=""}ig__()}function _IG_PU_hide(a){var b=_gel("button_"+a);if(b&&b.firstChild&&b.firstChild.disabled)return;var c=_gel("IG_PU_box"),d=_gel("IG_PU_iframe_cover"),e=_gel("IG_PU_bg");if(c){c.style.display="none";d.style.display="none"}if(e){e.onclick="";e.style.height="";e.style.width=""}if(!ig_W){var f=_gel("dialogcontent").firstChild;if(a!=_DI_button_type.OK&&f.nodeName=="FORM")f.reset();setTimeout("_IG_PU_move_DOM()",1000)}if(_gel("popup_iframe"))_IG_RemoveEventHandler("resize",
_ResizeIframeHeight);else _IG_RemoveEventHandler("resize",ig__);window.onscroll=null;ig_V(a)}function _IG_PU_move_DOM(){var a=_gel("popup_box_placeholder"),b=_gel("dialogcontent").firstChild;a.parentNode.insertBefore(b,a);a.parentNode.removeChild(a)}function _IG_PU_IGNORE(){}function ig_Z(a,b){if("opacity"in a.style)a.style.opacity=b?0.5:1;else if("MozOpacity"in a.style)a.style.MozOpacity=b?0.5:1;else if("filter"in a.style)a.style.filter=b?"alpha(opacity=50)":"alpha(opacity=100)"}function _IG_PU_MakeDialogButton(a,
b,c,d){var e=['<input type="button"'];if(b)e.push(' id="'+b+'"');if(c)e.push(' class="'+c+'"');if(d)e.push(' onclick="'+d+'"');e.push(' value="',a,'"></input>');return e.join("")}function _IG_PU_disable_hide_for_button(a){var b=_gel("button_"+a);if(b)b.onclick=function(){}}function _IG_PU_createSimpleTitle(a){var b=[];b.push('<div class="popup_title">',a,"</div>");b.push('<div class="popup_title_buttons">');b.push('<a onclick="_IG_PU_hide(_DI_button_type.Close);"');b.push(' class="delbox"  href="javascript:void(0)">');
b.push("</a>");b.push("</div>");b.push('<div class="c"></div>');return b.join("")}function _IG_PU_createSimpleInputBox(a,b,c){var d=[];d.push('<div class="popup_body thinpadding">');d.push('<form onsubmit="_IG_PU_hide(_DI_button_type.OK); return false;">');d.push('<table cellspacing="0" cellpadding="0" border="0"><tr>');d.push('<td class="sidepadding">',_hesc(b),"</td>");d.push('<td class="sidepadding">');d.push('<input id="',_hesc(a),'" name="',_hesc(a),'" ');d.push('type="text" size="45" value="'+
_hesc(c)+'">');d.push("</td>");d.push("</tr></table></form></div>");return d.join("")}function _IG_PU_hasAttr(a,b){if(a.getAttributeNode){var c=a.getAttributeNode(b);return c?c.specified:false}return a.getAttribute(b)!=null}function _IG_PU_findFocusable(a,b,c){if(!a.disabled){if(a.nodeName.toLowerCase()=="input")return a;if(a.nodeName.toLowerCase()=="button")return a;if(!c){if(a.nodeName.toLowerCase()=="a"&&_IG_PU_hasAttr(a,"href"))return a;if(a.nodeType==1&&_IG_PU_hasAttr(a,"tabindex")&&a.tabIndex!=
-1)return a}}if(!a.hasChildNodes())return null;var d=a.childNodes;for(var e=b?0:d.length-1,f;f=d[e];b?e++:e--){var g=_IG_PU_findFocusable(f,b,c);if(g)return g}return null}function _IG_PU_limitFocus(a){if(!a)a=window.event;var b=a.target?a.target:a.srcElement,c=a.keyCode||a.charCode||a.which;if(c==9){var d=_IG_PU_findFocusable(this,true,false);if(!d)return true;var e=_IG_PU_findFocusable(this,false,false);if(b==d&&a.shiftKey&&!(a.ctrlKey|a.altKey)){e.focus();return false}else if(b==e&&!(a.shiftKey|
a.ctrlKey|a.altKey)){d.focus();return false}}return true};var ig_0,ig_1,ig_2={};function ig_eb(a){return ig_2[a]}function _IG_AddDropDownEventHandler(a,b){ig_2[a]=b}function _IG_DD_init(){document.write('<iframe id="IG_DD_iframe_cover" class="dd_iframe_cover" style="display:none;"></iframe>');document.write('<div id="IG_DD_div" class="dd_layer_hidden" onclick="_IG_DD_hide();return true;"></div>')}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;
for(var d=0,e;e=b[d];d++){if(e[3])c.appendChild(ig_fb(e[3]));c.appendChild(_IG_DD_add(e[0],e[1],e[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 false};g.className=d==0?"dd_item dd_item_first":"dd_item";g.onblur=
function(){ig_1=false;return true};g.onmouseover=function(){return _IG_DD_select(this)};return g}function ig_fb(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_0=b;var d=_gel("IG_DD_div");d.className="dd_layer";_IG_AddEventHandler("resize",_IG_DD_position);_IG_DD_position();ig_1=false;if(c.hasChildNodes()){var e=c.childNodes[0];_IG_DD_select(e)}var f=
_gel("DD_tg_"+b);f.className+=" ddbox_sel";var g=ig_eb(ig_0);if(g)g(true)}}function _IG_DD_position(){var a=_gel("DD_"+ig_0),b=_gel("DD_tg_"+ig_0),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_w()+"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_0){var b=_gel("DD_"+ig_0);b.style.display="none";_gel("IG_DD_iframe_cover").style.display="none";var c=_gel("DD_tg_"+ig_0);c.className=c.className.replace(/ ddbox_sel/,"");var d=ig_eb(ig_0);if(d)d(false);if(ig_1){var e=_gel("DD_tg_"+ig_0);
if(e)e.focus()}ig_1=false;ig_0=null}a.className="dd_layer_hidden"}_IG_DD_select(null)}function _IG_DD_gcn(a,b,c){var d=new RegExp("(^| )"+c+"( |$)"),e=a.getElementsByTagName(b),f=[];for(var g=0,h;h=e[g];g++)if(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!=null)for(var c=0,d;d=b[c];c++)d.className=d.className.replace(/ dd_sel/g,"");if(a){try{a.focus()}catch(e){if(e.message=="Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus."){}else throw e;
}a.className=a.className+" dd_sel"}}function _IG_DD_keys(a){var b=true,c=_IG_DD_gcn(_gel("IG_DD_div"),"a","dd_sel");if(c==null||c.length!=1)return true;var d=c[0];if(!a)a=window.event;var e=a.keyCode||a.charCode||a.which;switch(e){case 13:ig_1=true;break;case 38:var f=d.previousSibling;if(f==null){var g=d.parentNode.childNodes;f=g[g.length-1]}_IG_DD_select(f);b=false;break;case 40:var f=d.nextSibling;if(f==null){var g=d.parentNode.childNodes;f=g[0]}_IG_DD_select(f);b=false;break;case 27:case 9:ig_1=
true;b=ig_0==null&&e==9;_IG_DD_hide();break}return b};function ig_gb(a,b,c,d){if(!a)c(d?null:"");var e=eval("("+a.substring(27)+")");if(b in e){var f=e[b].body;c(d?ig_3(f):f)}}function ig_hb(a){var b;if(window.ActiveXObject){b=new ActiveXObject("Microsoft.XMLDOM");b.async=false;b.validateOnParse=false;b.resolveExternals=false;b.loadXML(a)}else{var c=new DOMParser;b=c.parseFromString(a,"text/xml")}return b}function ig_3(a){var b=ig_hb(a),c=b.documentElement;if(c&&c.nodeName=="parsererror"||navigator.userAgent.indexOf("Safari")>=0&&b.getElementsByTagName("parsererror")[0])return a;
return b}var ig_ib=(new Date).getTime();function ig_jb(a){if(!a.post_data&&!a.headers&&window._pl_data&&_pl_data[a.url]&&!(!isNaN(a.refreshInterval)&&a.refreshInterval>=0&&(new Date).getTime()>ig_ib+a.refreshInterval*1000)){if(a.asXml){var b=ig_3(_pl_data[a.url]);a.callback(b)}else a.callback(_pl_data[a.url]);return}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=[];for(var e=0;e<a.headers.length;e++)d.push(_esc(a.headers[e][0]+":"+a.headers[e][1]));c+="hdrs="+_esc(d.join(","))+"&"}c+="url="+_esc(a.url);_sendx(c,function(f){ig_gb(f,a.url,a.callback,a.asXml)},false,a.post_data)}function ig_kb(a){var b={};for(var c in a)b[c]=a[c];return b}function _IG_FetchContent(a,b,c){var d;d=c!=null&&typeof c=="object"?ig_kb(c):{};d.url=a;d.callback=b;d.asXml=false;ig_jb(d)}function _IG_FetchXmlContent(a,b,c){var d;d=c!=null&&typeof c=="object"?ig_kb(c):
{};d.url=a;d.callback=b;d.asXml=true;ig_jb(d)}function ig_lb(a,b,c){_IG_FetchContent(a,function(d){if(d){var e=ig_3(d);if(typeof e=="object"&&e.firstChild){var f=e.firstChild;if(f.nodeType==7&&f.nodeName=="xml")e.removeChild(f);b(e);return}}b(null)},c)}function ig_mb(a,b){var c="/ig/feedjson";_sendx(c,function(d){var e={};try{e=eval("("+d.slice(27)+")")}catch(f){e={}}for(var g in b){var h=e[g]?e[g]:null;b[g](h)}e=null;b=null},false,a)}var ig_nb=false,ig_ob=0,ig_4="",ig_5={};function _IG_FetchFeedAsJSON(a,
b,c,d,e){if(typeof e!="object")e={};var f="fr_"+ig_ob++,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_nb){var j={};j[f]=b;ig_mb(h,j)}else{if(ig_4!="")ig_4+="&";ig_4+=h;ig_5[f]=b}}function ig_pb(){ig_nb=true;if(ig_4!="")ig_mb(ig_4,ig_5);ig_4="";ig_5=null}_IG_AddEventHandler("domload",ig_pb);_exportSymbols("google.gadgets.Fetchers",["getContent",_IG_FetchContent,"getXMLContent",
ig_lb,"getFeedAsJSON",_IG_FetchFeedAsJSON]);function _hide_sent_content_messages(){_gel("sent_content_msg").className="hidden_msg";_gel("sent_tab_box").className="hidden_msg_box";_gel("send_tab_error_box").className="hidden_msg_box";_gel("sent_gadget_box").className="hidden_msg_box"}var ig_6=null;function _share_gadget(a,b,c,d,e,f,g,h){if(d){_hide_sent_content_messages();if(!ig_6)ig_6=_gel("sent_gadget_box").innerHTML;_gel("sent_gadget_box").innerHTML=ig_6.replace("GADGET_NAME",_get_module_title(d))}if(g)var j="_gel('popup_iframe').contentWindow.prepareEmail(_gel('share_userprefs') ? _gel('share_userprefs').checked : false)";
else var j="_gel('popup_iframe').contentWindow.prepareEmail();";var m=['<input type="button" id="send_btn" disabled="true" onclick="'+j+'" value="'+e+'"></input>',_IG_PU_MakeDialogButton(f)],i="titlebar userprefs userprefs_border",k=_get_userprefs_checkbox_html(g,h,i);_IG_PU_openURL(a,k,b,c,m,d?_finish_sharing_gadget:null);_IG_PU_disable_hide_for_button(0)}function _share_this_gadget(a,b,c){if(c){_hide_sent_content_messages();if(!ig_6)ig_6=_gel("sent_gadget_box").innerHTML;_gel("sent_gadget_box").innerHTML=
ig_6.replace("GADGET_NAME",_get_module_title(c))}var d=_gel("ext_css");if(d){var e="ext_css="+_esc(d.href);b+=b.match("\\?")?"&":"?";b+=e}_IG_PU_openURL('<img src="/ig/images/sharegadget.gif"> '+a,null,b,"555px",null,c?_finish_sharing_gadget:null);_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>',j="_gel('popup_iframe').contentWindow.storeTabAndPrepareEmail(_find_unshared_gadgets(), _gel('share_userprefs') ? _gel('share_userprefs').checked : false);",
m=['<input type="button" id="send_btn" disabled="true" onclick="'+_hesc(j)+'" value="'+_hesc(f)+'"></input>',_IG_PU_MakeDialogButton(g)];if(!_uli){_IG_PU_open(a,h,m);_gel("buttons").className+=" colored_background";return}var i=_get_all_modules(),k=Math.max(i.length*160,400),l=7,o=0;for(var p=0;p<i.length;p++)if(i[p].length>o)o=i[p].length;var q=o>l&&c!="NO_TRANSLATION",n=[a];n.push('<form id="module_list">');n.push('<table class="titlebar module_list_table" ','cols="',i.length,'"',' width="',k,'px">');
if(q)n.push('<tr class="zipped_modules" id="module_list_zipper">');else n.push('<tr class="unzipped_modules">');for(var s=0;s<i.length;s++){n.push('<td width="',100/i.length,'%" ','valign="top">');for(var r=0;r<i[s].length;r++){var u=_hesc(i[s][r].id.replace("m_","")),t=_hesc(_get_module_title(i[s][r]));n.push('<div class="module_item');if(r>=l&&q)n.push(" extra_items");n.push('">');n.push('<input id="share_',u,'" type="checkbox"'," checked ></input>");n.push('<label for="share_',u,'">',t,"</label>");
n.push("</div>")}n.push("</td>")}n.push("</tr>");if(q){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,m);_IG_PU_disable_hide_for_button(0);_gel("dialogcontent").className+=
" url";_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(true)}else{_gel("share_userprefs_alert").style.display="none";_gel("popup_iframe").contentWindow.shouldShareUserprefs(false)}}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"');
if(b!="")d.push(' onclick="_show_shared_userprefs_alert();"');d.push("></input>");d.push('<label for="share_userprefs">',a,"</label>");if(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=[];for(var c=0;c<a.length;c++)if(!ig_qb(a[c]))b[b.length]=a[c].id.replace("share_","");return b}function ig_qb(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 false}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_rb(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.h[this.h.length]=c;b.removeChild(c);b=null;return c}function ig_sb(a){if(!a.match(/^http[s]?:\/\//))return;var b=this;window.setTimeout(function(){var c=null;for(var d=b.h.length-1;d>=0;d--){var e=b.h[d];if(e&&
!e.pool_locked){e.parentNode.removeChild(e);if(window.ActiveXObject){e=null;b.h[d]=null;b.h.splice(d,1)}else{e.pool_locked=true;c=e;break}}}c=c?c:b.$a(true);c.src=a;document.body.appendChild(c)},0)}function ig_tb(){for(var a=0;a<this.h.length;a++){this.h[a].onload=null;this.h[a]=null}this.h.length=0;this.h=[]}function ig_ub(){this.h=[];this.$a=ig_rb;this.iframe=ig_sb;this.clear=ig_tb}function ig_vb(a,b){_IFPC.C[a]=b}function ig_wb(a){delete _IFPC.C[a]}function ig_xb(a,b,c,d,e,f,g){c=c.slice(0);c.unshift(_IFPC.xb(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=true;var j=_IFPC.Aa(c),m=parseInt(j.length/h,10);if(j.length%h>0)m+=1;for(var i=0;i<m;i++){var k=j.substr(i*h,h),l=[a,_IFPC.ta,m,i,k,g];_IFPC.Da.iframe(d+"#"+_IFPC.Aa(l))}_IFPC.ta++}function ig_yb(){_IFPC.C={};_IFPC.p={};_IFPC.Da.clear()}function ig_zb(a){var b=_IFPC.V(a)[0],c=null;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;var e=function(){c._IFPC.handleRequest(a)};if(window.ActiveXObject)e();else c.setTimeout(e,0)}function ig_Ab(a){var a=_IFPC.V(a),b=a.shift(),c=a.shift(),d=a.shift(),e=a.shift(),f=a.shift(),g=a.shift(),h=b+"_"+c;if(!_IFPC.n[h])_IFPC.n[h]=[];_IFPC.n[h].push([e,f]);if(_IFPC.n[h].length==d){_IFPC.n[h].sort(function(q,n){return parseInt(q[0],10)-parseInt(n[0],10)});f="";for(var j=0;j<d;j++)f+=_IFPC.n[h][j][1];_IFPC.n[h]=null;var m=
_IFPC.V(f),b=m.shift(),i=m.shift(),k=m.shift(),l=m.shift(),o=_IFPC.jb(i);if(o){var p=o.apply(null,m);if(_IFPC.mb(l)){p.unshift(l);_IFPC.call(b,_IFPC.pa,p,k,null,"")}}else if(g)throw new Error("Service "+i+" not registered.");}}function ig_Bb(a){return _IFPC.C.hasOwnProperty(a)?_IFPC.C[a]:null}function ig_Cb(a){var b="";if(a&&typeof a=="function"){b=_IFPC.ib();_IFPC.p[b]=a}return b}function ig_Db(a){if(_IFPC.p.hasOwnProperty(a))_IFPC.p[a]=null}function ig_Eb(a){if(a&&_IFPC.p.hasOwnProperty(a))return _IFPC.p[a];
return null}function ig_Fb(){return _IFPC.oa+_IFPC.Wa++}function ig_Gb(a){return(a+"").indexOf(_IFPC.oa)==0}function ig_Hb(a){var b=a.split("&");for(var c=0;c<b.length;c++){var d=decodeURIComponent(b[c]);try{d=ig_O.parse(d)}catch(e){}b[c]=d}return b}function ig_Ib(a){var b=[];for(var c=0;c<a.length;c++){var d=ig_O.stringify(a[c]);b.push(encodeURIComponent(d))}return b.join("&")}function ig_Jb(a){var b=_IFPC.gb(a);if(b){var c=[];for(var d=1;d<arguments.length;d++)c[c.length]=arguments[d];b.apply(null,
c);_IFPC.Db(a)}else throw new Error("Invalid callbackId");}var _IFPC={registerService:ig_vb,unregisterService:ig_wb,call:ig_xb,clear:ig_yb,relayRequest:ig_zb,processRequest:ig_zb,handleRequest:ig_Ab,oa:"cbid",pa:"ifpc_callback",Da:new ig_ub,n:{},C:{},p:{},Wa:0,ta:0,jb:ig_Bb,xb:ig_Cb,Db:ig_Db,gb:ig_Eb,ib:ig_Fb,mb:ig_Gb,V:ig_Hb,Aa:ig_Ib,Xa:ig_Jb};_IFPC.registerService(_IFPC.pa,_IFPC.Xa);var ig_7={BG_Z_INDEX:100,MODULE_Z_INDEX:101,PADDING_HEIGHT:50,PADDING_WIDTH:50},ig_Kb=0;function ig_8(a,b){var c=_gel("modules"),d=_gel("footerwrap"),e=_gel("IG_max_div_dummy").previousSibling;switch(b){case "cover":var f=window.innerHeight||document.documentElement.offsetHeight,g=f-c.offsetTop,h=c.offsetHeight+d.offsetHeight,j=g>h?g:h;a.style.width=c.offsetWidth-2*ig_7.PADDING_WIDTH+"px";a.style.height=j-2*ig_7.PADDING_HEIGHT+"px";a.style.top=c.offsetTop+"px";a.style.left=c.offsetLeft+"px";break;
case "iframe":a.style.width=c.offsetWidth-2*ig_7.PADDING_WIDTH+"px";a.style.height=e.offsetHeight+"px";a.style.top=c.offsetTop+"px";a.style.left=c.offsetLeft+"px";break;case "modSelf":a.style.width=c.offsetWidth-2*ig_7.PADDING_WIDTH+"px";a.style.top=c.offsetTop+ig_7.PADDING_HEIGHT+"px";a.style.left=c.offsetLeft+ig_7.PADDING_WIDTH+"px";break}}function _maxm_relocate(){var a=_gel("IG_max_bg"),b=_gel("IG_max_iframe_cover"),c=_gel("IG_max_div_dummy").previousSibling;if(a&&b){ig_8(a,"cover");ig_8(b,"iframe");
ig_8(c,"modSelf")}}function _maxm(a){var b=_gel("m_"+a),c=_gel("m_"+a+"_maximize"),d=_gel("IG_max_bg"),e=_gel("IG_max_iframe_cover"),f=_gel("IG_max_div_container"),g=_gel("IG_max_div_dummy");if(b&&c&&d&&e&&f&&g){var h=c.className=="shrinkbox";if(h)b.style.width=ig_Kb;else ig_Kb=b.style.width;d.style.zIndex=h?"":ig_7.BG_Z_INDEX;b.style.zIndex=h?"":ig_7.MODULE_Z_INDEX;if(!h){ig_Z(d,true);ig_Z(g,true)}if(h){b.style.position="";f.appendChild(g);f.appendChild(d);g.style.display="none"}else{b.parentNode.insertBefore(d,
b.nextSibling);b.parentNode.insertBefore(g,b.nextSibling);b.style.position="absolute";g.style.height=b.offsetHeight+"px";g.style.display="block"}if(h)_IG_RemoveEventHandler("resize",_maxm_relocate);else{_IG_AddEventHandler("resize",_maxm_relocate);_maxm_relocate()}var j=_gel("remote_iframe_"+a);if(j)j.style.display=h?"":"none";if(j&&!h)setTimeout(function(){j.style.display="block"},0);d.style.display=h?"none":"block";e.style.display=h?"none":"";if(h){b.parentNode.className=b.parentNode.className.replace(/ ig_dnd_fixed_col/,
"");_IG_initDrag(_table,_tabs)}var m=_gel("m_"+a+"_h"),i=b.parentNode.className.match("ig_dnd_fixed_col")==null;if(m&&i)m.style.cursor=h?"move":"default";if(!h){b.parentNode.className+=" ig_dnd_fixed_col";ig_M()}c.className=h?c.className.replace(/shrinkbox/,"enlargebox"):c.className.replace(/enlargebox/,"shrinkbox");var k=_gel("m_"+a+"_zippy");if(k)k.style.display=h?"":"none";var l=b.childNodes[0].childNodes[0];if(l&&l.className&&l.className=="delbox")l.style.display=h?"":"none";ig_p(h?"unmaximize":
"maximize",a)}return false}function _IG_MaximizeGadget(a,b){var c=_gel("m_"+a+"_maximize");if(c){var d=c.className=="shrinkbox",e=_gel("IG_max_div_container"),f=_gel("IG_max_div_dummy"),g=e.firstChild&&e.firstChild.id==f.id;if(b&&!d&&g||!b&&d)_maxm(a)}};var ig_9=new function(){this.B={};var a=window.onbeforeunload;window.onbeforeunload=function(){if(a)a();ig_9.qb()}};ig_9.Ra=function(a,b){this.B[a]=b};ig_9.yb=function(a){delete this.B[a]};ig_9.j=function(a){return this.B[a]};ig_9.qb=function(){var a=[];for(var b in this.B)a.push(b+"="+this.B[b]);if(a.length){var c=ig_b(),d="/ig/setp?et="+_et+"&"+a.join("&");c.open("GET",d,false);c.send(null)}};var _IG_add_setp_parameter_onbeforeunload=function(a,b){ig_9.Ra(a,b)},_IG_remove_setp_parameter_onbeforeunload=
function(a){ig_9.yb(a)},_IG_get_setp_parameter_onbeforeunload=function(a){return ig_9.j(a)};var ig_$=(function(){var a=null,b=null,c=false,d={},e={},f=true,g=null;function h(){var i=[],k=[];for(var l in e)if(e[l]&&!d[l])i.push(l);else if(!e[l]&&d[l])k.push(l);if(i.length)_IG_add_setp_parameter_onbeforeunload("exptabs",i.join(":"));else _IG_remove_setp_parameter_onbeforeunload("exptabs");if(k.length)_IG_add_setp_parameter_onbeforeunload("coltabs",k.join(":"));else _IG_remove_setp_parameter_onbeforeunload("coltabs");_IG_add_setp_parameter_onbeforeunload("roster",f+"")}function j(i){_gel("gadget_set"+
i).style.display="block";_gel("triangle"+i).className="triangle v2minbox";e[i]=true}function m(i){_gel("gadget_set"+i).style.display="none";_gel("triangle"+i).className="triangle v2maxbox";e[i]=false}return{setSelectedTabId:function(i){a=i},setNextTabId:function(){var i=_gel("section"+a+"_contents").nextSibling;while(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 k=_gel("section"+a+"_contents");
k.className="section_contents leftunselectedtab leftborder";_gel("tab"+a).className="section_title unselected_section_title";var l=_gel("left_nav_m_"+i+"_title");l.className="selected_gadget_title gadget_title leftselectedtab surroundborder";var o=_gel("gadget_set"+a);o.insertBefore(k.previousSibling,l);o.insertBefore(k.nextSibling,l.nextSibling);_gel("tab_separator"+a).style.display="";if(b)_gel("tab_separator"+b).style.display=""},highlightSelectedTab:function(i){var k=_gel("section"+a+"_contents");
k.className="selected_section_contents leftselectedtab surroundborder";_gel("tab"+a).className="section_title selected_section_title";var l=_gel("left_nav_m_"+i+"_title");l.className="gadget_title";_gel("tab_separator"+a).style.display="none";if(b)_gel("tab_separator"+b).style.display="none";_gel("gadget_set"+a);k.parentNode.insertBefore(l.previousSibling,k);k.parentNode.insertBefore(l.nextSibling,k.nextSibling)},swapHeaderToCanvasMenu:function(i){var k=_gel("m_"+i+"_home_menu");if(k)k.style.display=
"none";var l=_gel("m_"+i+"_canvas_menu");if(l)l.style.display=""},swapHeaderToHomeMenu:function(i){var k=_gel("m_"+i+"_canvas_menu");if(k)k.style.display="none";var l=_gel("m_"+i+"_home_menu");if(l)l.style.display=""},hideLeftNavModuleTitle:function(i){var k=_gel("left_nav_"+i+"_title");if(k)k.style.display="none"},showLeftNavModuleTitle:function(i){var k=_gel("left_nav_"+i+"_title");if(k)k.style.display=""},maybeUnzipModule:function(i){var k=_gel("m_"+i+"_b");c=k&&k.style.display=="none";var l=!_gel("remote_iframe_"+
i),o=!(_max_strategies[i]instanceof _IG_noMaxSupportTransitionStrategy);k.style.display=l&&o?"none":""},maybeZipModule:function(i){var k=_gel("m_"+i+"_b");k.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]=true;e[i]=true},collapseTabOnLoad:function(i){d[i]=false;e[i]=false},toggleTab:function(i,k){if(!i)var i=window.event;i.cancelBubble=true;if(i.stopPropagation)i.stopPropagation();if(_gel("gadget_set"+k).style.display=="none")j(k);else m(k);h()},toggleRoster:function(){var i=_gel("talk_container");if(!i)return;var k=i.style.display=="none";i.style.display=k?"block":"none";var l="triangle ";l+=k?"v2minbox":"v2maxbox";_gel("roster_triangle").className=
l;f=k;h()},rosterStateOnload:function(i){f=i},swapZipMessage:function(i){var k;for(var l=_gel("DD_"+i).firstChild;l;l=l.nextSibling)if(l.innerHTML&&(l.innerHTML.match(g[0])||l.innerHTML.match(g[1]))){k=l;break}var o=_gel("m_"+i+"_b"),p=o&&o.style.display=="none";if(k)k.innerHTML=p?g[0]:g[1]}}})(),_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("moduleunzip",ig_$.swapZipMessage);_IG_RegisterOnloadHandler(ig_$.setNextTabId);_IG_RegisterOnloadHandler(ig_$.showRoundedCornerOnload)},_IG_set_selected_tab_id=ig_$.setSelectedTabId,_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_set_zip_msg=ig_$.setZipMessage;

