var ig_T={ka:"javascript:void(0);",Hc:{u:"",ti:"",mt:""},gmc:function(a,b){return[IG_MSGS.GMC,ig_t(IG_URLS.gmc,["moduleurl="+_esc(b.u),"mid="+a]),ig_]},gmp:function(a){return[IG_MSGS.GMP,ig_t(IG_URLS.gmp,["mid="+a]),ig_]},gmi:function(a,b){return[IG_MSGS.GMI,ig_t(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_T.ka,ig_H(_edit,a,c)]},Mb:function(a,b,c){var d=ig_H(_confirmDel,a,b.mt,
"n_"+b.mt+"="+_esc("url="+_esc(b.u)),c.replace("MODULE_TITLE",b.ti));return[IG_MSGS.DEL,ig_T.ka,d]},del:function(a,b){return ig_T.Mb(a,b,IG_MSGS.DEL_CONFIRM)},del2:function(a,b){return ig_T.Mb(a,b,IG_MSGS.DEL_CONFIRM2)},ming:function(a,b){return[IG_MSGS.MING,ig_T.ka,ig_H(_zm,a,b.mt)]},maxg:function(a,b){var c=ig_T.ming(a,b);c[0]=IG_MSGS.MAXG;return c},shg:function(a,b){var c=ig_H(_share_this_gadget,IG_MSGS.SHG,ig_t(IG_URLS.sgu,["moduleurl="+_esc(b.u),"mid="+a,"source=share_gadget"]),a);return[_hesc(IG_MSGS.SHG),
"#",function(){c();return ig_b}]},osShare:function(a,b){var c=function(){_IG_callPostLoad(function(){window._IG_OS_requestShareApp("remote_iframe_"+a,ig_,ig_,IG_MSGS.OSSHARE.replace(/%GADGET_NAME%/,_hesc(b.ti)))})};return[_hesc(IG_MSGS.SHG),ig_T.ka,c]},Zc:/^http:\/\//,kc:function(a){return _esc(a.replace(ig_T.Zc,""))},rg:function(a,b){return ig_T.rgv1(a,b).concat("dd_separator")},rgv1:function(a,b){return[IG_MSGS.RG,ig_t(IG_URLS.dir,["recommend="+ig_T.kc(b.u)]),ig_]},ag:function(a,b){return[IG_MSGS.AG,
ig_t(IG_URLS.dir,["url="+ig_T.kc(b.u)]),ig_]}};_exportSymbols("",["_IG_DDI",ig_T]);var ig_U,ig_V,ig_W={};function _IG_AddDropDownEventHandler(a,b){ig_W[a]=b}function _IG_DD_init(){var a=document.createElement("iframe");a.id="IG_DD_iframe_cover";a.className="dd_iframe_cover";a.style.display="none";document.body.insertBefore(a,document.body.firstChild);var b=document.createElement("div");b.id="IG_DD_div";b.className="dd_layer_hidden";b.onclick=_IG_DD_hide;document.body.insertBefore(b,document.body.firstChild)}
function _IG_DD_create(a,b){if(!b){b=[];for(var c=ig_w("m",a,"dd"),d=0;d<c.length;++d)b[d]=ig_T[c[d]]}var e=document.createElement("div");e.setAttribute("id","DD_"+a);e.className="dd dd_border";e.style.display="none";e.onkeydown=_IG_DD_keys;d=0;for(var f;f=b[d];d++){var g=f;if(typeof f=="function")g=f(a,ig_w("m",a)||ig_T.Hc);g[3]&&e.appendChild(ig_Bb(g[3]));e.appendChild(_IG_DD_add(g[0],g[1],g[2],d))}_gel("IG_DD_div").appendChild(e)}
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(j){c(j);_IG_DD_hide();return ig_b};g.className=d==0?"dd_item dd_item_first":"dd_item";g.onblur=function(){ig_V=ig_b;return ig_a};g.onmouseover=function(){return _IG_DD_select(this)};return g}
function ig_Bb(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){_IG_DD_create(b);c=_gel("DD_"+b)}if(c.style.display=="none"){ig_U=b;var d=_gel("IG_DD_div");d.className="dd_layer";_IG_AddEventHandler("resize",_IG_DD_position);_IG_DD_position();ig_V=ig_b;if(c.hasChildNodes()){var e=c.firstChild;if(e.tagName!="A")e=e.nextSibling;_IG_DD_select(e)}var f=_gel("DD_tg_"+b);f.className+=" ddbox_sel";var g=ig_W[ig_U];g&&g(ig_a)}}
function _IG_DD_position(){var a=_gel("DD_"+ig_U),b=_gel("DD_tg_"+ig_U),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 j=_gel("IG_DD_iframe_cover");j.style.left=a.style.left;j.style.top=a.style.top;j.style.width=a.offsetWidth+"px";j.style.height=a.offsetHeight+"px";j.style.display="block";c.style.height=
ig_C()+"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_U){var b=_gel("DD_"+ig_U);b.style.display="none";_gel("IG_DD_iframe_cover").style.display="none";var c=_gel("DD_tg_"+ig_U);c.className=c.className.replace(/ ddbox_sel/,"");var d=ig_W[ig_U];d&&d(ig_b);if(ig_V){var e=_gel("DD_tg_"+ig_U);e&&e.focus()}ig_V=ig_b;ig_U=ig_}a.className="dd_layer_hidden"}_IG_DD_select(ig_)}
function _IG_DD_gcn(a,b,c){for(var d=new RegExp("(^| )"+c+"( |$)"),e=_gelstn(b,a),f=[],g=0,j;j=e[g];g++)d.test(j.className)&&f.push(j);return f}
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."))throw e;}a.className=a.className+" dd_sel"}}
function _IG_DD_keys(a){function b(g,j){var n=g;do{n=j?n.nextSibling:n.previousSibling;if(!n){var p=g.parentNode;n=j?p.firstChild:p.lastChild}}while(n!=g&&n.tagName!="A");return n}var c=ig_a,d=_IG_DD_gcn(_gel("IG_DD_div"),"a","dd_sel");if(d==ig_||d.length!=1)return ig_a;var e=d[0];if(!a)a=window.event;var f=a.keyCode||a.charCode||a.which;switch(f){case 13:ig_V=ig_a;break;case 38:_IG_DD_select(b(e,ig_b));c=ig_b;break;case 40:_IG_DD_select(b(e,ig_a));c=ig_b;break;case 27:case 9:ig_V=ig_a;c=ig_U==ig_&&
f==9;_IG_DD_hide();break}return c};var ig_X={obj:ig_,init:function(a,b){a.onmousedown=ig_X.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.hc);a.onmousedown=ig_;a.obj=ig_;b.onDragStart=ig_;b.onDragEnd=ig_;b.onDrag=ig_},start:function(a){var b=ig_X.obj=this.obj;a=ig_X.fixE(a);if(a.which!=1)return ig_a;b.onDragStart(a);var c=a.clientY;ig_Y.Zb||
(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.hc=window.setInterval(ig_Cb(b,document.body.scrollHeight>document.documentElement.clientHeight?document.body.scrollHeight:document.documentElement.clientHeight),10);document.onmouseup=ig_X.end;document.onmousemove=ig_X.drag;return ig_b},drag:function(a){a=ig_X.fixE(a);if(a.which==0)return ig_X.end();var b=ig_X.obj,c=a.clientY;ig_Y.Zb||(c+=
document.body.scrollTop);var d=a.clientX;if(b.lastMouseX==d&&b.lastMouseY==c)return ig_b;var e=d+b.offsetMouseX,f=c+b.offsetMouseY;b.style.left=e+"px";b.style.top=f+"px";b.lastMouseX=d;b.lastMouseY=c;b.onDrag(e,f);return ig_b},end:function(){document.onmousemove=ig_;document.onmouseup=ig_;window.clearInterval(ig_X.obj.hc);var a=ig_X.obj.onDragEnd();ig_X.obj=ig_;return a},fixE:function(a){if(typeof a=="undefined")a=window.event;if(typeof a.layerX=="undefined")a.layerX=a.offsetX;if(typeof a.layerY==
"undefined")a.layerY=a.offsetY;if(typeof a.which=="undefined")a.which=a.button;return a}};function ig_Db(a,b,c){if(!a)return[];var d=b=="*"&&a.all?a.all:_gelstn(b,a),e=[];c=c.replace(/\-/g,"\\-");for(var f=new RegExp("(^|\\s)"+c+"(\\s|$)"),g,j=0;j<d.length;j++){g=d[j];f.test(g.className)&&e.push(g)}return e}
var _IG_initDrag=function(a,b){ig_Y.$=a;ig_Y.na=b;ig_Y.J=ig_Db(ig_Y.$,"div","yui-u");if(_old_html){ig_Y.gc=ig_Y.$.tBodies[0].rows[0];ig_Y.J=ig_Y.gc.cells}ig_Y.q=[];for(var c=0,d=0;d<ig_Y.J.length;d++){var e=ig_Y.J[d];if(!(e.className.indexOf("ig_dnd_fixed_col")!=-1||e.style.display=="none"))for(var f=0;f<e.childNodes.length;f++){var g=e.childNodes[f];if(g.tagName=="DIV"){ig_Y.q[c]=g.className!="dm"?new ig_Eb(g):new ig_Fb(g);c++}}}_IG_AddEventHandler("unload",ig_Gb)};
function ig_Gb(){if(ig_Y.q)for(var a=0;a<ig_Y.q.length;a++){ig_Y.q[a].Nb();ig_Y.q[a]=ig_}ig_Y.q=ig_;ig_Y.J=ig_;if(_old_html)ig_Y.gc=ig_;ig_Y.$=ig_}var ig_Y={};ig_Y.ob=navigator.userAgent;ig_Y.Yb=ig_Y.ob.indexOf("Gecko")!=-1;ig_Y.ab=ig_Y.ob.indexOf("Opera")!=-1;ig_Y.Zb=ig_Y.ob.indexOf("Safari")!=-1;ig_Y.vb="IG_pageDivMaskId";ig_Y.ub="IG_moduleDivMaskId";ig_Y.hd=function(){ig_Y.$.style.display="none"};ig_Y.jd=function(){ig_Y.$.style.display=""};ig_Y.G=ig_;
ig_Y.ea=function(){if(!ig_Y.G){ig_Y.G=document.createElement("DIV");ig_Y.G.className="modbox";ig_Y.G.backgroundColor="";ig_Y.G.style.border="2px dashed #aaa";ig_Y.G.innerHTML="&nbsp;"}return ig_Y.G};ig_Y.I=function(a,b){return function(){return a[b].apply(a,arguments)}};
ig_Y.Qb=function(){var a=[];if(ig_Y.na){var b;b=_old_html?ig_Y.na.tBodies[0].rows[0].cells:_gelstn("LI",ig_Y.na);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_Y.na);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_Y.yc=function(){for(var a=ig_Y.Qb(),b=0;b<a.length;b++){var c=a[b];c.isDraggableTo=ig_a;c.pagePosLeft=ig_Y.L(c,ig_a);c.pagePosRight=c.pagePosLeft+c.offsetWidth;c.pagePosTop=ig_Y.L(c,ig_b);c.pagePosBottom=c.pagePosTop+c.offsetHeight}};ig_Y.xc=function(a){for(var b=0;b<ig_Y.q.length;b++){var c=ig_Y.q[b];c.b.pagePosLeft=ig_Y.L(c.b,ig_a);c.b.pagePosTop=ig_Y.L(c.b,ig_b)}for(var d=a.b.nextSibling;d;){d.pagePosTop-=a.b.offsetHeight;d=d.nextSibling}};
ig_Y.L=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_Y.rc=function(a){ig_Y.fc();var b=document.createElement("DIV");b.id=ig_Y.vb;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.Tb){b=b.cloneNode(ig_a);b.id=ig_Y.ub;b.style.height=a.b.offsetHeight-a.v.offsetHeight+"px";b.style.top=a.v.offsetHeight+"px";a.b.appendChild(b)}};
ig_Y.fc=function(){for(var a=[ig_Y.ub,ig_Y.vb],b=0;b<a.length;b++){var c=_gel(a[b]);c&&c.parentNode.removeChild(c)}};ig_Y.Wc=function(){for(var a="",b=0;b<ig_Y.J.length;b++)for(var c=ig_Y.J[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_Fb(a){this.Nb=ig_Hb;this.b=a;this.b.innerHTML="<br />"}function ig_Hb(){this.b=ig_}
function ig_Eb(a){this._urlMouseUp=ig_Ib;this._urlMouseDown=ig_Jb;this._urlClick=ig_Kb;this._dragStart=ig_Lb;this._drag=ig_Mb;this._dragEnd=ig_Nb;this.Jc=ig_Ob;this.pa=ig_Pb;this.Nb=ig_Qb;this.S=ig_b;this.b=a;this.v=_gel(a.id+"_h");this.j=_gel(a.id+"_url");this.Tb=_gelstn("IFRAME",this.b).length>0;this.b.DND_Module=this;if(this.v){this.v.style.cursor="move";ig_X.init(this.v,this.b);this.b.onDragStart=ig_Y.I(this,"_dragStart");this.b.onDrag=ig_Y.I(this,"_drag");this.b.onDragEnd=ig_Y.I(this,"_dragEnd");
if(this.j){this.j.style.cursor="pointer";if(ig_Y.Yb){this.j.onmousedown=ig_Y.I(this,"_urlMouseDown");this.j.onclick=ig_Y.I(this,"_urlClick")}else this.j.onmouseup=ig_Y.I(this,"_urlMouseUp")}}}function ig_Qb(){if(this.v){if(this.j){this.j.onclick=ig_;this.j=this.j.onmouseup=ig_}ig_X.uninit(this.v,this.b);this.b.onDragStart=ig_;this.b.onDrag=ig_;this.v=this.b.onDragEnd=ig_}this.b=ig_}
function ig_Ib(a){a=ig_X.fixE(a);if(this.S||!this.j||!this.j.href||a.which!=1)return ig_a;this.pa("titleclick");if(this.j.target||a.shiftKey)window.open(this.j.href,this.j.target);else document.location=this.j.href;return ig_b}function ig_Jb(a){a=ig_X.fixE(a);a.stopPropagation();return ig_a}function ig_Kb(){if(!this.S&&this.j&&this.j.href){this.pa("titleclick");return ig_a}return ig_b}
function ig_Lb(){ig_Y.xc(this);ig_Y.yc();this.origNextSibling=this.b.nextSibling;var a=ig_Y.ea(),b=this.b.offsetHeight;b-=parseInt(a.style.borderTopWidth,10)*2;var c=this.b.offsetWidth,d=ig_Y.L(this.b,ig_a),e=ig_Y.L(this.b,ig_b);this.b.style.width=c+"px";a.style.height=b+"px";this.b.parentNode.insertBefore(a,this.b.nextSibling);this.b.style.position="absolute";this.b.style.zIndex=10000;this.b.style.left=d+"px";this.b.style.top=e+"px";ig_Y.rc(this);return this.S=ig_b}
function ig_Rb(){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_Mb(a,b){if(!this.S){this.b.style.filter="alpha(opacity=50)";this.b.style.opacity=0.5;this.S=ig_a;this.pa("dragstart")}for(var c=ig_,d=100000000,e=0;e<ig_Y.q.length;e++){var f=ig_Y.q[e],g=a;if(document.body.dir=="rtl"&&f.b.offsetWidth==1)g+=this.b.offsetWidth;var j=Math.sqrt(Math.pow(g-f.b.pagePosLeft,2)+Math.pow(b-f.b.pagePosTop,2));if(!(f==this))if(!isNaN(j))if(j<d){d=j;c=f}}this.D=ig_;var n=ig_Y.Qb();for(e=0;e<n.length;e++){f=n[e];if(f.isDraggableTo){var p=ig_Rb();if(this.b.lastMouseX>=
f.pagePosLeft&&this.b.lastMouseX<=f.pagePosRight&&this.b.lastMouseY+p[1]>=f.pagePosTop&&this.b.lastMouseY+p[1]<=f.pagePosBottom){this.D=f;var h=ig_Y.ea();h.parentNode!=ig_&&h.parentNode.removeChild(h);break}}}for(e=0;e<n.length;e++){f=n[e];if(f.id.indexOf("view")>=0||f.id.indexOf("contents")>=0)if(f==this.D){if(f.className.indexOf(" tab_hover")<0)f.className+=" tab_hover"}else f.className=f.className.replace(/ tab_hover/g,"")}h=ig_Y.ea();if(this.D==ig_&&c!=ig_&&h.nextSibling!=c.b){c.b.parentNode.insertBefore(h,
c.b);if(ig_Y.ab){document.body.style.display="none";document.body.style.display=""}}}
function ig_Nb(){ig_Y.fc();this.Jc()&&ig_Y.Wc();if(this.D){var a=this.D.id.match(/.*?(\d+).*/)[1],b=this.b.id.match(/m_(\d+)/)[1];_xsetp("mt="+b+":"+a);this.b.style.display="none";this.D.className=this.D.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.S&&this.pa("dragend");return ig_a}
function _hideNewUserTip(){var a=_gel("new_user_tip");if(a)a.style.display="none"}
function ig_Ob(){var a=ig_b;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_Y.ea();if(b.parentNode!=ig_){if(b.nextSibling!=this.origNextSibling){b.parentNode.insertBefore(this.b,b.nextSibling);a=ig_a}b.parentNode.removeChild(b)}if(ig_Y.ab){document.body.style.display="none";document.body.style.display=""}if(a&&this.Tb&&(ig_Y.Yb||ig_Y.ab)){var c=_gelstn("IFRAME",this.b)[0],d=this.b.id.substring(2),e=
_IG_Prefs._updatePrefsInUrl(d,c.src);if(c.src!=e)c.src=e}return a}function ig_Pb(a){switch(a){case "titleclick":_IG_TriggerModuleEvent(this.b.id,a,this.j.href);_IG_TriggerEvent("module"+a,this.b.id,this.j.href);break;case "dragstart":case "dragend":_IG_TriggerDelayedModuleEvent(this.b.id,a);_IG_TriggerDelayedEvent("module"+a,this.b.id);break}}
function ig_Cb(a,b){return function(){var c=ig_Sb(),d=ig_Rb(),e=d[1],f=4,g=0.05*c,j=e,n=a.offsetTop;if(a.lastMouseY<=g){n=a.offsetTop-f;j=e-f}else if(a.lastMouseY>=c-g){n=Math.min(b-a.offsetHeight,a.offsetTop+f);j=Math.min(b-c,e+f)}var p=j-e;if(p!=0){window.scrollBy(0,p);a.style.top=n+"px"}}}
function ig_Sb(){var a;a=window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.offsetHeight;if(a<document.body.clientHeight)return a;return document.body.clientHeight}_IG_AddCustomEventHandler("initdrag",function(a,b){_IG_initDrag(a,b)});_exportSymbols("",["IG_DND",ig_Y]);window._IG_PU=function(){var a=ig_a,b;function c(d){if(!arguments.callee.calledOnce){var e={IG_PU_box:"div",IG_PU_iframe_cover:"iframe",IG_PU_bg:"div"};for(var f in e){var g=document.createElement(e[f]);g.id=f;g.style.display="none";document.body.insertBefore(g,document.body.firstChild)}arguments.callee.calledOnce=ig_a}return _gel(d)}return{open:function(d,e,f,g,j){a=typeof e=="string";var n=c("IG_PU_box");if(n&&n.style.display=="none"){f||(f=[_IG_PU_MakeDialogButton("Save"),_IG_PU_MakeDialogButton("Cancel")]);
var p=['<table class=dialog id=IG_PU_dlg cellspacing=0 cellpadding=0><tr><td><div class=outerborder><div class="border titlebar">',d,'</div><div class="border body" id=dialogcontent>',a?e:"",ig_Tb(f),"</div></td></tr></table>"].join("");ig_Ub(p,g,a?ig_:e,j)}},openUrl:function(d,e,f,g,j,n,p){var h=_IG_PU_createSimpleTitle(d)+(e||""),l=['<div class=url><iframe id=popup_iframe style="width:',g,';height:0px;" src="',f,'" onload="_ResizeIframeHeight();" scrolling=no frameborder=0></iframe><div class=c></div>',
ig_Tb(j,"colored_background")].join("");window._IG_PU.open(h,l,[],n,p)},hide:function(d){var e=_gel("button_"+d);if(!(e&&e.firstChild&&e.firstChild.disabled)){c("IG_PU_box").style.display="none";c("IG_PU_iframe_cover").style.display="none";var f=c("IG_PU_bg");f.onclick="";f.style.height="";f.style.width="";if(!a){var g=_gel("dialogcontent").firstChild;d!=_DI_button_type.OK&&g.nodeName=="FORM"&&g.reset();setTimeout(function(){var p=_gel("popup_box_placeholder");p.parentNode.insertBefore(_gel("dialogcontent").firstChild,
p);p.parentNode.removeChild(p)},1000)}var j=_gel("popup_iframe"),n=j&&j.contentWindow.getPopupData?j.contentWindow.getPopupData():ig_;_IG_RemoveEventHandler("resize",j?_ResizeIframeHeight:ig_Z);_IG_RemoveDOMEventHandler(window,"scroll",ig_Z);b(d,n)}},createSimpleTitle:function(d){return["<div class=popup_title>",d,'</div><div class=popup_title_buttons><a onclick="_IG_PU_hide(_DI_button_type.Close);" class=delbox  href="javascript:void(0)"></a></div><div class=c></div>'].join("")},findFocusable:function(d,
e,f){if(!d.disabled){var g=d.nodeName.toLowerCase();if(g=="input"||g=="button")return d;if(!f){if(g=="a"&&ig_Vb(d,"href"))return d;if(d.nodeType==1&&ig_Vb(d,"tabindex")&&d.tabIndex!=-1)return d}}if(!d.hasChildNodes())return ig_;var j=d.childNodes;if(e)for(var n=0,p;p=j[n];n++){var h=ig__(p,e,f);if(h)return h}else for(n=j.length-1;p=j[n];n--)if(h=ig__(p,e,f))return h;return ig_},makeDialogButton:function(d,e,f,g){var j=["<input type=button"];e&&j.push(' id="'+e+'"');f&&j.push(' class="'+f+'"');g&&
j.push(' onclick="'+g+'"');j.push(' value="',d,'"></input>');return j.join("")},disableHideForButton:function(d){var e=_gel("button_"+d);if(e)e.onclick=function(){}},createSimpleInputBox:function(d,e,f){return['<div class="popup_body thinpadding"><form onsubmit="_IG_PU_hide(_DI_button_type.OK); return false;"><table cellspacing=0 cellpadding=0 border=0><tr><td class=sidepadding>',_hesc(e),'</td><td class=sidepadding><input id="',_hesc(d),'" name="',_hesc(d),'" ','type=text size=45 value="'+_hesc(f)+
'"></td>',"</tr></table></form></div>"].join("")},hasAttr:function(d,e){if(d.getAttributeNode){var f=d.getAttributeNode(e);return f?f.specified:ig_b}return d.getAttribute(e)!=ig_},limitFocus:function(d){d=d||window.event;var e=d.target||d.srcElement,f=d.keyCode||d.charCode||d.which;if(f==9){var g=ig__(this,ig_a,ig_b);if(!g)return ig_a;var j=ig__(this,ig_b,ig_b);if(e==g&&d.shiftKey&&!(d.ctrlKey||d.altKey)){j.focus();return ig_b}else if(e==j&&!(d.shiftKey||d.ctrlKey||d.altKey)){g.focus();return ig_b}}return ig_a},
buildButtons:function(d,e){if(!d||!d.length)return"";var f=['<div id=buttons class="button_background'];e&&f.push(" "+e);f.push('"><table class=buttontable cellspacing=0 cols=');f.push(d.length,"><tr>");for(var g=0;g<d.length;++g){f.push("<td align=center>");f.push('<span id="button_',g,'" ');f.push('onclick="_IG_PU_hide(',g,')">');f.push(d[g]);f.push("</span>");f.push("</td>")}f.push("</tr></table></div></div>");return f.join("")},showDialog:function(d,e,f,g){var j=3000,n=c("IG_PU_bg"),p=n.style;
p.zIndex=j;p.background="#000";ig_Wb(n,ig_a);p.position="absolute";n.onclick=function(){};p.display="none";p.left="0px";p.top="0px";var h=c("IG_PU_box"),l=c("IG_PU_iframe_cover");h.innerHTML=d;if(!a&&f){var m=document.createElement("div");m.id="popup_box_placeholder";m.style.display="none";f.parentNode.insertBefore(m,f);_gel("dialogcontent").insertBefore(f,_gel("dialogcontent").firstChild)}var i=h.style;i.position="absolute";i.zIndex=j+1;var k=l.style;k.position="absolute";i.visibility="hidden";i.display=
"block";ig_Z();i.visibility="visible";k.display="";p.display="block";_IG_AddEventHandler("resize",_gel("popup_iframe")?_ResizeIframeHeight:ig_Z);_IG_AddDOMEventHandler(window,"scroll",ig_Z);_gel("IG_PU_dlg").onkeydown=ig_Xb;e=e||function(){};if(g&&g.length){for(var q=[],o=0;o<g.length;++o){var r=_gel(g[o]);if(r){q.push(g[o]);r.setAttribute("old_position",r.style.position);r.setAttribute("old_left",r.style.left);r.style.position="relative";r.style.left="-99999px"}}b=function(t,u){e(t,u);for(var v=
0;v<q.length;++v){var w=_gel(q[v]);if(w){w.style.position=w.getAttribute("old_position");w.style.left=w.getAttribute("old_left")}}}}else b=e;var s=ig__(h,ig_a,ig_a);s&&s.focus()},position:function(){var d=c("IG_PU_box");if(!(d.style.display!="block")){var e=c("IG_PU_iframe_cover"),f=c("IG_PU_bg"),g=document.body.clientWidth,j=window.innerHeight;if(!j)j=document.documentElement.offsetHeight;var n=d.offsetHeight<j,p=d.style;if(d){var h=(g-d.offsetWidth)/2,l=Math.max((j-d.offsetHeight)/2+ig_D(),0);if(!n&&
p.top)l=parseInt(p.top,10);p.left=h+"px";p.top=l+"px";var m=e.style;m.left=h+"px";m.top=l+"px";m.width=d.offsetWidth+"px";m.height=d.offsetHeight+"px"}if(f){var i=parseInt(p.top,10)+d.offsetHeight,k=Math.max(ig_C(),j,i);f.style.height=k+"px";f.style.width=document.body.clientWidth+"px"}}},toggleTransparency:function(d,e){var f=d.style;if("opacity"in f)f.opacity=e?0.5:1;else if("MozOpacity"in f)f.MozOpacity=e?0.5:1;else if("filter"in f)f.filter=e?"alpha(opacity=50)":"alpha(opacity=100)"},resizeIframeHeight:function(){var d=
_gel("popup_iframe");if(d){var e=d.style;e.height=ig_C(d.contentWindow.document.body)+"px";e.display="block";e.display=""}ig_Z()}}}();
var _DI_button_type={Close:-1,OK:0,Cancel:1},_IG_PU_hide=window._IG_PU.hide,_IG_PU_open=window._IG_PU.open,_IG_PU_openURL=window._IG_PU.openUrl,_IG_PU_disable_hide_for_button=window._IG_PU.disableHideForButton,_IG_PU_MakeDialogButton=window._IG_PU.makeDialogButton,_ResizeIframeHeight=window._IG_PU.resizeIframeHeight,ig_Wb=window._IG_PU.toggleTransparency,_IG_PU_createSimpleTitle=window._IG_PU.createSimpleTitle,ig__=window._IG_PU.findFocusable,ig_Vb=window._IG_PU.hasAttr,ig_Xb=window._IG_PU.limitFocus,
ig_Tb=window._IG_PU.buildButtons,ig_Z=window._IG_PU.position,ig_Ub=window._IG_PU.showDialog;function _IG_PU_init(){}function _IG_PU_IGNORE(){};function _hide_sent_content_messages(){_gel("sent_content_msg").className="hidden_msg";_gel("sent_tab_box").className="hidden_msg_box";_gel("send_tab_error_box").className="hidden_msg_box";_gel("sent_gadget_box").className="hidden_msg_box"}var ig_0=ig_;
function _share_gadget(a,b,c,d,e,f,g,j){if(d){_hide_sent_content_messages();if(!ig_0)ig_0=_gel("sent_gadget_box").innerHTML;_gel("sent_gadget_box").innerHTML=ig_0.replace("GADGET_NAME",_get_module_title(d))}if(g)var n="_gel('popup_iframe').contentWindow.prepareEmail(_gel('share_userprefs') ? _gel('share_userprefs').checked : false)";else n="_gel('popup_iframe').contentWindow.prepareEmail();";var p=['<input type="button" id="send_btn" disabled="true" onclick="'+n+'" value="'+e+'"></input>',_IG_PU_MakeDialogButton(f)],
h="titlebar userprefs userprefs_border",l=_get_userprefs_checkbox_html(g,j,h);_IG_PU_openURL(a,l,b,c,p,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_0)ig_0=_gel("sent_gadget_box").innerHTML;_gel("sent_gadget_box").innerHTML=ig_0.replace("GADGET_NAME",_get_module_title(c))}var e=d||function(){},f=function(g,j){e(g,j);c&&_finish_sharing_gadget(g)};_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,g){var j='<iframe id="popup_iframe" width="100%" height="0px" src="'+_hesc(b)+'" onload="_ResizeIframeHeight();" scrolling="no"></iframe>',n="_gel('popup_iframe').contentWindow.storeTabAndPrepareEmail(_find_unshared_gadgets(), _gel('share_userprefs') ? _gel('share_userprefs').checked : false);",p=['<input type="button" id="send_btn" disabled="true" onclick="'+_hesc(n)+'" value="'+_hesc(f)+'"></input>',_IG_PU_MakeDialogButton(g)];if(_uli){for(var h=
_get_all_modules(),l=Math.max(h.length*160,400),m=7,i=0,k=0;k<h.length;k++)if(h[k].length>i)i=h[k].length;var q=i>m&&c!="NO_TRANSLATION",o=[a];o.push('<form id="module_list">');o.push('<table class="titlebar module_list_table" ','cols="',h.length,'"',' width="',l,'px">');q?o.push('<tr class="zipped_modules" id="module_list_zipper">'):o.push('<tr class="unzipped_modules">');for(var r=0;r<h.length;r++){o.push('<td width="',100/h.length,'%" ','valign="top">');for(var s=0;s<h[r].length;s++){var t=_hesc(h[r][s].id.replace("m_",
"")),u=_hesc(_get_module_title(h[r][s]));o.push('<div class="module_item');s>=m&&q&&o.push(" extra_items");o.push('">');o.push('<input id="share_',t,'" type="checkbox"'," checked ></input>");o.push('<label for="share_',t,'">',u,"</label>");o.push("</div>")}o.push("</td>")}o.push("</tr>");if(q){o.push('<tr class="zipped_module_list">');o.push('<td id="show_all_modules" colspan="',h.length,'" style="font-size:80%;text-align:center;">');o.push('<a href="javascript:void(0);" id="zipper_text"',' onclick="_modules_zipper();">');
o.push(c,"</a>");o.push("</td></tr>")}o.push("</table>");o.push(_get_userprefs_checkbox_html(d,e,"userprefs"));o.push("</form>");_IG_PU_open(o.join(""),j,p);_IG_PU_disable_hide_for_button(0);_gel("dialogcontent").className+=" url";_gel("buttons").className+=" colored_background"}else{_IG_PU_open(a,j,p);_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_a)}else{_gel("share_userprefs_alert").style.display="none";_gel("popup_iframe").contentWindow.shouldShareUserprefs(ig_b)}}
function _get_userprefs_checkbox_html(a,b,c){var d=[];if(a&&a!=""){d.push('<div class="',c,'">');d.push('<input id="share_userprefs" type="checkbox"');b!=""&&d.push(' onclick="_show_shared_userprefs_alert();"');d.push("></input>");d.push('<label for="share_userprefs">',a,"</label>");b!=""&&d.push('<div class="userprefs_alert"',' id="share_userprefs_alert">',b,"</div>");d.push("</div>")}return d.join("")}
function _modules_zipper(){if(_gel("module_list_zipper").className=="zipped_modules"){_gel("module_list_zipper").className="unzipped_modules";_gel("show_all_modules").style.display="none"}_ResizeIframeHeight()}function _find_unshared_gadgets(){for(var a=_gel("module_list").elements,b=[],c=0;c<a.length;c++)ig_Yb(a[c])||(b[b.length]=a[c].id.replace("share_",""));return b}
function ig_Yb(a){if(a&&a.tagName=="INPUT"){var b=_gel("module_list_zipper"),c=b&&/unzipped_modules/.test(_gel("module_list_zipper").className),d=/extra_items/.test(a.parentNode.className),e=!b||c||!d;return a.checked&&e}return ig_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_w("m",b),e=d.mt,f=_gel("remote_iframe_"+b),g=f&&f.src;ig_s(a,"sn",d.sn);ig_s(a,"ifr",g?"1":"0");if(c||!g){_fsetp(a,b,e);return ig_a}for(var j=a.elements,n=[],p=[],h=0;h<j.length;++h){var l=j[h].name,m=j[h].value;if(l&&l!="url"){n.push(_esc(l)+"="+_esc(m));var i=l.match(/^m_\d+_up_(.*)$/);if(i){p.push(i[1]);p.push(m)}}}_xsetp(n.join("&"));_closeUserPrefs(b);_IG_Prefs._setPrefs(b,p);var k=(new Date).getTime(),q=f.onload;f.onload=function(){var s=(new Date).getTime()-
k,t=d.sn;_sendx(["/ig/ui?action=refreshIfr&m=",_esc(t),"&ol=",s].join(""));typeof q=="function"&&q();f.onload=q};var o=f.src,r=_IG_Prefs._updatePrefsInUrl(b,o);if(o==r)r=ig_f(o);f.src=r;return ig_b};function _IG_FRUC_init(){ig_1b();ig_2b()}function ig_3b(a){return function(b){b||ig_4b(ig_w("m",a,"i"))}}function ig_1b(){for(var a in ig_w("m")){var b=ig_w("m",a);b.mt==25&&_IG_RegisterMaximizeHandler(b.i,ig_3b(a))}}function ig_5b(a){return function(b){ig_6b(a,b)}}function ig_4b(a){var b=ig_w("m",a);b&&b.mt==25&&_sendx("/ig/unreadcounts?feed="+b.u,ig_5b([a]))}
function ig_2b(){var a=[],b=[],c=[],d=0;for(var e in ig_w("m")){var f=ig_w("m",e);if(f.mt==25){a.push(_hesc(f.u));b.push(f.i);if(f.fa&&f.fa.length>0){for(var g=[],j=0;j<f.fa.length;++j)g.push(f.fa[j].i);c.push(g.join(","))}else c.push("");d++}}a.length==0||_sendx("/ig/unreadcounts?feed="+a.join("&feed=")+"&fa="+c.join("&fa="),ig_5b(b))}
function ig_6b(a,b){if(b){var c=eval("("+b+")");if(c&&c.uc&&c.uc.length==a.length)for(var d=0;d<a.length;++d){var e=ig_w("m",a[d]);if(e){var f=c.uc[d];e.uc=f;ig_7b(e,f);var g=c.ua[d];if(e&&e.fa&&g&&e.fa.length==g.length)for(var j=0;j<e.fa.length;++j)e.fa[j].rs=g[j]}}}}function ig_7b(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_w("f","show_feed_unread_counts")&&ig_w("m",a,"fa",b)){var c=ig_w("m",a);if(c.fa[b].rs==1){if(c.uc){c.uc--;ig_7b(c,c.uc);_sendx("/ig/markfeed?feed="+c.u+"&fa="+c.fa[b].i)}c.fa[b].rs=ig_b}}};function _IG_hoverModule(a,b){var c=_gel("m_"+a);ig_8b(a,b,c,"modhover")}function _IG_hoverHeader(a,b){var c=_gel("m_"+a+"_drag");if(c)c.style.display=b?"":"none";var d=_gel("m_"+a+"_home_menu");d&&ig_8b(a,b,d,"titlehover")}function ig_8b(a,b,c,d){if(b)ig_4.isModuleMaximized(a)||ig_aa(c,d);else ig_d(c,d,ig_)};function _IG_inherits(a,b){function c(){}c.prototype=b.prototype;a.$c=b.prototype;a.prototype=new c;a.prototype.constructor=a};function ig_5(){}ig_5.prototype._onPreDetachDashboard=function(){};ig_5.prototype._onPostDetachDashboard=function(){};ig_5.prototype._onPreAttachMaximized=function(){};ig_5.prototype._onPostAttachMaximized=function(){};ig_5.prototype._onPreDetachMaximized=function(){};ig_5.prototype._onPostDetachMaximized=function(){};ig_5.prototype._onPreAttachDashboard=function(){};ig_5.prototype._onPostAttachDashboard=function(){};
ig_5.create=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_6(a){ig_5.call(this);this.d=a;this.Ib=""}_IG_inherits(ig_6,ig_5);ig_6.prototype.l=function(){return _gel("remote_iframe_"+this.d)};
ig_6.prototype.Ya=function(){var a=this.l();a&&(a.src="")};ig_6.prototype.Q=function(){var a=this.l();if(a)a.src=_IG_Prefs._updatePrefsInUrl(this.d,a.src)};ig_6.prototype._onPreAttachMaximized=function(){var a=_gel("m_"+this.d+"_b");this.Ib=a.className;a.className="modboxin_max";ig_4.removeRoundedCorners(this.d);_gel("rcam_t1").className="rnd1_max_top";_gel("rcam_t2").className="rnd2_max_top";_gel("rcam_t3").className="rnd3_max_top"};
ig_6.prototype._onPreAttachDashboard=function(){var a=_gel("m_"+this.d+"_b");a.className=this.Ib;ig_4.restoreRoundedCorners(this.d);_gel("rcam_t1").className="rnd1";_gel("rcam_t2").className="rnd2";_gel("rcam_t3").className="rnd3"};ig_6.prototype.kb=function(a,b,c){b.style.width="200px";c=c||0;var d=_max(200,_IG_isIE()?a.scrollWidth-c:a.offsetWidth);b.style.width=d+"px"};
function _IG_iFrameTransitionStrategy(a,b,c,d){ig_6.call(this,a);this.W=b;this.R=d||ig_b;this.ca="";this.Ea=c||"800px";this.Lb=this.Jb=this.Kb=this.Ca=ig_;if(this.R){var e=this;this.P=function(){e.yb.call(e)}}}_IG_inherits(_IG_iFrameTransitionStrategy,ig_6);_IG_iFrameTransitionStrategy.prototype.yb=function(){this.kb(_gel("remote_"+this.d),this.l())};
_IG_iFrameTransitionStrategy.prototype._onPreDetachDashboard=function(){if(this.ca=="")for(var a=0;a<remote_modules.length;a++){var b=remote_modules[a];if(b.id==this.d)this.ca=b.base_iframe_url}this.Lb=_isModuleZipped(this.d)};_IG_iFrameTransitionStrategy.prototype._onPostDetachMaximized=function(){this.Ya()};
_IG_iFrameTransitionStrategy.prototype._onPostAttachMaximized=function(){var a=this.l(),b=_gel("m_"+this.d),c=_gel("m_"+this.d+"_b");this.Kb=b.style.height;this.Jb=c.style.height;this.Ca=a.style.height;if(this.R){_IG_AddEventHandler("resize",this.P);this.P()}a.src=this.W;a.style.height=this.Ea;this.Q()};
_IG_iFrameTransitionStrategy.prototype._onPostAttachDashboard=function(){var a=this.l(),b=_gel("m_"+this.d),c=_gel("m_"+this.d+"_b");if(this.Ca!=ig_){a.style.height=this.Ca;a.style.width="100%";b.style.height=this.Kb;c.style.height=this.Jb}if(this.Lb)_IG_AddEventHandler("moduleunzip",this.mc());else{a.src=this.ca;this.Q()}};_IG_iFrameTransitionStrategy.prototype._onPreDetachMaximized=function(){this.R&&_IG_RemoveEventHandler("resize",this.P)};
_IG_iFrameTransitionStrategy.prototype.mc=function(){var a=this;return function(){a.l().src=a.ca;a.Q();_IG_RemoveEventHandler("moduleunzip",this)}};function _IG_inlinedTransitionStrategy(a,b,c,d){ig_6.call(this,a);this.W=b;this.Ha="max_div";this.Ub="max_iframe";this.Ea=c||"800px";this.R=d||ig_b;this.ib=this.hb=ig_;if(this.R){var e=this;this.P=function(){e.bc.call(e)}}}_IG_inherits(_IG_inlinedTransitionStrategy,ig_6);_IG_inlinedTransitionStrategy.prototype.l=function(){return _gel(this.Ub)};
_IG_inlinedTransitionStrategy.prototype._updateIframeSrc=function(a){this.W=a;var b=this.l();if(b)b.src=a};_IG_inlinedTransitionStrategy.prototype._setNextMaxIframeAddress=function(a){this.W=a};_IG_inlinedTransitionStrategy.prototype._setPostMaximizeCallback=function(a){if(!a||typeof a=="function")this.hb=a};_IG_inlinedTransitionStrategy.prototype._setPostRestoreCallback=function(a){if(!a||typeof a=="function")this.ib=a};
_IG_inlinedTransitionStrategy.prototype.bc=function(){this.kb(_gel("max_div"),this.l(),25)};
_IG_inlinedTransitionStrategy.prototype._onPostAttachMaximized=function(){var a=_gel(this.Ha),b=this.l(),c=_gel("m_"+this.d+"_b");if(!a){a=document.createElement("DIV");a.id=this.Ha}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.Ub;a.appendChild(b)}if(this.R)_IG_AddEventHandler("resize",this.P);else{_IG_RemoveEventHandler("resize",this.P);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.Ea;b.src=_IG_Prefs._updatePrefsInUrl(this.d,this.W);this.hb&&this.hb(this);return b.src};_IG_inlinedTransitionStrategy.prototype._onPostDetachMaximized=function(){this.Ya()};_IG_inlinedTransitionStrategy.prototype._onPostAttachDashboard=function(){var a=_gel(this.Ha);a.style.display="none";var b=this.l();if(b)b.src="";this.ib&&this.ib(this)};
_IG_inlinedTransitionStrategy.prototype._onPreAttachDashboard=function(){_IG_inlinedTransitionStrategy.$c._onPreAttachDashboard.call(this);window.onresize=ig_};function _IG_scaleInlinedTransitionStrategy(a){ig_6.call(this,a)}_IG_inherits(_IG_scaleInlinedTransitionStrategy,ig_6);_IG_scaleInlinedTransitionStrategy.prototype._onPostAttachMaximized=function(){var a=_gel("m_"+this.d+"_b");a.style.display="block"};function _IG_noMaxSupportTransitionStrategy(a,b){ig_6.call(this,a);this.nb=b}
_IG_inherits(_IG_noMaxSupportTransitionStrategy,ig_6);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_noMaxSupportTransitionStrategy.prototype._onPostAttachDashboard=function(){this.Q()};
_IG_noMaxSupportTransitionStrategy.prototype._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";var d=_gel("max_ifr2");if(d)d.src=this.nb&&this.nb.length?"/ig/directory"+_qs()+"output=brief&recommend="+this.nb:"";this.Q()};_IG_noMaxSupportTransitionStrategy.prototype._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_noMaxSupportTransitionStrategy.prototype._onPreAttachMaximized=function(){};
_IG_noMaxSupportTransitionStrategy.prototype._onPreAttachDashboard=function(){};var ig_4=new (function ViewManagerClass(){this.va="modules";this.ta="dash_ph";this.ra="max_ph";this.p=ig_;this.Pb="";this.Vb=ig_;if(window.onbeforeunload){var b=window.onbeforeunload;window.onbeforeunload=function(){b();ig_4.onCommitServerState()}}else window.onbeforeunload=function(){ig_4.onCommitServerState()}});ig_4._getCurrentMaxId=function(){return ig_4.p};
ig_4.onCommitServerState=function(){if(this.p!=this.Vb){var a=ig_p(),b="/ig/setp?et="+_et+"&maxm="+(this.p?this.p:"-1");a.open("GET",b,ig_b);a.send(ig_)}};ig_4.setInitialMaximizedModuleId=function(a){this.Vb=a};ig_4.setExperimentName=function(a){this.Pb=a};ig_4.swapMaximizedModule=function(a){if(!(this.p==a))if(this.p){this.restoreModule(this.p);this.maximizeModule(a)}else this.maximizeModule(a)};ig_4.restoreView=function(){this.p&&this.restoreModule(this.p)};
ig_4.isModuleMaximized=function(a){return this.p==a};ig_4.getStrategy=function(a){var b=_max_strategies[a];if(b==ig_){var c=ig_w("m",a);if(c){b=ig_5.create(a,c);_max_strategies[a]=b}}return b};ig_4.maximizeModule=function(a){var b=this.getStrategy(a);b._onPreDetachDashboard();this.Ec(a);b._onPostDetachDashboard();b._onPreAttachMaximized();this.vc(a);b._onPostAttachMaximized();this.p=a;_IG_suspend_refresh_cycle()};
ig_4.restoreModule=function(a){var b=this.getStrategy(a);b._onPreDetachMaximized();this.Fc(a);b._onPostDetachMaximized();b._onPreAttachDashboard();this.tc(a);b._onPostAttachDashboard();this.p=ig_;_IG_restart_refresh_cycle()};ig_4.Xc=function(a){this.jb=function(){_IG_minimize_view(a,"delete",this.Pb)};_IG_AddModuleEventHandler(a,"delete",this.jb)};ig_4.Bc=function(a){this.jb&&_IG_RemoveModuleEventHandler(a,"delete",this.jb)};
ig_4.Ec=function(a){var b=_gel(this.ta);if(b==ig_){b=document.createElement("DIV");b.id=this.ta;b.style.display="none"}var c=_gel("m_"+a),d=_gel(this.va).parentNode;c.parentNode.replaceChild(b,c);d.appendChild(c);b.style.display="block";b.style.height=c.clientHeight+"px";this.Eb(a)};
ig_4.vc=function(a){var b=_gel(this.ra);if(b==ig_){b=document.createElement("DIV");b.id=this.ra;b.style.display="none"}var c=_gel("m_"+a),d=_gel(this.va);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.Gc(a);this.Xc(a);_IG_TriggerEvent("modulemaximize",a);_IG_TriggerModuleEvent(a,"maximize")};
ig_4.Fc=function(a){var b=_gel(this.va),c=_gel(this.ra);c.style.display="";b.style.display="";var d=_gel("m_"+a);d.className=d.className.replace(/modbox_max/,"modbox");this.Eb(a)};ig_4.tc=function(a){var b=_gel(this.ta),c=_gel("m_"+a);b.parentNode.replaceChild(c,b);b.style.display="none";this.Ic(a);this.Bc(a);_IG_TriggerEvent("moduleunmaximize",a);_IG_TriggerModuleEvent(a,"unmaximize")};
ig_4.Gc=function(a){var b=_gel("m_"+a),c=_gel("m_"+a+"_h");b.parentNode.className+=" ig_dnd_fixed_col";c.style.cursor="default";ig_Gb()};ig_4.Ic=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_4.Eb=function(a){_IG_hoverModule(a,ig_b);_IG_hoverHeader(a,ig_b)};
ig_4.Rb=function(a){for(var b=_gel(a),c=b.childNodes,d=[],e=0;e<c.length;++e)if(c[e].className&&(c[e].className.indexOf("rnd_modtitle")==0||c[e].className.indexOf("rnd_modboxin")==0))for(var f=0;f<c[e].childNodes.length;++f)d[d.length]=c[e].childNodes[f];return d};ig_4.removeRoundedCorners=function(a){for(var b=this.Rb("m_"+a),c=0;c<b.length;++c)b[c].className+="_max"};
ig_4.restoreRoundedCorners=function(a){for(var b=this.Rb("m_"+a),c=0;c<b.length;++c)b[c].className=b[c].className.replace(/_max/,"")};
var _IG_maximize_persistent_module=function(a,b){if(!window.location.hash.slice(1)){ig_4.setInitialMaximizedModuleId(a);_IG_maximize_view(a,"persist",b)}},_IG_toggle_view=function(a){ig_4.swapMaximizedModule(a)},_IG_is_maximized_module=function(a){return ig_4.isModuleMaximized(a)},_IG_maximize_view=function(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";var e=["/ig/ui?xp=",c||"","&action=maximizeMod","&from=",
b,"&m=",a,"&sn=",ig_w("m",a,"sn")];window["FEED"+a]&&e.push("&mt=feed");_sendx(e.join(""),ig_,ig_b,ig_);if(!ig_4.isModuleMaximized(a)){ig_4.setExperimentName(c);ig_4.swapMaximizedModule(a)}}},_IG_minimize_view=function(a,b,c){_IG_OS_hideGadgetInvitesManager();_IG_OS_hideUpdates();if(b==ig_)b="dunno";var d=["/ig/ui?xp=",c||"","&action=minimizeMod","&from=",b,"&m=",a,"&sn=",ig_w("m",a,"sn")];_sendx(d.join(""),ig_,ig_b,ig_);ig_4.isModuleMaximized(a)&&ig_4.restoreModule(a)},_IG_restore_view=function(){_IG_OS_hideGadgetInvitesManager();
ig_4.restoreView()},_IG_getCurrentMaxId=ig_4._getCurrentMaxId;_exportClass("gadgets.views","ViewManager",ig_4,ig_,["isModuleMaximized",ig_4.isModuleMaximized,"getCurrentMaxId",ig_4._getCurrentMaxId]);var ig_7=function(){this.ba="";this.POLLING_INTERVAL=150;this.qa=_IG_isIE();this.aa=[];window.location.hash.slice(1);var a=this;_IG_callPostLoad(function(){_IG_AddDOMEventHandler(window,"load",function(){a.Ua()})})};ig_7.prototype.Ua=function(){var a=this;if(!(window._gjuc&&window._gjuc()==1)){window.setTimeout(function(){a.Ua()},this.POLLING_INTERVAL);var b=this.Sb();if(b!=this.ba){this.db(b);this.ba=b;if(this.qa)window.location.hash="#"+(b||"home")}}};
ig_7.prototype.Ma=function(){try{if(this.qa&&!this.Wa){this.Wa=_gel("ighistory");var a=this.Wa.contentWindow.document,b=window.location.hash.slice(1);a.open();a.write("<head></head><body>"+_esc(b)+"</body>");a.close()}return this.Wa.contentWindow.document}catch(c){return undefined}};ig_7.prototype.Sb=function(){if(this.qa){var a=this.Ma();return a?_unesc(a.body.innerHTML):""}else return window.location.hash.slice(1)};
ig_7.prototype.ic=function(a){if(!(a==this.ba)){this.ba=a;this.db.apply(this,arguments);window.location.hash="#"+a;if(this.qa){var b=this.Ma();if(b){b.open();b.write("<head></head><body>"+_esc(a)+"</body>");b.close()}}}};ig_7.prototype.db=function(a){for(var b=0;b<this.aa.length;++b)if(this.aa[b][0].test(a)){this.aa[b][1].apply(undefined,arguments);return}};ig_7.prototype.xb=function(a,b){this.aa.push([a,b])};var ig_8;if(window._IG_CONTAINER)ig_8=new ig_7;
function _IG_PushHistory(){ig_8&&ig_8.ic.apply(ig_8,arguments)}function _IG_AddHistoryCallback(a,b){ig_8&&ig_8.xb(a,b)}_IG_AddHistoryCallback(/^max\d+$/,function(a,b,c){var d=a.substr(3);if(b==ig_)b="history";_IG_maximize_view(d,b,c)});_IG_AddHistoryCallback(/^min\d+$/,function(a,b,c){var d=a.substr(3);b==ig_?_IG_restore_view():_IG_minimize_view(d,b,c)});_IG_AddHistoryCallback(/^restore$/,_IG_restore_view);
_IG_AddHistoryCallback(/^$/,function(){var a=_args();a.g?_IG_maximize_view(a.g,"history",""):_IG_restore_view()});var _IG_Json=ig_K;var _IG_ViewType={CANVAS:"canvas",HOME:"home",PROFILE:"home",PREVIEW:"preview"},_IG_View=function(a,b){this.Sc=a;this.Qc=!!b};_IG_View.prototype.Ra=function(){return this.Sc};_IG_View.prototype.$a=function(){return this.Qc};var _IG_SupportedViews={};_IG_SupportedViews.CANVAS=new _IG_View(_IG_ViewType.CANVAS,ig_a);_IG_SupportedViews.canvas=new _IG_View(_IG_ViewType.CANVAS,ig_a);_IG_SupportedViews.HOME=new _IG_View(_IG_ViewType.HOME,ig_b);_IG_SupportedViews.home=new _IG_View(_IG_ViewType.HOME,ig_b);
_IG_SupportedViews.PROFILE=new _IG_View(_IG_ViewType.PROFILE,ig_b);function ig_9b(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){var d=_IG_Json.stringify(c);_gel("remote_iframe_"+a).src+="&view-params="+_esc(d)}return ig_a}var _IG_NavigateToGadget=ig_9b;function ig_$b(a){return _IG_is_maximized_module(a)?_IG_SupportedViews.CANVAS:_IG_SupportedViews.HOME}
var _IG_GetCurrentView=ig_$b;function ig_ac(a){var b=_gel("remote_iframe_"+a).src,c=_argsUrl(b),d=_IG_Json.parse(_unesc(c["view-params"]));return d}var _IG_GetViewParams=ig_ac;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.Ra,"isOnlyVisibleGadget",_IG_View.prototype.$a]);var ig_9=function(){var a=ig_b;function b(h,l){return function(m,i){ig_9.requestShareAppCallback(h,l,_IG_Json.parse(i))}}function c(){var h=_gel("maximized_container");if(!h){h=document.createElement("div");h.id="maximized_container";_gel("modules").parentNode.appendChild(h)}return h}function d(){var h=_gel("gadget_invite_items");if(!h){h=document.createElement("div");h.id="gadget_invite_items";h.className="gadget_invite_items";_IG_AddDOMEventHandler(h,"click",ig_9.handleInviteClick)}return h}function e(h){for(var l=
ig_9.gadgetInvites.invite,m=0;m<l.length;m++)if(l[m].osit==h)return l[m];return ig_}function f(h){for(var l=ig_9.gadgetInvites.invite,m=0;m<l.length;m++)if(l[m].osit==h){ig_9.gadgetInvites.invite.splice(m,1);ig_9.setPendingInvites(ig_9.gadgetInvites.invite.length,ig_9.hasNewPendingInvites)}}function g(h,l){var m=_gel("gadget_invite_content_"+h),i=document.createElement("div");i.className="gadget_invite_content_item cl ie_content_fix";var k=document.createElement("span");k.className="action_message";
k.innerHTML=l;i.appendChild(k);m.appendChild(i)}function j(h,l){var m=document.createElement("a");m.href="javascript:void(0);";m.className="gadget_invite_content_item cl";_IG_AddDOMEventHandler(m,"click",function(){l.osit&&_sendx("/ig/osinvites?et="+_et,function(){},ig_b,"action=accept&osit="+l.osit);l.mtid=l.mtid||0;_select_gadget_and_log(l.mtid,l.mid)});var i=IG_MSGS.GIGTG.replace(/%1\$s/,h);m.appendChild(document.createTextNode(i));return m}function n(h){var l=c();l.innerHTML="";l.style.display=
h?"":"none";(h?_IG_showRoundedCornerOnMaximize:_IG_hideRoundedCornerOnRestore)();_gel("rcam_t1").className=h?"rnd1_max_top":"rnd1";_gel("rcam_t2").className=h?"rnd2_max_top":"rnd2";_gel("rcam_t3").className=h?"rnd3_max_top":"rnd3";var m=_IG_getCurrentMaxId();if(m)_gel("max_ph").style.display=h?"none":"";else _gel("modules").style.display=h?"none":""}function p(){return typeof _IG_OS_updates_gadget_iframe_url=="undefined"?"":"remote_module_"+_IG_OS_updates_gadget_iframe_url.match(/mid=(-?\d+)/)[1]}
return{gadgetInvites:ig_,pendingInviteCount:0,hasNewPendingInvites:ig_b,isGroupPopupLoaded:ig_b,isRefreshNeeded:ig_b,managerShowing:ig_a,currentEndIndex:10,setHasFriends:function(h){a=h},hasFriends:function(){return a},isForcedSandbox:function(){var h=_args(),l=h.force_sandbox;return l=="1"},requestShareAppCallback:function(h,l,m){_IFPC.call(h,"shindig.requestShareApp_callback",[l,m.success,m.success?ig_:m.message,m.recipientIds],window._ifpc_relay_url[_ig_gmid_(h)],ig_,window.location.path+"/ig/images/rpc_relay.html",
ig_a,ig_a)},requestShareApp:function(h,l,m,i){var k=_ig_gmid_(h);m=m||[];var q="";if(typeof m=="object"&&m.join){m.length>50&&m.splice(50);q=m.join(",")}else if(typeof m=="string")q=m;else if(!m.Ia||m.Ia.userId!="VIEWER"&&m.Ia.userId!="OWNER"||m.Ia.groupId!="FRIENDS"){var o={success:ig_b,message:"Invalid recipient.",recipientIds:[]};ig_9.requestShareAppCallback(h,l,o);return}var r=ig_w("m",k,"u");_share_this_gadget(_hesc(_jesc(i)),ig_t(IG_URLS.sgu,["moduleurl="+_esc(r),"mid="+k,"source=os","uids="+
q]),k,b(h,l))},loadGadgetInvitesData:function(){_sendx("/ig/osinvites",function(h){ig_9.gadgetInvites=eval("("+h+")");var l=ig_9.gadgetInvites;ig_9.pendingInviteCount=l&&l.invite&&l.invite.length?l.invite.length:0;ig_9.hasNewPendingInvites=l&&!!l.n;_IG_OS_updateGadgetInvites();if(ig_9.pendingInviteCount&&ig_9.managerShowing){ig_9.currentEndIndex=Math.min(10,ig_9.pendingInviteCount);ig_9.renderGadgetInvites(ig_9.gadgetInvites.invite,0,ig_9.currentEndIndex)}})},updateGadgetInvites:function(){var h=
_gel("gadget_invites_header"),l=_gel("gadget_shares_nav");if(h&&l){h.style.display="none";l.style.display="none";if(ig_9.pendingInviteCount){if(ig_9.hasNewPendingInvites){h.style.display="block";var m=ig_9.pendingInviteCount>1?IG_MSGS.GIP:IG_MSGS.GI;m=m.replace(/%1\$d/,ig_9.pendingInviteCount);var i=_gel("gadget_invites_header_link");i.innerHTML=m}l.style.display="block";var k=_gel("num_invites");k.innerHTML=ig_9.pendingInviteCount}var q=_gel("show_all_invites");if(q){for(;q.firstChild;)q.removeChild(q.firstChild);
q.appendChild(document.createTextNode(IG_MSGS.GISAI.replace(/%1\$d/,ig_9.pendingInviteCount)))}}},showGadgetInvitesManager:function(){ig_9.managerShowing=ig_a;ig_9.loadGadgetInvitesData();n(ig_a);_IG_highlight_invites();ig_9.createMaximizedHeader(IG_MSGS.GIH,function(){_IG_PushHistory("","gadget_invites","")});c().appendChild(d())},hideGadgetInvitesManager:function(){if(ig_9.isRefreshNeeded){ig_9.isRefreshNeeded=ig_b;setTimeout(function(){document.location.replace(ig_f(document.location.href))},0)}n(ig_b);
ig_9.managerShowing=ig_b;var h=_IG_getCurrentMaxId();h!=ig_?_IG_highlight_module(h):_IG_highlight_tab()},showUpdates:function(){n(ig_a);_IG_highlight_updates();ig_9.createMaximizedHeader(IG_MSGS.GUH,function(){_IG_PushHistory("","social_updates","")});var h=_gel(p());if(!h){h=document.createElement("iframe");h.src=_IG_OS_updates_gadget_iframe_url;h.id=p();h.width="98%";h.height="900px";h.frameBorder="0";h.style.marginTop="6px";h.style.marginLeft="6px"}c().appendChild(h)},hideUpdates:function(){n(ig_b);
var h=p();if(h){var l=_gel(h);l&&l.parentNode.removeChild(l);var m=_IG_getCurrentMaxId();m!=ig_?_IG_highlight_module(m):_IG_highlight_tab()}},createMaximizedHeader:function(h,l){var m=_gel("maximized_container_header");if(!m){m=document.createElement("div");m.id="maximized_container_header";m.className="gititle";var i=document.createElement("h2");m.appendChild(i);var k=document.createElement("span");k.id="maximized_header_title";k.className="gititle_text";i.appendChild(k);var q=document.createTextNode(h);
k.appendChild(q);if(l){var o=document.createElement("a");o.id="maxContainerMinButton";o.className="v2shrinkbox";o.href="javascript:void(0);";_IG_AddDOMEventHandler(o,"click",l);m.appendChild(o)}}var r=document.createElement("div");r.style.clear="both";m.appendChild(r);c().appendChild(m)},renderGadgetInvites:function(h,l,m){var i=d();i.innerHTML="";var k=document.createElement("div");k.className="gadget_invite_legal";var q=document.createTextNode(IG_MSGS.GIL+" "),o=document.createElement("a"),r="http://www.google.com/support/websearch/bin/answer.py?answer=145550";
if(_hl)r+="&hl="+_hl;o.href=r;o.appendChild(document.createTextNode(IG_MSGS.GILM));o.target="_blank";k.appendChild(q);k.appendChild(o);i.appendChild(k);l=l||0;m=m||h.length;for(var s=l;s<m;s++){if(s!=l){var t=document.createElement("hr");t.id="invite_item_sep_"+h[s].osit;t.className="invite_item_sep";i.appendChild(t)}ig_9.renderGadgetInvite(h[s])}var u=document.createElement("div");u.id="bulk_dismiss";u.className="gadget_invite_footer";var v=document.createElement("a");v.className="decline_invite";
v.href="javascript:void(0);";v.appendChild(document.createTextNode(IG_MSGS.GIBD));_IG_AddDOMEventHandler(v,"click",function(){_sendx("/ig/osinvites?et="+_et,function(){ig_9.setPendingInvites(0,ig_b);_IG_PushHistory("","gadget_invites","")},ig_b,"action=declineall")});u.appendChild(v);i.appendChild(u);i.appendChild(ig_9.renderGadgetSharesFooter(h.length))},renderGadgetInvite:function(h){var l=d(),m=_hesc(h.nam||""),i=_hesc(h.gti||IG_MSGS.GIDGN),k=document.createElement("div");k.className="gadget_invite_item";
k.id="invite"+h.osit;var q=document.createElement("img");q.src=h.gtu;q.className="gadget_invite_thumb";k.appendChild(q);var o=document.createElement("div");o.id="gadget_invite_content_"+h.osit;o.className="gadget_invite_content";var r='<a href="/ig/directory?type=gadgets&url='+h.gur+'" target="_blank">'+i+"</a>",s=IG_MSGS.GID;s=s.replace(/%1\$s/,"gadget_invite_content_item").replace(/%2\$s/,"<strong>"+m+"</strong>").replace(/%3\$s/,_hesc(h.ema||"")).replace(/%4\$s/,"gadget_invite_content_item cl").replace(/%5\$s/,
r);o.innerHTML=s;var t=h.mid>-1;o.appendChild(document.createElement("br"));if(!t||t&&!h.isc){var u=document.createElement("input");u.id="accept_button_"+h.osit;u.type="button";u.className="gadget_invite_content_item cl";if(t&&!h.isc){u.value=IG_MSGS.GIAUBT.replace(/%1\$s/,m);u.className+=" add_contact"}else{u.value=IG_MSGS.GIAG;u.className+=" accept_invite"}o.appendChild(u)}if(t&&h.isc){var v=j(i,h);o.appendChild(v)}var w=document.createElement("a");w.id="close_invite_"+h.osit;var z=t&&h.isc?IG_MSGS.GIDIS:
IG_MSGS.GINT;w.appendChild(document.createTextNode(z));w.href="javascript:void(0);";w.className="gadget_invite_content_item decline_invite";o.appendChild(w);if(!h.isc&&!t){var y=IG_MSGS.GIAU;y=y.replace(/%1\$s/,m).replace(/%2\$s/,"javascript:void(0);").replace(/%3\$s/,"_IG_OS_openGroupPopup(true);");var x=document.createElement("span");x.id="add_contacts_container_"+h.osit;x.className="gadget_invite_content_item cl add_user_msg";x.innerHTML=y;o.appendChild(x)}k.appendChild(o);l.appendChild(k)},renderGadgetSharesFooter:function(h){var l=
document.createElement("div");l.id="gadget_invite_footer";l.className="gadget_invite_footer";for(var m=3,i,k=0;k<m;k++){i=document.createElement("b");i.className="rnd"+(k+1);l.appendChild(i)}var q=document.createElement("div");q.id="gadget_invite_footer_content";q.className="gadget_invite_footer_content";var o=document.createElement("a");o.className="leading_edge";o.href="javascript:void(0);";_IG_AddDOMEventHandler(o,"click",ig_9.backToTop);o.appendChild(document.createTextNode(IG_MSGS.GIBTT));q.appendChild(o);
var r=document.createElement("a");r.className="trailing_edge";r.href="javascript:void(0);";_IG_AddDOMEventHandler(r,"click",ig_9.showMore);r.appendChild(document.createTextNode(IG_MSGS.GIM));q.appendChild(r);var s=document.createElement("span");s.className="trailing_edge spacer";s.appendChild(document.createTextNode("-"));q.appendChild(s);var t=document.createElement("a");t.id="show_all_invites";t.className="trailing_edge";t.href="javascript:void(0);";_IG_AddDOMEventHandler(t,"click",ig_9.showAll);
var u=IG_MSGS.GISAI.replace(/%1\$d/,h);t.appendChild(document.createTextNode(u));q.appendChild(t);var v=document.createElement("div");v.style.clear="both";q.appendChild(v);l.appendChild(q);for(k=m;k>0;k--){i=document.createElement("b");i.className="rnd"+k;l.appendChild(i)}return l},backToTop:function(){ig_9.currentEndIndex=Math.min(10,ig_9.gadgetInvites.invite.length);ig_9.renderGadgetInvites(ig_9.gadgetInvites.invite,0,ig_9.currentEndIndex)},showMore:function(){ig_9.currentEndIndex=Math.min(ig_9.currentEndIndex+
10,ig_9.gadgetInvites.invite.length);ig_9.renderGadgetInvites(ig_9.gadgetInvites.invite,0,ig_9.currentEndIndex)},showAll:function(){ig_9.currentEndIndex=ig_9.gadgetInvites.invite.length;ig_9.renderGadgetInvites(ig_9.gadgetInvites.invite,0,ig_9.currentEndIndex)},handleInviteClick:function(h){for(var l,m=h.target||h.srcElement,i=m;i;)if(i.className=="gadget_invite_item"){l=i.id.replace("invite","");break}else i=i.parentNode;if(l){var k="",q,o,r=m.className;if(r.indexOf("accept_invite")>=0){var s=_gel("add_contacts_"+
l),t=s?s.checked:ig_b;q="accept";k="addcontact=true";o={addContact:t?1:0};ig_9.isRefreshNeeded=ig_a}else if(r.indexOf("decline_invite")>=0)q="decline";else if(r.indexOf("add_contact")>=0){q="accept";k="addcontact=true";o={addContact:2}}if(q){k+=(k?"&":"")+"action="+q+"&osit="+l;_sendx("/ig/osinvites?et="+_et,function(u){ig_9.handleInviteResponse(u,l,q,o)},ig_b,k)}}},handleInviteResponse:function(h,l,m,i){var k=e(l);if(k){h=h&&eval("("+h+")");var q=_gel("gadget_invite_content_"+l),o=_gel("accept_button_"+
k.osit),r=_gel("close_invite_"+k.osit),s=_gel("add_contacts_container_"+k.osit),t=_hesc(k.gti||IG_MSGS.GIDGN),u="";switch(m){case "accept":o.parentNode.removeChild(o);r.parentNode.removeChild(r);s&&s.parentNode.removeChild(s);if(i){if(i.addContact==0||i.addContact==1)u+=IG_MSGS.GIGA.replace(/%1\$s/,t);if(i.addContact==1||i.addContact==2)u+=(u?" ":"")+IG_MSGS.GICA.replace(/%1\$s/,_hesc(k.nam||"")).replace(/%2\$s/,"javascript:void(0);").replace(/%3\$s/,"_IG_OS_openGroupPopup(true);")}g(l,u);q.appendChild(j(t,
h));break;case "decline":var v=_gel("invite"+k.osit),w;w=v==v.parentNode.firstChild?v.nextSibling:_gel("invite_item_sep_"+k.osit);v.parentNode.removeChild(v);w&&w.parentNode.removeChild(w);break}f(l);ig_9.currentEndIndex=Math.min(ig_9.currentEndIndex,ig_9.gadgetInvites.invite.length)}},openGroupPopup:function(h,l){if(ig_9.isGroupPopupLoaded){window.goog.GroupPopupLauncher.launch("/ig/c","igoogle",window.goog.GroupPopupLauncher.Group.FRIENDS,h?window.goog.GroupPopupLauncher.PopupType.EDIT:window.goog.GroupPopupLauncher.PopupType.PICK,
{hl:_hl});l&&l()}else _IG_LoadScriptCallback(IG_URLS.gpjsu,function(){ig_9.isGroupPopupLoaded=ig_a;ig_9.openGroupPopup(h,l)})},acknowledgeInvitations:function(){var h=_gel("gadget_invites_header");if(h)h.style.display="none";_sendx("/ig/osinvites?et="+_et,function(){},ig_b,"action=ack")},setPendingInvites:function(h,l){ig_9.pendingInviteCount=h;ig_9.hasNewPendingInvites=l;ig_9.updateGadgetInvites()},initOpenSocialUI:function(){_gel("contacts_nav").style.display="";_gel("tab_separator_social").style.display=
""}}}(),_IG_OS_loadGadgetInvitesData=ig_9.loadGadgetInvitesData,_IG_OS_updateGadgetInvites=ig_9.updateGadgetInvites,_IG_OS_showGadgetInvitesManager=ig_9.showGadgetInvitesManager,_IG_OS_hideGadgetInvitesManager=ig_9.hideGadgetInvitesManager,_IG_OS_showUpdates=ig_9.showUpdates,_IG_OS_hideUpdates=ig_9.hideUpdates,_IG_OS_requestShareApp=ig_9.requestShareApp,_IG_OS_openGroupPopup=ig_9.openGroupPopup,_IG_OS_acknowledgeInvitations=ig_9.acknowledgeInvitations,_IG_OS_setPendingInvites=ig_9.setPendingInvites,
_IG_OS_initOpenSocialUI=ig_9.initOpenSocialUI;_IFPC.registerService("shindig.requestShareApp",ig_9.requestShareApp);_IG_AddHistoryCallback(/^social_updates$/,_IG_OS_showUpdates);_IG_AddHistoryCallback(/^gadget_invites$/,_IG_OS_showGadgetInvitesManager);var ig_$=function(){function a(b,c){var d=_gel("m_"+b+"_canvas_social_icon");if(d)d.className=c+d.className.replace(/\bsocialbox\S*/,"");var e=_gel("m_"+b+"_social_icon");if(e)e.className=c+e.className.replace(/\bsocialbox\S*/,"")}_IG_AddEventHandler("modulesocialedit",function(b){if(!ig_9.hasFriends()&&_gel("add_friends_promo"))_gel("add_friends_promo").style.display="block";var c=b.replace("m_",""),d=_gel("m_"+c+"_aclform");d&&ig_$.resetFormAclOptions(d,c)});return{resetFormAclOptions:function(b,
c){if(b.module_url){b.reset();var d=b["access_profile"+c],e=b["post_updates"+c];e.disabled=!d.checked}},handleFormAclOptions:function(b,c){_closeUserPrefs(c);if(b.module_url){var d=b.module_url.value,e=b["access_profile"+c],f=b["post_updates"+c];e.defaultChecked=e.checked;f.defaultChecked=f.checked;a(c,e.checked?"socialboxon":"socialbox");var g=_gel("acl_cancel_"+c);if(g)g.style.display="";var j=_gel("reset_acl_"+c);if(j)j.style.display="";_IG_OS_makeAclXhr({moduleUrl:d,editToken:_et,accessProfile:e.checked,
postUpdates:f.checked},function(){var n=_gel("remote_iframe_"+c);if(n&&n.src){n.src=ig_f(_IG_Prefs._updatePrefsInUrl(c,n.src));window.frames["remote_iframe_"+c].location.replace(n.src)}})}},makeAclXhr:function(b,c){if(b&&b.moduleUrl){var d="/ig/osacl";d+="?url="+b.moduleUrl;if(ig_9.isForcedSandbox())d+="&force_sandbox=1";if(b.editToken){d+="&et="+b.editToken;var e=b.accessProfile?"t":"f",f=b.accessProfile&&b.postUpdates?"t":"f";d+="&osacl=0:"+e+",1:"+f}_sendx(d,c,ig_b,ig_b)}},handleGetAclXhrResponse:function(b,
c){var d=_gel("access_profile"+c),e=_gel("post_updates"+c),f=_gel("acl_cancel_"+c),g=_gel("reset_acl_"+c);ig_9.setHasFriends(b.has_friends);if(b.user_decided){d.checked=b.friends;e.checked=b.post&&b.friends;e.disabled=!b.friends;if(f)f.style.display="";if(g)g.style.display=""}else{d.checked=ig_a;e.checked=ig_a;e.disabled=ig_b;if(f)f.style.display="none";if(g)g.style.display="none";_showUserPrefs(c,ig_a)}d.defaultChecked=d.checked;e.defaultChecked=e.checked;a(c,b.friends?"socialboxon":"socialbox");
_gel("acl_options_"+c).style.display="block";_gel("aowc_"+c).style.display="none"},updateAclOptions:function(b){b=b||"";var c=_gel("access_profile"+b),d=_gel("post_updates"+b);if(c.checked)d.disabled=ig_b;else{d.checked=ig_b;d.disabled=ig_a}},edit:function(b){if(ig_o(b,ig_n.SOCIAL))_gel("m_"+b+"_aclform")?_closeUserPrefs(b):ig_$.closeSocialSignInPromo(b);else{_log("social_options:"+b);_showUserPrefs(b,ig_a)}},closeSocialSignInPromo:function(b){if(ig_o(b,ig_n.SOCIAL)){_xsetp("m_"+b+"_dossip=1");_closeUserPrefs(b)}}}}(),
_IG_OS_handleFormAclOptions=ig_$.handleFormAclOptions,_IG_OS_resetFormAclOptions=ig_$.resetFormAclOptions,_IG_OS_makeAclXhr=ig_$.makeAclXhr,_IG_OS_handleGetAclXhrResponse=ig_$.handleGetAclXhrResponse,_IG_OS_updateAclOptions=ig_$.updateAclOptions,_IG_OS_edit=ig_$.edit,_IG_OS_closeSocialSignInPromo=ig_$.closeSocialSignInPromo;function ig_bc(){window._IG_CONTAINER&&setInterval(function(){_sendx("/ig/ostokens",ig_cc)},1800000)}function ig_dc(a,b){var c=a.split("#");if(!c[1])return a;for(var d=c[1].split("&"),e=0;e<d.length;++e)if(/^st=/.test(d[e]))d[e]="st="+_hesc(b);c[1]=d.join("&");return c.join("#")}
function ig_cc(a){if(!(!a||a.length<27||a.charAt(27)!="{")){a=_IG_Json.parse(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(var f=0;f<remote_modules.length;++f)if(remote_modules[f].id==d)remote_modules[f].base_iframe_url=ig_dc(remote_modules[f].base_iframe_url,e);var g=ig_w("m",d,"view","max_u");if(g)_IG_MD.m[d].view.max_u=ig_dc(g,e)}_gel("remote_iframe_"+d)&&_IFPC.call("remote_iframe_"+d,"update_security_token",[e],window._ifpc_relay_url[d],
ig_,window.location.path+"/ig/images/rpc_relay.html",ig_a,ig_a)}}}}ig_bc();
