﻿@charset "utf-8";

html {}
html,img,fieldset {border:0;}
html,body,form {margin:0;padding:0;}
body {color:#000;background-color:#fffde5;font-family:"SimSun",Arial, Helvetica, sans-serif;}
body {line-height:normal;font-size:12px;font-family:"SimSun",Arial, Helvetica, sans-serif,microsoft YaHei;/* SimSun 英文版 宋体 支持英文字母数字； microsoft YaHei 英文版 微软雅黑； */  }
td {
	font-family: SimSun, Arial, Helvetica, sans-serif, "microsoft YaHei";/* SimSun 英文版 宋体 支持英文字母数字； microsoft YaHei 英文版 微软雅黑； */
}

h1,h2,h3,h4,h5,h6 {margin:0;padding:0;font-size:14px;}

ul,ol {margin:0; padding:0px; list-style-type: none}
dl,p  {margin:0;padding:5px 0;}
li { padding:10px;}
p { mso-char-indent-count:2.0; }

a, 
a:link {color:#000;text-decoration:none;}
a:active {}
a:hover {color:red;}
a:visited{}

a.bai {color:#ffffff;}
a.bai:link {color:#ffffff;text-decoration:none;}
a.bai:active {}
a.bai:hover {color:red;}
a.bai:visited{}


/* 浮动元素 */
.rectbox:after {content:".";display:block;height:0;clear:both;visibility:hidden;}
.rectbox {clear:both;*display:inline-block;}
.rectbox .left {float:left;_display:inline;}
.rectbox .right {float:right;_display:inline;}


/* Form 元素统一 */
	textare {overflow-y:visible}
	label {cursor:pointer;_cursor:default;}
	input[type="submit"] {cursor:pointer;}
	input[type="button"] {cursor:pointer;}
	input[type="reset"]  {cursor:pointer;}
	input.submit     {cursor:pointer;}
	input.button     {cursor:pointer;}
	input.reset      {cursor:pointer;}
	input.disabled   {cursor:default;}
	input[disabled]  {}
	input.readonly   {color:#999;border:1px solid #ccc;background:#f3f3f3;}
	input[readOnly]   {color:#999;border:1px solid #ccc;background:#f3f3f3;}
	*html input {
		direction:expression(function(sjd){
				sjd.style.direction = "ltr";                                     /* 只 执行一次*/
				sjd.className += " "+sjd.type;                            /* 根据type 类型 添加 className，弥补IE6 无法使用 [type=""] 改用 input.type */
		}(this));
		unicode-bidi:expression(function(sjd){
				/* input  只读时 ie6 添加 className " readonly" */
				if(sjd.readOnly == true) {
					if(sjd.className.search(" readonly")==-1){sjd.className += " readonly";}
				} 
				else {if(sjd.className.search(" readonly")!=-1){sjd.className = sjd.className.replace(" readonly","")}
				} 
				/* input被禁用时 ie6 添加 className " disabled" */
				if(sjd.disabled == true) {
					if(sjd.className.search(" disabled")==-1){sjd.className += " disabled";}
				}
				else {if(sjd.className.search(" disabled")!=-1){sjd.className = sjd.className.replace(" disabled","")}
				} 
			
		}(this));
	}
	

/* IE6 背景图缓存优化  IE6 fixed box hack */
*html html {zoom:expression(function(el){
	el.style.zoom = "1";
	try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
}(this))}


/************  
	常用 类 使用  
	----------------------------

	------ A 虚线 ------
	----------------------------
		a {outline:0;zoom:expression(function(sjd){sjd.style.zoom = "1";sjd.hideFocus=true;}(this))}


	------ :first-child{}  ie6,ie7(Q)------
	----------------------------
		div:first-child{} ;
		div.first-child{} ;
		div {zoom:expression(function(sjd){
			if(document.readyState=="complete"){
				sjd.style.zoom = "1";
				if(sjd == sjd.parentNode.getElementsByTagName(sjd.tagName)[0]){sjd.className += " first-child"}
			}
		}(this))}
		
		.className:first-child{} 
		.className_first-child{} 
		.className {zoom:expression(function(sjd){
			if(document.readyState=="complete"){
				sjd.style.zoom = "1";
				if(sjd == sjd.parentNode.getElementsByTagName(sjd.tagName)[0]){sjd.className += " className_first-child"}
			}
		}(this))}
	----------------------------

	------ :hover{} ------------
	----------------------------
		div:hover{} ;
		div.hover{} ;
		*html div {zoom:expression(function(sjd){
			sjd.style.zoom = "1";
			sjd.onmouseover =  function(){ if(!this.contains(event.fromElement)){this.className +=' hover'} };
			sjd.onmouseout  =  function(){ if(!this.contains(event.toElement)){this.className =this.className.replace(' hover','')} };
		}(this))}
		.className:hover{} 
		.className_hover{} 
		*html .className {zoom:expression(function(sjd){
			sjd.style.zoom = "1";
			sjd.onmouseover =  function(){ if(!this.contains(event.fromElement)){this.className +=' className_hover'} };
			sjd.onmouseout  =  function(){ if(!this.contains(event.toElement)){this.className =this.className.replace(' className_hover','')} };
		}(this))}

	----------------------------

	------ PNG图 ---------------
	----------------------------
	背景
	*html .className {zoom:expression( function(sjd){sjd.style.zoom=1;if (sjd.className.search(" ie6bg")==-1){sjd.className += " ie6bg"}}(this));}
	前景
	*html .className img {zoom:expression( function(sjd){sjd.style.zoom=1;if (sjd.className.search(" ie6img")==-1){sjd.className += " ie6img"}}(this));}
	
********************/
