function expand_text(aId,aImgId)
{	
	var div=document.getElementById(aId);
//	var div2=document.getElementById(aResponseId);

	if (div.style.display=='') {
		div.style.display='none';
	}
	else {
		div.style.display='';	
//		div2.style.display='none';
	}	
	
	var icon = document.getElementById(aImgId);
	
	if (icon.className == 'arrow_close') {
		icon.className='arrow_open';
	}
	else{
		icon.className='arrow_close';
	}
}

function expand_item(aId, tId)
{			
	var icon = document.getElementById(tId);		
	
	if (icon.className == 'arrow_item_close') {
		icon.className='arrow_item_open';
		Effect.SlideDown(aId, { duration: 0.5, queue: 'end'});
	}
	else{
		icon.className='arrow_item_close';
		Effect.SlideUp(aId, { duration: 0.5, queue: 'end'});
	}
	return false;
}

function expand_item_search(aId,tId,bId,cId)
{			
	var icon = document.getElementById(tId);
	var icona = document.getElementById(aId);
	var iconb = document.getElementById(bId);
	var iconc = document.getElementById(cId);
	
	if (icon.className == 'arrow_item_search_close') {
		icona.className='search_box_rel';
		Effect.SlideDown(aId, { duration: 0.5, queue: 'end'});
		icon.className='arrow_item_search_open';
		iconc.className='noseve';
		iconb.className='siseve';
	}
	else{
		Effect.SlideUp(aId, { duration: 0.5, queue: 'end'});
		icon.className='arrow_item_search_close';
		iconc.className='siseve';
		iconb.className='noseve';
	}
	return false;
}
function expand(aId)
{	
	var div=document.getElementById(aId);

	if (div.style.display=='block')
	{
		div.style.display='none';		
	}else{
		div.style.display='block';	
	}	
	
}

function expandAll(aId, aId2, aImgId)
{	
	var div=document.getElementById(aId);
	var div2=document.getElementById(aId2);
	var icon = document.getElementById(aImgId);
	
	if ((div.style.display=='')&&(div2.style.display=='none'))
	{
		div.style.display='';
		div2.style.display='';
		icon.src='./static/img/arrow_open.gif';
	}else if (div.style.display==''){
		div.style.display='none';
		div2.style.display='';
		icon.src='./static/img/arrow_open.gif';
	}else{
		div.style.display='';
		div2.style.display='';
		icon.src='./static/img/arrow_open.gif';
	}
}

function changeImg(aId,aId1,aId2,aId3,aCapa1,aCapa2,aCapa3,aCapa1n,aCapa2n,aCapa3n,aLab1,aLab2,aLab3)
{	
	var img = document.getElementById(aId);
	var img1 = document.getElementById(aId1);
	var img2 = document.getElementById(aId2);
	var img3 = document.getElementById(aId3);
	var div1 = document.getElementById(aCapa1);
	var div2 = document.getElementById(aCapa2);
	var div3 = document.getElementById(aCapa3);
	var div1n = document.getElementById(aCapa1n);
	var div2n = document.getElementById(aCapa2n);
	var div3n = document.getElementById(aCapa3n);
	var lbl1 = document.getElementById(aLab1);
	var lbl2 = document.getElementById(aLab2);
	var lbl3 = document.getElementById(aLab3);
		
	if (aId=='img1')
	{
		img1.style.display='';
		img2.style.display='none';
		img3.style.display='none';
		div1.className='home_option_sel_text';
		div2.className='home_option_text';
		div3.className='home_option_text';
		div1n.className='home_option_sel_num';
		div2n.className='home_option_num';
		div3n.className='home_option_num';
		lbl1.className='link_option_home_sel';
		lbl2.className='link_option_home';
		lbl3.className='link_option_home';
	}	
	if (aId=='img2')
	{
		img1.style.display='none';
		img2.style.display='';
		img3.style.display='none';
		div1.className='home_option_text';
		div2.className='home_option_sel_text';
		div3.className='home_option_text';
		div1n.className='home_option_num';
		div2n.className='home_option_sel_num';
		div3n.className='home_option_num';
		lbl1.className='link_option_home';
		lbl2.className='link_option_home_sel';
		lbl3.className='link_option_home';		
	}	
	if (aId=='img3')
	{
		img1.style.display='none';
		img2.style.display='none';
		img3.style.display='';
		div1.className='home_option_text';
		div2.className='home_option_text';
		div3.className='home_option_sel_text';	
		div1n.className='home_option_num';
		div2n.className='home_option_num';
		div3n.className='home_option_sel_num';
		lbl1.className='link_option_home';
		lbl2.className='link_option_home';
		lbl3.className='link_option_home_sel';			
	}	
	
}

function changeColor(aBoyId)
{
	var boy = document.getElementById(aBoyId);

	if (boy.className=='link_menu')
	{
		boy.className='link_menu_home';
		
	}else{
		boy.className='link_menu';	
	}	
	
}

function expandMonths(aMonthId,aMonthId1,aMonthId2,aMonthId3)
{
	var Month = document.getElementById(aMonthId);
	var Month1 = document.getElementById(aMonthId1);
	var Month2 = document.getElementById(aMonthId2);
	var Month3 = document.getElementById(aMonthId3);
	
	if (aMonthId=='month1')
	{
		if(Month1.style.display=='')
		{
			Month1.style.display='none';
			Month2.style.display='none';
			Month3.style.display='none';
		}else{
			Month1.style.display='';
			Month2.style.display='none';
			Month3.style.display='none';
		}
		
	}else if (aMonthId=='month2'){
		if(Month2.style.display=='')
		{
			Month1.style.display='none';
			Month2.style.display='none';
			Month3.style.display='none';
		}else{
			Month1.style.display='none';
			Month2.style.display='';
			Month3.style.display='none';
		}
		
	}else{
		if(Month3.style.display=='')
		{
			Month1.style.display='none';
			Month2.style.display='none';
			Month3.style.display='none';
		}else{
			Month1.style.display='none';
			Month2.style.display='none';
			Month3.style.display='';
		}
		
	}
}
