function Client() {
this.typeInit = function(a) {
var c, d, b = a.section,
e = OW.typeid.split("-");
for (c = 0; c < e.length; c++) d = OW.int(e[c]),
b.find("[name='ctype'][type_id='" + d + "']").addClass("current")
},
this.uploadInput = "",
this.uploadDialog = "",
this.upload = function(a) {
OW.client.uploadInput = $("input[name='" + a.inputName + "']"),
OW.client.uploadDialog = OWDialog({
follow: b
}).posting("正在上传,请稍后 ... ").position();
var b = document.getElementById(a.iframeId),
c = $(b.contentWindow.document.getElementById("upload_form"));
c.submit()
},
this.uploadCallback = function(a, b) {
a ? (OW.client.uploadDialog.success("上传完毕").position().timeout(2), OW.client.uploadInput.val(b)) : OW.client.uploadDialog.error("上传失败", b).position().timeout(3)
},
this.uploadNotOpen = function(a) {
$("button[name='" + a + "']").hide()
},
this.serviceOnline = function(a) {
var b = "1" == a.open ? !0 : !1,
c = a.data || "",
d = "service-online",
e = function() {
var b, e, f, g, i, j, k, l, m, n, o, q, r, s, t, h = "";
try {
b = $.parseJSON(c)
} catch(p) {
b = $.parseJSON("[]")
}
for (e = 0; e < b.length; e++) i = unescape(b[e].name || ""),
j = unescape(b[e].tel || ""),
k = unescape(b[e].qq || ""),
l = unescape(b[e].crmqq || ""),
m = unescape(b[e].wangwang || ""),
n = unescape(b[e].skype || ""),
o = unescape(b[e].text || ""),
"" != j && (j = '
' + j + ""),
"" != k && (k = ''),
"" != l && (l = ''),
"" != m && (m = ''),
"" != n && (n = ''),
"" != o && (o = '' + o + ""),
g = "- " + i + "
" + j + k + l + m + n + o + "
",
h = "" == g ? g: h + "" + g;
f = '",
$("body").append(f),
q = $("div." + d).find(".mini"),
r = $("div." + d).find(".listpanel"),
s = $("div." + d).find("a.close"),
"mini" == a.initType ? (q.show(), r.hide()) : (q.hide(), r.show()),
q.click(function() {
q.hide(),
r.show("fast")
}),
s.click(function() {
q.show("fast"),
r.hide("fast")
}),
t = parseInt($("div." + d).css("top")),
$(window).scroll(function() {
$("div." + d).css("top", parseInt(document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop) + t)
})
};
b && "" != c && e()
}
}
function ADClass() {
this.count = function() {},
this.parse = function(a) {
var b, c, e, d = "",
f = "",
g = "",
h = $("#ow_ad_" + a),
i = {},
j = {},
k = {},
l = {},
m = {},
n = h.attr("data"),
o = h.attr("type"),
p = h.attr("ad_height"),
q = h.attr("ad_width"),
r = OW.int(h.attr("full_screen")),
s = OW.int(h.attr("switch_time")),
w = -OW.int(q) / 2,
x = "",
y = "",
z = "";
if (1 > s && (s = 6), "" != n) switch (o) {
case "image":
if (e = OW.JSON.parse(n), 1 == e.length) x = OW.trim(e[0].link),
y = 'target="_blank"',
(OW.isNull(x) || "#" == x) && (z = "cursor-default", x = "javascript:;", y = ""),
h.html('').show(),
j = h.find(".ow-ad-pic").css({
height: p,
width: q
}),
k = h.find("a").css({
height: p,
width: q
}),
l = h.find("img").css({
height: p,
width: q
}),
r && (h.css({
width: "100%"
}), j.css({
overflow: "hidden",
position: "absolute",
width: "100%"
}), k.css({
left: "50%",
"margin-left": w,
position: "absolute",
width: q
}));
else if (e.length > 1) {
for (b = '', c = 0; c < e.length; c++) OW.isNull(e[c].link) || "#" == e[c].link ? (z = "cursor-default", x = "javascript:;", y = "") : (z = "", x = OW.trim(e[c].link), y = 'target="_blank"'),
d = d + '
",
f = f + '
' + (c + 1) + "";
b = b + '
",
b = b + '
' + f + "
",
b += '
',
b += "
",
h.html(b).show(),
i = h.find(".ow-pic-player").css({
height: p,
width: q
}),
$sliders = h.find("ul[name='sliders']").css({
height: p,
width: q
}),
l = h.find("img").css({
height: p,
width: q
}),
m = h.find("div[name='pages']"),
r && (h.css({
width: "100%"
}), i.css({
width: "100%"
}), $sliders.css({
left: "50%",
"margin-left": w
}), m.css({
left: "50%",
"margin-left": -OW.int(m.width()) / 2
})),
OW.ad.picPlayer({
obj: h,
timer: 1e3 * s
})
}
break;
case "flash":
e = OW.JSON.parse(n),
g = e.url,
b = '