var ie6 = !-[1,] && !window.XMLHttpRequest;
var userAgent = navigator.userAgent.toLowerCase();
var browser = {
ie8: /msie 8/.test(userAgent),
ie7: /msie 7/.test(userAgent)
};
//Slide func
$.fn.slide=function(){
var defaults,opts,data_opts,$this,$b_,t,n=0,count,$nav,$p,$n,DelayObj,Delay=false;
defaults={
fade:true,
auto:true,
time:4000,
action:'mouseover',
fn:null
};
$this=$(this);
data_opts=$this.data('slide')||{};
opts=$.extend({},defaults,data_opts);
$b_=$this.children('.ban_c');
count=$b_.length;
if($this.find('.ban_nav').length){$nav=$this.find('.ban_nav')}else{
$nav=$('
');
for(i=0;i'+(i+1)+'')};
$this.append($nav)
};
$this.append('');
$nav.children('a').eq(0).addClass('on');
$nav.children('a').eq(1).addClass('ban_next');
$nav.children('a').eq(count-1).addClass('ban_prev');
$b_.hide().eq(0).show();
if(ie6){$b_.height($b_.attr('height') || $this.height())};
$nav.children('a').each(function(index) {
$(this).on(opts.action,function(event) {
event.preventDefault();
event.stopPropagation();
if (index >= count){return false}else{
$nav.children('a').eq(index-1).addClass('ban_prev').siblings().removeClass('ban_prev');
$nav.children('a').eq(index==count-1 ? 0 : index+1).addClass('ban_next').siblings().removeClass('ban_next')
};
if(opts.fade){$b_.stop(1,1).fadeOut(200).eq(index).stop(1,1).fadeIn(500)}else{$b_.hide().eq(index).show()};
$(this).addClass('on').siblings().removeClass("on");
n=index
})
});
$p=$(this).find('.Left');
$n=$(this).find('.Right');
if(opts.auto){
t = setInterval(function(){showAuto()}, opts.time);
$this.mouseenter(function(){
clearInterval(t);
}).mouseleave(function(){
t=setInterval(function(){showAuto()},opts.time);
})
};
$p.click(function(){showPre()});
$n.click(function(){showAuto()});
function showAuto(){n=n>=(count - 1) ? 0 : ++n;$nav.find('a').eq(n).trigger(opts.action);};
function showPre(){n=n<=0 ? (count - 1) : --n;$nav.find('a').eq(n).trigger(opts.action)};
if(opts.fn){eval(opts.fn+"(opts,$b_,$nav)")}
};
$('.slide').each(function() {$(this).slide()});
//banner专辑封面
function banner_ext(opts,$b_,$nav){
var album=$b_.filter(function(){return $(this).hasClass('album')}),
newslink=$('.banner').find('.link');
newslink.eq(0).show();
if(browser.ie8) opts.fade=false;
$b_.each(function(i){
$(this).data('index',i)
});
album.each(function(i){
$('.frontCover').append(''+$(this).find('a').eq(0).html()+'
'+$(this).find('img').eq(0).attr('alt')+'
')
});
$nav.children('a').each(function(index) {
$(this).click(function(){
$('.frontCover').children('li').filter(function() {
return $(this).attr('index')==index
}).addClass('open').siblings().removeClass('open');
newslink.eq($('.frontCover').find('.open').index()).show().siblings('.link').hide();
})
});
$('.frontCover').children('li').click(function(){
$nav.children('a').eq($(this).attr('index')).trigger('click')
});
$('.frontCover').children('li').eq(0).addClass('open').end().eq(-1).css('margin',0)
};
$(document).ready(function () {
$(".drama-poster li").live("hover", function () {
$(".current").removeClass("current");
$(this).addClass("current")
});
});
$(function () {
var a = $(".drama-poster ol>li");
a.mouseover(function () {
a.removeClass("current");
$(this).addClass("current")
});
$(".drama-slide li.next a").click(function () {
var b = $(".drama-poster ol>li:first"), c = $(".drama-poster ol .current").index();
$(".drama-poster ol>li:last").after(b);
$(".drama-poster ol li").removeClass("current");
$(".drama-poster ol").find("li").eq(c).addClass("current")
});
$(".drama-slide li.prev a").click(function () {
var c = $(".drama-poster ol>li:last"), b = $(".drama-poster ol .current").index();
$(".drama-poster ol>li:first").before(c);
$(".drama-poster ol li").removeClass("current");
$(".drama-poster ol").find("li").eq(b).addClass("current")
})
});
/*2*/
var ie6 = !-[1,] && !window.XMLHttpRequest;
var userAgent = navigator.userAgent.toLowerCase();
var browser = {
ie8: /msie 8/.test(userAgent),
ie7: /msie 7/.test(userAgent)
};
//Slide func
$.fn.slide=function(){
var defaults,opts,data_opts,$this,$b_,t,n=0,count,$nav,$p,$n,DelayObj,Delay=false;
defaults={
fade:true,
auto:true,
time:4000,
action:'mouseover',
fn:null
};
$this=$(this);
data_opts=$this.data('slide')||{};
opts=$.extend({},defaults,data_opts);
$b_=$this.children('.ban_c');
count=$b_.length;
if($this.find('.ban_nav').length){$nav=$this.find('.ban_nav')}else{
$nav=$('');
for(i=0;i'+(i+1)+'')};
$this.append($nav)
};
$this.append('');
$nav.children('a').eq(0).addClass('on');
$nav.children('a').eq(1).addClass('ban_next');
$nav.children('a').eq(count-1).addClass('ban_prev');
$b_.hide().eq(0).show();
if(ie6){$b_.height($b_.attr('height') || $this.height())};
$nav.children('a').each(function(index) {
$(this).on(opts.action,function(event) {
event.preventDefault();
event.stopPropagation();
if (index >= count){return false}else{
$nav.children('a').eq(index-1).addClass('ban_prev').siblings().removeClass('ban_prev');
$nav.children('a').eq(index==count-1 ? 0 : index+1).addClass('ban_next').siblings().removeClass('ban_next')
};
if(opts.fade){$b_.stop(1,1).fadeOut(200).eq(index).stop(1,1).fadeIn(500)}else{$b_.hide().eq(index).show()};
$(this).addClass('on').siblings().removeClass("on");
n=index
})
});
$p=$(this).find('.Left');
$n=$(this).find('.Right');
if(opts.auto){
t = setInterval(function(){showAuto()}, opts.time);
$this.mouseenter(function(){
clearInterval(t);
}).mouseleave(function(){
t=setInterval(function(){showAuto()},opts.time);
})
};
$p.click(function(){showPre()});
$n.click(function(){showAuto()});
function showAuto(){n=n>=(count - 1) ? 0 : ++n;$nav.find('a').eq(n).trigger(opts.action);};
function showPre(){n=n<=0 ? (count - 1) : --n;$nav.find('a').eq(n).trigger(opts.action)};
if(opts.fn){eval(opts.fn+"(opts,$b_,$nav)")}
};
$('.slide').each(function() {$(this).slide()});
//banner专辑封面
function banner_ext(opts,$b_,$nav){
var album=$b_.filter(function(){return $(this).hasClass('album')}),
newslink=$('.banner').find('.link');
newslink.eq(0).show();
if(browser.ie8) opts.fade=false;
$b_.each(function(i){
$(this).data('index',i)
});
album.each(function(i){
$('.frontCover').append(''+$(this).find('a').eq(0).html()+'
'+$(this).find('img2').eq(0).attr('alt')+'
')
});
$nav.children('a').each(function(index) {
$(this).click(function(){
$('.frontCover').children('li').filter(function() {
return $(this).attr('index')==index
}).addClass('open').siblings().removeClass('open');
newslink.eq($('.frontCover').find('.open').index()).show().siblings('.link').hide();
})
});
$('.frontCover').children('li').click(function(){
$nav.children('a').eq($(this).attr('index')).trigger('click')
});
$('.frontCover').children('li').eq(0).addClass('open').end().eq(-1).css('margin',0)
};
$(document).ready(function () {
$(".drama-poster2 li").live("hover", function () {
$(".current2").removeClass("current2");
$(this).addClass("current2")
});
});
$(function () {
var a = $(".drama-poster2 ol>li");
a.mouseover(function () {
a.removeClass("current2");
$(this).addClass("current2")
});
$(".drama-slide2 li.next2 a").click(function () {
var b = $(".drama-poster2 ol>li:first"), c = $(".drama-poster2 ol .current2").index();
$(".drama-poster2 ol>li:last").after(b);
$(".drama-poster2 ol li").removeClass("current2");
$(".drama-poster2 ol").find("li").eq(c).addClass("current2")
});
$(".drama-slide2 li.prev2 a").click(function () {
var c = $(".drama-poster2 ol>li:last"), b = $(".drama-poster2 ol .current2").index();
$(".drama-poster2 ol>li:first").before(c);
$(".drama-poster2 ol li").removeClass("current2");
$(".drama-poster2 ol").find("li").eq(b).addClass("current2")
})
});
/*3*/
var ie6 = !-[1,] && !window.XMLHttpRequest;
var userAgent = navigator.userAgent.toLowerCase();
var browser = {
ie8: /msie 8/.test(userAgent),
ie7: /msie 7/.test(userAgent)
};
//Slide func
$.fn.slide=function(){
var defaults,opts,data_opts,$this,$b_,t,n=0,count,$nav,$p,$n,DelayObj,Delay=false;
defaults={
fade:true,
auto:true,
time:4000,
action:'mouseover',
fn:null
};
$this=$(this);
data_opts=$this.data('slide')||{};
opts=$.extend({},defaults,data_opts);
$b_=$this.children('.ban_c');
count=$b_.length;
if($this.find('.ban_nav').length){$nav=$this.find('.ban_nav')}else{
$nav=$('');
for(i=0;i'+(i+1)+'')};
$this.append($nav)
};
$this.append('');
$nav.children('a').eq(0).addClass('on');
$nav.children('a').eq(1).addClass('ban_next');
$nav.children('a').eq(count-1).addClass('ban_prev');
$b_.hide().eq(0).show();
if(ie6){$b_.height($b_.attr('height') || $this.height())};
$nav.children('a').each(function(index) {
$(this).on(opts.action,function(event) {
event.preventDefault();
event.stopPropagation();
if (index >= count){return false}else{
$nav.children('a').eq(index-1).addClass('ban_prev').siblings().removeClass('ban_prev');
$nav.children('a').eq(index==count-1 ? 0 : index+1).addClass('ban_next').siblings().removeClass('ban_next')
};
if(opts.fade){$b_.stop(1,1).fadeOut(200).eq(index).stop(1,1).fadeIn(500)}else{$b_.hide().eq(index).show()};
$(this).addClass('on').siblings().removeClass("on");
n=index
})
});
$p=$(this).find('.Left');
$n=$(this).find('.Right');
if(opts.auto){
t = setInterval(function(){showAuto()}, opts.time);
$this.mouseenter(function(){
clearInterval(t);
}).mouseleave(function(){
t=setInterval(function(){showAuto()},opts.time);
})
};
$p.click(function(){showPre()});
$n.click(function(){showAuto()});
function showAuto(){n=n>=(count - 1) ? 0 : ++n;$nav.find('a').eq(n).trigger(opts.action);};
function showPre(){n=n<=0 ? (count - 1) : --n;$nav.find('a').eq(n).trigger(opts.action)};
if(opts.fn){eval(opts.fn+"(opts,$b_,$nav)")}
};
$('.slide').each(function() {$(this).slide()});
//banner专辑封面
function banner_ext(opts,$b_,$nav){
var album=$b_.filter(function(){return $(this).hasClass('album')}),
newslink=$('.banner').find('.link');
newslink.eq(0).show();
if(browser.ie8) opts.fade=false;
$b_.each(function(i){
$(this).data('index',i)
});
album.each(function(i){
$('.frontCover').append(''+$(this).find('a').eq(0).html()+'
'+$(this).find('img3').eq(0).attr('alt')+'
')
});
$nav.children('a').each(function(index) {
$(this).click(function(){
$('.frontCover').children('li').filter(function() {
return $(this).attr('index')==index
}).addClass('open').siblings().removeClass('open');
newslink.eq($('.frontCover').find('.open').index()).show().siblings('.link').hide();
})
});
$('.frontCover').children('li').click(function(){
$nav.children('a').eq($(this).attr('index')).trigger('click')
});
$('.frontCover').children('li').eq(0).addClass('open').end().eq(-1).css('margin',0)
};
$(document).ready(function () {
$(".drama-poster3 li").live("hover", function () {
$(".current3").removeClass("current3");
$(this).addClass("current3")
});
});
$(function () {
var a = $(".drama-poster3 ol>li");
a.mouseover(function () {
a.removeClass("current3");
$(this).addClass("current3")
});
$(".drama-slide3 li.next3 a").click(function () {
var b = $(".drama-poster3 ol>li:first"), c = $(".drama-poster3 ol .current3").index();
$(".drama-poster3 ol>li:last").after(b);
$(".drama-poster3 ol li").removeClass("current3");
$(".drama-poster3 ol").find("li").eq(c).addClass("current3")
});
$(".drama-slide3 li.prev3 a").click(function () {
var c = $(".drama-poster3 ol>li:last"), b = $(".drama-poster3 ol .current3").index();
$(".drama-poster3 ol>li:first").before(c);
$(".drama-poster3 ol li").removeClass("current3");
$(".drama-poster3 ol").find("li").eq(b).addClass("current3")
})
});
/*4*/
var ie6 = !-[1,] && !window.XMLHttpRequest;
var userAgent = navigator.userAgent.toLowerCase();
var browser = {
ie8: /msie 8/.test(userAgent),
ie7: /msie 7/.test(userAgent)
};
//Slide func
$.fn.slide=function(){
var defaults,opts,data_opts,$this,$b_,t,n=0,count,$nav,$p,$n,DelayObj,Delay=false;
defaults={
fade:true,
auto:true,
time:4000,
action:'mouseover',
fn:null
};
$this=$(this);
data_opts=$this.data('slide')||{};
opts=$.extend({},defaults,data_opts);
$b_=$this.children('.ban_c');
count=$b_.length;
if($this.find('.ban_nav').length){$nav=$this.find('.ban_nav')}else{
$nav=$('');
for(i=0;i'+(i+1)+'')};
$this.append($nav)
};
$this.append('');
$nav.children('a').eq(0).addClass('on');
$nav.children('a').eq(1).addClass('ban_next');
$nav.children('a').eq(count-1).addClass('ban_prev');
$b_.hide().eq(0).show();
if(ie6){$b_.height($b_.attr('height') || $this.height())};
$nav.children('a').each(function(index) {
$(this).on(opts.action,function(event) {
event.preventDefault();
event.stopPropagation();
if (index >= count){return false}else{
$nav.children('a').eq(index-1).addClass('ban_prev').siblings().removeClass('ban_prev');
$nav.children('a').eq(index==count-1 ? 0 : index+1).addClass('ban_next').siblings().removeClass('ban_next')
};
if(opts.fade){$b_.stop(1,1).fadeOut(200).eq(index).stop(1,1).fadeIn(500)}else{$b_.hide().eq(index).show()};
$(this).addClass('on').siblings().removeClass("on");
n=index
})
});
$p=$(this).find('.Left');
$n=$(this).find('.Right');
if(opts.auto){
t = setInterval(function(){showAuto()}, opts.time);
$this.mouseenter(function(){
clearInterval(t);
}).mouseleave(function(){
t=setInterval(function(){showAuto()},opts.time);
})
};
$p.click(function(){showPre()});
$n.click(function(){showAuto()});
function showAuto(){n=n>=(count - 1) ? 0 : ++n;$nav.find('a').eq(n).trigger(opts.action);};
function showPre(){n=n<=0 ? (count - 1) : --n;$nav.find('a').eq(n).trigger(opts.action)};
if(opts.fn){eval(opts.fn+"(opts,$b_,$nav)")}
};
$('.slide').each(function() {$(this).slide()});
//banner专辑封面
function banner_ext(opts,$b_,$nav){
var album=$b_.filter(function(){return $(this).hasClass('album')}),
newslink=$('.banner').find('.link');
newslink.eq(0).show();
if(browser.ie8) opts.fade=false;
$b_.each(function(i){
$(this).data('index',i)
});
album.each(function(i){
$('.frontCover').append(''+$(this).find('a').eq(0).html()+'
'+$(this).find('img4').eq(0).attr('alt')+'
')
});
$nav.children('a').each(function(index) {
$(this).click(function(){
$('.frontCover').children('li').filter(function() {
return $(this).attr('index')==index
}).addClass('open').siblings().removeClass('open');
newslink.eq($('.frontCover').find('.open').index()).show().siblings('.link').hide();
})
});
$('.frontCover').children('li').click(function(){
$nav.children('a').eq($(this).attr('index')).trigger('click')
});
$('.frontCover').children('li').eq(0).addClass('open').end().eq(-1).css('margin',0)
};
$(document).ready(function () {
$(".drama-poster4 li").live("hover", function () {
$(".current4").removeClass("current4");
$(this).addClass("current4")
});
});
$(function () {
var a = $(".drama-poster4 ol>li");
a.mouseover(function () {
a.removeClass("current4");
$(this).addClass("current4")
});
$(".drama-slide4 li.next4 a").click(function () {
var b = $(".drama-poster4 ol>li:first"), c = $(".drama-poster4 ol .current4").index();
$(".drama-poster4 ol>li:last").after(b);
$(".drama-poster4 ol li").removeClass("current4");
$(".drama-poster4 ol").find("li").eq(c).addClass("current4")
});
$(".drama-slide4 li.prev4 a").click(function () {
var c = $(".drama-poster4 ol>li:last"), b = $(".drama-poster4 ol .current4").index();
$(".drama-poster4 ol>li:first").before(c);
$(".drama-poster4 ol li").removeClass("current4");
$(".drama-poster4 ol").find("li").eq(b).addClass("current4")
})
});
/*5*/
var ie6 = !-[1,] && !window.XMLHttpRequest;
var userAgent = navigator.userAgent.toLowerCase();
var browser = {
ie8: /msie 8/.test(userAgent),
ie7: /msie 7/.test(userAgent)
};
//Slide func
$.fn.slide=function(){
var defaults,opts,data_opts,$this,$b_,t,n=0,count,$nav,$p,$n,DelayObj,Delay=false;
defaults={
fade:true,
auto:true,
time:4000,
action:'mouseover',
fn:null
};
$this=$(this);
data_opts=$this.data('slide')||{};
opts=$.extend({},defaults,data_opts);
$b_=$this.children('.ban_c');
count=$b_.length;
if($this.find('.ban_nav').length){$nav=$this.find('.ban_nav')}else{
$nav=$('');
for(i=0;i'+(i+1)+'')};
$this.append($nav)
};
$this.append('');
$nav.children('a').eq(0).addClass('on');
$nav.children('a').eq(1).addClass('ban_next');
$nav.children('a').eq(count-1).addClass('ban_prev');
$b_.hide().eq(0).show();
if(ie6){$b_.height($b_.attr('height') || $this.height())};
$nav.children('a').each(function(index) {
$(this).on(opts.action,function(event) {
event.preventDefault();
event.stopPropagation();
if (index >= count){return false}else{
$nav.children('a').eq(index-1).addClass('ban_prev').siblings().removeClass('ban_prev');
$nav.children('a').eq(index==count-1 ? 0 : index+1).addClass('ban_next').siblings().removeClass('ban_next')
};
if(opts.fade){$b_.stop(1,1).fadeOut(200).eq(index).stop(1,1).fadeIn(500)}else{$b_.hide().eq(index).show()};
$(this).addClass('on').siblings().removeClass("on");
n=index
})
});
$p=$(this).find('.Left');
$n=$(this).find('.Right');
if(opts.auto){
t = setInterval(function(){showAuto()}, opts.time);
$this.mouseenter(function(){
clearInterval(t);
}).mouseleave(function(){
t=setInterval(function(){showAuto()},opts.time);
})
};
$p.click(function(){showPre()});
$n.click(function(){showAuto()});
function showAuto(){n=n>=(count - 1) ? 0 : ++n;$nav.find('a').eq(n).trigger(opts.action);};
function showPre(){n=n<=0 ? (count - 1) : --n;$nav.find('a').eq(n).trigger(opts.action)};
if(opts.fn){eval(opts.fn+"(opts,$b_,$nav)")}
};
$('.slide').each(function() {$(this).slide()});
//banner专辑封面
function banner_ext(opts,$b_,$nav){
var album=$b_.filter(function(){return $(this).hasClass('album')}),
newslink=$('.banner').find('.link');
newslink.eq(0).show();
if(browser.ie8) opts.fade=false;
$b_.each(function(i){
$(this).data('index',i)
});
album.each(function(i){
$('.frontCover').append(''+$(this).find('a').eq(0).html()+'
'+$(this).find('img5').eq(0).attr('alt')+'
')
});
$nav.children('a').each(function(index) {
$(this).click(function(){
$('.frontCover').children('li').filter(function() {
return $(this).attr('index')==index
}).addClass('open').siblings().removeClass('open');
newslink.eq($('.frontCover').find('.open').index()).show().siblings('.link').hide();
})
});
$('.frontCover').children('li').click(function(){
$nav.children('a').eq($(this).attr('index')).trigger('click')
});
$('.frontCover').children('li').eq(0).addClass('open').end().eq(-1).css('margin',0)
};
$(document).ready(function () {
$(".drama-poster5 li").live("hover", function () {
$(".current5").removeClass("current5");
$(this).addClass("current5")
});
});
$(function () {
var a = $(".drama-poster5 ol>li");
a.mouseover(function () {
a.removeClass("current5");
$(this).addClass("current5")
});
$(".drama-slide5 li.next5 a").click(function () {
var b = $(".drama-poster5 ol>li:first"), c = $(".drama-poster5 ol .current5").index();
$(".drama-poster5 ol>li:last").after(b);
$(".drama-poster5 ol li").removeClass("current5");
$(".drama-poster5 ol").find("li").eq(c).addClass("current5")
});
$(".drama-slide5 li.prev5 a").click(function () {
var c = $(".drama-poster5 ol>li:last"), b = $(".drama-poster5 ol .current5").index();
$(".drama-poster5 ol>li:first").before(c);
$(".drama-poster5 ol li").removeClass("current5");
$(".drama-poster5 ol").find("li").eq(b).addClass("current5")
})
});
/*6*/
var ie6 = !-[1,] && !window.XMLHttpRequest;
var userAgent = navigator.userAgent.toLowerCase();
var browser = {
ie8: /msie 8/.test(userAgent),
ie7: /msie 7/.test(userAgent)
};
//Slide func
$.fn.slide=function(){
var defaults,opts,data_opts,$this,$b_,t,n=0,count,$nav,$p,$n,DelayObj,Delay=false;
defaults={
fade:true,
auto:true,
time:4000,
action:'mouseover',
fn:null
};
$this=$(this);
data_opts=$this.data('slide')||{};
opts=$.extend({},defaults,data_opts);
$b_=$this.children('.ban_c');
count=$b_.length;
if($this.find('.ban_nav').length){$nav=$this.find('.ban_nav')}else{
$nav=$('');
for(i=0;i'+(i+1)+'')};
$this.append($nav)
};
$this.append('');
$nav.children('a').eq(0).addClass('on');
$nav.children('a').eq(1).addClass('ban_next');
$nav.children('a').eq(count-1).addClass('ban_prev');
$b_.hide().eq(0).show();
if(ie6){$b_.height($b_.attr('height') || $this.height())};
$nav.children('a').each(function(index) {
$(this).on(opts.action,function(event) {
event.preventDefault();
event.stopPropagation();
if (index >= count){return false}else{
$nav.children('a').eq(index-1).addClass('ban_prev').siblings().removeClass('ban_prev');
$nav.children('a').eq(index==count-1 ? 0 : index+1).addClass('ban_next').siblings().removeClass('ban_next')
};
if(opts.fade){$b_.stop(1,1).fadeOut(200).eq(index).stop(1,1).fadeIn(500)}else{$b_.hide().eq(index).show()};
$(this).addClass('on').siblings().removeClass("on");
n=index
})
});
$p=$(this).find('.Left');
$n=$(this).find('.Right');
if(opts.auto){
t = setInterval(function(){showAuto()}, opts.time);
$this.mouseenter(function(){
clearInterval(t);
}).mouseleave(function(){
t=setInterval(function(){showAuto()},opts.time);
})
};
$p.click(function(){showPre()});
$n.click(function(){showAuto()});
function showAuto(){n=n>=(count - 1) ? 0 : ++n;$nav.find('a').eq(n).trigger(opts.action);};
function showPre(){n=n<=0 ? (count - 1) : --n;$nav.find('a').eq(n).trigger(opts.action)};
if(opts.fn){eval(opts.fn+"(opts,$b_,$nav)")}
};
$('.slide').each(function() {$(this).slide()});
//banner专辑封面
function banner_ext(opts,$b_,$nav){
var album=$b_.filter(function(){return $(this).hasClass('album')}),
newslink=$('.banner').find('.link');
newslink.eq(0).show();
if(browser.ie8) opts.fade=false;
$b_.each(function(i){
$(this).data('index',i)
});
album.each(function(i){
$('.frontCover').append(''+$(this).find('a').eq(0).html()+'
'+$(this).find('img6').eq(0).attr('alt')+'
')
});
$nav.children('a').each(function(index) {
$(this).click(function(){
$('.frontCover').children('li').filter(function() {
return $(this).attr('index')==index
}).addClass('open').siblings().removeClass('open');
newslink.eq($('.frontCover').find('.open').index()).show().siblings('.link').hide();
})
});
$('.frontCover').children('li').click(function(){
$nav.children('a').eq($(this).attr('index')).trigger('click')
});
$('.frontCover').children('li').eq(0).addClass('open').end().eq(-1).css('margin',0)
};
$(document).ready(function () {
$(".drama-poster6 li").live("hover", function () {
$(".current6").removeClass("current6");
$(this).addClass("current6")
});
});
$(function () {
var a = $(".drama-poster6 ol>li");
a.mouseover(function () {
a.removeClass("current6");
$(this).addClass("current6")
});
$(".drama-slide6 li.next6 a").click(function () {
var b = $(".drama-poster6 ol>li:first"), c = $(".drama-poster6 ol .current6").index();
$(".drama-poster6 ol>li:last").after(b);
$(".drama-poster6 ol li").removeClass("current6");
$(".drama-poster6 ol").find("li").eq(c).addClass("current6")
});
$(".drama-slide6 li.prev6 a").click(function () {
var c = $(".drama-poster6 ol>li:last"), b = $(".drama-poster6 ol .current6").index();
$(".drama-poster6 ol>li:first").before(c);
$(".drama-poster6 ol li").removeClass("current6");
$(".drama-poster6 ol").find("li").eq(b).addClass("current6")
})
});
/*3*/
var ie6 = !-[1,] && !window.XMLHttpRequest;
var userAgent = navigator.userAgent.toLowerCase();
var browser = {
ie8: /msie 8/.test(userAgent),
ie7: /msie 7/.test(userAgent)
};
//Slide func
$.fn.slide=function(){
var defaults,opts,data_opts,$this,$b_,t,n=0,count,$nav,$p,$n,DelayObj,Delay=false;
defaults={
fade:true,
auto:true,
time:4000,
action:'mouseover',
fn:null
};
$this=$(this);
data_opts=$this.data('slide')||{};
opts=$.extend({},defaults,data_opts);
$b_=$this.children('.ban_c');
count=$b_.length;
if($this.find('.ban_nav').length){$nav=$this.find('.ban_nav')}else{
$nav=$('');
for(i=0;i'+(i+1)+'')};
$this.append($nav)
};
$this.append('');
$nav.children('a').eq(0).addClass('on');
$nav.children('a').eq(1).addClass('ban_next');
$nav.children('a').eq(count-1).addClass('ban_prev');
$b_.hide().eq(0).show();
if(ie6){$b_.height($b_.attr('height') || $this.height())};
$nav.children('a').each(function(index) {
$(this).on(opts.action,function(event) {
event.preventDefault();
event.stopPropagation();
if (index >= count){return false}else{
$nav.children('a').eq(index-1).addClass('ban_prev').siblings().removeClass('ban_prev');
$nav.children('a').eq(index==count-1 ? 0 : index+1).addClass('ban_next').siblings().removeClass('ban_next')
};
if(opts.fade){$b_.stop(1,1).fadeOut(200).eq(index).stop(1,1).fadeIn(500)}else{$b_.hide().eq(index).show()};
$(this).addClass('on').siblings().removeClass("on");
n=index
})
});
$p=$(this).find('.Left');
$n=$(this).find('.Right');
if(opts.auto){
t = setInterval(function(){showAuto()}, opts.time);
$this.mouseenter(function(){
clearInterval(t);
}).mouseleave(function(){
t=setInterval(function(){showAuto()},opts.time);
})
};
$p.click(function(){showPre()});
$n.click(function(){showAuto()});
function showAuto(){n=n>=(count - 1) ? 0 : ++n;$nav.find('a').eq(n).trigger(opts.action);};
function showPre(){n=n<=0 ? (count - 1) : --n;$nav.find('a').eq(n).trigger(opts.action)};
if(opts.fn){eval(opts.fn+"(opts,$b_,$nav)")}
};
$('.slide').each(function() {$(this).slide()});
//banner专辑封面
function banner_ext(opts,$b_,$nav){
var album=$b_.filter(function(){return $(this).hasClass('album')}),
newslink=$('.banner').find('.link');
newslink.eq(0).show();
if(browser.ie8) opts.fade=false;
$b_.each(function(i){
$(this).data('index',i)
});
album.each(function(i){
$('.frontCover').append(''+$(this).find('a').eq(0).html()+'
'+$(this).find('img7').eq(0).attr('alt')+'
')
});
$nav.children('a').each(function(index) {
$(this).click(function(){
$('.frontCover').children('li').filter(function() {
return $(this).attr('index')==index
}).addClass('open').siblings().removeClass('open');
newslink.eq($('.frontCover').find('.open').index()).show().siblings('.link').hide();
})
});
$('.frontCover').children('li').click(function(){
$nav.children('a').eq($(this).attr('index')).trigger('click')
});
$('.frontCover').children('li').eq(0).addClass('open').end().eq(-1).css('margin',0)
};
$(document).ready(function () {
$(".drama-poster7 li").live("hover", function () {
$(".current7").removeClass("current7");
$(this).addClass("current7")
});
});
$(function () {
var a = $(".drama-poster7 ol>li");
a.mouseover(function () {
a.removeClass("current7");
$(this).addClass("current7")
});
$(".drama-slide7 li.next7 a").click(function () {
var b = $(".drama-poster7 ol>li:first"), c = $(".drama-poster7 ol .current7").index();
$(".drama-poster7 ol>li:last").after(b);
$(".drama-poster7 ol li").removeClass("current7");
$(".drama-poster7 ol").find("li").eq(c).addClass("current7")
});
$(".drama-slide7 li.prev7 a").click(function () {
var c = $(".drama-poster7 ol>li:last"), b = $(".drama-poster7 ol .current7").index();
$(".drama-poster7 ol>li:first").before(c);
$(".drama-poster7 ol li").removeClass("current7");
$(".drama-poster7 ol").find("li").eq(b).addClass("current7")
})
});
/*3*/
var ie6 = !-[1,] && !window.XMLHttpRequest;
var userAgent = navigator.userAgent.toLowerCase();
var browser = {
ie8: /msie 8/.test(userAgent),
ie7: /msie 7/.test(userAgent)
};
//Slide func
$.fn.slide=function(){
var defaults,opts,data_opts,$this,$b_,t,n=0,count,$nav,$p,$n,DelayObj,Delay=false;
defaults={
fade:true,
auto:true,
time:4000,
action:'mouseover',
fn:null
};
$this=$(this);
data_opts=$this.data('slide')||{};
opts=$.extend({},defaults,data_opts);
$b_=$this.children('.ban_c');
count=$b_.length;
if($this.find('.ban_nav').length){$nav=$this.find('.ban_nav')}else{
$nav=$('');
for(i=0;i'+(i+1)+'')};
$this.append($nav)
};
$this.append('');
$nav.children('a').eq(0).addClass('on');
$nav.children('a').eq(1).addClass('ban_next');
$nav.children('a').eq(count-1).addClass('ban_prev');
$b_.hide().eq(0).show();
if(ie6){$b_.height($b_.attr('height') || $this.height())};
$nav.children('a').each(function(index) {
$(this).on(opts.action,function(event) {
event.preventDefault();
event.stopPropagation();
if (index >= count){return false}else{
$nav.children('a').eq(index-1).addClass('ban_prev').siblings().removeClass('ban_prev');
$nav.children('a').eq(index==count-1 ? 0 : index+1).addClass('ban_next').siblings().removeClass('ban_next')
};
if(opts.fade){$b_.stop(1,1).fadeOut(200).eq(index).stop(1,1).fadeIn(500)}else{$b_.hide().eq(index).show()};
$(this).addClass('on').siblings().removeClass("on");
n=index
})
});
$p=$(this).find('.Left');
$n=$(this).find('.Right');
if(opts.auto){
t = setInterval(function(){showAuto()}, opts.time);
$this.mouseenter(function(){
clearInterval(t);
}).mouseleave(function(){
t=setInterval(function(){showAuto()},opts.time);
})
};
$p.click(function(){showPre()});
$n.click(function(){showAuto()});
function showAuto(){n=n>=(count - 1) ? 0 : ++n;$nav.find('a').eq(n).trigger(opts.action);};
function showPre(){n=n<=0 ? (count - 1) : --n;$nav.find('a').eq(n).trigger(opts.action)};
if(opts.fn){eval(opts.fn+"(opts,$b_,$nav)")}
};
$('.slide').each(function() {$(this).slide()});
//banner专辑封面
function banner_ext(opts,$b_,$nav){
var album=$b_.filter(function(){return $(this).hasClass('album')}),
newslink=$('.banner').find('.link');
newslink.eq(0).show();
if(browser.ie8) opts.fade=false;
$b_.each(function(i){
$(this).data('index',i)
});
album.each(function(i){
$('.frontCover').append(''+$(this).find('a').eq(0).html()+'
'+$(this).find('img8').eq(0).attr('alt')+'
')
});
$nav.children('a').each(function(index) {
$(this).click(function(){
$('.frontCover').children('li').filter(function() {
return $(this).attr('index')==index
}).addClass('open').siblings().removeClass('open');
newslink.eq($('.frontCover').find('.open').index()).show().siblings('.link').hide();
})
});
$('.frontCover').children('li').click(function(){
$nav.children('a').eq($(this).attr('index')).trigger('click')
});
$('.frontCover').children('li').eq(0).addClass('open').end().eq(-1).css('margin',0)
};
$(document).ready(function () {
$(".drama-poster8 li").live("hover", function () {
$(".current8").removeClass("current8");
$(this).addClass("current8")
});
});
$(function () {
var a = $(".drama-poster8 ol>li");
a.mouseover(function () {
a.removeClass("current8");
$(this).addClass("current8")
});
$(".drama-slide8 li.next8 a").click(function () {
var b = $(".drama-poster8 ol>li:first"), c = $(".drama-poster8 ol .current8").index();
$(".drama-poster8 ol>li:last").after(b);
$(".drama-poster8 ol li").removeClass("current8");
$(".drama-poster8 ol").find("li").eq(c).addClass("current8")
});
$(".drama-slide8 li.prev8 a").click(function () {
var c = $(".drama-poster8 ol>li:last"), b = $(".drama-poster8 ol .current8").index();
$(".drama-poster8 ol>li:first").before(c);
$(".drama-poster8 ol li").removeClass("current8");
$(".drama-poster8 ol").find("li").eq(b).addClass("current8")
})
});