/* this is temporary (until "plugd" is fixed) */
dojo.extend(dojo.NodeList, {
     show: function(){
         console.log(this);
         this.forEach( item.style.display = 'block' );
         return this;
     },
     hide: function(){
         this.forEach(function(item){
             console.log(item);
            item.style.display = 'none';
        });
        return this;
    },
    toggle: function(){
        this.forEach(function(item){
			//console.log("style is " + dojo.style(item, "display"));
            if(dojo.style(item, "display") == 'none'){
                //this.show();					 
                dojo.style(item, "display", "block");
            } else {
                dojo.style(item, "display", "none");
            }
        });
        return this;
    }
});

function trim(str)
{
	return str.replace(/^\s*/, "").replace(/\s*$/, "");		
}
