//Expande
window.onload=function() {
	pagina = document.getElementById('expand').value; 
	spn=document.getElementsByTagName('span'); 
	for(c=0;c<spn.length;c++) { 
		spn[c].onclick=function() { 
			if(this.id!='') { 
				stuff(this.id.split('s')[1]); 
			} 
		} 
	}
	if(pagina == "cloud"){
		totalTags = 9;
	}else if(pagina == "hospedagem"){
		totalTags = 9;
	}
	for(c=0;c <= totalTags ;c++) { 
		document.getElementById('div0'+c).className='off'; 
		document.getElementById('img0'+c).src='images/minusn.gif';  
        if (c == 0 && pagina == "cloud"){
          document.getElementById('div0'+c).className='on';
          document.getElementById('img0'+c).src='images/plusv.gif';

        }
	} 


} 

function stuff(n) { 

	dvs=document.getElementsByTagName('div'); 
	ims=document.getElementsByTagName('img'+n); 
	info=document.getElementById('div'+n); 
	pic=document.getElementById('img'+n); 
	
	for(c=0;c<dvs.length;c++) { 
		if((dvs[c].className=='on')&&(dvs[c].id!='div'+n)) { 
			//dvs[c].className='off'; 
		} 
	} 
	for(c=0;c<ims.length;c++) { 
		ims[c].src='images/minusn.gif'; 
	} 
	if(info.className=='on') { 
		info.className='off'; 
		pic.src='images/minusn.gif'; 
	}else { 
		info.className='on'; 
		pic.src='images/plusv.gif'; 
	} 
}



 

