﻿document.writeln("<style type=\"text\/css\">");
document.writeln("<!--");
document.writeln("	.dream_Tabs { background:url(\/..\/cms_img\/search\/search_line.gif) repeat-x; height:27px; overflow:hidden; }");
document.writeln("	.s_on { width:43px; background:#ffe388 url(\/..\/cms_img\/search\/search_nav.gif) no-repeat top; font-weight:bold; color:#43698F; } ");
document.writeln("	.s_of { width:43px; background:#ededed url(\/..\/cms_img\/search\/search_nav.gif) no-repeat bottom; }");
document.writeln("	.m_on { width:43px; background:#fff8dc url(\/..\/cms_img\/search\/search_nav.gif) no-repeat center; cursor:pointer; color:#43698F; }");
document.writeln("	.s_td_of,.s_td_on { width:50px; height:30px; overflow:hidden; padding-top:9px; text-align:center; cursor:pointer;background:url(\/..\/cms_img\/search\/search_nav_of.gif) no-repeat 1px 3px; color:#808080; }");
document.writeln("	.s_td_on { background:url(\/..\/cms_img\/search\/search_nav_on.gif) no-repeat 1px 3px; color:#43698F; font-weight:bold; }");
document.writeln("	.dream_Table { border:1px #94ADC9 solid; font-size:12px; }");
document.writeln("	.dream_Tabs1,.dream_Tabs2 { height:30px; overflow:hidden; }");
document.writeln("	.dream_Tabs2 { padding-top:2px; }");
document.writeln("	.bk_n { width:96%; height:20px; font-size:12px; padding:0 0 0 0; margin:0 0 0 0; border:1px #c0c0c0 solid; color:#2a2a2a; padding-top:6px; text-indent:7px; margin-left:6px; }");
document.writeln("	.dcms_btn { width:49px; height:27px; padding:0; margin:0; background:url(\/..\/cms_img\/search\/search_btn.gif) no-repeat #D2D0DF;color:#040404; text-align:center; font-size:12px; border:none; margin-right:5px; cursor:pointer; }");
document.writeln("-->");
document.writeln("<\/style>");


document.writeln("<script type=\"text\/javascript\">");

document.writeln("function GetObj(objName){");
document.writeln("	if(document.getElementById) {");
document.writeln("		return eval(\'document.getElementById(\"\' + objName + \'\")\');");
document.writeln("	} else if(document.layers) {");
document.writeln("		return eval(\"document.layers[\'\" + objName +\"\']\");");
document.writeln("	} else {");
document.writeln("		return eval(\'document.all.\' + objName);");
document.writeln("	}");
document.writeln("}");

document.writeln("var ArtSearchKey = \"請輸入搜尋關鍵字\";");

document.writeln("function s_chg(td_now, fn)");
document.writeln("	{");
document.writeln("		for(var i=1; i<10; i++){ eval(\"var s_td_\" + i +\"= GetObj(\'s_td_\"+i+\"\')\"); }");
document.writeln("		var lc = GetObj(\"lc\");");
document.writeln("		var dcms_ms = GetObj(\"dcms_ms\");");
document.writeln("		var dcms_btm = GetObj(\"dcms_btm\");");
document.writeln("		var dcms_k = GetObj(\"dcms_k\");");
document.writeln("		var dcms_kw = GetObj(\"dcms_kw\");");
//document.writeln("		s_td_1.className = s_td_2.className = s_td_3.className = s_td_4.className = s_td_5.className = s_td_6.className = s_td_7.className = s_td_8.className = s_td_9.className = \"s_td_of\";");
document.writeln("		s_td_1.className = s_td_2.className = s_td_3.className = s_td_4.className = s_td_5.className = s_td_6.className = s_td_7.className = \"s_td_of\";");
document.writeln("		td_now.className = \"s_td_on\";");

