function Set(){this.init();};Set.prototype={env:null, init:function(){this.env=new Array();}, setenv:function(_key,_value){this.env[_key]=_value;}, getenv:function(_selector){return(this.env[_selector])? this.env[_selector]:null;}, unsetenv:function(_selector){delete this.env[_selector];}, preSelect:function(_id){var obj=stdio.getObject(_id);if(obj==null)return false;var offset=0;if(obj.style.height)offset=parseInt(obj.style.height);if(doyo.core){var dim=doyo.core.getCoords(obj);window.scrollTo(0,dim.y-((document.body.clientHeight/2)-offset));};return this.markAsOpened(_id);}, markAsOpened:function(_id,_frameName,_fallBackID,_remoteID){var selObj=this.getenv('selected');if(selObj)this.toggleMark(selObj,false);var clickedObj=stdio.getObject(_id);if(!clickedObj)return false;if(!clickedObj.id)return false;this.setenv('selected', this.toggleMark(clickedObj,true));if(_frameName){var remoteID=(_remoteID)? _remoteID:_id;this.remoteSelect(window,remoteID,_frameName,_fallBackID);};return(doyo.dlg)?(!doyo.dlg.wasDragged()):true;}, remoteSelect:function(_window,_id,_frame,_fallbackID){var framez=this.getenv('collectedFrames');if(!framez){if(doyo.core){framez=new Array();doyo.core.collectFrames(framez,top,_window.name);this.setenv('collectedFrames',framez);};};var remote;var nameOfFrame;for(var ix in framez){try{nameOfFrame=framez[ix].name;}catch(e){continue;};if(nameOfFrame==_frame){remote=framez[ix];break;};};if(remote){if(remote.doyo){if(remote.doyo.set){if(remote.doyo.set.markAsOpened){if(!remote.doyo.set.markAsOpened(_id)){if(_fallbackID){remote.doyo.set.markAsOpened(_fallbackID);};};};};};};}, toggleMark:function(_self, _doOpen){if(doyo.core)doyo.core.changeIcon(_self,_doOpen);var dependObj=stdio.getObject('label-'+_self.id);if(dependObj==null){dependObj=stdio.getObject('polaroid-'+_self.id);};if(dependObj==null){return _self;};if(_doOpen){this.setenv('restoreClass', dependObj.className);dependObj.className='selected';}else{dependObj.className=this.getenv('restoreClass');};return _self;}};if(!doyo)var doyo=new Object();doyo.set=new Set();
