$(document).ready(function(){
	try{$('.abRsec').corner('10px');}catch(err){}
	try{$('.abLstSec').corner('10px');}catch(err){}
	try{$('.highLightSec').corner('5px')}catch(err){}
	
	$('.abRsec .abHeadSec').eq(0).css({display:'block'})
	.children('.abHeadSecH3Child').eq(0).css({display:'block'});
	$('.abLstSec').eq(0).animate({height:$('.abLstSec .abLstInner').eq(0).height()+10},{duration:200,queue:false});
	
	$('.abLstInner h3').click(function(){
		$('.abLstSec').animate({height:33},{duration:200,queue:false});
		thsIndex=$('.abLstInner h3').index(this);
		thsHeight=$(this).parent().height()+10;
		$('.abLst li a').removeClass('abLstItmSel');
		
		$('.abRsec .abHeadSec').css({display:'none'}).children('.abHeadSecChild, .abHeadSecH3Child')
		.css({display:'none'});
		
		$('.abRsec .abHeadSec').eq(thsIndex).css({display:'block'})
		.children('.abHeadSecH3Child').eq(0).css({display:'block'});
		
		$(this).parent().parent().animate({height:thsHeight},{duration:200,queue:false});
	});
	
	$('.abLst li a').click(function(){
		thsIndex=$('.abLst li a').index(this);
		$('.abLst li a').removeClass('abLstItmSel').eq(thsIndex).addClass('abLstItmSel');
		$('.abHeadSecChild').css({display:'none'}).eq(thsIndex).css({display:'block'});
		$('.abHeadSecH3Child').css({display:'none'});		
		return false; 														
	});
	
	$('.abHeadSecChild .dInvest').click(function(){
		loadIntSec(1,0);
		return false;
	});

	$('.intNav').click(function(){
		thsRel=$(this).attr('rel');
		loadIntSec(thsRel,2);
		return false;
	});
	
});

function loadIntSec(listId, headSec){
	$('.abLst li a').removeClass('abLstItmSel').eq(listId).addClass('abLstItmSel');
	$('.abHeadSecChild').css({display:'none'}).eq(listId).css({display:'block'});
	$('.abHeadSecH3Child').css({display:'none'});

	if($('.abLstSec').eq(headSec).height()==33){
		thsHeight=$('.abLstInner').eq(headSec).height()+10;
		$('.abLstSec').animate({height:33},{duration:200}).eq(headSec).animate({height:thsHeight},{duration:200});

		$('.abRsec .abHeadSec').eq(headSec).css({display:'block'})
		.children('.abHeadSecH3Child').eq(listId).css({display:'block'});
	}
}

