function Toggle(id,me){
	var obj=document.getElementById(id);
	if(obj.className=='hide'){obj.className='show';me.src='i/minus.png';}
	else{obj.className='hide';me.src='i/plus.png';}
}
function Close(){
	var obj=document.getElementById('viewer');
	if(obj)obj.parentNode.removeChild(obj);
	document.body.style.overflow='visible';
}
function Full(url){
	document.body.style.overflow='hidden';
	var d=document.createElement('div');
	d.id='viewer';
	d.onclick=Close;
	var code='<div><div>';
	code+='<img onclick="Close()" style="max-width:'+window.innerWidth+'px;max-height:'+(window.innerHeight-20)+'px;" src="'+url+'"/><br/>';
	code+='click anywhere to return</div></div>';
	d.innerHTML=code;
	document.documentElement.appendChild(d);
}
function ShowAll(c){
	for(var i=2;i<=c;++i)document.getElementById('s'+i).className='';
	document.getElementById('all').className='hide';
}
