!function($) {
$.fn.sudyslide = function(opts) {
var defaults = {
p:null,
json:[],
title:{
active:!0,
isAutoWidth:!1,
href:!1
},
text:{
active:!1,
isAutoHeight:!1,
href:!1
},
mask:{
active:!0,
color:"#000",
opacity:.8
},
thumb:!0,
href:!0,
zWidth:1e3,
zHeight:400,
interval:5e3,
animateTime:500,
isNavHover:!0,
auto:!0,
pagination:!0,
start:1
}, o = $.extend(!0, {}, defaults, opts), zW = o.zWidth, zH = o.zHeight, r = zW / zH;
return null !== o.p && "function" == eval("typeof getImgJson") && (o.json = getImgJson(o.p).concat(o.json)),
this.each(function() {
function n(a) {
g.add(h).hide();
var b = $.trim(o.json[a].title || ""), c = $.trim(o.json[a].text || ""), $url = $.trim(o.json[a].url || "");
if(/^无标题/.test(b))
b = "";
if(/^#|javascript:void\(0\)/.test($url))
$url = "";
if ("" !== $url) {
var d = $('');
o.href && e.eq(a).find("a").length < 1 && e.eq(a).wrapInner(d), o.title.href && "" !== b && (b = d.clone().html(b)),
o.text.href && "" !== c && (c = d.clone().html(c));
}
"" !== b && (g.show(), l.html(b)), "" !== c && (h.show(), m.html(c)), o.title.isAutoWidth && l.parent().css("width", l.outerWidth()),
o.text.isAutoHeight && m.parent().parent().css("height", m.outerHeight()), thumb.removeClass("thumb-active").eq(a).addClass("thumb-active");
}
var a = $(this), b = a.children(), c = [];
if ($.each(b, function(a, b) {
var d = {};
d.title = $(b).attr("data-title") || "", d.url = $(b).attr("data-url") || "", d.text = $(b).attr("data-text") || "",
d.src = $(b).attr("data-src") || "", c.push(d);
}), o.json = c.concat(o.json), o.json.length < 1) return a.html('Sudyslide Error: Not Found Data, Need to Bind!');
a.html(function(a, b) {
return b = "", $.each(o.json, function() {
b += '';
}), b;
}), a.children().wrap('