jquery(function(a) { a(".i-tabs").each(function() { var b = a(this); var d = a(".i-tabs-container", b); var c = b.attr("event") || "onclick"; var e = a(".i-tabs-item", this); e.each(function(k, i) { var l = a(this); if (k == 0) { l.addclass("i-tabs-item-active") } var g = null; var h = null; var f = l.attr("mid"); var j = l.attr("eid"); if (!!f) { h = a("a[name=" + f + "]"); if (h.size() == 1) { g = h.next(); d.append(h.hide()) } } else { if (!!j) { g = a("#" + j) } } if (g == null) { return } d.append(g.addclass("i-tabs-content")); if (k > 0) { g.hide() } l.bind(c, function() { e.removeclass("i-tabs-item-active"); l.addclass("i-tabs-item-active"); a(".i-tabs-content", b).hide(); a(g).show() }) }) }); a(".i-columns").each(function() { var c = a(this); var b = a(".i-columns-item", this); b.each(function(h, g) { var i = a(this); var d = i.attr("mid"); var f = a("a[name=" + d + "]"); if (f.size() != 1) { return } var e = f.next(); i.append(f).append(e) }) }); a(".i-news").each(function() { var k = a(this); var m = parseint(k.attr("pagesize")) || 3; var e = 1; var l = k.attr("effect") || "show"; var d = k.attr("event") || "click"; var s = k.attr("auto") == "false" ? false : true; var r = parseint(k.attr("timeout")) || 3; var f = k.attr("hs") || ".i-news-item"; var i = a(".i-news-item", k); var h = i.size(); var o = a(".i-news-page", k); var g = a(".i-news-page-pre", k); var t = a(".i-news-page-next", k); var p = math.ceil(h / m); var j = a(".i-news-item-container", k); var b = a(".i-news-page-container", k); if (j.size() == 1) { j.append(i) } if (b.size() == 1) { b.append(a(".i-news-page-pre,.i-news-page,.i-news-page-next", k)) } i.filter(":odd").addclass("i-news-item-alt"); o.filter(":odd").addclass("i-news-page-alt"); var q = function() { if (e == 1) { g.addclass("i-news-page-pre-disable") } else { g.removeclass("i-news-page-pre-disable") } if (e == p) { t.addclass("i-news-page-next-disable") } else { t.removeclass("i-news-page-next-disable") } o.removeclass("i-news-page-active"); o.eq(e - 1).addclass("i-news-page-active"); var v = (e - 1) * m; var u = v + m; i.each(function(x, w) { if (x >= v && x < u) { if (l == "show") { a(this).show() } else { a(this).fadein() } a(this).addclass("i-news-item-active") } else { a(this).hide(); a(this).removeclass("i-news-item-active") } }) }; g.bind(d, function() { if (e > 1) { e--; q() } }); t.bind(d, function() { if (e < p) { e++; q() } }); o.bind(d, function() { e = parseint(a(this).attr("page")); if (!e) { e = a.inarray(this, o.get()) + 1 } q() }); var n = function() { e++; if (e > p) { e = 1 } q() }; var c = null; if (s) { c = setinterval(n, 1000 * r) } a(".i-news-item,.i-news-page,.i-news-page-pre,.i-news-page-next", k).hover(function() { if (c) { clearinterval(c) } }, function() { if (s) { c = setinterval(n, 1000 * r) } }); q() }) }); jquery(function(a) { a(".i-topnews").each(function() { var f = a(this); var k = f.attr("auto") == "false" ? false : true; var d = 3; var b = a(".i-topnews-detail", f); var j = a(".i-topnews-title", f); var e = j.size(); var c = 0; var h = function(l) { j.eq(c).removeclass("i-topnews-title-active"); b.eq(c).fadeout(); c = l; j.eq(c).addclass("i-topnews-title-active"); b.eq(c).fadein() }; var i = function() { var l = c + 1; if (l >= e) { l = 0 } h(l) }; var g = null; if (k) { g = setinterval(i, 1000 * d) } j.eq(c).addclass("i-topnews-title-active"); j.each(function(m, l) { a(this).onclick(function() { if (c != m) { h(m) } }) }); j.hover(function() { if (g) { clearinterval(g) } }, function() { if (k) { g = setinterval(i, 1000 * d) } }) }) });