/* ------------------------------

スライドメニュー - 上
※ID名・変数名・関数名の末尾に、全てTopを追加
※new Effect.Fade( ... )を削除

------------------------------ */
var isExtendedTop = 0;

function slideSideBarTop(){

	new Effect.toggle('sideBarContentsTop', 'blind', {scaleY: 'true;', scaleContent: false}); /* 縦方向のみに伸縮させるため　scaleX: 'true;',　を削除 */
	
	if(isExtendedTop==0){
		$('sideBarTabTop').childNodes[0].src = $('sideBarTabTop').childNodes[0].src.replace(/(\.[^.]+)$/, '-active$1');
		
		isExtendedTop++;
	}
	else{
		$('sideBarTabTop').childNodes[0].src = $('sideBarTabTop').childNodes[0].src.replace(/-active(\.[^.]+)$/, '$1');
		
		isExtendedTop=0;
	}
	
}

function init(){
	Event.observe('sideBarTabTop', 'click', slideSideBarTop, true);
}

Event.observe(window, 'load', init, true);
