var ig_Q={hd:0,Na:1,ld:2};function ig_qb(){var a=0,b=0;if(typeof window.pageYOffset=="number"){a=window.pageXOffset;b=window.pageYOffset}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollLeft;b=document.body.scrollTop}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollLeft;b=document.documentElement.scrollTop}return{x:a,y:b}}
function ig_R(){var a=_IG_Callback.apply(ig_,arguments);return function(){a()}}function ig_S(a,b,c,d,e){if(a=="input"&&d&&d.type&&_IG_isIE()){a=document.createElement('<input type="'+d.type+'">');delete d.type}else a=document.createElement(a);if(b)a.innerHTML=b;_IG_AddDOMEventHandler(a,"click",c);if(d)for(var f in d)a[f]=d[f];e&&_IG_AddDOMEventHandler(a,"click",function(h){if(h.preventDefault)h.preventDefault();else h.returnValue=ig_c});return a}
function ig_rb(a,b){switch(b){case ig_Q.hd:return(a=_gel("m_"+a))&&a.className=="modbox_e";case ig_Q.Na:return(a=_gel("m_"+a+"_aclbox"))&&a.style.display!="none";case ig_Q.ld:return(a=_gel("m_"+a+"_editbox"))&&a.style.display!="none"}}function ig_T(a){a=a.split("#");if(/[?&]$/.test(a[0]))a[0]=a[0].replace(/[?&]$/,"");else{var b=/\?/.test(a[0])?"&":"?";a[0]+=b}return a.join("#")}
function ig_sb(a,b){if(!b)return ig_c;for(var c=a.className.split(" "),d=0;d<c.length;++d)if(c[d]==b)return ig_c;c.push(b);a.className=c.join(" ");return ig_b}
var ig_U={wa:"javascript:void(0);",emptyInfo_:{u:"",ti:"",mt:""},gmc:function(a,b){return[IG_MSGS.GMC,ig_q(IG_URLS.gmc,["moduleurl="+_esc(b.u),"mid="+a]),ig_]},gmp:function(a){return[IG_MSGS.GMP,ig_q(IG_URLS.gmp,["mid="+a]),ig_]},gmi:function(a,b){return[IG_MSGS.GMI,ig_q(IG_URLS.gmi,["moduleurl="+_esc(b.u),"mid="+a,"moduletitle="+_esc(_hesc(b.ti))]),ig_]},ed:function(a,b){var c=b.eh?function(){window[b.eh]()}:ig_;return[IG_MSGS.ED,ig_U.wa,ig_R(_edit,a,c)]},dc:function(a,b,c){a=ig_R(_confirmDel,a,
b.mt,"n_"+b.mt+"="+_esc("url="+_esc(b.u)),c.replace("MODULE_TITLE",_bidi_unicode_wrap(b.ti,b.ti_dir)));return[IG_MSGS.DEL,ig_U.wa,a]},del:function(a,b){return ig_U.dc(a,b,IG_MSGS.DEL_CONFIRM)},del2:function(a,b){return ig_U.dc(a,b,IG_MSGS.DEL_CONFIRM2)},ming:function(a,b){return[IG_MSGS.MING,ig_U.wa,ig_R(_zm,a,b.mt),undefined,"zip"]},maxg:function(a,b){a=ig_U.ming(a,b);a[0]=IG_MSGS.MAXG;return a},shg:function(a,b){var c=ig_R(_share_this_gadget,IG_MSGS.SHG,ig_q(IG_URLS.sgu,["moduleurl="+_esc(b.u),
"mid="+a,"source=share_gadget"]),a);return[_hesc(IG_MSGS.SHG),"#",function(){c();return ig_c}]},osShare:function(a,b){function c(){_IG_callPostLoad(function(){window._IG_OS_requestShareApp("remote_iframe_"+a,ig_,ig_,IG_MSGS.OSSHARE.replace(/%GADGET_NAME%/,_hesc(b.ti)))})}return[_hesc(IG_MSGS.SHG),ig_U.wa,c]},stripProtocolRegExp_:/^http:\/\//,stripProtocolAndEsc_:function(a){return _esc(a.replace(ig_U.stripProtocolRegExp_,""))},rg:function(a,b){return ig_U.rgv1(a,b).concat("dd_separator")},rgv1:function(a,
b){return[IG_MSGS.RG,ig_q(IG_URLS.dir,["recommend="+ig_U.stripProtocolAndEsc_(b.u)]),ig_]},ag:function(a,b){return[IG_MSGS.AG,ig_q(IG_URLS.dir,["url="+ig_U.stripProtocolAndEsc_(b.u)]),ig_]}};_exportSymbols("",["_IG_DDI",ig_U]);var ig_V,ig_W,ig_X={};function _IG_AddDropDownEventHandler(a,b){ig_X[a]=b}function _IG_DD_init(){var a=document.createElement("iframe");a.id="IG_DD_iframe_cover";a.className="dd_iframe_cover";a.style.display="none";document.body.insertBefore(a,document.body.firstChild);a=document.createElement("div");a.id="IG_DD_div";a.className="dd_layer_hidden";a.onclick=_IG_DD_hide;document.body.insertBefore(a,document.body.firstChild)}
function _IG_DD_create(a,b){if(!b){b=[];for(var c=ig_u("m",a,"dd"),d=0;d<c.length;++d)b[d]=ig_U[c[d]]}c=document.createElement("div");c.setAttribute("id","DD_"+a);c.className="dd dd_border";c.style.display="none";c.onkeydown=_IG_DD_keys;d=0;for(var e;e=b[d];d++){var f=e;if(typeof e=="function")f=e(a,ig_u("m",a)||ig_U.emptyInfo_);f[3]&&c.appendChild(ig_tb(f[3]));e=undefined;if(f[4])e="DD_"+a+"_"+f[4];c.appendChild(_IG_DD_add(f[0],f[1],f[2],d,e))}_gel("IG_DD_div").appendChild(c)}
function _IG_DD_add(a,b,c,d,e){b=b||"javascript:void(0)";var f=document.createElement("div"),h="";if(typeof c=="string"&&c!="")h=' onclick="'+c+'"';f.innerHTML='<a href="'+b+'"'+h+">"+a+"</a>";a=f.firstChild;if(typeof c=="string"&&c!="")c=a.onclick;if(c)a.onclick=function(g){c(g);_IG_DD_hide();return ig_c};a.className=d==0?"dd_item dd_item_first":"dd_item";a.onblur=function(){ig_W=ig_c;return ig_b};a.onmouseover=function(){return _IG_DD_select(this)};if(e)a.id=e;return a}
function ig_tb(a){var b=document.createElement("div");b.className=a;b.innerHTML='<div class="topline"></div><div class="bottomline"></div>';return b}
function _IG_DD_open(a,b){a=_gel("DD_"+b);if(!a){_IG_DD_create(b);a=_gel("DD_"+b)}if(a.style.display=="none"){ig_V=b;var c=_gel("IG_DD_div");c.className="dd_layer";_IG_AddEventHandler("resize",_IG_DD_position);_IG_DD_position();ig_W=ig_c;if(a.hasChildNodes()){a=a.firstChild;if(a.tagName!="A")a=a.nextSibling;_IG_DD_select(a)}b=_gel("DD_tg_"+b);b.className+=" ddbox_sel";(b=ig_X[ig_V])&&b(ig_b)}}
function _IG_DD_position(){var a=_gel("DD_"+ig_V),b=_gel("DD_tg_"+ig_V),c=_gel("IG_DD_div");a.style.display="block";var d=_findPos(b),e=a.offsetWidth,f=d[0]+b.offsetWidth-e,h=document.body.clientWidth+document.body.scrollLeft;if(f<5)f=5;else if(f+e>h-5)f=h-5-e;a.style.left=f+"px";a.style.top=d[1]+b.offsetHeight+"px";b=_gel("IG_DD_iframe_cover");b.style.left=a.style.left;b.style.top=a.style.top;b.style.width=a.offsetWidth+"px";b.style.height=a.offsetHeight+"px";b.style.display="block";c.style.height=
ig_A()+"px";c.style.width=document.body.clientWidth+"px"}function _IG_DD_hide(){var a=_gel("IG_DD_div");if(a.className=="dd_layer"){_IG_RemoveEventHandler("resize",_IG_DD_position);if(ig_V){var b=_gel("DD_"+ig_V);b.style.display="none";_gel("IG_DD_iframe_cover").style.display="none";b=_gel("DD_tg_"+ig_V);b.className=b.className.replace(/ ddbox_sel/,"");(b=ig_X[ig_V])&&b(ig_c);if(ig_W)(b=_gel("DD_tg_"+ig_V))&&b.focus();ig_W=ig_c;ig_V=ig_}a.className="dd_layer_hidden"}_IG_DD_select(ig_)}
function _IG_DD_gcn(a,b,c){c=new RegExp("(^| )"+c+"( |$)");a=_gelstn(b,a);b=[];for(var d=0,e;e=a[d];d++)c.test(e.className)&&b.push(e);return b}function _IG_DD_select(a){var b=_IG_DD_gcn(_gel("IG_DD_div"),"a","dd_sel");if(b!=ig_)for(var c=0,d;d=b[c];c++)d.className=d.className.replace(/ dd_sel/g,"");if(a){try{a.focus()}catch(e){if(e.message!="Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.")ig_a(e)}a.className+=" dd_sel"}}
function _IG_DD_keys(a){function b(e,f){var h=e;do{h=f?h.nextSibling:h.previousSibling;if(!h){h=e.parentNode;h=f?h.firstChild:h.lastChild}}while(h!=e&&h.tagName!="A");return h}var c=ig_b,d=_IG_DD_gcn(_gel("IG_DD_div"),"a","dd_sel");if(d==ig_||d.length!=1)return ig_b;d=d[0];if(!a)a=window.event;a=a.keyCode||a.charCode||a.which;switch(a){case 13:ig_W=ig_b;break;case 38:_IG_DD_select(b(d,ig_c));c=ig_c;break;case 40:_IG_DD_select(b(d,ig_b));c=ig_c;break;case 27:case 9:ig_W=ig_b;c=ig_V==ig_&&a==9;_IG_DD_hide();
break}return c};var ig_Y={C:ig_,init:function(a,b){a.onmousedown=ig_Y.start;a.C=b;if(isNaN(parseInt(b.style.left,10)))b.style.left="0px";if(isNaN(parseInt(b.style.top,10)))b.style.top="0px";b.Aa=new Function;b.za=new Function;b.ya=new Function},Vf:function(a,b){window.clearInterval(b.Vc);a.onmousedown=ig_;a.C=ig_;b.Aa=ig_;b.za=ig_;b.ya=ig_},start:function(a){var b=ig_Y.C=this.C;a=ig_Y.pa(a);if(a.which!=1)return ig_b;b.Aa(a);var c=a.clientY;ig_Z.Cc||(c+=document.body.scrollTop);b.xa=a.clientX;b.Q=c;b.Se=parseInt(b.style.left,
10)-a.clientX;b.Te=parseInt(b.style.top,10)-c;b.Vc=window.setInterval(ig_ub(b,document.body.scrollHeight>document.documentElement.clientHeight?document.body.scrollHeight:document.documentElement.clientHeight),10);document.onmouseup=ig_Y.ic;document.onmousemove=ig_Y.Ud;return ig_c},Ud:function(a){a=ig_Y.pa(a);if(a.which==0)return ig_Y.ic();var b=ig_Y.C,c=a.clientY;ig_Z.Cc||(c+=document.body.scrollTop);a=a.clientX;if(b.xa==a&&b.Q==c)return ig_c;var d=a+b.Se,e=c+b.Te;b.style.left=d+"px";b.style.top=
e+"px";b.xa=a;b.Q=c;b.ya(d,e);return ig_c},ic:function(){document.onmousemove=ig_;document.onmouseup=ig_;window.clearInterval(ig_Y.C.Vc);var a=ig_Y.C.za();ig_Y.C=ig_;return a},pa:function(a){if(typeof a=="undefined")a=window.event;if(typeof a.layerX=="undefined")a.layerX=a.offsetX;if(typeof a.layerY=="undefined")a.layerY=a.offsetY;if(typeof a.which=="undefined")a.which=a.button;return a}};
function _IG_initDrag(a,b){ig_Z.ha=a;ig_Z.Ea=b;a=ig_Z.ha;b="div";var c="yui-u";if(a){a=b=="*"&&a.all?a.all:_gelstn(b,a);b=[];c=c.replace(/\-/g,"\\-");c=new RegExp("(^|\\s)"+c+"(\\s|$)");for(var d,e=0;e<a.length;e++){d=a[e];c.test(d.className)&&b.push(d)}a=b}else a=[];ig_Z.N=a;if(_old_html){ig_Z.Uc=ig_Z.ha.tBodies[0].rows[0];ig_Z.N=ig_Z.Uc.cells}ig_Z.w=[];for(b=a=0;b<ig_Z.N.length;b++){c=ig_Z.N[b];if(!(c.className.indexOf("ig_dnd_fixed_col")!=-1||c.style.display=="none"))for(d=0;d<c.childNodes.length;d++){e=
c.childNodes[d];if(e.tagName=="DIV"){ig_Z.w[a]=e.className!="dm"?new DND_Module(e):new ig_vb(e);a++}}}_IG_AddEventHandler("unload",ig_wb)}function ig_wb(){if(ig_Z.w)for(var a=0;a<ig_Z.w.length;a++){ig_Z.w[a].ec();ig_Z.w[a]=ig_}ig_Z.w=ig_;ig_Z.N=ig_;if(_old_html)ig_Z.Uc=ig_;ig_Z.ha=ig_}var ig_Z={};ig_Z.zb=navigator.userAgent;ig_Z.Bc=ig_Z.zb.indexOf("Gecko")!=-1;ig_Z.kb=ig_Z.zb.indexOf("Opera")!=-1;ig_Z.Cc=ig_Z.zb.indexOf("Safari")!=-1;ig_Z.Ib="IG_pageDivMaskId";ig_Z.Hb="IG_moduleDivMaskId";
ig_Z.gg=function(){ig_Z.ha.style.display="none"};ig_Z.hg=function(){ig_Z.ha.style.display=""};ig_Z.J=ig_;ig_Z.qa=function(){if(!ig_Z.J){ig_Z.J=document.createElement("DIV");ig_Z.J.className="modbox";ig_Z.J.backgroundColor="";ig_Z.J.style.border="2px dashed #aaa";ig_Z.J.innerHTML="&nbsp;"}return ig_Z.J};ig_Z.M=function(a,b){return function(){return a[b].apply(a,arguments)}};
ig_Z.lc=function(){var a=[];if(ig_Z.Ea){var b;b=_old_html?ig_Z.Ea.tBodies[0].rows[0].cells:_gelstn("LI",ig_Z.Ea);for(var c=0;c<b.length;c++){var d=b[c];(" "+d.className+" ").indexOf(" unselectedtab ")<0||d.style.display!="none"&&a.push(d)}b=_gelstn("DIV",ig_Z.Ea);for(c=0;c<b.length;c++){d=b[c];(" "+d.className+" ").indexOf(" leftunselectedtab ")<0||d.style.display!="none"&&a.push(d)}}return a};
ig_Z.Cd=function(){for(var a=ig_Z.lc(),b=0;b<a.length;b++){var c=a[b];c.Fe=ig_b;c.Ba=ig_Z.P(c,ig_b);c.Ye=c.Ba+c.offsetWidth;c.ca=ig_Z.P(c,ig_c);c.Xe=c.ca+c.offsetHeight}};ig_Z.Bd=function(a){for(var b=0;b<ig_Z.w.length;b++){var c=ig_Z.w[b];c.b.Ba=ig_Z.P(c.b,ig_b);c.b.ca=ig_Z.P(c.b,ig_c)}for(b=a.b.nextSibling;b;){b.ca-=a.b.offsetHeight;b=b.nextSibling}};
ig_Z.P=function(a,b){var c=0,d=0;if(a&&a.offsetParent&&a.offsetParent.id)if(!b){var e=_gelstn(a.tagName,a.offsetParent);if(e&&e[0])d=e[0].offsetTop}for(;a;){c+=a["offset"+(b?"Left":"Top")];a=a.offsetParent}return c-d};
ig_Z.td=function(a){ig_Z.Pc();var b=document.createElement("DIV");b.id=ig_Z.Ib;b.innerHTML="&nbsp;";b.style.position="absolute";b.style.width="100%";b.style.height=document.body.offsetHeight+"px";b.style.left="0px";b.style.top="0px";b.style.backgroundImage="url(http://www.google.com/c.gif)";b.style.zIndex="9999";document.body.appendChild(b);if(a.pc){b=b.cloneNode(ig_b);b.id=ig_Z.Hb;b.style.height=a.b.offsetHeight-a.B.offsetHeight+"px";b.style.top=a.B.offsetHeight+"px";a.b.appendChild(b)}};
ig_Z.Pc=function(){for(var a=[ig_Z.Hb,ig_Z.Ib],b=0;b<a.length;b++){var c=_gel(a[b]);c&&c.parentNode.removeChild(c)}};ig_Z.sf=function(){for(var a="",b=0;b<ig_Z.N.length;b++)for(var c=ig_Z.N[b],d=0;d<c.childNodes.length-1;d++){var e=c.childNodes[d];if(e.tagName=="DIV"){a+=a!=""?":":"";a+=e.id.substring(2)+"_"+c.id.substring(2)}}_xsetp("mp="+_esc(a))};function ig_vb(a){this.ec=ig_xb;this.b=a;this.b.innerHTML="<br />"}function ig_xb(){this.b=ig_}
function DND_Module(a){this._urlMouseUp=ig_yb;this._urlMouseDown=ig_zb;this._urlClick=ig_Ab;this._dragStart=ig_Bb;this._drag=ig_Cb;this._dragEnd=ig_Db;this.Zd=ig_Eb;this.Ga=ig_Fb;this.ec=ig_Gb;this.V=ig_c;this.b=a;this.B=_gel(a.id+"_h");this.h=_gel(a.id+"_url");this.pc=_gelstn("IFRAME",this.b).length>0;this.b.bg=this;if(this.B){this.B.style.cursor="move";ig_Y.init(this.B,this.b);this.b.Aa=ig_Z.M(this,"_dragStart");this.b.ya=ig_Z.M(this,"_drag");this.b.za=ig_Z.M(this,"_dragEnd");if(this.h){this.h.style.cursor=
"pointer";if(ig_Z.Bc){this.h.onmousedown=ig_Z.M(this,"_urlMouseDown");this.h.onclick=ig_Z.M(this,"_urlClick")}else this.h.onmouseup=ig_Z.M(this,"_urlMouseUp")}}}function ig_Gb(){if(this.B){if(this.h){this.h.onclick=ig_;this.h=this.h.onmouseup=ig_}ig_Y.Vf(this.B,this.b);this.b.Aa=ig_;this.b.ya=ig_;this.B=this.b.za=ig_}this.b=ig_}
function ig_yb(a){a=ig_Y.pa(a);if(this.V||!this.h||!this.h.href||a.which!=1)return ig_b;this.Ga("titleclick");if(this.h.target||a.shiftKey)window.open(this.h.href,this.h.target);else document.location=this.h.href;return ig_c}function ig_zb(a){a=ig_Y.pa(a);a.stopPropagation();return ig_b}function ig_Ab(){if(!this.V&&this.h&&this.h.href){this.Ga("titleclick");return ig_b}return ig_c}
function ig_Bb(){ig_Z.Bd(this);ig_Z.Cd();this.We=this.b.nextSibling;var a=ig_Z.qa(),b=this.b.offsetHeight;b-=parseInt(a.style.borderTopWidth,10)*2;var c=this.b.offsetWidth,d=ig_Z.P(this.b,ig_b),e=ig_Z.P(this.b,ig_c);this.b.style.width=c+"px";a.style.height=b+"px";this.b.parentNode.insertBefore(a,this.b.nextSibling);this.b.style.position="absolute";this.b.style.zIndex=1E4;this.b.style.left=d+"px";this.b.style.top=e+"px";ig_Z.td(this);return this.V=ig_c}
function ig_Cb(a,b){if(!this.V){this.b.style.filter="alpha(opacity=50)";this.b.style.opacity=0.5;this.V=ig_b;this.Ga("dragstart")}for(var c=ig_,d=1E8,e=0;e<ig_Z.w.length;e++){var f=ig_Z.w[e],h=a;if(document.body.dir=="rtl"&&f.b.offsetWidth==1)h+=this.b.offsetWidth;h=Math.sqrt(Math.pow(h-f.b.Ba,2)+Math.pow(b-f.b.ca,2));if(f!=this)if(!isNaN(h))if(h<d){d=h;c=f}}this.G=ig_;a=ig_Z.lc();for(e=0;e<a.length;e++){f=a[e];if(f.Fe){b=ig_qb();if(this.b.xa>=f.Ba&&this.b.xa<=f.Ye&&this.b.Q+b.y>=f.ca&&this.b.Q+b.y<=
f.Xe){this.G=f;e=ig_Z.qa();e.parentNode!=ig_&&e.parentNode.removeChild(e);break}}}for(e=0;e<a.length;e++){f=a[e];if(f.id.indexOf("view")>=0||f.id.indexOf("contents")>=0)if(f==this.G){if(f.className.indexOf(" tab_hover")<0)f.className+=" tab_hover"}else f.className=f.className.replace(/ tab_hover/g,"")}e=ig_Z.qa();if(this.G==ig_&&c!=ig_&&e.nextSibling!=c.b){c.b.parentNode.insertBefore(e,c.b);if(ig_Z.kb){document.body.style.display="none";document.body.style.display=""}}}
function ig_Db(){ig_Z.Pc();this.Zd()&&ig_Z.sf();if(this.G){var a=this.G.id.match(/.*?(\d+).*/)[1],b=this.b.id.match(/m_(\d+)/)[1];_xsetp("mt="+b+":"+a);this.b.style.display="none";this.G.className=this.G.className.replace(/ tab_hover/g,"");var c=_gel("left_nav_m_"+b+"_title"),d=_gel("gadget_set"+a);if(c&&d){c.parentNode.removeChild(c);d.appendChild(c);_gelstn("a",c)[0].onclick=function(){_select_gadget_and_log(a,b)}}}_hideNewUserTip();this.V&&this.Ga("dragend");return ig_b}
function _hideNewUserTip(){var a=_gel("new_user_tip");if(a)a.style.display="none"}
function ig_Eb(){var a=ig_c;this.b.style.position="";this.b.style.width="";this.b.style.zIndex="";this.b.style.filter="";this.b.style.opacity="";window.scrollBy(0,0);var b=ig_Z.qa();if(b.parentNode!=ig_){if(b.nextSibling!=this.We){b.parentNode.insertBefore(this.b,b.nextSibling);a=ig_b}b.parentNode.removeChild(b)}if(ig_Z.kb){document.body.style.display="none";document.body.style.display=""}if(a&&this.pc&&(ig_Z.Bc||ig_Z.kb)){b=_gelstn("IFRAME",this.b)[0];var c=this.b.id.substring(2);c=_IG_Prefs.W(c,
b.src);if(b.src!=c)b.src=c}return a}function ig_Fb(a){switch(a){case "titleclick":_IG_TriggerModuleEvent(this.b.id,a,this.h.href);_IG_TriggerEvent("module"+a,this.b.id,this.h.href);break;case "dragstart":case "dragend":_IG_TriggerDelayedModuleEvent(this.b.id,a);_IG_TriggerDelayedEvent("module"+a,this.b.id);break}}
function ig_ub(a,b){return function(){var c;c=window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.offsetHeight;c=c<document.body.clientHeight?c:document.body.clientHeight;var d=ig_qb(),e=d.y,f=4,h=0.05*c,g=e;d=a.offsetTop;if(a.Q<=h){d=a.offsetTop-f;g=e-f}else if(a.Q>=c-h){d=Math.min(b-a.offsetHeight,a.offsetTop+f);g=Math.min(b-c,e+f)}c=g-e;if(c!=0){window.scrollBy(0,c);a.style.top=d+"px"}}}
_IG_AddCustomEventHandler("initdrag",function(a,b){_IG_initDrag(a,b)});_exportSymbols("",["IG_DND",ig_Z]);window._IG_PU=function(){function a(d){if(!arguments.callee.Gd){var e={IG_PU_box:"div",IG_PU_iframe_cover:"iframe",IG_PU_bg:"div"};for(var f in e){var h=document.createElement(e[f]);h.id=f;h.style.display="none";document.body.insertBefore(h,document.body.firstChild)}arguments.callee.Gd=ig_b}return _gel(d)}var b=ig_b,c;return{open:function(d,e,f,h,g){b=typeof e=="string";var k=a("IG_PU_box");if(k&&k.style.display=="none"){f||(f=[_IG_PU_MakeDialogButton("Save"),_IG_PU_MakeDialogButton("Cancel")]);d=
['<table class=dialog id=IG_PU_dlg cellspacing=0 cellpadding=0><tr><td><div class=outerborder><div class="border titlebar">',d,'</div><div class="border body" id=dialogcontent>',b?e:"",ig_Hb(f),"</div></td></tr></table>"].join("");ig_Ib(d,h,b?ig_:e,g)}},Ve:function(d,e,f,h,g,k,j){d=_IG_PU_createSimpleTitle(d)+(e||"");f=['<div class=url><iframe id=popup_iframe style="width:',h,';height:0px;" src="',f,'" onload="_ResizeIframeHeight();" scrolling=no frameborder=0></iframe><div class=c></div>',ig_Hb(g,
"colored_background")].join("");window._IG_PU.open(d,f,[],k,j)},ve:function(d){var e=_gel("button_"+d);if(!(e&&e.firstChild&&e.firstChild.disabled)){a("IG_PU_box").style.display="none";a("IG_PU_iframe_cover").style.display="none";e=a("IG_PU_bg");e.onclick="";e.style.height="";e.style.width="";if(!b){e=_gel("dialogcontent").firstChild;d!=_DI_button_type.OK&&e.nodeName=="FORM"&&e.reset();setTimeout(function(){var h=_gel("popup_box_placeholder");h.parentNode.insertBefore(_gel("dialogcontent").firstChild,
h);h.parentNode.removeChild(h)},1E3)}var f=(e=_gel("popup_iframe"))&&e.contentWindow.getPopupData?e.contentWindow.getPopupData():ig_;_IG_RemoveEventHandler("resize",e?_ResizeIframeHeight:ig__);_IG_RemoveDOMEventHandler(window,"scroll",ig__);c(d,f)}},Od:function(d){return["<div class=popup_title>",d,'</div><div class=popup_title_buttons><a onclick="_IG_PU_hide(_DI_button_type.Close);" class=delbox  href="javascript:void(0)"></a></div><div class=c></div>'].join("")},Yd:function(d,e,f){if(!d.disabled){var h=
d.nodeName.toLowerCase();if(h=="input"||h=="button")return d;if(!f){if(h=="a"&&ig_Jb(d,"href"))return d;if(d.nodeType==1&&ig_Jb(d,"tabindex")&&d.tabIndex!=-1)return d}}if(!d.hasChildNodes())return ig_;d=d.childNodes;if(e){h=0;for(var g;g=d[h];h++)if(g=ig_0(g,e,f))return g}else for(h=d.length-1;g=d[h];h--)if(g=ig_0(g,e,f))return g;return ig_},Oe:function(d,e,f,h){var g=["<input type=button"];e&&g.push(' id="'+e+'"');f&&g.push(' class="'+f+'"');h&&g.push(' onclick="'+h+'"');g.push(' value="',d,'"></input>');
return g.join("")},Td:function(d){if(d=_gel("button_"+d))d.onclick=function(){}},Nd:function(d,e,f){return['<div class="popup_body thinpadding"><form onsubmit="_IG_PU_hide(_DI_button_type.OK); return false;"><table cellspacing=0 cellpadding=0 border=0><tr><td class=sidepadding>',_hesc(e),'</td><td class=sidepadding><input id="',_hesc(d),'" name="',_hesc(d),'" ','type=text size=45 value="'+_hesc(f)+'"></td>',"</tr></table></form></div>"].join("")},se:function(d,e){if(d.getAttributeNode)return(d=d.getAttributeNode(e))?
d.specified:ig_c;return d.getAttribute(e)!=ig_},Ke:function(d){d=d||window.event;var e=d.target||d.srcElement,f=d.keyCode||d.charCode||d.which;if(f==9){f=ig_0(this,ig_b,ig_c);if(!f)return ig_b;var h=ig_0(this,ig_c,ig_c);if(e==f&&d.shiftKey&&!(d.ctrlKey||d.altKey)){h.focus();return ig_c}else if(e==h&&!(d.shiftKey||d.ctrlKey||d.altKey)){f.focus();return ig_c}}return ig_b},Ad:function(d,e){if(!d||!d.length)return"";var f=['<div id=buttons class="button_background'];e&&f.push(" "+e);f.push('"><table class=buttontable cellspacing=0 cols=');
f.push(d.length,"><tr>");for(e=0;e<d.length;++e){f.push("<td align=center>");f.push('<span id="button_',e,'" ');f.push('onclick="_IG_PU_hide(',e,')">');f.push(d[e]);f.push("</span>");f.push("</td>")}f.push("</tr></table></div></div>");return f.join("")},Df:function(d,e,f,h){var g=3E3,k=a("IG_PU_bg"),j=k.style;j.zIndex=g;j.background="#000";ig_Kb(k,ig_b);j.position="absolute";k.onclick=function(){};j.display="none";j.left="0px";j.top="0px";k=a("IG_PU_box");var l=a("IG_PU_iframe_cover");k.innerHTML=
d;if(!b&&f){d=document.createElement("div");d.id="popup_box_placeholder";d.style.display="none";f.parentNode.insertBefore(d,f);_gel("dialogcontent").insertBefore(f,_gel("dialogcontent").firstChild)}f=k.style;f.position="absolute";f.zIndex=g+1;g=l.style;g.position="absolute";f.visibility="hidden";f.display="block";ig__();f.visibility="visible";g.display="";j.display="block";_IG_AddEventHandler("resize",_gel("popup_iframe")?_ResizeIframeHeight:ig__);_IG_AddDOMEventHandler(window,"scroll",ig__);_gel("IG_PU_dlg").onkeydown=
ig_Lb;e=e||function(){};if(h&&h.length){var m=[];for(j=0;j<h.length;++j)if(g=_gel(h[j])){m.push(h[j]);g.setAttribute("old_position",g.style.position);g.setAttribute("old_left",g.style.left);g.style.position="relative";g.style.left="-99999px"}c=function(n,i){e(n,i);for(n=0;n<m.length;++n)if(i=_gel(m[n])){i.style.position=i.getAttribute("old_position");i.style.left=i.getAttribute("old_left")}}}else c=e;(h=ig_0(k,ig_b,ig_b))&&h.focus()},position:function(){var d=a("IG_PU_box");if(d.style.display=="block"){var e=
a("IG_PU_iframe_cover"),f=a("IG_PU_bg"),h=document.body.clientWidth,g=window.innerHeight;if(!g)g=document.documentElement.clientHeight;var k=d.offsetHeight<g,j=d.style;if(d){h=(h-d.offsetWidth)/2;var l=Math.max((g-d.offsetHeight)/2+ig_B(),0);if(!k&&j.top)l=parseInt(j.top,10);j.left=h+"px";j.top=l+"px";e=e.style;e.left=h+"px";e.top=l+"px";e.width=d.offsetWidth+"px";e.height=d.offsetHeight+"px"}if(f){d=parseInt(j.top,10)+d.offsetHeight;g=Math.max(ig_A(),g,d);f.style.height=g+"px";f.style.width=document.body.clientWidth+
"px"}}},Sf:function(d,e){d=d.style;if("opacity"in d)d.opacity=e?0.5:1;else if("MozOpacity"in d)d.MozOpacity=e?0.5:1;else if("filter"in d)d.filter=e?"alpha(opacity=50)":"alpha(opacity=100)"},of:function(){var d=_gel("popup_iframe");if(d){var e=d.style;e.height=ig_A(d.contentWindow.document.body)+"px";e.display="block";e.display=""}ig__()}}}();
var _DI_button_type={Close:-1,OK:0,Cancel:1},_IG_PU_hide=window._IG_PU.ve,_IG_PU_open=window._IG_PU.open,_IG_PU_openURL=window._IG_PU.Ve,_IG_PU_disable_hide_for_button=window._IG_PU.Td,_IG_PU_MakeDialogButton=window._IG_PU.Oe,_ResizeIframeHeight=window._IG_PU.of,ig_Kb=window._IG_PU.Sf,_IG_PU_createSimpleTitle=window._IG_PU.Od,_IG_PU_createSimpleInputBox=window._IG_PU.Nd,ig_0=window._IG_PU.Yd,ig_Jb=window._IG_PU.se,ig_Lb=window._IG_PU.Ke,ig_Hb=window._IG_PU.Ad,ig__=window._IG_PU.position,ig_Ib=window._IG_PU.Df;
function _IG_PU_init(){}function _IG_PU_IGNORE(){};function _hide_sent_content_messages(){_gel("sent_content_msg").className="hidden_msg";_gel("sent_tab_box").className="hidden_msg_box";_gel("send_tab_error_box").className="hidden_msg_box";_gel("sent_gadget_box").className="hidden_msg_box"}var ig_1=ig_;
function _share_gadget(a,b,c,d,e,f,h,g){if(d){_hide_sent_content_messages();if(!ig_1)ig_1=_gel("sent_gadget_box").innerHTML;_gel("sent_gadget_box").innerHTML=ig_1.replace("GADGET_NAME",_bidi_span_wrap(_get_module_title(d),_get_module_title_dir(d)))}var k=h?"_gel('popup_iframe').contentWindow.prepareEmail(_gel('share_userprefs') ? _gel('share_userprefs').checked : false)":"_gel('popup_iframe').contentWindow.prepareEmail();";e=['<input type="button" id="send_btn" disabled="true" onclick="'+k+'" value="'+
e+'"></input>',_IG_PU_MakeDialogButton(f)];f="titlebar userprefs userprefs_border";h=_get_userprefs_checkbox_html(h,g,f);_IG_PU_openURL(a,h,b,c,e,d?_finish_sharing_gadget:ig_);_IG_PU_disable_hide_for_button(0)}
function _share_this_gadget(a,b,c,d){if(c){_hide_sent_content_messages();if(!ig_1)ig_1=_gel("sent_gadget_box").innerHTML;_gel("sent_gadget_box").innerHTML=ig_1.replace("GADGET_NAME",_bidi_span_wrap(_get_module_title(c),_get_module_title_dir(c)))}var e=d||function(){};function f(h,g){e(h,g);c&&_finish_sharing_gadget(h)}_IG_PU_openURL(a,ig_,b,"555px",ig_,f);_IG_PU_disable_hide_for_button(0)}
function _share_tab_with_gadget_checkboxes(a,b,c,d,e,f,h){b='<iframe id="popup_iframe" width="100%" height="0px" src="'+_hesc(b)+'" onload="_ResizeIframeHeight();" scrolling="no"></iframe>';var g="_gel('popup_iframe').contentWindow.storeTabAndPrepareEmail(_find_unshared_gadgets(), _gel('share_userprefs') ? _gel('share_userprefs').checked : false);";f=['<input type="button" id="send_btn" disabled="true" onclick="'+_hesc(g)+'" value="'+_hesc(f)+'"></input>',_IG_PU_MakeDialogButton(h)];if(_uli){h=_get_all_modules();
var k=Math.max(h.length*160,400);g=7;for(var j=0,l=0;l<h.length;l++)if(h[l].length>j)j=h[l].length;j=j>g&&c!="NO_TRANSLATION";a=[a];a.push('<form id="module_list">');a.push('<table class="titlebar module_list_table" ','cols="',h.length,'"',' width="',k,'px">');j?a.push('<tr class="zipped_modules" id="module_list_zipper">'):a.push('<tr class="unzipped_modules">');for(k=0;k<h.length;k++){a.push('<td width="',100/h.length,'%" ','valign="top">');for(l=0;l<h[k].length;l++){var m=_hesc(h[k][l].id.replace("m_",
"")),n=_bidi_span_wrap(_get_module_title(m),_get_module_title_dir(m));a.push('<div class="module_item');l>=g&&j&&a.push(" extra_items");a.push('">');a.push('<input id="share_',m,'" type="checkbox"'," checked ></input>");a.push('<label for="share_',m,'">',n,"</label>");a.push("</div>")}a.push("</td>")}a.push("</tr>");if(j){a.push('<tr class="zipped_module_list">');a.push('<td id="show_all_modules" colspan="',h.length,'" style="font-size:80%;text-align:center;">');a.push('<a href="javascript:void(0);" id="zipper_text"',
' onclick="_modules_zipper();">');a.push(c,"</a>");a.push("</td></tr>")}a.push("</table>");a.push(_get_userprefs_checkbox_html(d,e,"userprefs"));a.push("</form>");_IG_PU_open(a.join(""),b,f);_IG_PU_disable_hide_for_button(0);_gel("dialogcontent").className+=" url"}else _IG_PU_open(a,b,f);_gel("buttons").className+=" colored_background"}
function _show_shared_userprefs_alert(){if(_gel("share_userprefs").checked){_gel("share_userprefs_alert").style.display="block";_gel("popup_iframe").contentWindow.shouldShareUserprefs(ig_b)}else{_gel("share_userprefs_alert").style.display="none";_gel("popup_iframe").contentWindow.shouldShareUserprefs(ig_c)}}
function _get_userprefs_checkbox_html(a,b,c){var d=[];if(a&&a!=""){d.push('<div class="',c,'">');d.push('<input id="share_userprefs" type="checkbox"');b!=""&&d.push(' onclick="_show_shared_userprefs_alert();"');d.push("></input>");d.push('<label for="share_userprefs">',a,"</label>");b!=""&&d.push('<div class="userprefs_alert"',' id="share_userprefs_alert">',b,"</div>");d.push("</div>")}return d.join("")}
function _modules_zipper(){if(_gel("module_list_zipper").className=="zipped_modules"){_gel("module_list_zipper").className="unzipped_modules";_gel("show_all_modules").style.display="none"}_ResizeIframeHeight()}
function _find_unshared_gadgets(){for(var a=_gel("module_list").elements,b=[],c=0;c<a.length;c++){var d;if((d=a[c])&&d.tagName=="INPUT"){var e=_gel("module_list_zipper"),f=e&&/unzipped_modules/.test(_gel("module_list_zipper").className),h=/extra_items/.test(d.parentNode.className);e=!e||f||!h;d=d.checked&&e}else d=ig_c;d||(b[b.length]=a[c].id.replace("share_",""))}return b}
function _finish_sharing_gadget(a){if(a==_DI_button_type.OK){_gel("sent_content_msg").className="msg";_gel("sent_tab_box").className="hidden_msg_box";_gel("send_tab_error_box").className="hidden_msg_box";_gel("sent_gadget_box").className="msg_box"}}
function _finish_sharing_tab(a){_gel("sent_content_msg").className="msg";_gel("sent_gadget_box").className="hidden_msg_box";if(a){_gel("sent_tab_box").className="msg_box";_gel("send_tab_error_box").className="hidden_msg_box"}else{_gel("send_tab_error_box").className="msg_box";_gel("sent_tab_box").className="hidden_msg_box"}};function _IG_saveModuleEditPrefs(a,b,c){var d=ig_u("m",b),e=d.mt;d=d.sn;var f=_gel("remote_iframe_"+b),h=f&&f.src;ig_p(a,"sn",d);ig_p(a,"ifr",h?"1":"0");if(c||!h){_fsetp(a,b,e);return ig_b}c=b;a=a.elements;e=[];h=[];for(var g=0;g<a.length;++g){var k=a[g].name,j=a[g].value;if(k&&k!="url"){e.push(_esc(k)+"="+_esc(j));if(k=k.match(/^m_\d+_up_(.*)$/)){h.push(k[1]);h.push(j)}}}_xsetp(e.join("&"));_IG_Prefs._setPrefs(c,h);_closeUserPrefs(b);ig_Mb(f,b,d);return ig_c}
function ig_Mb(a,b,c){var d=(new Date).getTime(),e=a.onload;a.onload=function(){var h=(new Date).getTime()-d;_sendx(["/ig/ui?action=refreshIfr&m=",_esc(c),"&ol=",h].join(""));typeof e=="function"&&e();a.onload=e};var f=a.src.replace(/&+$/,"");b=_IG_Prefs.W(b,f);if(f.split("#")[0]==b.split("#")[0])b=ig_T(b);a.src=b};function _IG_FRUC_init(){for(var a in ig_u("m")){var b=ig_u("m",a);b.mt==25&&_IG_RegisterMaximizeHandler(b.i,ig_Nb(a))}a=[];b=[];var c=[],d=0;for(var e in ig_u("m")){var f=ig_u("m",e);if(f.mt==25){a.push(_hesc(f.u));b.push(f.i);if(f.fa&&f.fa.length>0){for(var h=[],g=0;g<f.fa.length;++g)h.push(f.fa[g].i);c.push(h.join(","))}else c.push("");d++}}a.length!=0&&_sendx("/ig/unreadcounts?feed="+a.join("&feed=")+"&fa="+c.join("&fa="),ig_Ob(b))}
function ig_Nb(a){return function(b){b||ig_Pb(ig_u("m",a,"i"))}}function ig_Ob(a){return function(b){var c=a;if(b)if((b=eval("("+b+")"))&&b.uc&&b.uc.length==c.length)for(var d=0;d<c.length;++d){var e=ig_u("m",c[d]);if(e){var f=b.uc[d];e.uc=f;ig_Qb(e,f);f=b.ua[d];if(e&&e.fa&&f&&e.fa.length==f.length)for(var h=0;h<e.fa.length;++h)e.fa[h].rs=f[h]}}}}function ig_Pb(a){var b=ig_u("m",a);b&&b.mt==25&&_sendx("/ig/unreadcounts?feed="+b.u,ig_Ob([a]))}
function ig_Qb(a,b){if(a&&b!=ig_)b==0?_IG_SetTitle(a.ti,a.i):_IG_SetTitle(a.ti+" ("+b+")",a.i)}function _IG_FRUC_setFeedAsRead(a,b){if(ig_u("f","show_feed_unread_counts")&&ig_u("m",a,"fa",b)){a=ig_u("m",a);if(a.fa[b].rs==1){if(a.uc){a.uc--;ig_Qb(a,a.uc);_sendx("/ig/markfeed?feed="+a.u+"&fa="+a.fa[b].i)}a.fa[b].rs=ig_c}}};function _IG_hoverModule(a,b){var c=_gel("m_"+a);ig_Rb(a,b,c,"modhover")}function _IG_hoverHeader(a,b){var c=_gel("m_"+a+"_drag");if(c)c.style.display=b?"":"none";(c=_gel("m_"+a+"_home_menu"))&&ig_Rb(a,b,c,"titlehover")}function ig_Rb(a,b,c,d){if(b)ig_5.$(a)||ig_sb(c,d);else ig_f(c,d,ig_)};function _IG_inherits(a,b){function c(){}c.prototype=b.prototype;a.Lf=b.prototype;a.prototype=new c;a.prototype.constructor=a};function ig_6(){}ig_d=ig_6.prototype;ig_d._onPreDetachDashboard=function(){};ig_d._onPostDetachDashboard=function(){};ig_d._onPreAttachMaximized=function(){};ig_d._onPostAttachMaximized=function(){};ig_d._onPreDetachMaximized=function(){};ig_d._onPostDetachMaximized=function(){};ig_d._onPreAttachDashboard=function(){};ig_d._onPostAttachDashboard=function(){};
ig_6.Kd=function(a,b){if(!b.view)return new _IG_noMaxSupportTransitionStrategy(a,b.u);switch(b.view.ty){case 0:return new _IG_inlinedTransitionStrategy(a,b.view.max_u);case 1:return new _IG_scaleInlinedTransitionStrategy(a);case 2:return new _IG_iFrameTransitionStrategy(a,b.view.max_u);case 3:return new _IG_noMaxSupportTransitionStrategy(a,b.u)}return ig_};function ig_7(a){this.d=a;this.Wb=""}_IG_inherits(ig_7,ig_6);ig_d=ig_7.prototype;ig_d.r=function(){return _gel("remote_iframe_"+this.d)};
ig_d.yc=function(){var a=this.r();a&&(a.src="")};ig_d.ia=function(){var a=this.r();if(a)a.src=_IG_Prefs.W(this.d,a.src)};ig_d._onPreAttachMaximized=function(){var a=_gel("m_"+this.d+"_b");this.Wb=a.className;a.className="modboxin_max";ig_5.kf(this.d);_gel("rcam_t1").className="rnd1_max_top";_gel("rcam_t2").className="rnd2_max_top";_gel("rcam_t3").className="rnd3_max_top"};
ig_d._onPreAttachDashboard=function(){var a=_gel("m_"+this.d+"_b");a.className=this.Wb;ig_5.pf(this.d);_gel("rcam_t1").className="rnd1";_gel("rcam_t2").className="rnd2";_gel("rcam_t3").className="rnd3"};ig_d.Tc=function(a,b,c){b.style.width="200px";c=c||0;a=_max(200,_IG_isIE()?a.scrollWidth-c:a.offsetWidth);b.style.width=a+"px"};
function _IG_iFrameTransitionStrategy(a,b,c,d){ig_7.call(this,a);this.aa=b;this.T=d||ig_c;this.ma="";this.$a=c||"800px";this.Zb=this.Xb=this.Yb=this.Ya=ig_;if(this.T){var e=this;this.S=function(){e.vd.call(e)}}}_IG_inherits(_IG_iFrameTransitionStrategy,ig_7);ig_d=_IG_iFrameTransitionStrategy.prototype;ig_d.vd=function(){this.Tc(_gel("remote_"+this.d),this.r())};
ig_d._onPreDetachDashboard=function(){if(this.ma=="")for(var a=0;a<remote_modules.length;a++){var b=remote_modules[a];if(b.id==this.d)this.ma=b.base_iframe_url}this.Zb=_isModuleZipped(this.d)};ig_d._onPostDetachMaximized=function(){this.yc()};
ig_d._onPostAttachMaximized=function(){var a=this.r(),b=_gel("m_"+this.d),c=_gel("m_"+this.d+"_b");this.Yb=b.style.height;this.Xb=c.style.height;this.Ya=a.style.height;if(this.T){_IG_AddEventHandler("resize",this.S);this.S()}a.src=this.aa;a.style.height=this.$a;this.ia()};
ig_d._onPostAttachDashboard=function(){var a=this.r(),b=_gel("m_"+this.d),c=_gel("m_"+this.d+"_b");if(this.Ya!=ig_){a.style.height=this.Ya;a.style.width="100%";b.style.height=this.Yb;c.style.height=this.Xb}if(this.Zb)_IG_AddEventHandler("moduleunzip",this.Xf());else{a.src=this.ma;this.ia()}};ig_d._onPreDetachMaximized=function(){this.T&&_IG_RemoveEventHandler("resize",this.S)};ig_d.Xf=function(){var a=this;return function(){a.r().src=a.ma;a.ia();_IG_RemoveEventHandler("moduleunzip",this)}};
function _IG_inlinedTransitionStrategy(a,b,c,d){ig_7.call(this,a);this.aa=b;this.bb="max_div";this.wc="max_iframe";this.$a=c||"800px";this.T=d||ig_c;this.tb=this.sb=ig_;if(this.T){var e=this;this.S=function(){e.Ue.call(e)}}}_IG_inherits(_IG_inlinedTransitionStrategy,ig_7);ig_d=_IG_inlinedTransitionStrategy.prototype;ig_d.r=function(){return _gel(this.wc)};ig_d._updateIframeSrc=function(a){this.aa=a;var b=this.r();if(b)b.src=a};ig_d._setNextMaxIframeAddress=function(a){this.aa=a};
ig_d._setPostMaximizeCallback=function(a){if(!a||typeof a=="function")this.sb=a};ig_d._setPostRestoreCallback=function(a){if(!a||typeof a=="function")this.tb=a};ig_d.Ue=function(){this.Tc(_gel("max_div"),this.r(),25)};
ig_d._onPostAttachMaximized=function(){var a=_gel(this.bb),b=this.r(),c=_gel("m_"+this.d+"_b");if(!a){a=document.createElement("DIV");a.id=this.bb}if(!b){b=document.createElement("IFRAME");b.frameBorder="0";b.scrolling="no";b.style.border="0";b.style.margin="0";b.style.padding="0";b.style.overflow="hidden";b.style.width="100%";b.id=this.wc;a.appendChild(b)}if(this.T)_IG_AddEventHandler("resize",this.S);else{_IG_RemoveEventHandler("resize",this.S);b.style.width="100%"}c.nextSibling?c.parentNode.insertBefore(a,
c.nextSibling):c.parentNode.appendChild(a);a.className="modboxin_max";a.style.display="";b.style.height=this.$a;b.src=_IG_Prefs.W(this.d,this.aa);this.sb&&this.sb(this);return b.src};ig_d._onPostDetachMaximized=function(){this.yc()};ig_d._onPostAttachDashboard=function(){var a=_gel(this.bb);a.style.display="none";if(a=this.r())a.src="";this.tb&&this.tb(this)};ig_d._onPreAttachDashboard=function(){_IG_inlinedTransitionStrategy.Lf._onPreAttachDashboard.call(this);window.onresize=ig_};
function _IG_scaleInlinedTransitionStrategy(a){ig_7.call(this,a)}_IG_inherits(_IG_scaleInlinedTransitionStrategy,ig_7);_IG_scaleInlinedTransitionStrategy.prototype._onPostAttachMaximized=function(){var a=_gel("m_"+this.d+"_b");a.style.display="block"};function _IG_noMaxSupportTransitionStrategy(a,b){ig_7.call(this,a);this.xb=b}_IG_inherits(_IG_noMaxSupportTransitionStrategy,ig_7);
function _IG_noMaxSupportResizeIframe(a){var b=window.innerHeight;if(document.body.clientHeight)b=document.body.clientHeight;_gel(a).style.height=parseInt(b-_gel(a).offsetTop-8,10)+"px"}ig_d=_IG_noMaxSupportTransitionStrategy.prototype;ig_d._onPostAttachDashboard=function(){this.ia()};
ig_d._onPostAttachMaximized=function(){var a=_gel("m_"+this.d),b=_gel("mu_div");if(b==ig_){b=document.createElement("DIV");b.id="mu_div";b.innerHTML=['<table border=0 height=100% width=100%><tr valign=top><td width="450px" height=100%><div id="muph"></div><br></td><td height=100%><div style="padding-top:4px;padding-left:4px;"><b class="rnd_modtitle"><b class="rnd1"></b><b class="rnd2"></b><b class="rnd3"></b></b><div class="modtitle">',IG_MSGS.RG,'</div></div><iframe id="max_ifr2" onload="_IG_noMaxSupportResizeIframe(\'max_ifr2\')" frameBorder=0 scrolling="no" style="height:100%; border:0px" width="100%"></iframe></td></tr></table>'].join("")}a.parentNode.replaceChild(b,
a);var c=_gel("muph");c.appendChild(a);b.style.display="";a.style.minWidth="300px";if(a=_gel("max_ifr2"))a.src=this.xb&&this.xb.length?"/ig/directory"+_qs()+"output=brief&recommend="+this.xb:"";this.ia()};ig_d._onPreDetachMaximized=function(){var a=_gel("m_"+this.d),b=_gel("mu_div");if(b){b.parentNode.replaceChild(a,b);b.style.display="none"}a.style.minWidth=""};ig_d._onPreAttachMaximized=function(){};ig_d._onPreAttachDashboard=function(){};var ig_5=new (function(){this.Ma="modules";this.La="dash_ph";this.Ja="max_ph";this.o=ig_;this.jc="";this.xc=ig_;if(window.nd)if(window.onbeforeunload){var a=window.onbeforeunload;window.onbeforeunload=function(){a();ig_5.Ic()}}else window.onbeforeunload=function(){ig_5.Ic()}});ig_5.Mb=function(){return ig_5.o};ig_5.Ic=function(){if(this.o!=this.xc){var a=ig_m(),b="/ig/setp?et="+_et+"&maxm="+(this.o?this.o:"-1");a.open("GET",b,ig_c);a.send(ig_)}};ig_5.xf=function(a){this.xc=a};
ig_5.vf=function(a){this.jc=a};ig_5.Xc=function(a){if(this.o!=a){this.o&&this.vb(this.o);this.Pe(a)}};ig_5.qf=function(){this.o&&this.vb(this.o)};ig_5.$=function(a){return this.o==a};ig_5.getStrategy=function(a){var b=_max_strategies[a];if(b==ig_){var c=ig_u("m",a);if(c){b=ig_6.Kd(a,c);_max_strategies[a]=b}}return b};
ig_5.Pe=function(a){var b=this.getStrategy(a);b._onPreDetachDashboard();this.Qd(a);b._onPostDetachDashboard();b._onPreAttachMaximized();this.xd(a);b._onPostAttachMaximized();this.o=a;_IG_suspend_refresh_cycle()};ig_5.vb=function(a){var b=this.getStrategy(a);b._onPreDetachMaximized();this.Rd(a);b._onPostDetachMaximized();b._onPreAttachDashboard();this.wd(a);b._onPostAttachDashboard();this.o=ig_;_IG_restart_refresh_cycle()};
ig_5.uf=function(a){this.ub=function(){_IG_minimize_view(a,"delete",this.jc)};_IG_AddModuleEventHandler(a,"delete",this.ub)};ig_5.Id=function(a){this.ub&&_IG_RemoveModuleEventHandler(a,"delete",this.ub)};ig_5.Qd=function(a){var b=_gel(this.La);if(b==ig_){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.Sb(a)};
ig_5.xd=function(a){var b=_gel(this.Ja);if(b==ig_){b=document.createElement("DIV");b.id=this.Ja;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( |$)/,"$1modbox_max$2");this.Sd(a);this.uf(a);_IG_TriggerEvent("modulemaximize",a);_IG_TriggerModuleEvent(a,"maximize")};
ig_5.Rd=function(a){var b=_gel(this.Ma),c=_gel(this.Ja);c.style.display="";b.style.display="";b=_gel("m_"+a);b.className=b.className.replace(/modbox_max/,"modbox");this.Sb(a)};ig_5.wd=function(a){var b=_gel(this.La),c=_gel("m_"+a);b.parentNode.replaceChild(c,b);b.style.display="none";this.Wd(a);this.Id(a);_IG_TriggerEvent("moduleunmaximize",a);_IG_TriggerModuleEvent(a,"unmaximize")};
ig_5.Sd=function(a){var b=_gel("m_"+a);a=_gel("m_"+a+"_h");b.parentNode.className+=" ig_dnd_fixed_col";a.style.cursor="default";ig_wb()};ig_5.Wd=function(a){var b=_gel("m_"+a);a=_gel("m_"+a+"_h");b.parentNode.className=b.parentNode.className.replace(/ ig_dnd_fixed_col/,"");a.style.cursor="move";_IG_initDrag(_table,_tabs)};ig_5.Sb=function(a){_IG_hoverModule(a,ig_c);_IG_hoverHeader(a,ig_c)};
ig_5.mc=function(a){a=_gel(a);a=a.childNodes;for(var b=[],c=0;c<a.length;++c)if(a[c].className&&(a[c].className.indexOf("rnd_modtitle")==0||a[c].className.indexOf("rnd_modboxin")==0))for(var d=0;d<a[c].childNodes.length;++d)b[b.length]=a[c].childNodes[d];return b};ig_5.kf=function(a){a=this.mc("m_"+a);for(var b=0;b<a.length;++b)a[b].className+="_max"};ig_5.pf=function(a){a=this.mc("m_"+a);for(var b=0;b<a.length;++b)a[b].className=a[b].className.replace(/_max/,"")};
function _IG_maximize_persistent_module(a,b){if(!window.location.hash.slice(1)){ig_5.xf(a);_IG_maximize_view(a,"persist",b)}}function _IG_toggle_view(a){ig_5.Xc(a)}function _IG_is_maximized_module(a){return ig_5.$(a)}
function _IG_maximize_view(a,b,c){_IG_OS_hideGadgetInvitesManager();_IG_OS_hideUpdates();var d=_gel("m_"+a);if(!(!d||d.style.display=="none")){if(b==ig_)b="dunno";b=["/ig/ui?xp=",c||"","&action=maximizeMod","&from=",b,"&m=",a,"&sn=",ig_u("m",a,"sn")];window["FEED"+a]&&b.push("&mt=feed");_sendx(b.join(""),ig_,ig_c,ig_);if(!ig_5.$(a)){ig_5.vf(c);ig_5.Xc(a)}}}
function _IG_minimize_view(a,b,c){_IG_OS_hideGadgetInvitesManager();_IG_OS_hideUpdates();if(b==ig_)b="dunno";b=["/ig/ui?xp=",c||"","&action=minimizeMod","&from=",b,"&m=",a,"&sn=",ig_u("m",a,"sn")];_sendx(b.join(""),ig_,ig_c,ig_);ig_5.$(a)&&ig_5.vb(a)}function _IG_restore_view(){_IG_OS_hideGadgetInvitesManager();ig_5.qf()}var _IG_getCurrentMaxId=ig_5.Mb;_exportClass("gadgets.views","ViewManager",ig_5,ig_,["isModuleMaximized",ig_5.$,"getCurrentMaxId",ig_5.Mb]);function ig_Sb(){this.la="";this.kd=150;this.Ia=_IG_isIE();this.ka=[];window.location.hash.slice(1);var a=this;_IG_callPostLoad(function(){_IG_AddDOMEventHandler(window,"load",function(){a.tc()})})}ig_d=ig_Sb.prototype;ig_d.tc=function(){var a=this;if(!(window._gjuc&&window._gjuc()==1)){window.setTimeout(function(){a.tc()},this.kd);var b=this.oe();if(b!=this.la){this.Jc(b);this.la=b;if(this.Ia)window.location.hash="#"+(b||"home")}}};
ig_d.kc=function(){try{if(this.Ia&&!this.ib){this.ib=_gel("ighistory");var a=this.ib.contentWindow.document,b=window.location.hash.slice(1);a.open();a.write("<head></head><body>"+_esc(b)+"</body>");a.close()}return this.ib.contentWindow.document}catch(c){}};ig_d.oe=function(){if(this.Ia){var a=this.kc();return a?_unesc(a.body.innerHTML):""}else return window.location.hash.slice(1)};
ig_d.Af=function(a){if(a!=this.la){this.la=a;this.Jc.apply(this,arguments);window.location.hash="#"+a;if(this.Ia){var b=this.kc();if(b){b.open();b.write("<head></head><body>"+_esc(a)+"</body>");b.close()}}}};ig_d.Jc=function(a){for(var b=0;b<this.ka.length;++b)if(this.ka[b][0].test(a)){this.ka[b][1].apply(undefined,arguments);return}};ig_d.pd=function(a,b){this.ka.push([a,b])};var ig_8;if(window._IG_CONTAINER)ig_8=new ig_Sb;function _IG_PushHistory(){ig_8&&ig_8.Af.apply(ig_8,arguments)}
function _IG_AddHistoryCallback(a,b){ig_8&&ig_8.pd(a,b)}_IG_AddHistoryCallback(/^max\d+$/,function(a,b,c){a=a.substr(3);if(b==ig_)b="history";_IG_maximize_view(a,b,c)});_IG_AddHistoryCallback(/^min\d+$/,function(a,b,c){a=a.substr(3);b==ig_?_IG_restore_view():_IG_minimize_view(a,b,c)});_IG_AddHistoryCallback(/^restore$/,_IG_restore_view);_IG_AddHistoryCallback(/^$/,function(){var a=_args();a.$d?_IG_maximize_view(a.$d,"history",""):_IG_restore_view()});var _IG_Json=ig_G;var _IG_ViewType={CANVAS:"canvas",HOME:"home",PROFILE:"home",PREVIEW:"preview"};function _IG_View(a,b){this.Re=a;this.Ie=!!b}_IG_View.prototype.je=function(){return this.Re};_IG_View.prototype.He=function(){return this.Ie};var _IG_SupportedViews={};_IG_SupportedViews.CANVAS=new _IG_View(_IG_ViewType.CANVAS,ig_b);_IG_SupportedViews.canvas=new _IG_View(_IG_ViewType.CANVAS,ig_b);_IG_SupportedViews.HOME=new _IG_View(_IG_ViewType.HOME,ig_c);_IG_SupportedViews.jg=new _IG_View(_IG_ViewType.HOME,ig_c);
_IG_SupportedViews.PROFILE=new _IG_View(_IG_ViewType.PROFILE,ig_c);function ig_Tb(a,b,c){b=b.toLowerCase();if(b==_IG_ViewType.CANVAS)_IG_is_maximized_module(a)||_IG_PushHistory("max"+a,"navTo","");else _IG_is_maximized_module(a)&&_IG_PushHistory("min"+a,"navTo","");if(c){b=_IG_Json.stringify(c);_gel("remote_iframe_"+a).src+="&view-params="+_esc(b)}return ig_b}var _IG_NavigateToGadget=ig_Tb;function ig_Ub(a){return _IG_is_maximized_module(a)?_IG_SupportedViews.CANVAS:_IG_SupportedViews.HOME}
var _IG_GetCurrentView=ig_Ub;function ig_Vb(a){a=_gel("remote_iframe_"+a).src;a=_argsUrl(a);return a=_IG_Json.parse(_unesc(a["view-params"]))}var _IG_GetViewParams=ig_Vb;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.je,"isOnlyVisibleGadget",_IG_View.prototype.He]);var ig_9=function(){function a(g,k){return function(j,l){ig_9.Rc(g,k,_IG_Json.parse(l))}}function b(){var g=_gel("maximized_container");if(!g){g=document.createElement("div");g.id="maximized_container";_gel("modules").parentNode.appendChild(g)}return g}function c(){var g=_gel("gadget_invite_items");if(!g){g=document.createElement("div");g.id="gadget_invite_items";g.className="gadget_invite_items";_IG_AddDOMEventHandler(g,"click",ig_9.qe)}return g}function d(g,k){var j=document.createElement("span");
j.className="gadget_invite_content_item cl linkon";_IG_AddDOMEventHandler(j,"click",function(){k.osit&&_sendx("/ig/osinvites?et="+_et,function(){},ig_c,"action=accept&osit="+k.osit);k.mtid=k.mtid||0;_select_gadget_and_log(k.mtid,k.mid)});j.innerHTML=IG_MSGS.GIGTG.replace(/%1\$s/,g);return j}function e(g){var k=b();k.innerHTML="";k.style.display=g?"":"none";g?_IG_showRoundedCornerOnMaximize():_IG_hideRoundedCornerOnRestore();_gel("rcam_t1").className=g?"rnd1_max_top":"rnd1";_gel("rcam_t2").className=
g?"rnd2_max_top":"rnd2";_gel("rcam_t3").className=g?"rnd3_max_top":"rnd3";k=_IG_getCurrentMaxId();_gel(k?"max_ph":"modules").style.display=g?"none":""}function f(){return typeof _IG_OS_updates_gadget_iframe_url=="undefined"?"":"remote_module_"+_IG_OS_updates_gadget_iframe_url.match(/mid=(-?\d+)/)[1]}var h=ig_c;return{j:ig_,z:0,ra:ig_c,Ac:ig_c,lb:ig_c,nb:ig_b,q:10,wf:function(g){h=g},te:function(){return h},Ge:function(){var g=_args();g=g.force_sandbox;return g=="1"},Rc:function(g,k,j){_IFPC.call(g,
"shindig.requestShareApp_callback",[k,j.success,j.success?ig_:j.message,j.recipientIds],_ifpc_relay_url[_ig_gmid_(g)],ig_,window.location.af+"/ig/images/rpc_relay.html",ig_b,ig_b)},Qc:function(g,k,j,l){var m=_ig_gmid_(g);j=j||[];var n="";if(typeof j=="object"&&j.join){j.length>50&&j.splice(50);n=j.join(",")}else if(typeof j=="string")n=j;else if(!j.cb||j.cb.$f!="VIEWER"&&j.cb.$f!="OWNER"||j.cb.ig!="FRIENDS"){l={sg:ig_c,message:"Invalid recipient.",ng:[]};ig_9.Rc(g,k,l);return}j=ig_u("m",m,"u");var i=
_IG_ViewType.HOME;if(m==_IG_getCurrentMaxId())i=_IG_ViewType.CANVAS;_share_this_gadget(_hesc(_jesc(l)),ig_q(IG_URLS.sgu,["moduleurl="+_esc(j),"mid="+m,"source=os","view="+i,"uids="+n]),m,a(g,k))},Ec:function(){_sendx("/ig/osinvites",function(g){ig_9.j=eval("("+g+")");g=ig_9.j;ig_9.z=g&&g.invite&&g.invite.length?g.invite.length:0;ig_9.ra=g&&!!g.n;_IG_OS_updateGadgetInvites();if(ig_9.z&&ig_9.nb){ig_9.q=Math.min(10,ig_9.z);ig_9.Da(ig_9.j.invite,0,ig_9.q)}})},fd:function(){var g=_gel("gadget_invites_header"),
k=_gel("gadget_shares_nav");if(g&&k){g.style.display="none";k.style.display="none";if(ig_9.z){if(ig_9.ra){g.style.display="block";g=ig_9.z>1?IG_MSGS.GIP:IG_MSGS.GI;g=g.replace(/%1\$d/,ig_9.z);var j=_gel("gadget_invites_header_link");j.innerHTML=g}k.style.display="block";k=_gel("num_invites");k.innerHTML=ig_9.z}if(k=_gel("show_all_invites"))k.innerHTML=IG_MSGS.GISAI.replace(/%1\$d/,ig_9.z)}},Ef:function(){ig_9.nb=ig_b;ig_9.Ec();e(ig_b);_IG_highlight_invites();ig_9.Vb(IG_MSGS.GIH,function(){_IG_PushHistory("",
"gadget_invites","")});b().appendChild(c())},we:function(){if(ig_9.lb){ig_9.lb=ig_c;setTimeout(function(){window.location.replace(ig_T(document.location.href))},0)}e(ig_c);ig_9.nb=ig_c;var g=_IG_getCurrentMaxId();g!=ig_?_IG_highlight_module(g):_IG_highlight_tab()},If:function(){e(ig_b);_IG_highlight_updates();ig_9.Vb(IG_MSGS.GUH,function(){_IG_PushHistory("","social_updates","")});var g=_gel(f());if(!g){g=document.createElement("iframe");g.src=_IG_OS_updates_gadget_iframe_url;g.id=f();g.width="98%";
g.height="900px";g.frameBorder="0";g.style.marginTop="6px";g.style.marginLeft="6px"}b().appendChild(g)},ze:function(){e(ig_c);var g=f();if(g){(g=_gel(g))&&g.parentNode.removeChild(g);g=_IG_getCurrentMaxId();g!=ig_?_IG_highlight_module(g):_IG_highlight_tab()}},Vb:function(g,k){var j=_gel("maximized_container_header");if(!j){j=document.createElement("div");j.id="maximized_container_header";j.className="gititle";var l=document.createElement("h2");j.appendChild(l);var m=document.createElement("span");
m.id="maximized_header_title";m.className="gititle_text";l.appendChild(m);m.innerHTML=g;if(k){g=ig_S("a","",k,{id:"maxContainerMinButton",className:"v2shrinkbox hand"},ig_b);j.appendChild(g)}}g=document.createElement("div");g.style.clear="both";j.appendChild(g);b().appendChild(j)},Da:function(g,k,j){var l=c();l.innerHTML="";var m=document.createElement("div");m.className="gadget_invite_legal";var n="http://www.google.com/support/websearch/bin/answer.py?answer=145550";if(_hl)n+="&hl="+_hl;m.innerHTML=
[IG_MSGS.GIL,' <a href="',n,'" target=_blank>',IG_MSGS.GILM,"</a>"].join("");l.appendChild(m);k=k||0;j=j||g.length;for(m=k;m<j;m++){if(m!=k){n=document.createElement("hr");n.id="invite_item_sep_"+g[m].osit;n.className="invite_item_sep";l.appendChild(n)}ig_9.mf(g[m])}k=document.createElement("div");k.id="bulk_dismiss";k.className="gadget_invite_footer";j=ig_S("span",IG_MSGS.GIBD,function(){_sendx("/ig/osinvites?et="+_et,function(){ig_9.wb(0,ig_c);_IG_PushHistory("","gadget_invites","")},ig_c,"action=declineall")},
{className:"decline_invite linkon"});k.appendChild(j);l.appendChild(k);l.appendChild(ig_9.nf(g.length))},mf:function(g){var k=c(),j=_hesc(g.nam||""),l=_hesc(g.gti||IG_MSGS.GIDGN),m=document.createElement("div");m.className="gadget_invite_item";m.id="invite"+g.osit;var n=document.createElement("img");n.src=g.gtu;n.className="gadget_invite_thumb";m.appendChild(n);n=document.createElement("div");n.id="gadget_invite_content_"+g.osit;n.className="gadget_invite_content";var i='<a href="/ig/directory?type=gadgets&url='+
g.gur+'" target="_blank">'+l+"</a>",o=IG_MSGS.GID;o=o.replace(/%1\$s/,"gadget_invite_content_item").replace(/%2\$s/,"<strong>"+j+"</strong>").replace(/%3\$s/,_hesc(g.ema||"")).replace(/%4\$s/,"gadget_invite_content_item cl").replace(/%5\$s/,i);n.innerHTML=o;i=g.mid>-1;n.appendChild(document.createElement("br"));if(!i||i&&!g.isc){o="gadget_invite_content_item cl";var p;if(i&&!g.isc){p=IG_MSGS.GIAUBT.replace(/%1\$s/,j);o+=" add_contact"}else{p=IG_MSGS.GIAG;o+=" accept_invite"}o=ig_S("input","",ig_,
{id:"accept_button_"+g.osit,type:"button",value:p,className:o});n.appendChild(o)}if(i&&g.isc){l=d(l,g);n.appendChild(l)}l=i&&g.isc?IG_MSGS.GIDIS:IG_MSGS.GINT;l=ig_S("span",l,ig_,{id:"close_invite_"+g.osit,className:"gadget_invite_content_item decline_invite linkon"});n.appendChild(l);if(!g.isc&&!i){l=IG_MSGS.GIAU;l=l.indexOf("<span")>=0?l.replace(/%1\$s/,j).replace(/%2\$s/,"_IG_OS_openGroupPopup(true);"):l.replace(/%1\$s/,j).replace(/%2\$s/,"javascript:void(0);").replace(/%3\$s/,"_IG_OS_openGroupPopup(true);");
j=document.createElement("span");j.id="add_contacts_container_"+g.osit;j.className="gadget_invite_content_item cl add_user_msg";j.innerHTML=l;n.appendChild(j)}m.appendChild(n);k.appendChild(m)},nf:function(g){var k=document.createElement("div");k.id="gadget_invite_footer";k.className="gadget_invite_footer";for(var j=3,l,m=0;m<j;m++){l=document.createElement("b");l.className="rnd"+(m+1);k.appendChild(l)}l=document.createElement("div");l.id="gadget_invite_footer_content";l.className="gadget_invite_footer_content";
m=ig_S("span",IG_MSGS.GIBTT,ig_9.yd,{className:"leading_edge linkon"});l.appendChild(m);m=ig_S("span",IG_MSGS.GIM,ig_9.Gf,{className:"trailing_edge linkon"});l.appendChild(m);m=document.createElement("span");m.className="trailing_edge spacer";m.appendChild(document.createTextNode("-"));l.appendChild(m);g=ig_S("span",IG_MSGS.GISAI.replace(/%1\$d/,g),ig_9.Cf,{id:"show_all_invites",className:"trailing_edge linkon"});l.appendChild(g);g=document.createElement("div");g.style.clear="both";l.appendChild(g);
k.appendChild(l);for(m=j;m>0;m--){l=document.createElement("b");l.className="rnd"+m;k.appendChild(l)}return k},yd:function(){ig_9.q=Math.min(10,ig_9.j.invite.length);ig_9.Da(ig_9.j.invite,0,ig_9.q)},Gf:function(){ig_9.q=Math.min(ig_9.q+10,ig_9.j.invite.length);ig_9.Da(ig_9.j.invite,0,ig_9.q)},Cf:function(){ig_9.q=ig_9.j.invite.length;ig_9.Da(ig_9.j.invite,0,ig_9.q)},qe:function(g){var k,j=g.target||g.srcElement;for(g=j;g;)if(g.className=="gadget_invite_item"){k=g.id.replace("invite","");break}else g=
g.parentNode;if(k){g="";var l,m;j=j.className;if(j.indexOf("accept_invite")>=0){j=(g=_gel("add_contacts_"+k))?g.checked:ig_c;l="accept";g="addcontact=true";m={X:j?1:0};ig_9.lb=ig_b}else if(j.indexOf("decline_invite")>=0)l="decline";else if(j.indexOf("add_contact")>=0){l="accept";g="addcontact=true";m={X:2}}if(l){g+=(g?"&":"")+"action="+l+"&osit="+k;_sendx("/ig/osinvites?et="+_et,function(n){ig_9.re(n,k,l,m)},ig_c,g)}}},re:function(g,k,j,l){var m;a:{for(var n=ig_9.j.invite,i=0;i<n.length;i++)if(n[i].osit==
k){m=n[i];break a}m=ig_}if(m){g=g&&eval("("+g+")");n=_gel("gadget_invite_content_"+k);var o=_gel("accept_button_"+m.osit),p=_gel("close_invite_"+m.osit),r=_gel("add_contacts_container_"+m.osit);i=_hesc(m.gti||IG_MSGS.GIDGN);var q="";switch(j){case "accept":o.parentNode.removeChild(o);p.parentNode.removeChild(p);r&&r.parentNode.removeChild(r);if(l){if(l.X==0||l.X==1)q+=IG_MSGS.GIGA.replace(/%1\$s/,i);if(l.X==1||l.X==2){j=IG_MSGS.GICA;j=j.indexOf("<span")>=0?j.replace(/%1\$s/,_hesc(m.nam||"")).replace(/%2\$s/,
"_IG_OS_openGroupPopup(true);"):j.replace(/%1\$s/,_hesc(m.nam||"")).replace(/%2\$s/,"javascript:void(0);").replace(/%3\$s/,"_IG_OS_openGroupPopup(true);");q+=(q?" ":"")+j}}j=q;l=_gel("gadget_invite_content_"+k);m=document.createElement("div");m.className="gadget_invite_content_item cl ie_content_fix";q=document.createElement("span");q.className="action_message";q.innerHTML=j;m.appendChild(q);l.appendChild(m);n.appendChild(d(i,g));break;case "decline":g=_gel("invite"+m.osit);n=g==g.parentNode.firstChild?
g.nextSibling:_gel("invite_item_sep_"+m.osit);g.parentNode.removeChild(g);n&&n.parentNode.removeChild(n);break}k=k;g=ig_9.j.invite;for(n=0;n<g.length;n++)if(g[n].osit==k){ig_9.j.invite.splice(n,1);ig_9.wb(ig_9.j.invite.length,ig_9.ra)}ig_9.q=Math.min(ig_9.q,ig_9.j.invite.length)}},Kc:function(g,k){if(ig_9.Ac){window.goog.GroupPopupLauncher.launch("/ig/c","ig",window.goog.GroupPopupLauncher.Group.FRIENDS,g?window.goog.GroupPopupLauncher.PopupType.EDIT:window.goog.GroupPopupLauncher.PopupType.PICK,
{hl:_hl});k&&k()}else _IG_LoadScriptCallback(IG_URLS.gpjsu,function(){ig_9.Ac=ig_b;ig_9.Kc(g,k)})},od:function(){var g=_gel("gadget_invites_header");if(g)g.style.display="none";_sendx("/ig/osinvites?et="+_et,function(){},ig_c,"action=ack")},wb:function(g,k){ig_9.z=g;ig_9.ra=k;ig_9.fd()},Ce:function(){_gel("contacts_nav").style.display="";_gel("tab_separator_social").style.display=""}}}(),_IG_OS_loadGadgetInvitesData=ig_9.Ec,_IG_OS_updateGadgetInvites=ig_9.fd,_IG_OS_showGadgetInvitesManager=ig_9.Ef,
_IG_OS_hideGadgetInvitesManager=ig_9.we,_IG_OS_showUpdates=ig_9.If,_IG_OS_hideUpdates=ig_9.ze,_IG_OS_requestShareApp=ig_9.Qc,_IG_OS_openGroupPopup=ig_9.Kc,_IG_OS_acknowledgeInvitations=ig_9.od,_IG_OS_setPendingInvites=ig_9.wb,_IG_OS_initOpenSocialUI=ig_9.Ce;_IFPC.registerService("shindig.requestShareApp",ig_9.Qc);_IG_AddHistoryCallback(/^social_updates$/,_IG_OS_showUpdates);_IG_AddHistoryCallback(/^gadget_invites$/,_IG_OS_showGadgetInvitesManager);var ig_$=function(){function a(c,d){var e=_gel("m_"+c+"_canvas_social_icon");if(e)e.className=d+e.className.replace(/\bsocialbox\S*/,"");if(c=_gel("m_"+c+"_social_icon"))c.className=d+c.className.replace(/\bsocialbox\S*/,"")}function b(c){ig_$.Fc({moduleUrl:_IG_MD.m[c].u},function(d){ig_$.oc(eval("("+d+")"),c)})}_IG_AddEventHandler("modulesocialedit",function(c){if(!ig_9.te()&&_gel("add_friends_promo"))_gel("add_friends_promo").style.display="block";c=c.replace("m_","");var d=_gel("m_"+c+"_aclform");
d&&ig_$.Sc(d,c)});return{Sc:function(c,d){if(c.module_url){c.reset();var e=c["access_profile"+d];c=c["post_updates"+d];c.disabled=!e.checked}},pe:function(c,d){_closeUserPrefs(d);if(c.module_url){var e=c.module_url.value,f=c["access_profile"+d];c=c["post_updates"+d];f.defaultChecked=f.checked;c.defaultChecked=c.checked;a(d,f.checked?"socialboxon":"socialbox");var h=_gel("acl_cancel_"+d);if(h)h.style.display="";if(h=_gel("reset_acl_"+d))h.style.display="";h=_IG_ViewType.HOME;if(d==_IG_getCurrentMaxId())h=
_IG_ViewType.CANVAS;_IG_OS_makeAclXhr({moduleUrl:e,editToken:_et,accessProfile:f.checked,view:h,postUpdates:c.checked},function(){var g=_gel("remote_iframe_"+d);if(g&&g.src){g.src=ig_T(_IG_Prefs.W(d,g.src));window.frames["remote_iframe_"+d].location.replace(g.src)}})}},Fc:function(c,d){if(c&&c.moduleUrl){var e="/ig/osacl";e+="?url="+c.moduleUrl;if(ig_9.Ge())e+="&force_sandbox=1";if(c.editToken){e+="&et="+c.editToken;var f=c.accessProfile?"t":"f",h=c.accessProfile&&c.postUpdates?"t":"f";e+="&osacl=0:"+
f+",1:"+h}if(c.view)e+="&view="+c.view;_sendx(e,d,ig_c,ig_c)}},oc:function(c,d){var e=_gel("access_profile"+d),f=_gel("post_updates"+d),h=_gel("acl_cancel_"+d),g=_gel("reset_acl_"+d);ig_9.wf(c.has_friends);if(c.user_decided){e.checked=c.friends;f.checked=c.post&&c.friends;f.disabled=!c.friends;if(h)h.style.display="";if(g)g.style.display=""}else{e.checked=ig_b;f.checked=ig_b;f.disabled=ig_c;if(h)h.style.display="none";if(g)g.style.display="none";_showUserPrefs(d,ig_b)}e.defaultChecked=e.checked;f.defaultChecked=
f.checked;a(d,c.friends?"socialboxon":"socialbox");_gel("acl_options_"+d).style.display="block";_gel("aowc_"+d).style.display="none"},Yf:function(c){c=c||"";var d=_gel("access_profile"+c);c=_gel("post_updates"+c);if(d.checked)c.disabled=ig_c;else{c.checked=ig_c;c.disabled=ig_b}},Vd:function(c){if(ig_rb(c,ig_Q.Na))_gel("m_"+c+"_aclform")?_closeUserPrefs(c):ig_$.Tb(c);else{_log("social_options:"+c);_showUserPrefs(c,ig_b)}},Tb:function(c){if(ig_rb(c,ig_Q.Na)){_xsetp("m_"+c+"_dossip=1");_closeUserPrefs(c)}},
be:function(){for(var c in _IG_MD.m){var d=_IG_MD.m[c];d.os&&b(c)}}}}(),_IG_OS_handleFormAclOptions=ig_$.pe,_IG_OS_resetFormAclOptions=ig_$.Sc,_IG_OS_makeAclXhr=ig_$.Fc,_IG_OS_handleGetAclXhrResponse=ig_$.oc,_IG_OS_updateAclOptions=ig_$.Yf,_IG_OS_edit=ig_$.Vd,_IG_OS_closeSocialSignInPromo=ig_$.Tb,_IG_OS_getAllAcl=ig_$.be;function ig_Wb(){window._IG_CONTAINER&&setInterval(function(){_sendx("/ig/ostokens",ig_Xb)},18E5)}function ig_Yb(a,b){var c=a.split("#");if(!c[1])return a;a=c[1].split("&");for(var d=0;d<a.length;++d)if(/^st=/.test(a[d]))a[d]="st="+_hesc(b);c[1]=a.join("&");return c.join("#")}
function ig_Xb(a){if(!(!a||a.length<27||a.charAt(27)!="{")){a=eval("("+a.substring(27)+")");if(a.m)for(var b=0;b<a.m.length;++b){var c=a.m[b];if(c){var d=c.i,e=c.st;if(!c.nsl){for(c=0;c<remote_modules.length;++c)if(remote_modules[c].id==d)remote_modules[c].base_iframe_url=ig_Yb(remote_modules[c].base_iframe_url,e);if(c=ig_u("m",d,"view","max_u"))_IG_MD.m[d].view.max_u=ig_Yb(c,e)}_gel("remote_iframe_"+d)&&_IFPC.call("remote_iframe_"+d,"update_security_token",[e],window._ifpc_relay_url[d],ig_,window.location.af+
"/ig/images/rpc_relay.html",ig_b,ig_b)}}}}ig_Wb();var _handleAuthRefreshJsonResponse=ig_Xb;
