//Links div
var opened=false;

function doToggle() 
{
	if(opened==false)
	{
		toggleBtnBckrnd.custom('url(assets/templates/ayara_solutions/images/toggle_btn.gif) no-repeat left top;','url(assets/templates/ayara_solutions/images/toggle_btn_on.gif) no-repeat left top;');
		togglePanelHeight.custom(0,100);
		opened=true;
	}
	else
	{
		toggleBtnBckrnd.custom('url(assets/templates/ayara_solutions/images/toggle_btn_on.gif) no-repeat left top;','url(assets/templates/ayara_solutions/images/toggle_btn.gif) no-repeat left top;');
		togglePanelHeight.custom(100,0);
		opened=false;
	}    
}
//Recognition div
var recognitionDivOpened = false;

function resizeRecognitionDiv()
{
	if(recognitionDivOpened==false)
	{
		recongnitionDivHeight.custom(70,230);
		recognitionMoreButtonWidth.custom(130,0);
		recognitionMoreButtonHeight.custom(16,0);
		recognitionMoreButtonOpacity.custom(1,0);
		recognitionDivOpened=true;
	}
	else
	{
		recongnitionDivHeight.custom(230,70);
		recognitionMoreButtonWidth.custom(0,130);
		recognitionMoreButtonHeight.custom(0,16);
		recognitionMoreButtonOpacity.custom(0,1);
		recognitionDivOpened=false;
	}
}

//Initialize on page load
function togglePanelPageLoad() 
{
	//Links div
	toggleBtnBckrnd = new fx.Style('toggleBtn', 'background', {duration:0});
	togglePanelHeight = new fx.Style('togglePanel', 'height', {duration:600});
	//Recognition div
	recongnitionDivHeight = new fx.Style('recognition', 'height', {duration:600});
	recognitionMoreButtonWidth = new fx.Style('recognitionMoreButton', 'width', {duration:600});
	recognitionMoreButtonHeight = new fx.Style('recognitionMoreButton', 'height', {duration:600});
	recognitionMoreButtonOpacity = new fx.Style('recognitionMoreButton', 'opacity', {duration:400});
}

