﻿	
		

function outputTextSizeCtrl(prefix){
	if(document.layers){
		return;
	}
	prefix='/';
	document.write('<dl id="hd_fontsize"><dt><img src="'+prefix+'image/common/images/hd/txt_fontsize.gif" width="44" height="17" alt="Text size" /></dt>');
	if(!txtsize_val) {
		document.write(''+
		// small
		'<dd><img src="'+prefix+'image/common/images/hd/btnFontsizeS_on.gif" width="17" height="17" alt="S" /></dd>'+
		'<dd><a href="javascript:void(0);" onclick="changeTextSize(1); return false;"><img src="'+prefix+'image/common/images/hd/btnFontsizeL.gif" width="17" height="17" alt="L" class="over" /></a></dd>');
	}else{
		document.write(''+
		// large
		'<dd><a href="javascript:void(0);" onclick="changeTextSize(0); return false;"><img src="'+prefix+'image/common/images/hd/btnFontsizeS.gif" width="17" height="17" alt="S" class="over" /></a></dd>'+
		'<dd><img src="'+prefix+'image/common/images/hd/btnFontsizeL_on.gif" width="17" height="17" alt="L" /></dd>');
	}
	document.write('</dl>');
}

/* change text size
-----------------------------------------------------------------------------------------------------------------*/
var txtsize_val = 0;
var txtsize_css_size = new Array();
txtsize_css_size[0] = ''+
'<style type="text/css">'+

	'body #wrapper { font-size: 12px;}'+ // firefox other 

	'*:first-child+html body #wrapper { font-size: 100%;}'+ // IE 7

	'* html body #wrapper { font-size: 100%;}'+ // IE5 - 6

	'html>/**/body { font-size /*\**/: 100%\9; }'+ // IE8

	'/* safari only \*/ html[xmlns*=""] body:last-child body #wrapper { font-size: 100%;}'+ // Safari

'</style>';

txtsize_css_size[1] = ''+
'<style type="text/css">'+

	'body #wrapper { font-size: 14px;}'+ // firefox other 

	'*:first-child+html body #wrapper { font-size: 115%;}'+ // IE 7

	'* html body #wrapper { font-size: 115%;}'+ // IE5 - 6

	'html>/**/body { font-size /*\**/: 115%\9; }'+ // IE8

	'/* safari only \*/ html[xmlns*=""] body:last-child body #wrapper { font-size: 115%;}'+ // Safari

'</style>';

function setTextSize(){
	if(cookieObj.getCookie('txtsize_'+location.host) != ''){
		txtsize_val = 1 * cookieObj.getCookie('txtsize_'+location.host);
	}
	document.write(txtsize_css_size[txtsize_val]);
	//document.write('<link rel="stylesheet" href="/file/base_'+ txtsize_css_size[txtsize_val] + '.css" type="text/css" />');
}

function changeTextSize(num){
	cookieObj.setCookie('txtsize_'+location.host,num,'/');
	window.location.reload();
}

