if ( typeof(hbcms_top_js_css_type) == 'undefined' ) {
	hbcms_top_js_css_type = '';
}

if ( hbcms_top_js_css_type != 'no_css' ) {

document.write("<style>");
//document.write("\/* reset.css 为符合大众需求，去除了table的重置 *\/");
document.write("html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;} ");
document.write("body {line-height:1.5;} ");
//document.write("table {border-collapse:separate;border-spacing:0;} ");
//document.write("caption, th, td {text-align:left;font-weight:normal;} ");
//document.write("table, td, th {vertical-align:middle;} ");
document.write('blockquote:before, blockquote:after, q:before, q:after {content:"";}');
document.write('blockquote, q {quotes:"" "";}');
document.write("a img {border:none;} ");



//document.write("\/* typography.css *\/");
document.write('body {font-size:75%;color:#222;background:#fff;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;}');
document.write("h1, h2, h3, h4, h5, h6 {font-weight:normal;color:#111;} ");
document.write("h1 {font-size:3em;line-height:1; margin-bottom:0.5em;} ");
document.write("h2 {font-size:2em;margin-bottom:0.75em;} ");
document.write("h3 {font-size:1.5em;line-height:1;margin-bottom:1em;} ");
document.write("h4 {font-size:1.2em;line-height:1.25;margin-bottom:1.25em;} ");
document.write("h5 {font-size:1em;font-weight:bold;margin-bottom:1.5em;} ");
document.write("h6 {font-size:1em;font-weight:bold;} ");
document.write("h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;} ");
document.write("p {margin:0 0 1.5em;} ");
document.write("p img.left {float:left;margin:1.5em 1.5em 1.5em 0;padding:0;} ");
document.write("p img.right {float:right;margin:1.5em 0 1.5em 1.5em;} ");
document.write("a:focus, a:hover {color:#FF0000;} ");
document.write("a {color:#009;text-decoration:underline;} ");
document.write("blockquote {margin:1.5em;color:#666;font-style:italic;} ");
document.write("strong {font-weight:bold;} ");
document.write("em, dfn {font-style:italic;} ");
document.write("dfn {font-weight:bold;} ");
document.write("sup, sub {line-height:0;} ");
document.write("abbr, acronym {border-bottom:1px dotted #666;} ");
document.write("address {margin:0 0 1.5em;font-style:italic;} ");
document.write("del {color:#666;} ");
document.write("pre {margin:1.5em 0;white-space:pre;} ");
document.write("pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;} ");
document.write("li ul, li ol {margin:0 1.5em;} ");
document.write("ul, ol {margin:0 1.5em 1.5em 1.5em;} ");
document.write("ul {list-style-type:disc;} ");
document.write("ol {list-style-type:decimal;} ");
document.write("dl {margin:0 0 1.5em 0;} ");
document.write("dl dt {font-weight:bold;} ");
document.write("dd {margin-left:1.5em;} ");
//document.write("table {margin-bottom:1.4em;width:100%;} ");
//document.write("th {font-weight:bold;} ");
//document.write("thead th {background:#c3d9ff;} ");
//document.write("th, td, caption {padding:4px 10px 4px 5px;} ");
//document.write("tr.even td {background:#e5ecf9;} ");
//document.write("tfoot {font-style:italic;} ");
document.write("caption {background:#eee;} ");
document.write(".small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;} ");
document.write(".large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;} ");
document.write(".hide {display:none;} ");
document.write(".quiet {color:#666;} ");
document.write(".loud {color:#000;} ");
document.write(".highlight {background:#ff0;} ");
document.write(".added {background:#060;color:#fff;} ");
document.write(".removed {background:#900;color:#fff;} ");
document.write(".first {margin-left:0;padding-left:0;} ");
document.write(".last {margin-right:0;padding-right:0;} ");
document.write(".top {margin-top:0;padding-top:0;} ");
document.write(".bottom {margin-bottom:0;padding-bottom:0;} ");




//document.write("\/* grid.css *\/");

// Total Page Width = grid_cw * grid_num - grid_mw
if (typeof(grid_num) != 'number' ) {
	grid_num = 24; // Column number
}
if (typeof(grid_mw) != 'number' ) {
	grid_mw = 10; // Margin Width
}
if (typeof(grid_page_width) == 'number' ) {
	if ( grid_page_width == 0 ) {
		grid_page_width = document.documentElement.clientWidth-grid_num;
	}
	// 如果指定的grid_page_width不包含小数点，那么，grid_cw取整数
	if ( grid_page_width.toString().indexOf('.') == -1 ) {
		grid_cw = Math.floor((grid_page_width + grid_mw)/grid_num);
		grid_page_width = grid_cw*grid_num-grid_mw;
	} else {
		// 如果指定的grid_page_width包含小数点，那么，grid_cw不取整
		// 由于像素单位px会自动使用整数进行运算，可能会有意外情况
		grid_cw = (parseInt(grid_page_width)+grid_mw)/grid_num;
		
	}
} else {
	if (typeof(grid_cw) != 'number' ) {
		grid_cw = 40; // Column width
	}
}
// 为方便调试debug，显示技术出来的宽度设置
if ( location.href.indexOf('debug_hbcms_grid') != -1 ) {
	alert('Column number:' + grid_num + ' Margin Width:' + grid_mw + ' Column width:' + grid_cw + ' Real page width:' + grid_page_width );
}

document.write(".container {width:"+(grid_cw*grid_num-grid_mw)+"px;margin:0 auto;} ");
document.write(".showgrid {background:url(http://www.blueprintcss.org/blueprint/src/grid.png);} ");
document.write(".column {float:left;margin-right:"+grid_mw+"px;} ");

for (var i=1; i<=grid_num; i++){
	g_w = grid_cw*i;
	document.write("div.span-"+i+" {float:left;margin-right:"+grid_mw+"px;} ");
	document.write(".span-"+i+" {width:"+(g_w-grid_mw)+"px;} ");
	document.write(".append-"+i+" {padding-right:"+g_w+"px;} ");
	document.write(".prepend-"+i+" {padding-left:"+g_w+"px;} ");
	document.write(".pull-"+i+" {margin-left:-"+g_w+"px;float:left;position:relative;} ");
	document.write(".push-"+i+" {margin:0 -"+g_w+"px 1.5em "+g_w+"px;float:right;position:relative;} ");
	document.write("input.span-"+i+", textarea.span-"+i+", select.span-"+i+" {width:"+(g_w-grid_cw+30)+"px!important;} ");
}
document.write(".span-"+grid_num+", div.span-"+grid_num+" {margin:0;} ");
document.write(".last, div.last {margin-right:0;} ");

document.write("div.border {padding-right:4px;margin-right:5px;border-right:1px solid #eee;} ");
document.write("div.colborder {padding-right:24px;margin-right:25px;border-right:1px solid #eee;} ");
document.write(".prepend-top {margin-top:1.5em;} ");
document.write(".append-bottom {margin-bottom:1.5em;} ");
document.write(".box {padding:1.5em;margin-bottom:1.5em;background:#E5ECF9;} ");
document.write("hr {background:#ddd;color:#ddd;clear:both;float:none;width:100%;height:.1em;margin:0 0 1.45em;border:none;} ");
document.write("hr.space {background:#fff;color:#fff;} ");
document.write('.clearfix:after, .container:after {content:"\\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;}');
document.write(".clearfix, .container {display:block;} ");
document.write(".clear {clear:both;} ");



//document.write("\/* forms.css *\/");
document.write("label {font-weight:bold;} ");
document.write("fieldset {padding:1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;} ");
document.write("legend {font-weight:bold;font-size:1.2em;} ");
document.write("input.text, input.title, textarea, select {margin:0.5em 0;border:1px solid #bbb;} ");
document.write("input.text:focus, input.title:focus, textarea:focus, select:focus {border:1px solid #666;} ");
document.write("input.text, input.title {width:300px;padding:5px;} ");
document.write("input.title {font-size:1.5em;} ");
document.write("textarea {width:390px;height:250px;padding:5px;} ");
document.write(".error, .notice, .success {padding:.8em;margin-bottom:1em;border:2px solid #ddd;} ");
document.write(".error {background:#FBE3E4;color:#8a1f11;border-color:#FBC2C4;} ");
document.write(".notice {background:#FFF6BF;color:#514721;border-color:#FFD324;} ");
document.write(".success {background:#E6EFC2;color:#264409;border-color:#C6D880;} ");
document.write(".error a {color:#8a1f11;} ");
document.write(".notice a {color:#514721;} ");
document.write(".success a {color:#264409;} ");

if ( document.all ){
	//document.write("\/* ie.css *\/");
	document.write("body {text-align:center;} ");
	document.write(".container {text-align:left;} ");
	document.write("* html .column{overflow-x:hidden;} ");
	for (var i=1; i<=grid_num; i++){
		document.write("* html div.span-"+i+"{overflow-x:hidden;} ");
	}
	document.write("* html legend {margin:-18px -8px 16px 0;padding:0;} ");
	document.write("ol {margin-left:2em;} ");
	document.write("sup {vertical-align:text-top;} ");
	document.write("sub {vertical-align:text-bottom;} ");
	document.write("html>body p code {*white-space:normal;} ");
	document.write("hr {margin:-8px auto 11px;} ");
	document.write(".clearfix, .container {display:inline-block;} ");
	document.write("* html .clearfix, * html .container {height:1%;} ");
	document.write("fieldset {padding-top:0;} ");
}


if ( hbcms_top_js_css_type != 'no_hbcms_css' ) {

	/*** 宏博cms 模板模块化css预设风格和常用javascript函数 ***/
	is_firefox = (document.all) ? 0 : 1;
	document.write("html{overflow-x:hidden;}");
	document.write("dl,dd,dt{margin:0;}");
	document.write("dl dt{text-align:center;}");
	document.write(".vertical_space{height:auto !important;height:10px; min-height:10px;width:100%;font-weight:normal;clear:both;overflow-x:hidden;}");

	document.write(".item_header ul,.item_body ul,.item_body ol,ul.copyright{list-style-type: none;}");

	document.write("a {color:#191919;text-decoration:none;} ");
	document.write("blockquote {color:#000;font-style:normal;} ");
	document.write("dd.item_body,.item_body ol {margin-bottom:8px;}");

	document.write(".item_body ol li {border-bottom:1px dotted #DDDDDD; line-height:25px;}");

	document.write(".item_header .more, .item_body .more { text-align:right;padding-right:5px;padding-left:5px;}");

	document.write(".item_body li.gg_1, .item_body li.gg_2, .item_body li.gg_3{text-align:center; margin:0 auto; padding-top:2px; clear:both; }");

	document.write(".item_header{ height:26px; line-height:26px; color:black; }");

	document.write(".mytag dd.item_body{text-align:center;padding-top:3px;padding-bottom:3px;overflow-x:hidden;}");

	document.write("dt.item_header p,dd.hbcms_nav p,dd.web_logo p,dd.top_text p{ margin:0;padding:0; }");

	/* 首页designed_by */
	document.write(".designed_by,dd.cp_1 {text-align:center;padding:10px;}");

	/* 默认主题色（蓝色）*/
	document.write(".item_header, .item_body_outer, .item_body .num, .top_nav{ background-color: #d1e3f3; }");
	document.write(".item_body, .many_type_article .more, #hbcms_nav :hover ul.sub,#hbcms_nav li ul.sub li a.fly { background-color: #EDF3FA;}");
	document.write("#hbcms_nav :hover ul.sub li {border:1px solid #87B6E0;}");

	/* 绿色主题 */
	document.write(".body_green .item_header, .body_green .item_body_outer, .body_green .item_body .num, .body_green .top_nav{ background-color: #E1F8D8; }");
	document.write(".body_green .item_body, .body_green .many_type_article .more, .body_green #hbcms_nav :hover ul.sub,.body_green #hbcms_nav li ul.sub li a.fly { background-color: #EFFAED;}");
	document.write(".body_green #hbcms_nav :hover ul.sub li {border:1px solid #A9D99D;border-top:0px;}");

	/* 红色主题 */
	document.write(".body_red .item_header, .body_red .item_body_outer, .body_red .item_body .num, .body_red .top_nav{ background-color: #F7CED1; }");
	document.write(".body_red .item_body, .body_red .many_type_article .more, .body_red #hbcms_nav :hover ul.sub,.body_red #hbcms_nav li ul.sub li a.fly { background-color: #FAEEED;}");
	document.write(".body_red #hbcms_nav :hover ul.sub li {border:1px solid #F3B8BC;border-top:0px;}");

	/* 粉色主题 */
	document.write(".body_pink .item_header, .body_pink .item_body_outer, .body_pink .item_body .num, .body_pink .top_nav{ background-color: #F4D0F2; }");
	document.write(".body_pink .item_body, .body_pink .many_type_article .more, .body_pink #hbcms_nav :hover ul.sub,.body_pink #hbcms_nav li ul.sub li a.fly { background-color: #FBECFA;}");
	document.write(".body_pink #hbcms_nav :hover ul.sub li {border:1px solid #F4D0F2;border-top:0px;}");

	/* 灰色主题 */
	document.write(".body_gray .item_header, .body_gray .item_body_outer, .body_gray .item_body .num, .body_gray .top_nav{ background-color: #E3E2E1; }");
	document.write(".body_gray .item_body, .body_gray .many_type_article .more, .body_gray #hbcms_nav :hover ul.sub,.body_gray #hbcms_nav li ul.sub li a.fly { background-color: #F4F2F2;}");
	document.write(".body_gray #hbcms_nav :hover ul.sub li {border:1px solid #CCCCCC;border-top:0px;}");

	/* 黄色主题 */
	document.write(".body_yellow .item_header, .body_yellow .item_body_outer, .body_yellow .item_body .num, .body_yellow .top_nav{ background-color: #F9D7B0; }");
	document.write(".body_yellow .item_body, .body_yellow .many_type_article .more, .body_yellow #hbcms_nav :hover ul.sub,.body_yellow #hbcms_nav li ul.sub li a.fly { background-color: #F9F7E6;}");
	document.write(".body_yellow #hbcms_nav :hover ul.sub li {border:1px solid #F9D7B0;border-top:0px;}");

	/* 单个栏目的文章前数字风格 */
	document.write(".single_type_article .item_body span.num {height:16px;line-height:16px;font-size:9px;margin-top:4px;margin-right:4px;}");
	document.write("");


	/* 模板lib库文件 hb.hot_new_commend.tpl.html 里用到的css */
	
	document.write(".hot_new_commend ol{margin:0;padding:8px;padding-top:2px;}");

	/* 模板lib库文件 hb.many_type_article.tpl.html 里用到的css */

	document.write(".many_type_article dt{font-weight:normal;}");
	document.write("");
	document.write(".type_container { padding:0px;margin:0px;border:0px solid green;}");
	document.write(".type_article {float:left; border:0px solid red;height:100%;overflow-x:hidden;}");
	document.write(".type_split{float:left;height:10px;}");

	document.write(".type_article .item_header .item_title{float:left;padding-left:10px;font-weight:bold;}");

	document.write(".type_article .item_header .more {height:16px;line-height:16px;width:40px;margin:4px;float:right;}")

	document.write(".type_article .item_body .more{text-align:right;}");

	document.write(".type_article .item_body {padding:5px;height:auto !important;height:168px; min-height:168px;}");
	document.write(".type_article .item_body ul, .type_article .item_body ol{margin:0;padding:0;}");

	document.write(".type_article .pic_link {height:60px;}");
	document.write(".type_article .pic_link .pic{width:70px;height:60px; float:left; overflow:hidden; }");
	document.write(".type_article .pic_link .pic img{padding:1px;border:1px solid #eee; width:66px;}");
	document.write(".type_article .pic_link dd.title{padding-left:2px;height:20px;line-height:20px;overflow:hidden;}");
	document.write(".type_article .pic_link dd.desc{padding-left:2px;height:40px;overflow:hidden;color:gray;}");



	/* 模板lib库文件 hb.search_form.tpl.html 用到的css */

	/* 默认搜索框 */
	document.write(".search_form .item_body {padding:10px;}");
	document.write(".search_form .item_body .submit_2{display:none;}");
	document.write(".search_form .item_body .search_input{float:left;}");
	document.write(".search_form .item_body .search_type{float:left;}");

	/* 默认多行显示搜索框 */
	document.write(".search_form_2 .item_body .search_type{width:100%;}");
	document.write(".search_form_2 .item_body .search_input input{width:110px;}");

	/* 单行显示搜索框 */
	document.write(".search_form_1 .item_header{ display:none;}");
	document.write(".search_form_1 .item_body select{margin:0px; padding:0px;}");
	document.write(".search_form_1 .item_body .submit_1{display:none;}");
	document.write(".search_form_1 .item_body .submit_2{float:left;display:block;}");
	document.write(".search_form_1 .item_body .type_id{float:left;}");
	document.write(".search_form_1 .item_body dd{padding-right:3px;}");

	/* 模板lib库文件 hb.user_form.tpl.html 用到的css */

	/* 用户登陆公共的css */
	document.write(".user_form .item_body{padding-left:15px;padding-top:5px;}")
	document.write(".user_form .user_name input, .user_form .user_pass input{width:100px;height:16px;}");



	/* 用户登陆多行 */
	document.write(".user_form_2 .item_body{height:80px;}");
	document.write(".user_form_2 .user_login{width:45%;float:left;padding-top:8px;}");
	document.write(".user_form_2 .user_join{width:45%;padding-top:8px;float:left;}");
	document.write(".user_form_2 .welcome_back{text-align:center;padding-left:39px;}");
	document.write(".user_form_2 .index_user_tb dd{float:left; line-height:25px;width:49%;}");

	/* 用户登陆单行 */
	document.write(".user_form_1 .item_header{display:none;} ");
	document.write(".user_form_1 .item_body{padding-top:5px;height:25px;}");
	document.write(".user_form_1 .user_name_form{width:100px;height:16px; float:left;}");
	document.write(".user_form_1 .user_pass_form{width:100px;height:16px; float:left;}");
	document.write(".user_form_1 .user_name span{float:left;line-height:22px;}");
	document.write(".user_form_1 .user_pass span{float:left;line-height:22px;}");
	document.write(".user_form_1 .index_user_tb dl dd{float:left;padding-left:5px;line-height:25px;}");
	document.write(".user_form_1 .welcome_back{float:left;}");
	document.write(".user_form_1 dl dd{float:left;margin-left:5px;}");

	/* 下级栏目单行  */
	document.write(".sub_type_1 dt{float:left;background:none;}");
	document.write(".sub_type_1 .item_body ol{margin:0;padding:0;}");
	document.write(".sub_type_1 .item_body li{float:left;margin-left:5px;border:0;}");

	/* 下级栏目多行  */
	document.write(".sub_type_2 .item_body ol li.current a{color:#CE0000;}");
	document.write(".sub_type_2 .item_body ol li {border:0px;padding:0 0 0 15px;line-height:30px;height:30px;border-bottom:1px dotted gray;}");
	document.write(".sub_type_2 .item_body ol{list-style-type: none;margin:0 10px 0 10px;padding-bottom:10px;}");

	/* 会员中心 */
	document.write(".user_control .item_body dl dd{width:40%;float:left;line-height:25px;padding-left:10px;}")
	document.write(".user_control .item_body{ height:50px;margin-bottom:10px;}")

	/* 模板lib库文件 hb.single_type_article.tpl.html 用到的css */

	//document.write("dl.single_type_article {width:100%;float:left;}");
	/* 显示文字链接（ol） */
	document.write(".single_type_article ol{margin:0;padding-left:10px;padding-right:10px;}");
	document.write(".single_type_article ol li{overflow:hidden;}");
	document.write(".single_type_article .item_body ol li span.date{float:right;padding-left:10px;}");
	document.write(".single_type_article .item_body span.num {width:15px;float:left;text-align: center;display:block;}");

	/* 显示图片链接（ul） */
	document.write(".single_type_article .item_body ul li {float:left;}");
	document.write(".single_type_article .item_body ul li img {width:100px;padding:1px;border:1px solid #E4E4E4;}");
	document.write(".single_type_article .item_body ul li dl {width:160px;text-align:center;}");

	/* 列表页：模板lib库文件 hb.article_list.tpl.html 用到的css */

	//document.write(".article_list {width:100%;}");
	//document.write(".article_list .item_body ul{margin:2px;}");
	document.write(".article_list .item_body li {border:0px; }");

	document.write(".article_list li.item_title .date{float:right;padding-left:10px;}");
	document.write(".article_list li.item_title{width:99%;}");
	document.write(".article_list li.just_title{border-bottom:1px dotted gray;height:30px;line-height:30px;}");

	document.write(".article_list li.item_property{padding-left:20px;color: gray;}");
	document.write(".article_list li.item_desc {padding-left:20px;padding-right:20px;color: gray;}");
	document.write(".article_list li.item_desc dl{width:99%}");
	document.write(".article_list li.item_desc dd.pic{float:left; width:130px;}");
	document.write(".article_list li.item_desc dd.pic img{width:120px;padding:1px;border:1px solid #C0C0C0;}");
	if ( is_firefox ){
		document.write(".article_list li.item_desc dl{height:80px;overflow:hidden;}");
	}

	/*  显示图片链接（dl） */
	document.write(".article_list .item_body dd.pic_link {float:left;}");
	document.write(".article_list .item_body dd.pic_link img {width:100px;padding:1px;border:1px solid #C0C0C0;max-height:150px;}");
	document.write(".article_list .item_body dd.pic_link {text-align:center;}");
	document.write(".article_list .item_body dd.member_price a{color:red;}");
	document.write(".article_list .item_body dd.market_price a{color:green;}");

	document.write(".article_list .item_body dl.only_pic dd.line{ margin:0; width:100%; line-height:10px; font-size:2px; height:10px; float:left;}");


	/* 文章（列表）分页页码链接风格 */
	document.write(".article_list .page_links{ padding:10px 0; clear:both;  text-align: center;}");
	document.write(".article_list .page_links u{ text-align:center; padding:3px 0 0 0; background:#FF9900; border:1px solid #FF6600; font-weight:bold; padding:2px 5px 0px 5px;color:#FFFFCC;text-decoration: none;font-size:11px;}");
	document.write(".article_list .page_links a { text-align:center; padding:3px 0 0 0; background:white; border:1px solid #CCCCCC; font-weight:bold; padding:2px 5px 0px 5px; color:black; text-decoration: none;font-size:11px;}");
	document.write(".article_list .page_links a:visited{ color:black;text-decoration: none;font-size:11px;}");
	document.write(".article_list .page_links a:hover{ background:#1F3A87; color:#fff; padding:3px 5px 1px 5px;text-decoration: none;font-size:11px;}");
	document.write(".article_list .page_links center {color:gray;}");
	document.write(".article_list .page_links li.desc {padding-top:10px;}");

	/* 文章页面 article_detail开头的模板适用 */
	document.write(".article_detail {width:100%; }");
	document.write(".article_detail .item_body li {border:0px;}");
	document.write(".article_detail ul.item {margin:0 5px;overflow-x:hidden;} ");

	document.write(".article_detail li.item_desc ul {list-style-type:disc;} ");
	document.write(".article_detail li.item_desc ol {list-style-type:decimal;padding-left:30px;margin-left:30px;} ");

	document.write(".article_detail li.line {height:1px;line-height:1px;}");

	document.write(".article_detail li.item_property {text-align:center;padding-top:10px;}");
	document.write(".article_detail li.item_property span {padding-left:10px;}");
	document.write(".article_detail li.item_property .add_date {display:none;}");
	document.write(".article_detail li.item_pages {text-align:right;height:20px;line-height:20px;}");
	document.write(".article_detail li.item_pages select{margin:0;padding:0;}");
	document.write(".article_detail .page_links {text-align:center;font-weight:bold;}");
	document.write(".article_detail li.item_copy {text-align:center;cursor:pointer; padding:10px;}");
	document.write(".article_detail li.item_copy div{margin:0 auto;border:1px solid #D7D7D7;padding:5px;}");
	document.write(".article_detail li.buy {text-align:center; margin:0 auto;}");


	document.write(".article_detail li.item_relate dd.prev {float:left;width:49%;}");
	document.write(".article_detail li.item_relate dd.next { width:49%;float:left;}");
	document.write(".article_detail li.item_relate dl {margin:0;width:99%;}");

	document.write(".article_detail li.item_comment {padding-top:10px;width:99%;clear:both;}");
	document.write(".article_detail li.item_comment span.date {float:right;}");
	document.write(".article_detail li.item_comment li.text {padding-left:50px;color:#5A5A5A;}");
	
	document.write(".article_detail li.comment_form {padding:20px 0 20px 0; }");

	document.write(".article_detail li.item_category {width:99%;}");


	/* hb.top_nav.tpl.html 导航条  */
	document.write("dl.page_top {width:100%;margin:0;}");
	document.write("dl.page_top dd.web_logo{float:left; }");
	document.write("dl.page_top dd.top_text{text-align:center;}");

	document.write("dl.posi{float:left;width:100%;height:25px;line-height:25px;margin:0;}");
	document.write("dl.posi img{vertical-align:middle;}");
	document.write("dl.posi dt {float:left;font-weight:normal;}");
	document.write("dl.posi dd.my_text_001_2 {margin-left:10px;margin-right:10px;float:left;}");
	document.write("dl.posi dd.my_text_001_1 {float:right;}");
	document.write("dl.top_banner, dl.top_banner_2{clear:both;margin:0;padding:0;text-align:center;padding-bottom:2px;}");

	/**** 导航条顶级背景和文字字体控制 ****/

	document.write("dl.top_nav{float:left;margin:0;height:30px;width:100%;}");

	document.write(".top_nav_left{float:left;}");
	document.write(".top_nav_right{float:right;}");
	document.write("dl.top_nav .hbcms_nav{line-height:30px;}");

	//
	document.write("#hbcms_nav {float:left; text-align:left; padding:0; margin:0; list-style:none; position:relative; z-index:888; font-family:宋体,arial, verdana, sans-serif;}");
	/* 导航条顶级每个小标题整体控制 */
	document.write("#hbcms_nav li.top {display:block; float:left;}");
	document.write("#hbcms_nav li a.top_link {display:block; float:left; height:30px; line-height:30px; text-decoration:none;  padding:0 0 0 12px; cursor:pointer;background: url(none); text-align:left;}");
	/* 顶级每个链接文字部分控制 */
	document.write("#hbcms_nav li a.top_link span {float:left;text-align:left; display:block; padding:0 24px 0 12px; height:30px; background: url(none) right top no-repeat;}");
	/* 顶级栏目有子栏目的控制 */
	document.write("#hbcms_nav li a.top_link span.down {}");
	document.write("");
	/* 顶级鼠标移上去变化 */
	document.write("#hbcms_nav li:hover a.top_link,#hbcms_nav a.top_link:hover {color:red; background: url(none) no-repeat;}");

	document.write("#hbcms_nav li:hover a.top_link span,  #hbcms_nav a.top_link:hover span {background:url(none) no-repeat right top;}");

	document.write("#hbcms_nav li:hover a.top_link span.down, #hbcms_nav a.top_link:hover span.down {background:url(none) no-repeat right top; }");


	document.write("#hbcms_nav table {border-collapse:collapse;padding:0; margin:0; position:absolute; left:0; top:0;}");
	document.write("");

	document.write("#hbcms_nav li:hover {position:relative; z-index:888;}");
	/* 顶级鼠标移上去变化 */
	document.write("#hbcms_nav a:hover {position:relative; white-space:normal; z-index:888;}");

	/* 下拉菜单大背景 */
	document.write("#hbcms_nav :hover ul.sub {left:0px; top:30px; padding:0px; white-space:nowrap; width:150px; height:auto; z-index:9999;}");

	/* 下拉菜单里的li元素 */
	document.write("#hbcms_nav :hover ul.sub li {display:block; height:30px; position:relative; float:left; width:150px; font-weight:normal;border:1px solid #9AC1E4;border-top:0px;}");
	/* 下拉菜单里的链接元素 */
	document.write("#hbcms_nav :hover ul.sub li a {display:block;  height:30px; width:150px; line-height:30px; float:left; text-align:left; text-indent:5px; text-decoration:none;border:0px solid #9AC1E4;}");

	/* 下拉菜单里的链接背景 */
	//document.write("#hbcms_nav li ul.sub li a.fly {background:#f6f6f6 url(none) 80px 6px no-repeat;}");

	document.write("#hbcms_nav :hover ul.sub li a:hover { color:#fff; }");

	// background-color:#98b1c4; 

	/* 下拉菜单里的链接hover鼠标移动上去 */
	document.write("#hbcms_nav :hover ul.sub li a.fly:hover{background-color:#FFFFFF; color:blue; }");
	/* 下拉菜单里的链接hover鼠标移动上去的firefox,ie7的风格 */
	document.write("#hbcms_nav li:hover li:hover > a.fly {background-color: #FFFFFF;color:blue;} ");

	document.write("#hbcms_nav li b {display:block;  height:30px; width:88px; line-height:18px; margin-bottom:3px; text-indent:6px; color:#ffffff;cursor:default;}");

	/* 三级的下拉大背景 */
	document.write("#hbcms_nav a:hover a:hover ul, #hbcms_nav a:hover a:hover a:hover ul, #hbcms_nav a:hover a:hover a:hover a:hover ul, #hbcms_nav a:hover a:hover a:hover a:hover a:hover ul {left:150px; top:-1px;  padding:0px;  white-space:nowrap; width:150px; z-index:9999; height:auto;background-color:#98b1c4; }");
	document.write("");

	document.write("#hbcms_nav ul, #hbcms_nav a:hover ul ul,#hbcms_nav a:hover a:hover ul ul,#hbcms_nav a:hover a:hover a:hover ul ul,#hbcms_nav a:hover a:hover a:hover a:hover ul ul{position:absolute; left:-9999px; top:-9999px; width:0; height:0; margin:0; padding:0; list-style:none;}");

	/* 三级的下拉菜单位置firefox,ie7 */
	document.write("#hbcms_nav li:hover li:hover > ul {left:150px; top:0px;  padding:0px;  white-space:nowrap; width:150px; z-index:9999; height:auto;}");
	document.write("#hbcms_nav li:hover > ul ul  {position:absolute; left:-9999px; top:-9999px; width:0; height:0; margin:0; padding:0; list-style:none;}");

	document.write("#hbcms_nav li:hover li:hover > li a.fly {background:#bdcedc url(none) 80px 6px no-repeat; background-color:#000000;color:#bdcedc; border-color:#bdcedc;} ");

} // 结束是否加载hbcms的默认css的if语句

document.write("</style>");

} //  结束是否加载css的if语句


