wHeight = window.innerHeight;
if (wHeight) {
	if (document.height > innerHeight) barW = 20;
	if (document.width > innerWidth) barH = 20;
} else {
	innerWidth = document.documentElement.clientWidth;
	innerHeight = document.documentElement.clientHeight;
}

document.write('<style type="text/css">\n');
document.write(':focus	{ -moz-outline-style: none; }\n');					// 消除Mozilla Firefox連結虛線框
document.write('a		{ blr:expression(this.onFocus=this.blur()); }\n');	// 消除Internet Explorier連結虛線框
document.write('ul#mmenu_list li#mmenu_01 { left: 0px; }\n');
document.write('ul#mmenu_list li#mmenu_02 { left: 80px; }\n');
document.write('ul#mmenu_list li#mmenu_03 { left: 188px; }\n');
document.write('ul#mmenu_list li#mmenu_04 { left: 253px; }\n');
document.write('ul#mmenu_list li#mmenu_05 { left: 362px; }\n');
document.write('ul#mmenu_list li#mmenu_06 { left: 427px; }\n');
document.write('ul#mmenu_list li#mmenu_07 { left: 492px; }\n');

document.write('div#smenu_01 { width: 375px; }\n');

for(i=9;i>0;i--) {
	document.write('div.alpha' + i + '0 { background: #fff; position: absolute; filter: alpha(opacity=' + i + '0); -moz-opacity: 0.' + i + '; opacity: 0.' + i + '; width: 2px; height: 154px; top: 40px; z-index: 3; }\n');
}

document.write('table.qanda_answer		{ display: none; }\n');				// Q&A的 Answer隱藏

/*以下為Layer相關*/
document.write('.show_flow	{ overflow: auto; overflow-x: hidden; }\n');
document.write('.hide_flow	{ overflow: hidden; }\n');
document.write('div#layer1		{ position: absolute; background: #000; left: 0px; top: 0px; width: 100%; height: ' + (innerHeight+20) + 'px; z-index: 1; }\n');
document.write('div.layer1_off	{ display: none; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; }\n');
document.write('div.layer1_on	{ display: block; filter: alpha(opacity=85); -moz-opacity: 0.85; opacity: 0.85; }\n');
document.write('div.layer2		{ display: none; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; background: #fff; position: absolute; left: ' + ((innerWidth/2)-400) + 'px; top: 30px; width: 800px; height: ' + (innerHeight-70) + 'px; z-index: 2; border: 5px solid #fff; }\n');
document.write('div.layer2 div.table_ins	{ height: ' + (innerHeight-100) + 'px; overflow: auto; }\n');
document.write('div.layer2 div.close		{ padding: 10px 10px 5px 10px; text-align: right; }\n');

document.write('</style>\n');

var MarStart = 0;

function preview() {
	var url = document.getElementById("language").value;
	if(url != "") {
		location.href = url;
	}
}

function open_win(url,t,w,h,s) {
	window.open(url,t,"width="+w+",height="+h+",toolbar=no,location=no,status=no,directories=no,menubar=no,scrollbars="+h+",resizable=no");
}

function house_view(url,t) {
	window.open(url,t,"width=710,height=510,toolbar=no,location=no,status=no,directories=no,menubar=no,scrollbars=no,resizable=no");
}

function qanda_view(obj) {
	if(document.getElementById(obj).style.display != 'block') {
		document.getElementById(obj).style.display = 'block';
	} else {
		document.getElementById(obj).style.display = 'none';
	}
}