function showWarning (obj) {
	myobj = _gel(obj);
	myobj.style.display = "block";
}

function cancelWarning(obj) {
	myobj = _gel(obj);
	myobj.style.display = "none";
}

function ig_u(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 _args(){
	var a={},b=document.location.search.substring(1),c=b.split("&");
	for(var d=0;d<c.length;d++){
		var e=c[d].indexOf("=");
		if(e==-1)continue;
		var f=c[d].substring(0,e),g=c[d].substring(e+1);
		g=g.replace(/\+/g," ");
		a[f]=_unesc(g)
	}
	return a
}

function ig_l(){
	var a={pid:1,host:1,gl:1,hl:1},b=_args(),c="?";
	for(var d in b){
		if(a[d]){
			c+=d+"="+_esc(b[d])+"&"
		}
	}
	return c
}

function _sendx(a,b,c,d){
	var e=ig_9();
	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 ig_9(){
	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
}

function ig_tb(a){
	var b=_gelstn("*");
	for(var c=0;c<b.length;c++){
		for(var d=0;d<a.length;d++){
			if(b[c].className==a[d][0]){
				b[c].style[a[d][1]]=a[d][2]
			}
		}
	}
}

(function(){
	function a(d){
		var e=window;
		if(d!=""){
			var f=d.split(".");
			while(f.length){
				var g=f.shift();
				if(typeof e[g]!="object"){
					e[g]={}
				}
			e=e[g]
		}
	}
	return e
}

function b(d,e){
	var f=a(d);
	for(var g=0;g<e.length;g+=2){
		f[e[g]]=e[g+1]
	}
}

function c(d,e,f,g,i){
	if(g){
		for(var h=0;h<g.length;h+=2){
			f.prototype[g[h]]=g[h+1]
			}
		}
	if(i){
		for(var h=0;h<i.length;h+=2){
			f[i[h]]=i[h+1]
		}
	}
	b(d,[e,f])
}

b("",["_exportSymbols",b]);
b("",["_exportClass",c]);
b("google.gadgets.Util",["args",_args])})();

var _uli,_pnlo,_mpnlo,_pl,_mod,_cbp=false,ig_1=false;
var _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_tb(a);
	if(_pl){
		if(_cbp||_uli){
			if(!ig_1&&!_mpnlo){
				_IG_initDrag(_table,_tabs);
				//_IG_initDrag(_table2,_tabs);
				ig_1=true
			}
		}
	}
}

var ig_k=0;

function _IG_Callback(a,b,c,d,e,f){
	var g=arguments;
	return function(){
		var i=[];
		for(var h=0;h<arguments.length;h++){
			i[i.length]=arguments[h]
		}
		for(var h=1;h<g.length;h++){
			i[i.length]=g[h]
		}
		a.apply(null,i)
	}
};

var ig_Ua={domload:1,xsetpdone:1,moduledragstart:1,moduledragend:1,moduletitleclick:1,moduleedit:1,modulecanceledit:1,moduledelete:1,moduleundelete:1,modulezip:1,moduleunzip:1,modulemaximize:1,moduleunmaximize:1,load:1,unload:1,resize:1},ig_Va={dragstart:1,dragend:1,titleclick:1,edit:1,canceledit:1,"delete":1,undelete:1,zip:1,unzip:1,maximize:1,unmaximize:1};

function ig_Na(a){
	var b="ig_event_hashcode_";
	if(a.hasOwnProperty&&a.hasOwnProperty(b)){
		return a[b]
	}
	if(!a[b]){
		a[b]=++ig_a.Ja
	}
	return a[b]
}

function ig_Ka(a){
	return"builtin_"+a
}

function ig_La(a,b){
	if(a.indexOf&&a.indexOf("m_")==0){
		a=a.substring(2)
	}
	return"builtin_m"+a+"_"+b
}

function ig_Ja(a,b){
	return"builtin_"+ig_a.Fa(a)+"_"+b
}

function ig_Ia(a){
	return"custom_"+a
}

function ig_Ma(){
	for(var a in ig_a.b){
		for(var b=0;b<ig_a.b[a].length;b++){
			ig_a.b[a][b]=null
		}
		if(a in ig_a.B){
			var c=ig_a.B[a],d=c[0],e=c[1],f=c[2];
			if(d.removeEventListener){
				d.removeEventListener(e,f,false)
			}
			else if(d.detachEvent){
				d.detachEvent("on"+e,f)
			}
			ig_a.B[a]=null
		}
	}
}

function ig_Oa(a,b,c){
	for(var d=c;d<b.length;d++){
		a[a.length]=b[d]
	}
	return a
}

function ig_Sa(a,b){
	if(a in ig_a.b){
		for(var c=0;c<ig_a.b[a].length;c++){
			if(ig_a.b[a][c]===b){
				ig_a.b[a][c]=null;
				return true
			}
		}
	}
	return false
}

function ig_0a(a,b){
	if(a in ig_a.b){
		for(var c=0;c<ig_a.b[a].length;c++){
			if(ig_a.b[a][c]){
				var d=[];
				for(var e=1;e<arguments.length;e++){
					d[d.length]=arguments[e]
				}
			ig_a.b[a][c].apply(this,d)
			}
		}
	}
}

function ig_Ga(a,b){
	if(!(a in ig_a.Ta)){
		throw Error("Unsupported event type: "+a);
	}
	var c=ig_a.N(a);
	if(!(c in ig_a.b)){
		ig_a.b[c]=[]
	}
	ig_a.b[c][ig_a.b[c].length]=b
}

function ig_Ha(a,b,c){
	if(!(b in ig_a.Ua)){
		throw Error("Unsupported module event type: "+b);
	}
	var d=ig_a.O(a,b);
	if(!(d in ig_a.b)){
		ig_a.b[d]=[]
	}
	ig_a.b[d][ig_a.b[d].length]=c
}

function ig_Fa(a,b,c){
	var d=ig_a.fa(a,b);
	if(!(d in ig_a.b)){
		ig_a.b[d]=[];
		var e=function(g){
			if(!g)g=window.event;
			ig_a.I.apply(a,[d,g])
		};
		if(a.addEventListener){
			a.addEventListener(b,e,false)
		}
		else if(a.attachEvent){
			a.attachEvent("on"+b,e)
		}
		else{
			throw Error("Object {"+a+"} does not support DOM events.");
		}
		ig_a.B[d]=[a,b,e]
	}
	var f=ig_a.b[d].length;
	if(a===window&&b=="unload"&&f>0){
		ig_a.b[d][f]=ig_a.b[d][f-1];
		ig_a.b[d][f-1]=c
	}
	else{
		ig_a.b[d][f]=c
	}
}

function ig_Ea(a,b){
	var c=ig_a.M(a);
	if(!(c in ig_a.b)){
		ig_a.b[c]=[]
	}
	ig_a.b[c][ig_a.b[c].length]=b
}

function ig_Ra(a,b){
	var c=ig_a.N(a);
	return ig_a.G(c,b)
}

function ig_Ta(a,b,c){
	var d=ig_a.O(a,b);
	return ig_a.G(d,c)
}

function ig_Qa(a,b,c){
	var d=ig_a.fa(a,b);
	return ig_a.G(d,c)
}

function ig_Pa(a,b){
	var c=ig_a.M(a);
	return ig_a.G(c,b)
}

function ig__a(a,b){
	var c=ig_a.t([ig_a.N(a)],arguments,1);
	ig_a.I.apply(window,c)
}

function ig_Ya(a,b){
	var c=ig_a.t([],arguments,0);
	setTimeout(function(){
		ig_a.triggerEvent.apply(window,c)
	},0)
}

function ig_1a(a,b,c){
	var d=ig_a.t([ig_a.O(a,b)],arguments,2);
	ig_a.I.apply(window,d)
}

function ig_Za(a,b,c){
	var d=ig_a.t([],arguments,0);
	setTimeout(function(){
		ig_a.triggerModuleEvent.apply(window,d)
	},0)
}

function ig_Wa(a,b){
	var c=ig_a.t([ig_a.M(a)],arguments,1);
	ig_a.I.apply(window,c)
}

function ig_Xa(a,b){
	var c=ig_a.t([],arguments,0);
	setTimeout(function(){
		ig_a.triggerCustomEvent.apply(window,c)
	},0)
}

var ig_a={
	Ja:0,
	b:{},
	B:{},
	Ta:ig_Ua,
	Ua:ig_Va,
	Fa:ig_Na,
	N:ig_Ka,
	O:ig_La,
	fa:ig_Ja,
	M:ig_Ia,
	Ca:ig_Ma,
	t:ig_Oa,
	G:ig_Sa,
	I:ig_0a,
	addEventHandler:ig_Ga,
	addModuleEventHandler:ig_Ha,
	addDOMEventHandler:ig_Fa,
	addCustomEventHandler:ig_Ea,
	removeEventHandler:ig_Ra,
	removeModuleEventHandler:ig_Ta,
	removeDOMEventHandler:ig_Qa,
	removeCustomEventHandler:ig_Pa,
	triggerEvent:ig__a,
	triggerModuleEvent:ig_1a,
	triggerCustomEvent:ig_Wa,
	triggerDelayedEvent:ig_Ya,
	triggerDelayedModuleEvent:ig_Za,
	triggerDelayedCustomEvent:ig_Xa},
	
	_IG_AddEventHandler=ig_a.addEventHandler,
	_IG_AddModuleEventHandler=ig_a.addModuleEventHandler,
	_IG_AddGadgetEventHandler=ig_a.addModuleEventHandler,
	_IG_AddDOMEventHandler=ig_a.addDOMEventHandler,
	_IG_AddCustomEventHandler=ig_a.addCustomEventHandler,
	_IG_RemoveEventHandler=ig_a.removeEventHandler,
	_IG_RemoveModuleEventHandler=ig_a.removeModuleEventHandler,
	_IG_RemoveGadgetEventHandler=ig_a.removeModuleEventHandler,
	_IG_RemoveDOMEventHandler=ig_a.removeDOMEventHandler,
	_IG_RemoveCustomEventHandler=ig_a.removeCustomEventHandler,
	
	_IG_TriggerEvent=ig_a.triggerEvent,
	_IG_TriggerModuleEvent=ig_a.triggerModuleEvent,
	_IG_TriggerGadgetEvent=ig_a.triggerModuleEvent,
	_IG_TriggerCustomEvent=ig_a.triggerCustomEvent,
	_IG_TriggerDelayedEvent=ig_a.triggerDelayedEvent,
	_IG_TriggerDelayedModuleEvent=ig_a.triggerDelayedModuleEvent,
	_IG_TriggerDelayedGadgetEvent=ig_a.triggerDelayedModuleEvent,
	_IG_TriggerDelayedCustomEvent=ig_a.triggerDelayedCustomEvent;




function _IG_RegisterMaximizeHandler(a,b){
	_IG_AddModuleEventHandler(a,"unmaximize",function(){b(false)});
	_IG_AddModuleEventHandler(a,"maximize",function(){b(true)})};
	var _currentLayout,_layoutData,_IG_Layouts={savedModulePositions:null};
	_IG_Layouts._selectLayout=function(a){
		var b=_gel("edit_this_tab_form").edit_this_tab_selected_layout;
		for(var c=0;c<b.length;c++){
			var d=b[c].value,e=_gel("edit_this_tab_layoutimg_"+d);
			if(d!=a){
				b[c].checked=false;
				if(e.src.indexOf("_highlight")!=-1){
					e.src=e.src.substring(0,e.src.indexOf("_highlight"))+".gif"
				}
			}
			else{
				b[c].checked=true;
				if(e.src.indexOf("_highlight")==-1){
					e.src=e.src.substring(0,e.src.indexOf(".gif"))+"_highlight.gif"
				}
			}
		}
	};
	_IG_Layouts._renderLayout=function(a){
		if(!_IG_Layouts.isLayoutValid(a)){
			return false
		}
		var b=_IG_Layouts.getColumnsInOrder(),c=_layoutData[a],d=false;
		for(var e=0;e<b.length;e++){
			b[e].style.width=c.sizes[e];
			if(b[e].style.display!=c.display[e]){
				b[e].style.display=c.display[e];
				d=true
			}
		}
		if((a==_currentLayout||d)&&!_IG_Layouts.rearrangeModules(a)){
			return false
		}
	return true};
	
	_IG_Layouts.rearrangeModules=function(a){
		if(!_IG_Layouts.isLayoutValid(a)){
			return false
		}
		var b=_IG_Layouts.getColumnsInOrder(),c=_gel("lc_opt"),d=b[_layoutData[a].visibleColumns-1];
		d.insertBefore(c,d.firstChild);
		if(_IG_Layouts.savedModulePositions!=null&&a==_currentLayout){
			for(var e=0;e<b.length;e++){
				var f=_IG_Layouts.savedModulePositions[e];
				for(var g=0;g<f.length;g++){
					var i=_gel(f[g]);
					if(i!=null){
						b[e].insertBefore(i,b[e].lastChild)
					}
				}
			}
			return true
		}
		var h=[],j=[];
		for(var e=0;e<b.length;e++){
			j.push(b[e].firstChild)
		}
		var k=false;
		do{
			k=false;
			for(var e=0;e<j.length;e++){
				while(j[e]!=null&&j[e].id.indexOf("m_")==-1){
					j[e]=j[e].nextSibling
				}
			if(j[e]!=null&&j[e].id.indexOf("m_")!=-1){
				h.push(j[e].id);
				k=true;
				j[e]=j[e].nextSibling
				}
			}
		}while(k);

		var m=0;
		for(var g=0;g<h.length;g++){
			b[m].insertBefore(_gel(h[g]),b[m].lastChild);
			do{
				m++;
				if(m>=b.length){
					m=0
				}
			}while(b[m].style.display=="none")}
		return true
	};
	_IG_Layouts._saveModulePositions=function(){
		var a=_IG_Layouts.getColumnsInOrder();
		_IG_Layouts.savedModulePositions=[];
		for(var b=0;b<a.length;b++){
			_IG_Layouts.savedModulePositions[b]=[];
			var c=_IG_Layouts.savedModulePositions[b];
			for(var d=0;d<a[b].childNodes.length-1;d++){
				var e=a[b].childNodes[d];
				if(e.tagName=="DIV"&&e.id.indexOf("m_")!=-1){
					c.push(e.id)
				}
			}
		}
	};
	_IG_Layouts._editTabSettingsSubmit=function(a){
		var b=_gel("edit_this_tab_form").edit_this_tab_selected_layout,c=-1;
		for(var d=0;d<b.length;d++){
			if(b[d].checked==true){
				c=b[d].value
			}
		}
		var e="",f=_gel("edit_this_tab_name").value;
		if(_gel("tab"+a+"_view_title").innerHTML!=f&&f!=""){
			e+="rt_"+a+"="+_esc(f);
			_gel("tab"+a+"_view_title").innerHTML=_hesc(f);
			_gel("tab"+a+"_title").value=_hesc(f);
			var g=_gel("tip_tabtitle");
			if(g!=null){
				g.innerHTML=_hesc(f)
			}
		}
		if(c!=_currentLayout){
			e+=e==""?"":"&";
			e+="lt_"+a+"="+c;
			_currentLayout=c;
			var i=_IG_Layouts.getColumnsInOrder(),h="";
			for(var j=0;j<i.length;j++){
				for(var k=0;k<i[j].childNodes.length-1;k++){
					var m=i[j].childNodes[k];
					if(m.tagName=="DIV"&&m.id.indexOf("m_")!=-1){
						h+=h==""?"":":";h+=m.id.substring(2)+"_"+(j+1)
					}
				}
			}
			e+="&mp="+_esc(h)
		}
		if(e!=""){_xsetp(e)}
		_IG_Layouts.savedModulePositions=null
	};
	
	_IG_Layouts._editTabSettingsCancel=function(){
		_IG_Layouts._renderLayout(_currentLayout);
		_IG_Layouts.savedModulePositions=null
	};
	
	_IG_Layouts.getColumnsInOrder=function(){
		var a=4,b=[];
		for(var c=1;c<=a;c++){
			var d=_gel("c_"+c);
			if(d==null){break}
			b.push(d)
		}
		return b
	};
	
	_IG_Layouts.isLayoutValid=function(a){
		if(a<0||a>_layoutData.length-1){
			return false
		}
		return true
	};
	
	var _IG_time={times:{epoch:(new Date).getTime()},set_epoch:function(a){_IG_time.times.epoch=a},epoch:function(){return _IG_time.times.epoch},start:function(a){_IG_time.times[a]=(new Date).getTime()},stop:function(a){var b=_IG_time.times[a]?_IG_time.times[a]:_IG_time.epoch();_IG_time.times[a]=(new Date).getTime()-b},get:function(a){return _IG_time.times[a]},print:function(a){document.write("<div style='color:#999999;font-size:75%'>"+a+" : "+_IG_time.get(a)+"ms</div>")},stop_and_print:function(a){_IG_time.stop(a);
_IG_time.print(a)}};if(window._IG_time_epoch){_IG_time.set_epoch(window._IG_time_epoch)};

function ig_N(a){
	var b="",c=this.R(a,b);return c!=null?c+"":b
}

function ig_J(a){
	var b=0,c=parseInt(this.R(a,b),10);
	return isNaN(c)?b:c
}

function ig_H(a){
	var b=this.getString(a);return b=="true"||!(!parseInt(b,10))
}

function ig_G(a){
	return _IG_Prefs._strToArray(this.R(a,""))
}

function ig_P(a,b){
	this.set(a,_IG_Prefs._arrayToStr(b))
}



function ig_7a(){
	return parseInt(this.r(_IG_Prefs.ta,"0"),10)
}

function ig_8a(){
	return parseInt(this.r(_IG_Prefs.ua,"0"),10)
}

var ig_y=[],ig_z=false;

function ig_7(){
	if(ig_y.length==0){
		ig_z=false;
		return
	}
	ig_z=true;
	var a=_setp_url+ig_l()+"et="+_et+"&pid="+_pid+"&ap="+_authpath+"&source="+_source+"&prefid="+_prefid,b=ig_y.shift(),c=a.length+b.length>=1800;
	if(c){
		_sendx(a,ig_8,false,b)
	}
	else{
		a+="&"+b;_sendx(a,ig_8,false,null)
	}
}

function ig_8(){
	_IG_TriggerDelayedEvent("xsetpdone");
	ig_7()
}

function _xsetp(a){
	ig_y.push(a);
	if(!ig_z){
		ig_7()
	}
}

function _esc(a) {
	return window.encodeURIComponent?encodeURIComponent(a):escape(a)
}

function ig_K(){
	return this.getString(".lang")
}

function ig_I(){
	return this.getString(".country")
}

function ig_ab(a,b){
	return this.r(_IG_Prefs.e+a,b)
}

function ig_L(a){
	return this.r(_IG_Prefs.K+a,"")
}

function ig_O(){
	var a=Math.floor(arguments.length/2);
	if(a==0){return}
	var b=[];
	for(var c=0;c<a;++c){
		var d=arguments[c*2],e=arguments[c*2+1];
		if(_IG_Prefs.T){
			b.push("m_"+this.U+"_up_"+d+"="+_esc(e))
		}
		else{
			b.push(d,e)
		}
		var f=this.c[_IG_Prefs.e+d];
		if(f){
			f.value=e
		}
		else{
			f={};
			f.value=e;
			this.c[_IG_Prefs.e+d]=f
		}
	}
	this.Qa(arguments);
	if(b.length>0){
		if(_IG_Prefs.T){
			_xsetp(b.join("&"))
		}
		else{
			if(_args().synd=="open"){return}
			_IFPC_SetPref(b)
		}
	}
}

function ig_M(){var a=["__module_id__="+this.U];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_N;
	this.getInt=ig_J;
	this.getBool=ig_H;
	this.getArray=ig_G;
	this.setArray=ig_P;
	this.getCountry=ig_I;
	this.getLang=ig_K;
	this.getMsg=ig_L;
	this.getMsgFormatted=ig_9a;
	this.set=ig_O;
	this.getPreloadedString=ig_M;
	this.dump=ig_6a;
	this.Aa=ig_5a;
	this.ia=ig_$a;
	this.Na=ig_db;
	this.Pa=ig_eb;
	this.Qa=ig_fb;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_7a;this.getModuleWidth=ig_8a;this.c=_IG_Prefs.c[_IG_Prefs.L+a]||{};this.r=ig_bb;this.R=ig_ab;this.U=a;this.Ma=ig_cb}_IG_Prefs.ta="h";_IG_Prefs.ua="w";_IG_Prefs.L="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.K="msg_";_IG_Prefs._parseURL=function(a){_IG_Prefs.T=false;var b={},c=window.location.search.substring(1).split("&");for(var d=0;d<c.length;++d){var e=c[d].indexOf("=");if(e>=0){var f=c[d].substring(0,e);f=f.replace(/\+/g," ");var g=c[d].substring(e+1);g=g.replace(/\+/g," ");g=_unesc(g);var i=false;for(var h in _IG_Prefs.PREFIXES_TO_FIELDS){if(f.indexOf(h)==0){i=true;f=f.substring(h.length);f=_IG_Prefs.e+f;
b[f]=b[f]?b[f]:{};if(h==_IG_Prefs.USER_PREF_PREFIX_PUBLISH||h==_IG_Prefs.USER_PREF_PREFIX_LISTEN){if(g=="true"){g=true}else{g=false}}b[f][_IG_Prefs.PREFIXES_TO_FIELDS[h]]=g;break}}if(!i){if(f.indexOf(_IG_Prefs.K)==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.L+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._subscribePrefs=
function(a,b){var c=_IG_Prefs.L+a,d=_IG_Prefs.c[c][b],e=new _IG_PubSub(a),f=[b.substring(_IG_Prefs.e.length)];if(d.group){var g=_IG_Prefs.c[c],i=[];for(var h in g){if(g[h].group&&g[h].listen&&g[h].group==d.group&&h!=b){i.push(h.substring(_IG_Prefs.e.length))}}if(i.length>0){e.unsubscribeMultiple(i);f=f.concat(i)}}var j=function(m,n,o){var p=new _IG_Prefs(a),q=[];for(var l=0;l<m.length;++l){var s=p.c[_IG_Prefs.e+n[l]],r=s.datatype,t=n[l],v=m[l],u=p.Aa(v,r);if(r=="location"){q.push(t+".long",u[1]);
q.push(t+".lat",u[2]);q.push(t,u[0])}else{q.push(t,u)}}q.push(false);p.set.apply(p,q)},k={};k.triggerOn="any";k.shouldReceiveLocalEvents=false;e.subscribeMultiple(f,j,k)};_IG_Prefs._arrayToStr=function(a){var b=a.length&&a.join;if(b){var c=[];for(var d=0;d<a.length;++d){c.push(a[d].replace(/\|/g,"%7C"))}return c.join("|")}else{return new String(a)}};_IG_Prefs._strToArray=function(a){var b=a.length>0?a.split("|"):[];for(var c=0;c<b.length;++c){b[c]=b[c].replace(/%7C/g,"|")}return b};_IG_Prefs.c={};
_IG_Prefs.T=true;_exportClass("google.gadgets","Prefs",_IG_Prefs,["getString",ig_N,"getInt",ig_J,"getBool",ig_H,"getArray",ig_G,"getLang",ig_K,"getCountry",ig_I,"getMsg",ig_L,"getPreloadedString",ig_M,"set",ig_O,"setArray",ig_P]);

function _IG_FetchContent(a,b,c){var d;d=c!=null&&typeof c=="object"?ig_s(c):{};d.url=a;d.callback=b;d.asXml=false;ig_A(d)}

function _IG_FetchXmlContent(a,b,c){var d;d=c!=null&&typeof c=="object"?ig_s(c):{};d.url=a;d.callback=b;d.asXml=true;ig_A(d)}

function _IG_FetchFeedAsJSON(a,b,c,d,e){var f;if(typeof e=="object"){f=ig_s(e)}else{f={}}if(!isNaN(f.refreshInterval)&&f.refreshInterval>=0){a=_appendCacheParameter(a,f.refreshInterval)}var g="fr_"+ig_lb++,f="url="+_esc(a);if(c){f+="&val="+_esc(c)}if(d){f+="&sum=1"}var i=g+"="+_esc(f);if(ig_W){var h={};h[g]=b;ig_B(i,h)}else{if(ig_g!="")ig_g+="&";ig_g+=i;ig_t[g]=b}}function ig_hb(){ig_W=true;if(ig_g!=""){ig_B(ig_g,
ig_t)}ig_g="";ig_t=null}_IG_AddEventHandler("domload",ig_hb);_exportSymbols("google.gadgets.Fetchers",["getContent",_IG_FetchContent,"getXMLContent",_IG_FetchXmlContent,"getFeedAsJSON",_IG_FetchFeedAsJSON]);var ig_R=(function(){var a={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},b={"boolean":function(c){return String(c)},number:function(c){return isFinite(c)?String(c):"null"},string:function(c){if(/["\\\x00-\x1f]/.test(c)){c=c.replace(/([\x00-\x1f\\"])/g,function(d,e){var f=a[e];if(f){return f}f=e.charCodeAt();return"\\u00"+Math.floor(f/16).toString(16)+(f%16).toString(16)})}return'"'+c+'"'},object:function(c){if(c){var d=[],e,f,g,i,h;if(c instanceof Array){d[0]=
"[";i=c.length;for(g=0;g<i;g+=1){h=c[g];f=b[typeof h];if(f){h=f(h);if(typeof h=="string"){if(e){d[d.length]=","}d[d.length]=h;e=true}}}d[d.length]="]"}else if(typeof c.hasOwnProperty==="function"){d[0]="{";for(g in c){if(c.hasOwnProperty(g)){h=c[g];f=b[typeof h];if(f){h=f(h);if(typeof h=="string"){if(e){d[d.length]=","}d.push(b.string(g),":",h);e=true}}}}d[d.length]="}"}else{return}return d.join("")}return"null"}};return{copyright:"(c)2005 JSON.org",license:"http://www.JSON.org/license.html",stringify:function(c){var d=
b[typeof c];if(d){c=d(c);if(typeof c=="string"){return c}}return null},parse:function(c){try{return!/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(c.replace(/"(\\.|[^"\\])*"/g,""))&&eval("("+c+")")}catch(d){return false}}}})();

function ig_Ba(a){
	var b=document.createElement("DIV");
	b.innerHTML="<iframe onload='this.pool_locked=false'></iframe>";
	var c=b.getElementsByTagName("IFRAME")[0];
	c.style.visibility="hidden";
	c.style.width=(c.style.height="0px");
	c.style.border="0px";
	c.style.position="absolute";
	c.pool_locked=a;
	this.f[this.f.length]=c;
	b.removeChild(c);
	b=null;
	return c
}

function ig_Ca(a){
	if(!a.match(/^http[s]?:\/\//)){return}
	var b=this;
	window.setTimeout(function(){
		var c=null;
		for(var d=b.f.length-1;d>=0;d--){
			var e=b.f[d];
			if(e&&!e.pool_locked){
				e.parentNode.removeChild(e);
				if(window.ActiveXObject){
					e=null;
					b.f[d]=null;
					b.f.splice(d,1)
				}
				else{
					e.pool_locked=true;c=e;break
				}
			}
		}
		c=c?c:b.Ba(true);
		c.src=a;
		document.body.appendChild(c)
	},0)
}


function ig_Aa(){for(var a=0;a<this.f.length;a++){this.f[a].onload=null;this.f[a]=null}this.f.length=0;this.f=[]}function ig_za(){this.f=[];this.Ba=ig_Ba;this.iframe=ig_Ca;this.clear=ig_Aa}function ig_wa(a,b){_IFPC.z[a]=b}function ig_ya(a){delete _IFPC.z[a]}function ig_la(a,b,c,d,e,f,g){c=c.slice(0);c.unshift(_IFPC.Ra(e));
c.unshift(f);c.unshift(b);c.unshift(a);var i=4095-d.length;i=parseInt(i/3,10);if(typeof g=="undefined"){g=true}var h=_IFPC.ha(c),j=parseInt(h.length/i,10);if(h.length%i>0){j+=1}for(var k=0;k<j;k++){var m=h.substr(k*i,i),n=[a,_IFPC.ea,j,k,m,g];_IFPC.ja.iframe(d+"#"+_IFPC.ha(n))}_IFPC.ea++}function ig_na(){_IFPC.z={};_IFPC.m={};_IFPC.ja.clear()}function ig_C(a){var b=_IFPC.P(a)[0],c=null;try{c=window.parent.frames[b]}catch(d){}try{if(!c&&window.parent.parent.frames[b]!=window.parent){c=window.parent.parent.frames[b]}}catch(d){}if(!c){c=
window.parent.parent}var e=function(){c._IFPC.handleRequest(a)};if(window.ActiveXObject){e()}else{c.setTimeout(e,0)}}function ig_ta(a){var a=_IFPC.P(a),b=a.shift(),c=a.shift(),d=a.shift(),e=a.shift(),f=a.shift(),g=a.shift(),i=b+"_"+c;if(!_IFPC.k[i])_IFPC.k[i]=[];_IFPC.k[i].push([e,f]);if(_IFPC.k[i].length==d){_IFPC.k[i].sort(function(q,l){return parseInt(q[0],10)-parseInt(l[0],10)});f="";for(var h=0;h<d;h++){f+=_IFPC.k[i][h][1]}_IFPC.k[i]=null;var j=_IFPC.P(f),b=j.shift(),k=j.shift(),m=j.shift(),
n=j.shift(),o=_IFPC.Ha(k);if(o){var p=o.apply(null,j);if(_IFPC.Ka(n)){p.unshift(n);_IFPC.call(b,_IFPC.aa,p,m,null,"")}}else if(g){throw new Error("Service "+k+" not registered.");}}}function ig_sa(a){if(_IFPC.z.hasOwnProperty(a)){return _IFPC.z[a]}else{return null}}function ig_va(a){var b="";if(a&&typeof a=="function"){b=_IFPC.Ga();_IFPC.m[b]=a}return b}function ig_xa(a){if(_IFPC.m.hasOwnProperty(a)){_IFPC.m[a]=null}}function ig_qa(a){if(a&&_IFPC.m.hasOwnProperty(a)){return _IFPC.m[a]}return null}
function ig_ra(){return _IFPC.$+_IFPC.ya++}


function ig_ua(a){
	return(a+"").indexOf(_IFPC.$)==0
}

function ig_oa(a){
	var b=a.split("&");
	for(var c=0;c<b.length;c++){
		var d=decodeURIComponent(b[c]);
		try{
			d=ig_R.parse(d)
		}
		catch(e){}
		b[c]=d
	}
	return b
}

function ig_pa(a){
	var b=[];
	for(var c=0;c<a.length;c++){
		var d=ig_R.stringify(a[c]);
		b.push(encodeURIComponent(d))
	}
	return b.join("&")
}

function ig_ma(a){
	var b=_IFPC.Ea(a);
	if(b){
		var c=[];
		for(var d=1;d<arguments.length;d++){
			c[c.length]=arguments[d]
		}
		b.apply(null,c);
		_IFPC.Va(a)
	}
	else{
		throw new Error("Invalid callbackId");
	}
}

var _IFPC={
	registerService:ig_wa,
	unregisterService:ig_ya,
	call:ig_la,clear:ig_na,
	relayRequest:ig_C,
	processRequest:ig_C,
	handleRequest:ig_ta,
	$:"cbid",
	aa:"ifpc_callback",
	ja:new ig_za,
	k:{},
	z:{},
	m:{},
	ya:0,
	ea:0,
	Ha:ig_sa,
	Ra:ig_va,
	Va:ig_xa,
	Ea:ig_qa,
	Ga:ig_ra,
	Ka:ig_ua,
	P:ig_oa,
	ha:ig_pa,
	za:ig_ma
};

_IFPC.registerService(_IFPC.aa,_IFPC.za);

var ig_d={
	obj:null,
	init:function(a,b){
		a.onmousedown=ig_d.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.qa);
		a.onmousedown=null;
		a.obj=null;
		b.onDragStart=null;
		b.onDragEnd=null;
		b.onDrag=null
	},
	start:function(a){
		var b=ig_d.obj=this.obj;
		a=ig_d.fixE(a);
		if(a.which!=1){return true}
		b.onDragStart(a);
		var c=a.clientY;
		if(!ig_.la){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.qa=window.setInterval(ig_kb(b,ig_qb()),10);
		document.onmouseup=ig_d.end;
		document.onmousemove=ig_d.drag;
		return false
	},
	drag:function(a){
		a=ig_d.fixE(a);
		if(a.which==0){return ig_d.end()}
		var b=ig_d.obj,c=a.clientY;
		if(!ig_.la){c+=document.body.scrollTop}
		var d=a.clientX;
		if(b.lastMouseX==d&&b.lastMouseY==c){return false}
		var e=d+b.offsetMouseX,f=c+b.offsetMouseY;
		b.style.left=e+"px";
		b.style.top=f+"px";
		b.lastMouseX=d;
		b.lastMouseY=c;
		b.onDrag(e,f);
		return false
	},
	end:function(a){
		a=ig_d.fixE(a);
		document.onmousemove=null;
		document.onmouseup=null;
		window.clearInterval(ig_d.obj.qa);
		var b=ig_d.obj.onDragEnd();
		ig_d.obj=null;
		return b
	},
	fixE:function(a){
		if(typeof a=="undefined")a=window.event;
		if(typeof a.layerX=="undefined")a.layerX=a.offsetX;
		if(typeof a.layerY=="undefined")a.layerY=a.offsetY;
		if(typeof a.which=="undefined")a.which=a.button;
		return a
	}
};

function ig_pb(a,b,c){
	var d=b=="*"&&a.all?a.all:a.getElementsByTagName(b),e=[];c=c.replace(/\-/g,"\\-");
	var f=new RegExp("(^|\\s)"+c+"(\\s|$)"),g;
	for(var i=0;i<d.length;i++){
		g=d[i];
		if(f.test(g.className)){e.push(g)}
	}
	return e
}

var _IG_initDrag=function(a,b){
	ig_.A=a;
	ig_.u=b;
	ig_.o=ig_pb(ig_.A,"div","yui-u");
	if(_old_html){ig_.pa=ig_.A.tBodies[0].rows[0];ig_.o=ig_.pa.cells}
	ig_.g=[];
	var c=0;
	for(var d=0;d<ig_.o.length;d++){
		var e=ig_.o[d];
		if(e.className.indexOf("ig_dnd_fixed_col")!=-1||e.style.display=="none"){continue}
		for(var f=0;f<e.childNodes.length;f++){
			
			var g=e.childNodes[f];
			if(g.tagName=="DIV"){
				ig_.g[c]=g.className!="dm"?new ig_$(g):new ig_ja(g);
				c++
			}
		}
	}
	_IG_AddEventHandler("unload",ig_Q)
};
	
function ig_Q(){
	for(var a=0;a<ig_.g.length;a++){
		ig_.g[a].ga();
		ig_.g[a]=null
	}
	ig_.g=null;
	ig_.o=null;
	if(_old_html){ig_.pa=null}
	ig_.A=null
}

var ig_={};
ig_.Z=navigator.userAgent;
ig_.La=ig_.Z.indexOf("Gecko")!=-1;
ig_.ka=ig_.Z.indexOf("Opera")!=-1;
ig_.la=ig_.Z.indexOf("Safari")!=-1;
ig_.ca="IG_pageDivMaskId";
ig_.ba="IG_moduleDivMaskId";
ig_.Wa=function(){ig_.A.style.display="none"};
ig_.Xa=function(){ig_.A.style.display=""};
ig_.l=null;
ig_.C=function(){
	if(!ig_.l){
		ig_.l=document.createElement("DIV");
		ig_.l.className="modbox";
		ig_.l.backgroundColor="";
		ig_.l.style.border="2px dashed #aaa";
		ig_.l.innerHTML="&nbsp;"
	}
	return ig_.l
};
	
ig_.n=function(a,b){
		return function(){
			return a[b].apply(a,arguments)
		}
	};
	
ig_.xa=function(){
	if(ig_.u){
		var a=ig_.u.getElementsByTagName("LI");
		if(_old_html){
			a=ig_.u.tBodies[0].rows[0].cells
		}
		for(var b=0;b<a.length;b++){
			var c=a[b];
			if(c.className.indexOf("unselectedtab")<0)continue;
			if(c.style.display=="none")continue;
			c.isDraggableTo=true;
			c.pagePosLeft=ig_.q(c,true);
			c.pagePosRight=c.pagePosLeft+c.offsetWidth;
			c.pagePosTop=ig_.q(c,false);
			c.pagePosBottom=c.pagePosTop+c.offsetHeight
		}
	}
};

ig_.wa=function(a){
	for(var b=0;b<ig_.g.length;b++){
		var c=ig_.g[b];
		c.a.pagePosLeft=ig_.q(c.a,true);
		c.a.pagePosTop=ig_.q(c.a,false)
	}
	var d=a.a.nextSibling;
	while(d){
		d.pagePosTop-=a.a.offsetHeight;
		d=d.nextSibling
	}
};

ig_.q=function(a,b){
	var c=0,d=0;
	if(a&&a.offsetParent&&a.offsetParent.id){
		if(!b){
			var e=a.offsetParent.getElementsByTagName(a.tagName);
			if(e&&e[0]){
				d=e[0].offsetTop
			}
		}
	}
	while(a){
		c+=a["offset"+(b?"Left":"Top")];
		a=a.offsetParent
	}
	return c-d
};

ig_.va=function(a){
	ig_.oa();
	var b=document.createElement("DIV");
	b.id=ig_.ca;
	b.innerHTML="&nbsp;";
	b.style.position="absolute";
	b.style.width="100%";
	b.style.height=document.body.offsetHeight+"px";
	b.style.left="0px";
	b.style.top="0px";
	b.style.backgroundImage="url(http://www.google.com/ig/images/cleardot.gif)";
	b.style.zIndex="9999";
	document.body.appendChild(b);
	if(a.Ia){
		b=b.cloneNode(true);
		b.id=ig_.ba;b.style.height=a.a.offsetHeight-a.h.offsetHeight+"px";
		b.style.top=a.h.offsetHeight+"px";
		a.a.appendChild(b)
	}
};

ig_.oa=function(){
	var a=[ig_.ba,ig_.ca];
	for(var b=0;b<a.length;b++){
		var c=_gel(a[b]);
		if(c){
			c.parentNode.removeChild(c);
			c=null
		}
	}
};

ig_.Sa=function(){
	var a="";
	for(var b=0;b<ig_.o.length;b++){
		var c=ig_.o[b];
		for(var d=0;d<c.childNodes.length-1;d++){
			var e=c.childNodes[d];
			if(e.tagName=="DIV"){
				a+=a!=""?":":"";
				a+=e.id.substring(2)+"_"+c.id.substring(2)
			}
		}
	}
	_xsetp("mp="+_esc(a))
};

function ig_ja(a){
	this.ga=ig_ka;
	this.a=a;
	this.a.innerHTML="<br />"
}

function ig_ka(){
	this.a=null
}

function ig_$(a){
	this._urlMouseUp=ig_ia;
	this._urlMouseDown=ig_ha;
	this._urlClick=ig_ga;
	this._dragStart=ig_da;
	this._drag=ig_ba;
	this._dragEnd=ig_ca;
	this.Da=ig_ea;
	this.J=ig_fa;
	this.ga=ig_aa;
	this.v=false;
	this.a=a;
	this.h=_gel(a.id+"_h");
	this.d=_gel(a.id+"_url");
	this.Ia=this.a.getElementsByTagName("IFRAME").length>0;
	this.a.DND_Module=this;
	if(this.h){
		this.h.style.cursor="move";
		ig_d.init(this.h,this.a);
		this.a.onDragStart=ig_.n(this,"_dragStart");
		this.a.onDrag=ig_.n(this,"_drag");
		this.a.onDragEnd=ig_.n(this,"_dragEnd");
		if(this.d){
			this.d.style.cursor="pointer";
			if(ig_.La){
				this.d.onmousedown=ig_.n(this,"_urlMouseDown");
				this.d.onclick=ig_.n(this,"_urlClick")
			}
			else{
				this.d.onmouseup=ig_.n(this,"_urlMouseUp")
			}
		}
	}
}

function ig_aa(){
	if(this.h){
		if(this.d){
			this.d.onclick=null;
			this.d.onmouseup=null;
			this.d=null
		}
		ig_d.uninit(this.h,this.a);
		this.a.onDragStart=null;
		this.a.onDrag=null;
		this.a.onDragEnd=null;
		this.h=null
	}
	this.a=null
}

function ig_ia(a){
	a=ig_d.fixE(a);
	if(this.v||!this.d||!this.d.href||a.which!=1){return true}
	this.J("titleclick");
	if(this.d.target||a.shiftKey){
		window.open(this.d.href,this.d.target)
	}
	else{
		document.location=this.d.href
	}
	return false
}

function ig_ha(a){
	a=ig_d.fixE(a);
	a.stopPropagation();
	return true
}

function ig_ga(a){
	if(!this.v&&this.d&&this.d.href){
		this.J("titleclick");
		return true
	}
	return false
}

function ig_da(a){
	ig_.wa(this);
	ig_.xa();
	this.origNextSibling=this.a.nextSibling;
	var b=ig_.C(),c=this.a.offsetHeight;
	c-=parseInt(b.style.borderTopWidth,10)*2;
	var d=this.a.offsetWidth,e=ig_.q(this.a,true),f=ig_.q(this.a,false);
	this.a.style.width=d+"px";
	b.style.height=c+"px";
	this.a.parentNode.insertBefore(b,this.a.nextSibling);
	this.a.style.position="absolute";
	this.a.style.zIndex=10000;
	this.a.style.left=e+"px";
	this.a.style.top=f+"px";
	ig_.va(this);
	this.v=false;
	return false
}

function ig__(){
	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_ba(a,b){
	if(!this.v){
		this.a.style.filter="alpha(opacity=50)";
		this.a.style.opacity=0.5;
		this.v=true;
		this.J("dragstart")
	}
	var c=null,d=100000000;
	for(var e=0;e<ig_.g.length;e++){
		var f=ig_.g[e],g=a;
		if(document.body.dir=="rtl"&&f.a.offsetWidth==1){
			g+=this.a.offsetWidth
		}
		var i=Math.sqrt(Math.pow(g-f.a.pagePosLeft,2)+Math.pow(b-f.a.pagePosTop,2));
		if(f==this)continue;
		if(isNaN(i))continue;
		if(i<d){
			d=i;c=f
		}
	}
	this.j=null;
	if(ig_.u){
		var h=ig_.u.getElementsByTagName("LI");
		if(_old_html){
			h=ig_.u.tBodies[0].rows[0].cells
		}
		for(var e=0;e<h.length;e++){
			var f=h[e];
			if(!f.isDraggableTo)continue;
			var j=ig__();
			if(this.a.lastMouseX>=f.pagePosLeft&&this.a.lastMouseX<=f.pagePosRight&&this.a.lastMouseY+j[1]>=f.pagePosTop&&this.a.lastMouseY+j[1]<=f.pagePosBottom){
				this.j=f;
				var k=ig_.C();
				if(k.parentNode!=null){
					k.parentNode.removeChild(k)
				}
			break
		}
	}
	for(var e=0;e<h.length;e++){
		var f=h[e];
		if(f.id.indexOf("view")>=0){
			if(f==this.j){
				if(f.className.indexOf(" tab_hover")<0){
					f.className+=" tab_hover"}
				}
				else{
					f.className=f.className.replace(/ tab_hover/g,"")
				}
			}
		}
	}
	var k=ig_.C();
	if(this.j==null&&c!=null&&k.nextSibling!=c.a){
		c.a.parentNode.insertBefore(k,c.a);
		if(ig_.ka){
			document.body.style.display="none";
			document.body.style.display=""
		}
	}
}

function ig_ca(){
	ig_.oa();
	if(this.Da()){
		ig_.Sa()
	}
	if(this.j){
		var a=this.j.id.match(/tab(\d+)_/)[1],b=this.a.id.match(/m_(\d+)/)[1];
		_xsetp("mt="+b+":"+a);
		this.a.style.display="none";
		this.j.className=this.j.className.replace(/ tab_hover/g,"")
	}
	_hideNewUserTip();
	if(this.v){
		this.J("dragend")
	}
	return true
}

function _hideNewUserTip(){
	var a=_gel("new_user_tip");
	if(a){a.style.display="none"}
	var b=_gel("new_user_save");
	if(b){b.style.display="block"}
}

function ig_ea(){
	var a=false;
	this.a.style.position="";
	this.a.style.width="";
	this.a.style.zIndex="";
	this.a.style.filter="";
	this.a.style.opacity="";
	window.scrollBy(0,0);
	var b=ig_.C();
	if(b.parentNode!=null){
		if(b.nextSibling!=this.origNextSibling){
			b.parentNode.insertBefore(this.a,b.nextSibling);
			a=true
		}
		b.parentNode.removeChild(b)
	}
	if(ig_.ka){
		document.body.style.display="none";
		document.body.style.display=""
	}
	return a
}

function ig_fa(a){
	switch(a){
		case "titleclick":
			_IG_TriggerModuleEvent(this.a.id,a,this.d.href);
			_IG_TriggerEvent("module"+a,this.a.id,this.d.href);
			break;
		case "dragstart":
		case "dragend":
			_IG_TriggerDelayedModuleEvent(this.a.id,a);
			_IG_TriggerDelayedEvent("module"+a,this.a.id);
			showWarning('warningSaveLayout');
			break
	}
}

function ig_kb(a,b){
	return function(){
		var c=ig_ob(),d=ig__(),e=d[1],f=4,g=0.05*c,i=e,h=a.offsetTop;
		if(a.lastMouseY<=g){
			h=a.offsetTop-f;i=e-f
		}
		else if(a.lastMouseY>=c-g){
			h=Math.min(b-a.offsetHeight,a.offsetTop+f);
			i=Math.min(b-c,e+f)
		}
		var j=i-e;
		if(j!=0){
			window.scrollBy(0,j);
			a.style.top=h+"px"
		}
	}
}

function ig_ob(){
	var a;
	if(window.innerHeight){	a=window.innerHeight}
	else if(document.documentElement&&document.documentElement.clientHeight){a=document.documentElement.clientHeight}
	else{a=document.body.offsetHeight}
	if(a<document.body.clientHeight){return a}
	return document.body.clientHeight
}

function ig_qb(){
	if(document.body.scrollHeight>document.documentElement.clientHeight){
		return document.body.scrollHeight
	}
	else{
		return document.documentElement.clientHeight
	}
};

var ig_3,ig_2=100,ig_sb=ig_2+1;

function _maxm_findTopLeft(a,b){
	var c=_gel("modules"),d=50,e=50;
	switch(b){
		case "cover":
		case "iframe":a.style.top=c.offsetTop+"px";
		a.style.left="0px";
		break;
		case "mod_self":a.style.top=c.offsetTop+d+"px";
		a.style.left=e+"px";
		break
	}
}

function _maxm_findWidthHeight(a,b){
	var c=50,d=50,e=_gel("modules"),f=_gel("IG_max_div_dummy").previousSibling;
	switch(b){
		case "cover":a.style.width=e.offsetWidth-2*d+"px";a.style.height=e.offsetHeight-2*c+"px";break;case "iframe":a.style.width=e.offsetWidth-2*d+"px";a.style.height=f.offsetHeight+"px";break;case "mod_self":a.style.width=e.offsetWidth-2*d+"px";break
	}
}

function _maxm_position(){
	var a=_gel("IG_max_bg"),b=_gel("IG_max_iframe_cover"),c=_gel("IG_max_div_dummy").previousSibling;
	if(a&&b){
		_maxm_findTopLeft(a,"cover");
		_maxm_findTopLeft(b,"iframe");
		_maxm_findTopLeft(c,"mod_self");
		_maxm_findWidthHeight(a,"cover");
		_maxm_findWidthHeight(b,"iframe");
		_maxm_findWidthHeight(c,"mod_self")
	}
}

function _maxm(a){
	var b=_gel("m_"+a),c=_gel("m_"+a+"_maximize"),d=_gel("IG_max_bg"),e=_gel("IG_max_iframe_cover"),f=_gel("IG_max_div_container"),g=_gel("IG_max_div_dummy"),i=50;
	if(b&&c&&d&&e&&f&&g){
		var h=c.className=="shrinkbox";
		if(h){b.style.width=ig_3}
		else{ig_3=b.style.width}
		d.style.zIndex=h?"":ig_2;
		b.style.zIndex=h?"":ig_sb;
		if(!h){ig_p(d,true);ig_p(g,true)}
		if(h){b.style.position="";f.appendChild(g);f.appendChild(d);g.style.display="none"}
		else{b.parentNode.insertBefore(d,b.nextSibling);b.parentNode.insertBefore(g,b.nextSibling);b.style.position="absolute";g.style.height=b.offsetHeight+2*i+"px";g.style.display="block"}
		if(h){_IG_RemoveEventHandler("resize",_maxm_position)}
		else{_IG_AddEventHandler("resize",_maxm_position);_maxm_position()}
		var j=_gel("remote_iframe_"+a);
		if(j){j.style.display=h?"":"none"}
		if(j&&!h){setTimeout(function(){j.style.display="block"},0)}
		d.style.display=h?"none":"block";
		e.style.display=h?"none":"";
		if(h){b.parentNode.className=b.parentNode.className.replace(/ ig_dnd_fixed_col/,"")}
		var k=_gel("m_"+a+"_h"),m=b.parentNode.className.match("ig_dnd_fixed_col")==null;
		if(k&&m){k.style.cursor=h?"move":"default"}
		if(!h){b.parentNode.className+=" ig_dnd_fixed_col"}
		ig_Q();
		_IG_initDrag(_table,_tabs);
		if(h){c.className=c.className.replace(/shrinkbox/,"enlargebox")}
		else{c.className=c.className.replace(/enlargebox/,"shrinkbox")}
		var n=_gel("m_"+a+"_zippy");
		if(n){n.style.display=h?"":"none"}
		var o=b.childNodes[0].childNodes[0];
		if(o&&o.className&&o.className=="delbox"){o.style.display=h?"":"none"}
		ig_h(h?"unmaximize":"maximize",a);
		if(!h){setTimeout(function(){g.style.height=b.offsetHeight+2*i+"px";_maxm_position()},0)}
	}
	return false
}

function _IG_MaximizeGadget(a,b){var c=_gel("m_"+a+"_maximize");if(c){var d=c.className=="shrinkbox",e=_gel("IG_max_div_container"),f=_gel("IG_max_div_dummy"),g=e.firstChild.id==f.id;if(b&&!d&&g||!b&&d){_maxm(a)}}};