document.writeln("		if(td_now.id == \"s_td_1\")\/\/會報");
document.writeln("			{");
document.writeln("				document.getElementById(\"ArtBlk\").style.display = \"block\";");
document.writeln("				document.getElementById(\"CmsBlk\").style.display = \"none\";");
document.writeln("				document.gform.keyword.value = ArtSearchKey;");
document.writeln("			}");

document.writeln("		if(td_now.id == \"s_td_2\")\/\/文章");
document.writeln("			{");
document.writeln("				document.getElementById(\"ArtBlk\").style.display = \"none\";");
document.writeln("				document.getElementById(\"CmsBlk\").style.display = \"block\";");
document.writeln("				lc.style.display = \"none\";");
document.writeln("				dcms_ms.style.width = \"293px\";");
document.writeln("				dcms_btm.width = \"55px\";");
document.writeln("				dcms_btm.innerHTML = \'<input id=\"btn_i\" type=\"button\" value=\"搜 尋\" class=\"dcms_btn\" onClick=\"f.submit();return false;\">\';");
document.writeln("				fn.dcms_k.value = \"\";");
document.writeln("				fn.dcms_k.name = \"keyword\";");
document.writeln("				fn.action = \"\/cms_art\/list.asp\";");
document.writeln("				dcms_kw.innerHTML = \'文章中心\';");
document.writeln("			}");

document.writeln("		if(td_now.id == \"s_td_3\")\/\/資源");
document.writeln("			{");
document.writeln("				document.getElementById(\"ArtBlk\").style.display = \"none\";");
document.writeln("				document.getElementById(\"CmsBlk\").style.display = \"block\";");
document.writeln("				lc.style.display = \"none\";");
document.writeln("				dcms_ms.style.width = \"293px\";");
document.writeln("				dcms_btm.width = \"55px\";");
document.writeln("				dcms_btm.innerHTML = \'<input id=\"btn_i\" type=\"button\" value=\"搜 尋\" class=\"dcms_btn\" onClick=\"f.submit();return false;\">\';");
document.writeln("				fn.dcms_k.value = \"\";");
document.writeln("				fn.dcms_k.name = \"keyword\";");
document.writeln("				fn.action = \"\/cms_soft\/list.asp\";");
document.writeln("				dcms_kw.innerHTML = \'資源下載\';");
document.writeln("			}");

document.writeln("		if(td_now.id == \"s_td_4\")\/\/剪影");
document.writeln("			{");
document.writeln("				document.getElementById(\"ArtBlk\").style.display = \"none\";");
document.writeln("				document.getElementById(\"CmsBlk\").style.display = \"block\";");
document.writeln("				lc.style.display = \"none\";");
document.writeln("				dcms_ms.style.width = \"293px\";");
document.writeln("				dcms_btm.width = \"55px\";");
document.writeln("				dcms_btm.innerHTML = \'<input id=\"btn_i\" type=\"button\" value=\"搜 尋\" class=\"dcms_btn\" onClick=\"f.submit();return false;\">\';");
document.writeln("				fn.dcms_k.value = \"\";");
document.writeln("				fn.dcms_k.name = \"keyword\";");
document.writeln("				fn.action = \"\/cms_pic\/list.asp\";");
document.writeln("				dcms_kw.innerHTML = \'活動圖片\';");
document.writeln("			}");

document.writeln("		if(td_now.id == \"s_td_5\")\/\/花絮");
document.writeln("			{");
document.writeln("				document.getElementById(\"ArtBlk\").style.display = \"none\";");
document.writeln("				document.getElementById(\"CmsBlk\").style.display = \"block\";");
document.writeln("				lc.style.display = \"none\";");
document.writeln("				dcms_ms.style.width = \"293px\";");
document.writeln("				dcms_btm.width = \"55px\";");
document.writeln("				dcms_btm.innerHTML = \'<input id=\"btn_i\" type=\"button\" value=\"搜 尋\" class=\"dcms_btn\" onClick=\"f.submit();return false;\">\';");
document.writeln("				fn.dcms_k.value = \"\";");
document.writeln("				fn.dcms_k.name = \"keyword\";");
document.writeln("				fn.action = \"\/cms_video\/list.asp\";");
document.writeln("				dcms_kw.innerHTML = \'活動影片\';");
document.writeln("			}");

