// 右上のクイックメニューの位置固定
function fixMenu(where) 
{
	var containerWith = $('container').getWidth($('container'));
	var containerHeight = $('container').getHeight($('container'));
	var screenWith = document.body.clientWidth;
	var screenHeight  = document.body.clientHeight;
	var fixMenuX;
	var quickMenuWidth;
	var quickMenuX;
	
	if(where == "left")
	{
		fixMenuX = (screenWith - containerWith)/2 ;
		text = "quickMenuLeft";
	}
	else
	{
		fixMenuX = (screenWith - containerWith)/2 + containerWith + 13;
		text = "quickMenuRight";
		
	}
	
	quickMenuWidth = $(text).getWidth($(text));
	quickMenuX = fixMenuX;
	$(text).style.left = quickMenuX + "px";
	$(text).style.visibility = "visible";
	
	
	// 背景位置計算
	/*
	leftPhoto = "left_photo";
	rightPhoto = "right_photo";
	
	//bgWith = (screenWith - containerWith)/2 - 20;
	bgWith = (screenWith - containerWith)/2 - 1;
	$(leftPhoto).style.width = bgWith + "px";
	$(rightPhoto).style.width = bgWith + "px";
	*/
}

Event.observe(window, 'load', fixMenu, false);
Event.observe(window, 'resize', fixMenu, false);
