function expander(id){
	if(document.getElementById("div"+id).style.height!='100%'){
		for(i=0;i<13;i++){
			if(i==id){
				openDiv(i);
			}
			else{
				if(document.getElementById("div"+i)){
					closeDiv(i);
				}
			}
		}
	}else{
		closeDiv(id);
	}
}


function openDiv(id){

		document.getElementById("div"+id).style.display='block';
		document.getElementById("div"+id).style.visibility = 'visible';
		//document.getElementById(id).style.backgroundColor='#ffffff';
		document.getElementById("img"+id).src="images/nav_closer.gif";
		document.getElementById("div"+id).style.height='100%';

//alert(document.getElementById("div"+id).style.offsetHeight);
		//t=setInterval("slideOut("+id+")",1000)
}

function closeDiv(id){
		//document.getElementById(id).style.backgroundColor='#f0f0f0';
		document.getElementById("img"+id).src="images/nav_expander.gif";
		document.getElementById("div"+id).style.height='0';
}

heightVar=1;
function slideOut(id){

	//heightVar=heightVar+(1*2);
	heightVar++;
	if(document.getElementById("div"+id).style.height=="100%"){
		heightVar=0;
		clearInterval(t);
	}
	else{
//alert(heightVar+'%');
	temp=heightVar+"%";
		document.getElementById("div"+id).style.height=temp;
	}
}