/* 公共的 js function */

hbcms_js_base_url = '';
if ( typeof(cms_dir) == 'string' ) {
	hbcms_js_base_url = '/'+cms_dir+'/script';
}
function hbcmsGetJsUrl(){
	if ( hbcms_js_base_url == ''){
		var elements=document.getElementsByTagName('script');
		for (var i=0;i<elements.length;i++){
			if (elements[i].src&&elements[i].src.indexOf('hbcms_top_js.js') != -1){
				var src=elements[i].src;
				hbcms_js_base_url=src.substring(0,src.lastIndexOf('/'));
				return hbcms_js_base_url;
			}
		}
	}
	return hbcms_js_base_url;
}

hbcmsGetJsUrl();

// 2个div高度对齐
function hbcmsDivDuiQi(id1,id2)	{
	if ( document.getElementById(id1) == null || document.getElementById(id2) == null)	{
		return false;
	}
	if (document.getElementById(id2).scrollHeight > document.getElementById(id1).scrollHeight) {
		document.getElementById(id1).style.height = document.getElementById(id2).scrollHeight+"px";
	} else {
		document.getElementById(id2).style.height = document.getElementById(id1).scrollHeight+"px";
	}
	return true;
}

// 导航条居中
function hbcmsNavPosition(posi)	{
	if ( posi == 'right' ) {
		document.write('<style type="text/css">#hbcms_nav li.top { width:78px; }#hbcms_nav li a.top_link span{padding:0 12px 0 0;}</style>');
	}
	hbcms_nav_link_width = document.getElementById('hbcms_nav').scrollWidth;
	hbcms_nav_div_width = grid_page_width - document.getElementById('top_nav_left').scrollWidth - document.getElementById('top_nav_right').scrollWidth;

	if ( hbcms_nav_div_width - 10 > hbcms_nav_link_width ) {
		hbcms_nav_padding_left = 0;
		if ( posi == 'center' ) {
			hbcms_nav_padding_left = Math.floor( (hbcms_nav_div_width - hbcms_nav_link_width - 10)/2);		
		} else if ( posi == 'right' ) {
			hbcms_nav_padding_left = hbcms_nav_div_width - hbcms_nav_link_width - 5;
		}
		//alert(grid_page_width + '-'+ hbcms_nav_div_width +'-' + hbcms_nav_link_width + '-'+hbcms_nav_padding_left );
		document.write('<style type="text/css"> #hbcms_nav {padding-left:'+ hbcms_nav_padding_left +'px; } </style>');	
	}
}

