var arr = new Array();
for (var i = 1 ; i < 5; i++)
{
	var menu = __("Menu" + i);
	arr.push(menu);
}
for (var i = 0; i < arr.length; i++)
{
	arr[i].onmouseover = function(e)
	{
		var line = __(this.getElementsByTagName("div")[0]);
		x.fx.Manager.removeEffectsByTarget(line);
		line.style.width = "0px";
		x.fx.Manager.addEffect(new x.fx.Resize(line,new x.geom.Size(101,1),new x.geom.Point(10,0)));
	};
	arr[i].onmouseout = function(e)
	{
		var line = __(this.getElementsByTagName("div")[0]);
		x.fx.Manager.removeEffectsByTarget(line);
		line.style.width = "0px";
	};
}
window.onresize = function()
{
	width = document.body.clientWidth;
	height = document.body.clientHeight;
	var allContent = __("All_Content");
	var bg_all = __("Bg_All");

	if (height <= 700)
	{
		height = 700;
	}
	if (width <= 1200)
	{
		width = 1200;
	}
	bg_all.moveTo(0,(height - allContent.getContentSize().height)/2);
	bg_all.setSize(width, 600);
	allContent.moveTo((width - allContent.getContentSize().width)/2,0);
	__("HiddenBox").setAlpha(100);
	__("bg_BigImg").style.marginTop = (height - 600)/2 + "px";
}

window.onresize();
