pageParts={}
pageParts.Switcher=function(){
	this.moreElement=" -&gt;"
	this.swOffElement=" &lt;-"
	this.lastShowedId=""
	this.lastHref
	this.switchBlock=function(aRef,contentId){
		if(this.lastShowedId!=""){
			this._switch(this.lastHref,this.lastShowedId)
		}
		if(contentId==this.lastShowedId){
			this.lastShowedId=""
			return
		}
		this._switch(aRef,contentId)
		this.lastShowedId=contentId
		this.lastHref=aRef
	}
	this._switch=function(aRef,id){
		var isVisible=this._isVisible(id)
		document.getElementById(id).style.display=isVisible?'none':'block'
		aRef.innerHTML=aRef.innerHTML.substring(0,aRef.innerHTML.lastIndexOf(isVisible?this.swOffElement:this.moreElement))+(isVisible?this.moreElement:this.swOffElement)
		return !isVisible
	}
	this._isVisible=function(id){
		return document.getElementById(id).style.display=='block'
	}
	this.decorate=function(className){
		var elements=document.getElementsByTagName("a");//alert(elements)
		for(var i=0;i<elements.length;i++){
			if(elements[i].className==className){
				elements[i].innerHTML+=this.moreElement
			}
		}
	}
}
pageParts.instance=new pageParts.Switcher()
//pageParts.instance.decorate("")
