function imgplayer(c, d, b) {
c = "#" + c;
var a = environment.url + "/" + $string.trimstart(d, "/");
$.ajax({
url: a,
datatype: "html",
success: function(f) {
var h;
if (window.activexobject) {
h = new activexobject("microsoft.xmldom");
h.async = false;
h.loadxml(f)
} else {
var e = new domparser();
h = e.parsefromstring(f, "text/xml")
}
if (h.childnodes.length == 0) {
return
}
var g = 0;
$(h).find("banner ad").each(function() {
var l;
var k;
var j;
l = "
";
g++;
k = "" + g + "";
j = "" + $(this).find("title").attr("text") + "";
$(c + " .img").append(l);
$(c + " .num").append(k);
$(c).append(j)
});
$(c + " .img li").hide();
$(c + " .title").hide();
$(c + " .num li .numval").mouseover(function() {
$(c + " .title").stop(false, true);
$(c + " .num li").removeclass("over");
$(this).parent().addclass("over");
$(c + " .img li").fadeout(1000).eq($(this).text() - 1).fadein(1000);
$(c + " .title").hide().eq($(this).text() - 1).fadein("slow")
});
$(c + " .num li").eq(0).addclass("over");
$(c + " .img li").eq(0).show("fast", b);
$(c + " .title").eq(0).show("fast")
}
})
}
function shownumimg(a) {
if (a.substring(0, 1) != "#") {
a = "#" + a
}
var b = $(a).find(".num li.over .numval").text();
if (b < 1 || b > $(a + " .num li").length - 1) {
b = 0
}
$(a + " .num li").removeclass("over").eq(b).addclass("over");
$(a + " .img li").fadeout(1000).eq(b).fadein(1000);
$(a + " .title").hide().eq(b).fadein("slow")
}
function imgplayertopandmidindex(b, a) {
b = "#" + b;
$(a).each(function() {
i++;
if($(this)[2]==""){
$(b + " .img").append("");
$(b).append("" + $(this)[1] + "")
}else{
$(b + " .img").append("");
$(b).append("" + $(this)[1] + "")
}
});
$(b + " .img li").hide();
$(b + " .title").hide();
$(b + " .num li .numval").mouseover(function() {
$(b + " .title").stop(false, true);
$(b + " .num li").removeclass("over");
$(this).parent().addclass("over");
$(b + " .img li").fadeout(1000).eq($(this).text() - 1).fadein(1000);
$(b + " .title").hide().eq($(this).text() - 1).fadein("slow")
});
$(b + " .num li").eq(0).addclass("over");
$(b + " .img li").eq(0).show("fast");
$(b + " .title").eq(0).show("fast")
}
function shownumimgtopandmidindex(a) {
if (a.substring(0, 1) != "#") {
a = "#" + a
}
var b = $(a).find(".num li.over .numval").text();
if (b < 1 || b > $(a + " .num li").length - 1) {
b = 0
}
$(a + " .num li").removeclass("over").eq(b).addclass("over");
$(a + " .img li").fadeout(1000).eq(b).fadein(1000);
$(a + " .title").hide().eq(b).fadein("slow")
};