function swapImage(id,src){
	var el=window.document.getElementById(id);
	el.src=src;
}
function swapDisplay(id){
	var el=window.document.getElementById(id);
	if (el.style.display=='none'){
		el.style.display='';
	} else {
		el.style.display='none';
	}
	return el.style.display;
}

if (!window.Widgets){
	window.Widgets=function(){};
}
window.Widgets.Gadget=function(){};
window.Widgets.Gadget.staticclose= function (id){
	alert('Current WGadget.staticClose is not supported');
}
window.Widgets.Gadget.staticmax= function (id){
	alert('Currently WGadget.staticMax is not supported');
}
window.Widgets.Gadget.staticmin= function (id){
	var style=swapDisplay(id+'contents');
	if (style=='none'){
		swapImage(id+'min','module/Peoplarium/theme/img/gadget/minm.gif');
	} else {
		swapImage(id+'min','module/Peoplarium/theme/img/gadget/min.gif');
	}
}

