function ig_a(a,b){var c=function(){};c.prototype=a.prototype;b.prototype=new c}function _gel(a){return document.getElementById?document.getElementById(a):null}function _gelstn(a){if(a=="*"&&document.all)return document.all;return document.getElementsByTagName?document.getElementsByTagName(a):[]}function _gelsbyregex(a,b){var c=_gelstn(a),d=[];for(var e=0;e/g,">");a=a.replace(/"/g,""").replace(/'/g,"'");return a}function _striptags(a){return a.replace(/<\/?[^>]+>/gi, "")}var ig_ba=0;function _uid(){return"obj"+ig_ba++}function _min(a,b){return ab?a:b}function _IG_LoadScript(a,b){_sendx(a,function(c){window.eval(c);eval(b)},false,null)}function _IG_LoadCss(a){var b=document.getElementsByTagName("head")[0];if(!b)throw new Error("Document is missing element. Failed to load CSS.");var c=document.createElement("style");c.type="text/css";if(c.styleSheet)c.styleSheet.cssText=a;else c.appendChild(document.createTextNode(a)); b.insertBefore(c,b.firstChild)}function _log(a){var b="/ig/log?msg="+_esc(a);_sendx(b,null,null,null)}function _sendx(a,b,c,d){var e=ig_b();e.open(d?"POST":"GET",a,true);if(b)e.onreadystatechange=function(){if(e.readyState==4)b(c&&e.responseXML?e.responseXML:e.responseText)};e.send(d)}function _uhc(a,b,c){var d="m_"+a+"_"+b,e=_gel(d);if(!e){e=document.createElement("INPUT");e.type="hidden";e.disabled=true;e.name=d;_gel("m_"+a+"_form").appendChild(e)}e.value=c;e.disabled=false}function ig_b(){var a= null;if(window.ActiveXObject){a=new ActiveXObject("Msxml2.XMLHTTP");if(!a)a=new ActiveXObject("Microsoft.XMLHTTP")}else if(window.XMLHttpRequest)a=new XMLHttpRequest;return a}var _et="",_brand="",_bmod="",_source="",_pid="",_authpath="",_prefid="",_setp_url="/ig/setp",_old_html=true,_use_old_feed_styles=true,ig_c=null,ig_d=null;function ig_e(a,b,c){var d=document.createElement("input");d.type="hidden";d.name=b;d.value=c;a.appendChild(d)}function ig_f(a){var b=a||document.location.href,c;{var d=b.indexOf("?"), e=b.indexOf("#");if(e==-1)c=b.substr(d+1);else c=b.substr(d+1,e-d-1)+"&"+b.substr(e+1)}return c.split("&")}function _argsUrl(a){var b={},c=ig_f(a);for(var d=0;d=1800;if(c)_sendx(a,ig_k,false,b);else{a+="&"+b;_sendx(a,ig_k,false,null)}}function ig_k(){_IG_TriggerDelayedEvent("xsetpdone"); ig_j()}function _xsetp(a){ig_h.push(a);if(!ig_i)ig_j()}function _dlsetp(a,b){if(!b)b=_esc(document.location);document.location=_setp_url+ig_g()+"et="+_et+"&brand="+_brand+"&bmod="+_bmod+"&source="+_source+"&pid="+_pid+"&ap="+_authpath+"&prefid="+_prefid+"&url="+b+"&"+a}function _ssbc(a,b,c){var d=_gelstn("*");for(var e=0;e1000){setTimeout("_reload("+a+")",b);return}document.cookie="IGREL=1";document.location.reload()}function ig_n(a,b){switch(a){case "delete":case "undelete":case "edit":case "canceledit":case "zip":case "unzip":case "mazimize":case "unmaximize":_IG_TriggerDelayedModuleEvent(b,a);_IG_TriggerDelayedEvent("module"+a,b);break}}function ig_ga(a){_xsetp("pnlo="+(a?1:0))}var _uli,_pnlo,_mpnlo,_pl,_mod,_cbp=false,ig_q=false,_table=null, _tabs=null;function _upc(){var a=[];if(!_cbp)a[a.length]=["medit","display",_uli?"":"none"];a[a.length]=["panelo","display",_pnlo?"":"none"];a[a.length]=["panelc","display",_pnlo?"none":""];if(_mod){a[a.length]=["unmod","display","none"];a[a.length]=["mod","display",""]}else{a[a.length]=["mod","display","none"];a[a.length]=["unmod","display",""]}ig_ca(a);if(_pl)if(_cbp||_uli)if(!ig_q&&!_mpnlo){_IG_TriggerCustomEvent("initdrag",_table,_tabs);ig_q=true}}var ig_r=0;function _tp(a){if(ig_r>0)clearInterval(ig_r); _pnlo=a;_mod=true;ig_ga(a);_upc();var b=_gel("cpnl"),c=_gel("cpnlc"),d=_gel("nhdr"),e=_gel("ehdr"),f=b.offsetWidth,g,h;if(a){g=c.offsetWidth;h="visible";e.style.display="";d.style.display="none"}else{g=1;h="hidden";e.style.display="none";d.style.display=""}b.style.overflow="hidden";var i=100,j=10,k=0;ig_r=setInterval(function(){var l=k/j,n=f+(g-f)*l;b.style.width=n+"px";k++;if(l>=1){clearInterval(ig_r);ig_r=0;b.style.width=g+"px";b.style.overflow=h}},i/j);return false}function _ts(a,b){var c=_gel(a+ b),d;if(c.className=="mlist_open"){c.className="mlist_closed";d="pnlsc"}else{c.className="mlist_open";d="pnlso"}_xsetp(d+"="+_esc(b));return false}function _add_m(a,b){_dlsetp(a,b)}function _add_m_confirm(a,b,c){if(confirm(b))_add_m(a,c)}function _add_f(a){_add_m("n_25="+_esc("url="+_esc(a)))}var ig_s=/^_add_m(_confirm)?\(\"[^"]+\"(, *\"[^"]+\")?\)$/;function _find_feed(a){var b="acd";if(!a){var c=_gelstn("div");if(c)for(var d=0;d0&&a.charAt(0)=="<")c.innerHTML= a;else if(a.match(ig_s)!=null)eval(a);else eval(a)}function _add_remote_module(a,b){_sendx("/ig/feeds"+ig_g()+"module=1&q="+_esc(a),function(c){b();ig_ia(c)},false,null);return false}function ig_ia(a){var b=/^alert\(\"[^"]+\"\)$/;if(a.match(ig_s)!=null||a.match(b)!=null)eval(a)}function _ListApp(a,b,c){this.items=a;this.deleted=[];this.item_constructor=b;this.module_id=c;this.app_name="m_"+c+"_App";this.display_area=_gel("m_"+c+"_disp");this.value_input_field=_gel("m_"+c+"_val");this.name_input_field= _gel("m_"+c+"_name");if(!this.name_input_field)this.name_input_field=this.value_input_field;if(this.name_input_field){this.default_name=this.name_input_field.value;this.default_value=this.value_input_field.value}this.prev_items=[].concat(this.items)}_ListApp.prototype.reset=function(){this.items=[].concat(this.prev_items);this.refresh()};_ListApp.prototype.sort=function(a,b){return a.r(b)};_ListApp.prototype.xa=function(){var a="";if(_old_html)a="";var b= "",c=this.items;for(var d=0;d';else a+=''+c[d].A()+"
";if(parseInt(c[d]._uid,10)<0)b+=c[d].k(d)}var e=this.deleted,f="";for(var d=0;d< e.length;d++)if(parseInt(e[d]._uid,10)>=0)f+=","+e[d]._uid;a+=this.V(b,f);return a};_ListApp.prototype.V=function(a,b){var c="';if(_old_html)c="
"+c[d].A()+'
';return c};_ListApp.prototype.refresh=function(){this.items.sort(this.sort);this.display_area.innerHTML= ""+this.xa()+""};_ListApp.prototype.add=function(a,b){if(!a)a=_trim(this.name_input_field.value);if(!b)b=_trim(this.value_input_field.value);var c=new this.item_constructor(a,b,-1);if(!c.u())return;this.items[this.items.length]=c;this.refresh();this.name_input_field.value=this.default_name;this.value_input_field.value=this.default_value};_ListApp.prototype._del=function(a){this.deleted[this.deleted.length]=this.items[a];this.items.splice(a,1);this.refresh()};function _PrefListApp(a, b,c,d,e){var f=typeof c=="string"?[]:c,g=new _ListApp(f,d,e);for(var h in g)this[h]=g[h];if(typeof c=="string")this.wa(c);this.prefidx=a;this.prefname=b;this.app_name="m_"+e+"_"+a+"_App";this.display_area=_gel("m_"+e+"_"+a+"_disp");this.value_input_field=_gel("m_"+e+"_"+a+"_val");this.name_input_field=this.value_input_field;this.default_name="";this.default_value="";this.V=_PrefListApp_get_tail}function _PrefListApp_get_tail(){var a="";_gel("m_"+this.module_id+"_"+this.prefidx).value=this.Ba(); return a}_PrefListApp.prototype.wa=function(a){if(a.length==0)return;var b=_IG_Prefs._strToArray(a),c=[];for(var d=0;d'+_hesc(this.G())+""};_BMListItem.prototype.k=function(a){return"&b"+a+"="+_esc(this._n)+"&t"+a+"="+_esc(this._v)};_BMListItem.prototype.r=function(a){var b=_uc(this.G()),c=_uc(a.G());if(b==c)return 0;return ba._s)return 1;var c=_uc(b._n),d=_uc(a._n);if(cd)return 1;return 0};var ig_t={S:0,Ca:1800,ca:null,ba:null,ma:true,H:null,J:function(){ig_t.S=(new Date).getTime()+ig_t.Ca*1000},ab:function(){if((new Date).getTime()>ig_t.S)_testConnection(function(){_reload(ig_t.S)},ig_t.J)},ea:function(a){ig_t.J(); if(ig_t.ca)ig_t.ca(a)},da:function(a){ig_t.J();if(ig_t.ba)ig_t.ba(a)}};function _IG_disable_refresh_cycle(){ig_t.ma=false;if(ig_t.H!=null){clearInterval(ig_t.H);ig_t.H=null}}function _IG_start_refresh_cycle(a,b){if(ig_t.ma){ig_t.ca=document.onmousedown;ig_t.ba=document.onkeyup;ig_t.Ca=a;if(document.addEventListener){document.addEventListener("keyup",ig_t.da,false);document.addEventListener("mousedown",ig_t.ea,false)}else if(document.attachEvent){document.attachEvent("onkeyup",ig_t.da);document.attachEvent("onmousedown", ig_t.ea)}else{document.onkeyup=ig_t.da;document.onmousedown=ig_t.ea}ig_t.J();ig_t.H=setInterval(ig_t.ab,b*1000)}}function _testConnection(a,b,c){var d=ig_b(),e="/ig/nop?t="+(new Date).getTime();if(!c)c=3500;d.open("GET",e,true);d.onreadystatechange=function(){if(d.readyState==4&&a)if(200<=d.status&&d.status<300||d.status==1223){b=null;a()}};try{d.send(null)}catch(f){}var g=function(){if(b){a=null;b()}};setTimeout(g,c)}function _mailWindow(a){window.open(a,"mailwindow","width=400,height=340,left=50,top=50,scrollbars=no")} function ig_u(a){if(!a)a=document.body;return a.scrollHeight>a.offsetHeight?a.scrollHeight:a.offsetHeight}function ig_ja(){if(self.pageYOffset)return self.pageYOffset;else if(document.documentElement&&document.documentElement.scrollTop)return document.documentElement.scrollTop;else return document.body.scrollTop}function _setHomepage(a,b){var c=_gel("hp_url").innerHTML;a.style.behavior="url(#default#homepage)";a.setHomePage(c);_sendx("/ig/ui?action=sethomepage&url="+_esc(c)+"&type="+b+"&confirmed="+ (ig_v()?1:0),null,false,null)}function ig_v(){var a=_gel("shp"),b=_gel("hp_url").innerHTML;return a.isHomePage(b)}function _maybeShowSetHPMsg(){if(!ig_v()){_gel("set_homepage_msg").style.display="inline";if(_gel("new_user_demo")!=null)_gel("new_user_demo").style.display="none"}}function _hideSetHPMsg(){if(_gel("set_homepage_msg")!=null)_gel("set_homepage_msg").style.display="none";if(_gel("new_user_demo")!=null)_gel("new_user_demo").style.display="block"}function _maybeShowSetHPFooter(){if(!ig_v())_gel("set_homepage_footer").style.display= "block"};function _IG_GetCachedUrl(a,b){var c;if(typeof b=="object")c=b;else c={};var d=window.location.href,e="/ig/proxy?",f=/^http:\/\/[^\/]+\/ig\/ifr[?]/,g=f.exec(d);if(g){if(window.location.host!="p.gmodules.com"&&_et)e+="et="+_esc(_et)+"&"}else e="http://p.gmodules.com/ig/proxy?";if(!isNaN(c.refreshInterval)&&c.refreshInterval>=0)e=_appendMaxAgeParameter(e,c.refreshInterval);return e+"url="+_esc(a)}function _IG_GetImageUrl(a,b){return _IG_GetCachedUrl(a,b)}function _IG_GetImage(a,b){var c=document.createElement("img"); c.src=_IG_GetCachedUrl(a,b);return c};function _IG_Callback(a){var b=arguments;return function(){var c=[];for(var d=0;d0){ig_w.b[d][f]=ig_w.b[d][f-1];ig_w.b[d][f-1]=c}else ig_w.b[d][f]=c}function ig_ya(a,b){var c=ig_w.O(a);if(!(c in ig_w.b))ig_w.b[c]=[];ig_w.b[c][ig_w.b[c].length]=b}function ig_za(a,b){var c=ig_w.P(a);return ig_w.I(c,b)}function ig_Aa(a,b,c){var d=ig_w.Q(a,b);return ig_w.I(d,c)}function ig_Ba(a,b,c){var d=ig_w.oa(a,b);return ig_w.I(d,c)}function ig_Ca(a,b){var c=ig_w.O(a);return ig_w.I(c,b)}function ig_Da(a){var b=ig_w.v([ig_w.P(a)],arguments,1);ig_w.K.apply(window,b)}function ig_Ea(){var a= ig_w.v([],arguments,0);setTimeout(function(){ig_w.triggerEvent.apply(window,a)},0)}function ig_Fa(a,b){var c=ig_w.v([ig_w.Q(a,b)],arguments,2);ig_w.K.apply(window,c)}function ig_Ga(){var a=ig_w.v([],arguments,0);setTimeout(function(){ig_w.triggerModuleEvent.apply(window,a)},0)}function ig_Ha(a){var b=ig_w.v([ig_w.O(a)],arguments,1);ig_w.K.apply(window,b)}function ig_Ia(){var a=ig_w.v([],arguments,0);setTimeout(function(){ig_w.triggerCustomEvent.apply(window,a)},0)}var ig_w={Ua:0,b:{},D:{},fb:ig_ka, gb:ig_la,Qa:ig_ma,P:ig_na,Q:ig_oa,oa:ig_pa,O:ig_qa,Na:ig_ra,v:ig_sa,I:ig_ta,K:ig_ua,addEventHandler:ig_va,addModuleEventHandler:ig_wa,addDOMEventHandler:ig_xa,addCustomEventHandler:ig_ya,removeEventHandler:ig_za,removeModuleEventHandler:ig_Aa,removeDOMEventHandler:ig_Ba,removeCustomEventHandler:ig_Ca,triggerEvent:ig_Da,triggerModuleEvent:ig_Fa,triggerCustomEvent:ig_Ha,triggerDelayedEvent:ig_Ea,triggerDelayedModuleEvent:ig_Ga,triggerDelayedCustomEvent:ig_Ia},_IG_AddEventHandler=ig_w.addEventHandler, _IG_AddModuleEventHandler=ig_w.addModuleEventHandler,_IG_AddGadgetEventHandler=ig_w.addModuleEventHandler,_IG_AddDOMEventHandler=ig_w.addDOMEventHandler,_IG_AddCustomEventHandler=ig_w.addCustomEventHandler,_IG_RemoveEventHandler=ig_w.removeEventHandler,_IG_RemoveModuleEventHandler=ig_w.removeModuleEventHandler,_IG_RemoveGadgetEventHandler=ig_w.removeModuleEventHandler,_IG_RemoveDOMEventHandler=ig_w.removeDOMEventHandler,_IG_RemoveCustomEventHandler=ig_w.removeCustomEventHandler,_IG_TriggerEvent=ig_w.triggerEvent, _IG_TriggerModuleEvent=ig_w.triggerModuleEvent,_IG_TriggerGadgetEvent=ig_w.triggerModuleEvent,_IG_TriggerCustomEvent=ig_w.triggerCustomEvent,_IG_TriggerDelayedEvent=ig_w.triggerDelayedEvent,_IG_TriggerDelayedModuleEvent=ig_w.triggerDelayedModuleEvent,_IG_TriggerDelayedGadgetEvent=ig_w.triggerDelayedModuleEvent,_IG_TriggerDelayedCustomEvent=ig_w.triggerDelayedCustomEvent;_IG_AddDOMEventHandler(window,"unload",ig_w.Na);_IG_AddDOMEventHandler(window,"load",function(){_IG_TriggerEvent("load")});_IG_AddDOMEventHandler(window, "unload",function(){_IG_TriggerEvent("unload")});_IG_AddDOMEventHandler(window,"resize",function(){_IG_TriggerEvent("resize")});function _IG_RegisterOnloadHandler(a){_IG_AddEventHandler("domload",a)}function _IG_LoadLibraryDeferred(a,b){_IG_RegisterOnloadHandler(function(){_IG_LoadScript(a,b)})}_exportSymbols("google.gadgets.Events",["addHandler",_IG_AddEventHandler,"removeHandler",_IG_RemoveEventHandler,"addOnloadHandler",_IG_RegisterOnloadHandler]);function _IG_RegisterMaximizeHandler(a,b){_IG_AddModuleEventHandler(a, "unmaximize",function(){b(false)});_IG_AddModuleEventHandler(a,"maximize",function(){b(true)})};var _currentLayout,_layoutData,_IG_Layouts={savedModulePositions:null};_IG_Layouts._selectLayout=function(a){var b=_gel("edit_this_tab_form").edit_this_tab_selected_layout;for(var c=0;c=b.length)l=0}while(b[l].style.display=="none")}return true};_IG_Layouts._saveModulePositions=function(){var a=_IG_Layouts.getColumnsInOrder();_IG_Layouts.savedModulePositions=[];for(var b=0;b_layoutData.length-1)return false;return true};var _IG_time=(function(){function a(){return(new Date).getTime()}var b=window._IG_time_epoch||a(),c={},d={},e={set_epoch:function(f){b=f},start:function(f){c[f]=a()},stop:function(f){var g=c[f]||b;d[f]=a()-g},get:function(f){return d[f]},print:function(f){document.write("
"+f+" : "+e.get(f)+"ms
")},stop_and_print:function(f){e.stop(f);e.print(f)}};return e})();function ig_x(a,b){if(a.indexOf)return a.indexOf(b);else{for(var c=0;c\s*(\(.*?)\<\/ex\>)?\s*%1\s*\<\/ph\>)(.*)/;function ig_Na(a,b){var c=this.t(_IG_Prefs.M+a,""),d=c.match(this.Ya);if(!d||!d[0])return c;if(!b){var e=d[4]||"";return d[1]+e+d[5]}return d[1]+b+d[5]}function ig_G(){var a= Math.floor(arguments.length/2);if(a==0)return;var b=[];for(var c=0;c0){this.cb(arguments);if(_IG_Prefs.X)_xsetp(b.join("&"));else{if(_args().synd=="open")return;_IFPC_SetPref(b)}}}function ig_Oa(a){this.$a(a);var b=a.length%2?a[a.length-1]:true;if(b)this.bb(a)} function ig_Pa(a){var b=Math.floor(a.length/2),c={};for(var d=0;d0){var i=new _IG_PubSub(this.aa);i.publishMultiple(c)}}function ig_Ra(a){var b=this.c[_IG_Prefs.e+a],c=b.value,d=b.datatype;switch(d){case "list":c=_IG_Prefs._strToArray(c);break;case "location":c={};c.location=b.value;c["long"]=this.c[_IG_Prefs.e+a+".long"];c.lat=this.c[_IG_Prefs.e+a+".lat"];break;case "bool":c=!isNaN(parseInt(c,10));break;case "string":break;case "enum":break;case "hidden":break;default:break}return c}function ig_Sa(a, b){var c=a;switch(b){case "list":c=_IG_Prefs._arrayToStr(a);break;case "location":c=[];c.push=a.location;c.push=a["long"];c.push=a.lat;break;case "bool":c=a?"1":"a";break;case "string":break;case "enum":break;case "hidden":break;default:break}return c}function ig_Ta(a,b){if(typeof b=="undefined")b=null;var c=this.c[a];if(typeof c=="undefined")return b;else{var d=c.value;return typeof d!="undefined"?d:b}}function ig_Ua(){document.write("
");for(var a in this.c)document.writeln(a+" = "+this.t(a,
null));document.write("
")}function ig_H(){var a=["__module_id__="+this.aa];for(var b in this.c)a.push(encodeURIComponent(b)+"="+encodeURIComponent(this.c[b].value));return a.join("&")}function _IG_Prefs(a){this.getString=ig_y;this.getInt=ig_z;this.getBool=ig_A;this.getArray=ig_B;this.setArray=ig_C;this.getCountry=ig_E;this.getLang=ig_D;this.getMsg=ig_F;this.getMsgFormatted=ig_Na;this.set=ig_G;this.getPreloadedString=ig_H;this.dump=ig_Ua;this.Ka=ig_Sa;this.sa=ig_Ra;this.$a=ig_Pa;this.bb=ig_Qa; this.cb=ig_Oa;if(typeof remote_modules!="object"){var b=_args().mid;if(b)a=b;else a=0;_IG_Prefs._parseURL(a)}else if(!a)throw new Error("Module ID is required as first argument to _IG_Prefs() for inlined gadgets");this.getModuleHeight=ig_Ja;this.getModuleWidth=ig_Ka;this.c=_IG_Prefs.c[_IG_Prefs.N+a]||{};this.t=ig_Ta;this.U=ig_La;this.aa=a;this.Ya=ig_Ma}_IG_Prefs.Da="h";_IG_Prefs.Ea="w";_IG_Prefs.N="m_";_IG_Prefs.e="up_";_IG_Prefs.USER_PREF_PREFIX_PUBLISH="upp_";_IG_Prefs.USER_PREF_PREFIX_LISTEN="upl_"; _IG_Prefs.USER_PREF_PREFIX_GROUP="upg_";_IG_Prefs.USER_PREF_PREFIX_ONCHANGE="upo_";_IG_Prefs.USER_PREF_PREFIX_DATATYPE="upt_";_IG_Prefs.USER_PREF_PREFIX_VALUE="up_";_IG_Prefs.PREFIXES_TO_FIELDS={};_IG_Prefs.PREFIXES_TO_FIELDS[_IG_Prefs.USER_PREF_PREFIX_PUBLISH]="publish";_IG_Prefs.PREFIXES_TO_FIELDS[_IG_Prefs.USER_PREF_PREFIX_LISTEN]="listen";_IG_Prefs.PREFIXES_TO_FIELDS[_IG_Prefs.USER_PREF_PREFIX_GROUP]="group";_IG_Prefs.PREFIXES_TO_FIELDS[_IG_Prefs.USER_PREF_PREFIX_ONCHANGE]="onChange";_IG_Prefs.PREFIXES_TO_FIELDS[_IG_Prefs.USER_PREF_PREFIX_DATATYPE]= "datatype";_IG_Prefs.PREFIXES_TO_FIELDS[_IG_Prefs.USER_PREF_PREFIX_VALUE]="value";_IG_Prefs.M="msg_";_IG_Prefs._parseURL=function(a){_IG_Prefs.X=false;var b={},c=ig_f();for(var d=0;d=0){var f=c[d].substring(0,e);f=f.replace(/\+/g," ");var g=c[d].substring(e+1);g=g.replace(/\+/g," ");g=_unesc(g);var h=false;for(var i in _IG_Prefs.PREFIXES_TO_FIELDS)if(f.indexOf(i)==0){h=true;f=f.substring(i.length);f=_IG_Prefs.e+f;b[f]=b[f]?b[f]:{};if(i==_IG_Prefs.USER_PREF_PREFIX_PUBLISH|| i==_IG_Prefs.USER_PREF_PREFIX_LISTEN)if(g=="true")g=true;else g=false;b[f][_IG_Prefs.PREFIXES_TO_FIELDS[i]]=g;break}if(!h)if(f.indexOf(_IG_Prefs.M)==0)_IG_Prefs._add(a,f,g);else if(f==".lang"||f==".country")_IG_Prefs._add(a,_IG_Prefs.e+f,g)}}if(window.IDIModule){var b=window.IDIModule.getPrefs();for(var d in b)_IG_Prefs._add(a,d,b[d])}else for(var f in b)_IG_Prefs._add(a,f,b[f].value,b[f])};_IG_Prefs._add=function(a,b,c,d){var e=_IG_Prefs.N+a;if(typeof _IG_Prefs.c[e]!="object")_IG_Prefs.c[e]={};if(typeof _IG_Prefs.c[e][b]!= "object")_IG_Prefs.c[e][b]={};else return;var f=_IG_Prefs.c[e][b];f.value=c;f.datatype="string";f.publish=false;f.listen=false;f.onChange=false;f.group=false;if(d){f.datatype=d.datatype?d.datatype:"string";f.publish=d.publish?d.publish:false;f.listen=d.listen?d.listen:false;f.onChange=d.onChange?d.onChange:false;f.group=d.group?d.group:false;if(d.listen)_IG_Prefs._subscribePrefs(a,b)}};_IG_Prefs._addAll=function(a,b){for(var c=0;c0){e.unsubscribeMultiple(h);f=f.concat(h)}}var j=function(l,n){var p=new _IG_Prefs(a),o=[];for(var q=0;q0?a.split("|"):[];for(var c=0;c