// 载入jquery脚本
function hbcmsLoadJquery(js_str) {
	js_str = js_str.replace(/ /g,'');
	var js_ary = js_str.split(',');
	var js_function = '';
	if ( typeof(jQuery) != 'function' ) {
	if ( js_str.indexOf('fromGoogle') != -1 ) {
		document.write('<scr'+'ipt type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></scr'+'ipt>');
		document.write('<scr'+'ipt type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js"></scr'+'ipt>');
	} else {
		document.write('<scr'+'ipt type="text/javascript" src="'+hbcms_js_base_url+'/jquery/jquery.js"></scr'+'ipt>');
	}
	//alert('load jq');
	}
	for (var i=0; i<js_ary.length; i++) {
		
		if ( js_ary[i].indexOf('.js') != -1 ) {
			js_function = js_ary[i].replace('plugin.','');
			js_function = js_function.replace('ui.','');
			js_function = js_function.replace('.js','');
			if ( js_ary[i].indexOf('ui.') == -1 && js_ary[i].indexOf('plugin.') == -1 ) {
				js_ary[i] = 'plugin.' + js_ary[i];
			}
		} else {
			continue;
		}
		if (  typeof(jQuery) != 'function' || typeof(eval('jQuery.fn.'+js_function)) != 'function' ) {

			document.write('<scr'+'ipt type="text/javascript" src="'+hbcms_js_base_url+'/jquery/'+js_ary[i]+'"></scr'+'ipt>');

			//alert(js_ary[i] + 'js_function='+js_function+'aa');
		}
	}
}
 
