/*
 * jQuery FlexSlider v2.2.0
 * http://www.woothemes.com/flexslider/
 *
 * Copyright 2012 WooThemes
 * Free to use under the GPLv2 license.
 * http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Contributing author: Tyler Smith (@mbmufffin)
 */

/* 首頁大圖輪播*/
/* Browser Resets 
*********************************/
#gBanner .flex-container a:active,
#gBanner .flexslider a:active,
#gBanner .flex-container a:focus,
#gBanner .flexslider a:focus  {outline: none;}
#gBanner .slides,
#gBanner .flex-control-nav,
#gBanner .flex-direction-nav {margin: 0; padding: 0; list-style: none;}


/* FlexSlider Necessary Styles
*********************************/
#gBanner .flexslider {margin: 0 20px; padding: 0;}
#gBanner .flexslider .slides > li {display: none; -webkit-backface-visibility: hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping */
#gBanner .flexslider .slides img {width: 100%; display: block;}
#gBanner .flex-pauseplay span {text-transform: capitalize;}

/* Clearfix for the .slides element */
#gBanner .slides:after {content: "\0020"; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;}
html[xmlns] #gBanner .slides {display: block;}
* html #gBanner .slides {height: 1%;}

/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
 * include js that eliminates this class on page load */
.no-js .slides > li:first-child {display: block; }

/* FlexSlider Default Theme
*********************************/
#gBanner .flexslider { position: relative;  zoom: 1;}
#gBanner .flex-viewport { max-height: 2000px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -o-transition: all 1s ease; transition: all 1s ease; }
#gBanner .loading .flex-viewport { max-height: 300px; }
#gBanner .flexslider .slides { zoom: 1; }

/* Direction Nav */
#gBanner .flex-direction-nav { position: absolute; top: 150px; width: 100%; height: 45px;  text-align: center;}
#gBanner .flex-direction-nav a {opacity: 1; text-indent: -9999px; position: absolute; width: 45px; height: 44px; display: block; z-index: 0; cursor: pointer;}
#gBanner .flex-direction-nav .flex-next { background: url(../images/i_ban_btn.png) 0 -44px no-repeat; right: 0;}
#gBanner .flex-direction-nav .flex-prev { background: url(../images/i_ban_btn.png) 0 0 no-repeat; left: 0;}
#gBanner .flexslider:hover .flex-next { opacity: 1; right: 0;}
#gBanner .flexslider:hover .flex-prev { opacity: 1; left: 0;}
#gBanner .flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover {opacity: 1;}
/* Control Nav */
#gBanner .flex-control-nav { width: 100%; position: absolute; top: 270px; text-align: center; z-index: 999 }
#gBanner .flex-control-nav li { margin: 0 6px; display: inline-block; zoom: 1; *display: inline;}
#gBanner .flex-control-paging li a {width: 23px; height: 23px; display: block; text-indent: -9999px; background: url(../images/i_ban_control.png) -22px 0 no-repeat;  cursor: pointer;}
#gBanner .flex-control-paging li a:hover { background: url(../images/i_ban_control.png) 0 0 no-repeat; }
#gBanner .flex-control-paging li a.flex-active { background: url(../images/i_ban_control.png) 0 0 no-repeat;}
@media screen and (max-width: 860px) {
  #gBanner .flex-direction-nav .flex-prev { opacity: 0.8; left: 10px;}
  #gBanner .flex-direction-nav .flex-next { opacity: 0.8; right: 10px;}
}

/* 首頁小圖輪播 */
/* Browser Resets */
*********************************/
#iMain .flex-container a:active,
#iMain .flexslider a:active,
#iMain .flex-container a:focus,
#iMain .flexslider a:focus  {outline: none;}
#iMain .slides,
#iMain .flex-control-nav,
#iMain .flex-direction-nav {margin: 0; padding: 0; list-style: none;}


/* FlexSlider Necessary Styles
*********************************/
#iMain .flexslider {margin: 0 5px; padding: 0;}
#iMain .flexslider .slides > li {display: none; -webkit-backface-visibility: hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping */
#iMain .flexslider .slides img {width: 100%; display: block;}
#iMain .flex-pauseplay span {text-transform: capitalize;}

/* Clearfix for the .slides element */
#iMain .slides:after {content: "\0020"; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;}
html[xmlns] #iMain .slides {display: block;}
* html #iMain .slides {height: 1%;}

/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
 * include js that eliminates this class on page load */
#iMain .no-js .slides > li:first-child {display: block; }

/* FlexSlider Default Theme
*********************************/
#iMain .flexslider { position: relative; zoom: 1; width: 510px; margin: 0 60px;}
#iMain .flex-viewport { max-height: 2000px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -o-transition: all 1s ease; transition: all 1s ease; }
#iMain .loading .flex-viewport { max-height: 300px; }
#iMain .flexslider .slides { zoom: 1; }
#iMain li a.link { float: left; position: absolute; top:8px; left: 8px; display: block; width: 130px; height: 180px; z-index: 5px; background: url(../images/menu_pro_hover_space.gif); z-index: 99}
#iMain li a:hover.link { background: #F00; background: url(../images/menu_pro_hover.png) 0 0 no-repeat;}