document.writeln("		if(td_now.id == \"s_td_6\")\/\/相簿");
document.writeln("			{");
document.writeln("				document.getElementById(\"ArtBlk\").style.display = \"none\";");
document.writeln("				document.getElementById(\"CmsBlk\").style.display = \"block\";");
document.writeln("				lc.style.display = \"none\";");
document.writeln("				dcms_ms.style.width = \"293px\";");
document.writeln("				dcms_btm.width = \"55px\";");
document.writeln("				dcms_btm.innerHTML = \'<input id=\"btn_i\" type=\"button\" value=\"搜 尋\" class=\"dcms_btn\" onClick=\"f.submit();return false;\">\';");
document.writeln("				fn.dcms_k.value = \"\";");
document.writeln("				fn.dcms_k.name = \"keyword\";");
document.writeln("				fn.action = \"\/cms_flash\/list.asp\";");
document.writeln("				dcms_kw.innerHTML = \'Flash動畫\';");
document.writeln("			}");

document.writeln("		if(td_now.id == \"s_td_7\")\/\/Blog");
document.writeln("			{");
document.writeln("				document.getElementById(\"ArtBlk\").style.display = \"none\";");
document.writeln("				document.getElementById(\"CmsBlk\").style.display = \"block\";");
document.writeln("				lc.style.display = \"none\";");
document.writeln("				dcms_ms.style.width = \"293px\";");
document.writeln("				dcms_btm.width = \"55px\";");
document.writeln("				dcms_btm.innerHTML = \'<input id=\"btn_i\" type=\"button\" value=\"搜 尋\" class=\"dcms_btn\" onClick=\"f.submit();return false;\">\';");
document.writeln("				fn.dcms_k.value = \"\";");
document.writeln("				fn.dcms_k.name = \"Skeyword\";");
document.writeln("				fn.action = \"\/cms_blog\/bloglist.asp\";");
document.writeln("				dcms_kw.innerHTML = \'Blog日誌\';");
document.writeln("			}");

/*
document.writeln("		if(td_now.id == \"s_td_7\")\/\/音樂");
document.writeln("			{");
document.writeln("				document.getElementById(\"ArtBlk\").style.display = \"none\";");
document.writeln("				document.getElementById(\"CmsBlk\").style.display = \"block\";");
document.writeln("				lc.style.display = \"none\";");
document.writeln("				dcms_ms.style.width = \"293px\";");
document.writeln("				dcms_btm.width = \"55px\";");
document.writeln("				dcms_btm.innerHTML = \'<input id=\"btn_i\" type=\"button\" value=\"搜 尋\" class=\"dcms_btn\" onClick=\"f.submit();return false;\">\';");
document.writeln("				fn.dcms_k.value = \"\";");
document.writeln("				fn.dcms_k.name = \"keyword\";");
document.writeln("				fn.action = \"\/Music\/List.asp\";");
document.writeln("				dcms_kw.innerHTML = \'音樂\';");
document.writeln("			}");

document.writeln("		if(td_now.id == \"s_td_8\")\/\/商城");
document.writeln("			{");
document.writeln("				document.getElementById(\"ArtBlk\").style.display = \"none\";");
document.writeln("				document.getElementById(\"CmsBlk\").style.display = \"block\";");
document.writeln("				lc.style.display = \"none\";");
document.writeln("				dcms_ms.style.width = \"293px\";");
document.writeln("				dcms_btm.width = \"55px\";");
document.writeln("				dcms_btm.innerHTML = \'<input id=\"btn_i\" type=\"button\" value=\"搜 尋\" class=\"dcms_btn\" onClick=\"f.submit();return false;\">\';");
document.writeln("				fn.dcms_k.value = \"\";");
document.writeln("				fn.dcms_k.name = \"keyword\";");
document.writeln("				fn.action = \"\/Shop\/List.asp\";");
document.writeln("				dcms_kw.innerHTML = \'商城\';");
document.writeln("			}");

document.writeln("		if(td_now.id == \"s_td_9\")\/\/問答");
document.writeln("			{");
document.writeln("				document.getElementById(\"ArtBlk\").style.display = \"none\";");
document.writeln("				document.getElementById(\"CmsBlk\").style.display = \"block\";");
document.writeln("				lc.style.display = \"none\";");
document.writeln("				dcms_ms.style.width = \"238px\";");
document.writeln("				dcms_btm.width = \"110px\";");
document.writeln("				dcms_btm.innerHTML = \'<input id=\"btn_i\" type=\"button\" value=\"搜 尋\" class=\"dcms_btn\" onClick=\"f.submit();return false;\"><input type=\"button\" value=\"提 問\" onClick=\"ask(f);\" class=\"dcms_btn\">\';");
document.writeln("				fn.dcms_k.value = \"\";");
document.writeln("				fn.dcms_k.name = \"content\";");
document.writeln("				fn.action = \"\/cms_ask\/Search.asp\";");
document.writeln("				dcms_kw.innerHTML = \'問答\';");
document.writeln("			}");
*/