//hbcms登陆脚本
function hbcms_getCookieVal(offset) {var endstr = document.cookie.indexOf (";", offset);if (endstr == -1)endstr = document.cookie.length;return decodeURI(document.cookie.substring(offset, endstr));}

function hbcms_GetCookie (name) {  var arg = name + "=";  var alen = arg.length;  var clen = document.cookie.length;  var i = 0;  while (i < clen) {    var j = i + alen;    if (document.cookie.substring(i, j) == arg)      return hbcms_getCookieVal (j);    i = document.cookie.indexOf(" ", i) + 1;    if (i == 0) break;   }  return null;}


function hbcmsValidateLoginForm(frm) {  var value = '';  var errFlag = new Array();  var _qfGroups = {};  _qfMsg = '';  value = frm.elements['login_name'].value;  if (value == '' && !errFlag['login_name']) {    errFlag['login_name'] = true;    _qfMsg = _qfMsg + '\n - 登陆名: 必须填写';  }  value = frm.elements['login_name'].value;  if (value != '' && value.length < 2 && !errFlag['login_name']) {    errFlag['login_name'] = true;    _qfMsg = _qfMsg + '\n - 登陆名: 至少需要 2 个字母！';  }  value = frm.elements['login_pass'].value;  if (value == '' && !errFlag['login_pass']) {    errFlag['login_pass'] = true;    _qfMsg = _qfMsg + '\n - 登录密码: 必须填写';  }  value = frm.elements['login_pass'].value;  if (value != '' && value.length < 5 && !errFlag['login_pass']) {    errFlag['login_pass'] = true;    _qfMsg = _qfMsg + '\n - 登录密码: 至少需要 5 个字母！';  }  if (_qfMsg != '') {    _qfMsg = '\n=== 有如下错误需要修改 ===\n' + _qfMsg;    _qfMsg = _qfMsg + '\n\n- 请修改上述错误后再重新提交';    alert(_qfMsg);    return false;  }  return true;
}
function showHBcmsLoginName()	{
	if( hbcms_GetCookie('HBcmsLoginName') != null )	{
		document.getElementById('welcome_back').innerHTML = '您好 <font color="green">' + hbcms_GetCookie('HBcmsLoginName') + '</font>';
		document.login_form.login_name.value = hbcms_GetCookie('HBcmsLoginName');
	}
}