/* Direction Nav */
#iMain .flex-direction-nav { position: absolute; top: 65px; width: 490px; height: 30px;  text-align: center; padding: 0 10px;}
#iMain .flex-direction-nav a {opacity: 0.8; text-indent: -9999px; position: absolute; width: 30px; height: 30px; display: block; z-index: 10; cursor: pointer; -webkit-transition: all .3s ease;}
#iMain .flex-direction-nav .flex-next { background: url(../images/i_index_buttom.png) -30px 0 no-repeat; right: -30px;}
#iMain .flex-direction-nav .flex-prev { background: url(../images/i_index_buttom.png) 0 0 no-repeat; left: -30px;}
#iMain .flexslider:hover .flex-next {opacity: 1; right: -20px;}
#iMain .flexslider:hover .flex-prev {opacity: 1; left: -20px;}
#iMain .flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover {opacity: 0.6;}
#iMain .flex-control-paging li a {width: 11px; height: 11px; display: none; background: #666; background: rgba(0,0,0,0.5); cursor: pointer; text-indent: -9999px; -webkit-border-radius: 20px; -moz-border-radius: 20px; -o-border-radius: 20px; border-radius: 20px; -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,0.3); -moz-box-shadow: inset 0 0 3px rgba(0,0,0,0.3); -o-box-shadow: inset 0 0 3px rgba(0,0,0,0.3); box-shadow: inset 0 0 3px rgba(0,0,0,0.3); }

@media screen and (max-width: 860px) {
 #iMain .flex-direction-nav .flex-prev { opacity: 1; left: 10px;}
 #iMain .flex-direction-nav .flex-next { opacity: 1; right: 10px;}
}

/* 內頁大圖輪播*/
/* Browser Resets 
*********************************/
#pBanner .flex-container a:active,
#pBanner .flexslider a:active,
#pBanner .flex-container a:focus,
#pBanner .flexslider a:focus  {outline: none;}
#pBanner .slides,
#pBanner .flex-control-nav,
#pBanner .flex-direction-nav {margin: 0; padding: 0; list-style: none;}


/* FlexSlider Necessary Styles
*********************************/
#pBanner .flexslider {margin: 0 20px; padding: 0;}
#pBanner .flexslider .slides > li {display: none; -webkit-backface-visibility: hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping */
#pBanner .flexslider .slides img {width: 100%; display: block;}
#pBanner .flex-pauseplay span {text-transform: capitalize;}

/* Clearfix for the .slides element */
#pBanner .slides:after {content: "\0020"; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;}
html[xmlns] #pBanner .slides {display: block;}
* html #pBanner .slides {height: 1%;}

/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
 * include js that eliminates this class on page load */
.no-js .slides > li:first-child {display: block; }

/* FlexSlider Default Theme
*********************************/
#pBanner .flexslider { position: relative;  zoom: 1;}
#pBanner .flex-viewport { max-height: 2000px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -o-transition: all 1s ease; transition: all 1s ease; }
#pBanner .loading .flex-viewport { max-height: 295px; }
#pBanner .flexslider .slides { zoom: 1; }
/* Direction Nav */
#pBanner .flex-direction-nav { position: absolute; top: 100px; width: 940px; height: 30px;  text-align: center; padding: 0 10px;}
#pBanner .flex-direction-nav a {opacity: 0.8; text-indent: -9999px; position: absolute; width: 30px; height: 30px; display: block; z-index: 10; cursor: pointer; -webkit-transition: all .3s ease;}
#pBanner .flex-direction-nav .flex-next { background: url(../images/i_index_buttom.png) -30px 0 no-repeat; right: 00px;}
#pBanner .flex-direction-nav .flex-prev { background: url(../images/i_index_buttom.png) 0 0 no-repeat; left: -0px;}
#pBanner .flexslider:hover .flex-next {opacity: 1; right: 10px;}
#pBanner .flexslider:hover .flex-prev {opacity: 1; left: 10px;}
#pBanner .flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover {opacity: 0.6;}
#pBanner .flex-control-paging li a {width: 11px; height: 11px; display: none; background: #666; background: rgba(0,0,0,0.5); cursor: pointer; text-indent: -9999px; -webkit-border-radius: 20px; -moz-border-radius: 20px; -o-border-radius: 20px; border-radius: 20px; -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,0.3); -moz-box-shadow: inset 0 0 3px rgba(0,0,0,0.3); -o-box-shadow: inset 0 0 3px rgba(0,0,0,0.3); box-shadow: inset 0 0 3px rgba(0,0,0,0.3); }
/* Control Nav */
#pBanner .flex-control-nav { width: 100%; position: absolute; top: 180px; text-align: center; z-index: 999 }
#pBanner .flex-control-nav li { margin: 0 6px; display: inline-block; zoom: 1; *display: inline;}
#pBanner .flex-control-paging li a {width: 23px; height: 23px; display: block; text-indent: -9999px; background: url(../images/i_ban_control.png) -22px 0 no-repeat;  cursor: pointer;}
#pBanner .flex-control-paging li a:hover { background: url(../images/i_ban_control.png) 0 0 no-repeat; }
#pBanner .flex-control-paging li a.flex-active { background: url(../images/i_ban_control.png) 0 0 no-repeat;}
@media screen and (max-width: 860px) {
  #pBanner .flex-direction-nav .flex-prev { opacity: 0.8; left: 10px;}
  #pBanner .flex-direction-nav .flex-next { opacity: 0.8; right: 10px;}
}