//トップページ
function getCookie(){
	zoom = "";
	cName = "MaruwaWeb=";
	tmpCookie = document.cookie + ";";
	start = tmpCookie.indexOf(cName);
	if (start != -1)
	{
		end = tmpCookie.indexOf(";", start);
		zoom = tmpCookie.substring(start + cName.length, end);
		document.getElementById("ContentsArea").style.fontSize = zoom;
	} else {
		document.getElementById("ContentsArea").style.fontSize = "100%";
	}
}

function textSizeUp(){
	currentSize = document.getElementById("ContentsArea").style.fontSize;
	selectSize = "";
	if ( currentSize == "100%" ){
		selectSize = "110%";
	}
	else if ( currentSize == "110%" ){
		selectSize = "120%";
	}
	else {
		selectSize = "100%";
	}
	document.getElementById("ContentsArea").style.fontSize = selectSize;
	setCookie(selectSize);
}

function textSizeUp_en(){
	currentSize = document.getElementById("ContentsArea").style.fontSize;
	selectSize = "";
	if ( currentSize == "100%" ){
		selectSize = "110%";
	}
	else if ( currentSize == "110%" ){
		selectSize = "120%";
	}
	else {
		selectSize = "100%";
	}
	document.getElementById("ContentsArea").style.fontSize = selectSize;
	setCookie(selectSize);
}

function textSizeUp_cn(){
	currentSize = document.getElementById("ContentsArea").style.fontSize;
	selectSize = "";
	if ( currentSize == "100%" ){
		selectSize = "110%";
	}
	else if ( currentSize == "110%" ){
		selectSize = "120%";
	}
	else {
		selectSize = "100%";
	}
	document.getElementById("ContentsArea").style.fontSize = selectSize;
	setCookie(selectSize);
}

function textSizeUp_tw(){
	currentSize = document.getElementById("ContentsArea").style.fontSize;
	selectSize = "";
	if ( currentSize == "100%" ){
		selectSize = "110%";
	}
	else if ( currentSize == "110%" ){
		selectSize = "120%";
	}
	else {
		selectSize = "100%";
	}
	document.getElementById("ContentsArea").style.fontSize = selectSize;
	setCookie(selectSize);
}

function textSizeUp_ko(){
	currentSize = document.getElementById("ContentsArea").style.fontSize;
	selectSize = "";
	if ( currentSize == "100%" ){
		selectSize = "110%";
	}
	else if ( currentSize == "110%" ){
		selectSize = "120%";
	}
	else {
		selectSize = "100%";
	}
	document.getElementById("ContentsArea").style.fontSize = selectSize;
	setCookie(selectSize);
}

function textSizeReset(){
	currentSize = document.getElementById("ContentsArea").style.fontSize;
		currentSize = "100%";
		document.getElementById("ContentsArea").style.fontSize = currentSize;
	setCookie(currentSize);
}

