function castdetail(id,picid){
	//if the id is different to active id or no active id...
	if(!window['t'] || t.id!=id){
		//show the active id and hide the old one
		try{
			t.style.display='none';
			p.style.backgroundColor='';
		}catch(e){}
		t=document.getElementById(id);
		p=document.getElementById(picid);
		t.style.display='block';
		p.style.backgroundColor='#4b3b24';
	}else{
		//else if it's the same id
		if(t.style.display=='none'){
		//if the id is invisible, show it
			t.style.display='block';
			p.style.backgroundColor='#4b3b24';
		}else{
			// otherwise, hide it
			t.style.display='none';
			p.style.backgroundColor='';
		}
	}
}