<!doctype html>
<!--[if IE 6]><html id="ie6" dir="ltr" lang="zh-TW"><![endif]-->
<!--[if IE 7]><html id="ie7" dir="ltr" lang="zh-TW"><![endif]-->
<!--[if IE 8]><html id="ie8" dir="ltr" lang="zh-TW"><![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
<html dir="ltr" lang="zh-TW">
<!--<![endif]-->
<head>
<!--[if lt IE 9]><script src="/js/html5.js"></script><![endif]-->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
<title><?# webTitle ?></title>	
<meta name="author" content="<?# webTitle ?>" />
<meta name="copyright" content="<?# webName ?>版權所有" />
<meta name="description" content="<?# webDescription ?>" />
<meta name="distribution" content="Taiwan" /> 
<meta name="keywords" content="<?# webKeyword ?>" />
<meta name="format-detection" content="telephone=no" />
<meta property="og:url" content="<?# RelLink ?><?# REQUESTURI ?>" />
<meta property="og:type" content="website" />
<meta property="og:title" content="<?# ogTitle ?>" />
<meta property="og:description" content="<?# ogDescription ?>" />
<meta property="og:image" content="<?# ogImage ?>" />
<link href="/css/<?# webTemplates ?>/main.css" rel="stylesheet">
<link href="/css/<?# webTemplates ?>/layout.css" rel="stylesheet">
<script src="/jquery/jquery-1.10.js"></script>
<script>
	if('<?# alertMsg ?>' != ''){
		alert('<?# alertMsg ?>');
		if('<?# goBack ?>' == 'Y'){
			history.back();
		}
	}
	if('<?# locationHref ?>' != ''){
		location.href = '<?# locationHref ?>';
	}
</script>
<?# headHTML ?>
</head>
<body<?# JumpBody ?>>
<?# bodyTopHTML ?>
<div class="webBox" style="margin: 0; padding: 0; border: 0; width: 100%;<?# JumpStyle ?>">
<?# JumpHTML ?>
<?# JumpScript ?>
<h1 class="pageh1"><?# CategoryName ?></h1>
<div class="wrapper">
	<?# header ?>
    <div class="waylink">
        <ol>
            <li><a title="首頁" href="/">首頁</a></li>
            <li><?# CategoryName ?></li>
        </ol>
    </div>
	<?# banner ?>
	<div class="wrap workframe">			
		<div class="contentMain">
			<div id="sideNav" class="catBox">
				<div class="bgTxt title">Q &amp; A<h3><?# CategoryName ?></h3></div>
				<a id="sideMenu" href="javascript:void(0);" title="分類選單"><font>分類選單</font><span><i></i><i></i><i></i></span></a>
				<ul class="Cate">
					<li><h3><a href="<?# htLink3 ?>" title="全部問答">全部問答</a></h3></li>
					<php:repeater id="listC">
					<template>
					<li<?# className ?>>
						<h3><a href="<?# link ?>" title="<?# CategoryName ?>"><?# CategoryName ?></a><?# iLabel ?></h3>
						<?# SubList ?>
					</li>
					</template>
					</php:repeater>
				</ul>
			</div>
			<div id="faqList">
				<ul>
					<php:repeater id="list">
					<template>
                    <li>
						<a class="title" href="javascript:void(0);" title="<?# Title ?>"><font><?# Title ?></font><span></span></a>
						<div class="info" style="display: none;"><?# Description ?></div>
                    </li>
					</template>
					</php:repeater>
				</ul>
				<div id="pagenav"><?# pagtxt ?></div>
			</div>
		</div>
	</div>
	<?# footer ?>
</div>
</div>
</body>
</html>
<script>
	$(function(){
		$("#faqList li .title").click(function(){
			var $self = $(this);
			$self.next("div.info").slideToggle('fast', function(){
				$self.parent('li').toggleClass('current');
			});
		});
	});
	
	document.body.oncopy = event => {
		event.preventDefault();
		let textFont,
		copyFont = window.getSelection(0).toString();
		if(copyFont.length > 10){
			textFont = copyFont + '\n\n' + '原文網址: <?# webTitle ?> <?# RelLink ?><?# REQUESTURI ?>\n' + '著作權歸作者所有。商業轉載請聯絡作者獲得授權，非商業轉載請註明出處。';
		}else{
			textFont = copyFont;
		}
		if(event.clipboardData){
			return event.clipboardData.setData('text', textFont);
		}else{// 相容IE
			return window.clipboardData.setData('text', textFont);
		}
	};
</script>