document.writeln("	}");

/*
document.writeln("function dream_ask_ck(fn) {");
document.writeln("	if(fn.dcms_k.value == \"\"){");
document.writeln("		if(fn.btn_i.value == \"提 問\")");
document.writeln("		{");
document.writeln("			window.open(\"\/cms_ask\/\");");
document.writeln("			return false;");
document.writeln("		}");
document.writeln("	}");
document.writeln("	return true;");
document.writeln("}");

document.writeln("function ask(fn){");
document.writeln("	if(fn.k.value == \"\"){");
document.writeln("		window.open(\"\/cms_ask\/\");");
document.writeln("		return false;");
document.writeln("	}else{");
document.writeln("		window.open(\"\/cms_ask\/put.asp?content=\" + fn.k.value);");
document.writeln("		return false;");
document.writeln("	}");
document.writeln("}");
*/

document.writeln("<\/script>");


document.writeln("<table width=\"420\" height=\"70\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"dream_Table\">");
document.writeln("	<tr>");
document.writeln("		<td valign=\"top\">");
document.writeln("			<div style=\"position:relative;\">");
document.writeln("				<div class=\"dream_Tabs1\">");
document.writeln("					<table width=\"100%\" height=\"30\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background:url(\/..\/cms_img/search\/search_bg.gif) repeat-x top;\">");
document.writeln("						<tr align=\"center\" valign=\"top\">");
document.writeln("							<td width=\"80\" style=\"padding-top:3px;font-size:12px;font-weight:bold;\"><img src=\"../cms_img\/share\/icon\/search.gif\"> <a href=\"http:\/\/www.qikong.org.tw\/\" target=\"_blank\">站內搜尋<\/a><\/td>");
document.writeln("							<td id=\"s_td_1\" class=\"s_td_on\" onclick=\"s_chg(this,f);\">會報<\/td>");
document.writeln("							<td id=\"s_td_2\" class=\"s_td_of\" onclick=\"s_chg(this,f);\">文章<\/td>");
document.writeln("							<td id=\"s_td_3\" class=\"s_td_of\" onclick=\"s_chg(this,f);\">資源<\/td>");
document.writeln("							<td id=\"s_td_4\" class=\"s_td_of\" onclick=\"s_chg(this,f);\">剪影<\/td>");
document.writeln("       				    <td id=\"s_td_5\" class=\"s_td_of\" onclick=\"s_chg(this,f);\">花絮<\/td>");
document.writeln("       				    <td id=\"s_td_6\" class=\"s_td_of\" onclick=\"s_chg(this,f);\">相簿<\/td>");
document.writeln("							<td id=\"s_td_7\" class=\"s_td_of\" onclick=\"s_chg(this,f);\">Blog<\/td>");
/*document.writeln("						<td id=\"s_td_4\" class=\"s_td_of\" onclick=\"s_chg(this,f);\">音樂<\/td>");
document.writeln("							<td id=\"s_td_8\" class=\"s_td_of\" onclick=\"s_chg(this,f);\">商城<\/td>");
document.writeln("							<td id=\"s_td_9\" class=\"s_td_of\" onclick=\"s_chg(this,f);\">問答<\/td>");*/
document.writeln("              			<td align=\"right\" class=\"linkBlack01\" style=\"font-size:10px; padding:10px 5px 0 0;\"><\/td>");
document.writeln("						<\/tr>");
document.writeln("					<\/table>");
document.writeln("				<\/div>");
document.writeln("				<div class=\"dream_Tabs2\">");
document.writeln("					<div id=\"ArtBlk\" style=\"display:block;\">");
document.writeln("						<script type=\"text\/javascript\">");
document.writeln("							function checkArtValue(){");
document.writeln("								if(document.gform.keyword.value==\"請輸入關鍵字\"||document.gform.keyword.value==\"請輸入關鍵字\"||document.gform.keyword.value==\"\") {");
document.writeln("									document.gform.keyword.value=\"\";");
document.writeln("								}");
document.writeln("							}");
document.writeln("						<\/script>");
document.writeln("						<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("							<tr>");
document.writeln("								<td width=\"394\" height=\"29\" align=\"left\">");
document.writeln("									<form onSubmit=\"return checkArtValue();\" name=\"gform\" method=\"get\" action=\"\/cms_news\/list.asp\" target=\"_blank\">");
document.writeln("										<table width=\"394\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("											<tr align=\"left\">");
document.writeln("												<td><script type=\"text\/javascript\">document.write(\'<input type=\"text\" name=\"keyword\" class=\"bk_n\" value=\"\' + ArtSearchKey + \'\" style=\"width:276px;\" onclick=\"checkArtValue();\" \/>\');<\/script><\/td>");
document.writeln("												<td width=\"5\"><\/td>");
document.writeln("												<td width=\"54\"><input type=\"submit\"  value=\"搜 尋\" class=\"dcms_btn\" \/><\/td>");
document.writeln("												<td width=\"102\" style=\"padding-top:5px;\"><\/td>");
document.writeln("											<\/tr>");
document.writeln("										<\/table>");
document.writeln("									<\/form>");
document.writeln("								<\/td>");
document.writeln("								<td align=\"left\" style=\"padding-top:5px;\"><\/td>");
document.writeln("							<\/tr>");
document.writeln("						<\/table>");
document.writeln("					<\/div>");
document.writeln("					<div id=\"CmsBlk\" style=\"display:none;\">");
document.writeln("						<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("							<tr>");
document.writeln("								<td width=\"360\" height=\"29\" align=\"left\">");
document.writeln("									<table width=\"348\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("										<form name=\"f\" action=\"\" target=\"_blank\" onsubmit=\"return dream_ask_ck(this)\">");
document.writeln("											<tr align=\"left\">");
document.writeln("												<td id=\"dcms_ms\"><input type=\"text\" id=\"dcms_k\" name=\"k\" class=\"bk_n\" onClick=\"javascript:if(this.value==\'如：夢時代數碼工作室\')this.value=\'\';\"\/><\/td>");
document.writeln("												<td id=\"lc\"><\/td>");
document.writeln("												<td width=\"5\"><\/td>");
document.writeln("												<td id=\"dcms_btm\" width=\"110\"><\/td>");
document.writeln("											<\/tr>");
document.writeln("										<\/form>");
document.writeln("									<\/table>");
document.writeln("								<\/td>");
document.writeln("								<td id=\"dcms_kw\" align=\"left\" style=\"padding-top:5px;\"><\/td>");
document.writeln("							<\/tr>");
document.writeln("						<\/table>");
document.writeln("					<\/div>");
document.writeln("				<\/div>");
document.writeln("			<\/div>");
document.writeln("		<\/td>");
document.writeln("	<\/tr>");
document.writeln("<\/table>")
