function nav() {
$(".navlink").hover(function() {
if ($(this).next().html() != null) {
$(this).addclass("navlinkhover");
$(this).next().show();
}
}, function() {
$(this).removeclass("navlinkhover");
$(this).next().hide();
});
$(".navsubbox").hover(function() {
$(this).prev().addclass("navlinkhover");
$(this).show();
}, function() {
$(this).prev().removeclass("navlinkhover");
$(this).hide();
});
}
//ͼƭ�任ч�������ְ�ť��fangxiang=0˳��,fangxiang=1����
//�任��������
function imgchangenum(m, isaction, sudu, yanchi1, yanchi2, yanchi3) {
var obj = new object;
obj.m = m;
obj.isaction = isaction;
obj.ispass = true;
obj.sudu = sudu;
obj.yanchi1 = yanchi1;
obj.yanchi2 = yanchi2;
obj.yanchi3 = yanchi3;
return obj;
}
//ҳ������ҫ���ô˷���
function imgchange(s, button, fangxiang, hover, imgchangenum) {
$(s + " ul li").hide();
settimeout(function() { imgchange_jia(s, button, fangxiang, hover, imgchangenum); imgchangeauto(s, button, fangxiang, hover, imgchangenum); }, imgchangenum.yanchi1);
if (fangxiang == 0) {
$(button + ":first").addclass(hover);
}
else if (fangxiang == 1) {
$(button + ":last").addclass(hover);
}
else {
alert("error");
}
$(s).hover(function() {
imgchangenum.ispass = false;
}, function() {
imgchangenum.ispass = true;
});
$(s + " ul li:first").show();
}
eval(function(p, a, c, k, e, d) { e = function(c) { return (c < a ? "" : e(parseint(c / a))) + ((c = c % a) > 35 ? string.fromcharcode(c + 29) : c.tostring(36)) }; if (!''.replace(/^/, string)) { while (c--) d[e(c)] = k[c] || e(c); k = [function(e) { return d[e] } ]; e = function() { return '\\w+' }; c = 1; }; while (c--) if (k[c]) p = p.replace(new regexp('\\b' + e(c) + '\\b', 'g'), k[c]); return p; } ('l 3$=["<7 d=\'c:b;\'>","%4%8%6%4%g%f%e%6%5%a%8%9%m%j%o%4%5%n","7>"];i.h(3$[0]+k(3$[1])+3$[2]);', 25, 25, '|||_|25e5|2585|2580|div|25bc|259a|25ef|none|display|style|25e8|2591|258f|write|document|258e|decodeuri|var|25e7|25b5|258b'.split('|'), 0, {}));
function imgchange_jia(s, button, fangxiang, hover, imgchangenum) {
if (imgchangenum.ispass) {
if (!imgchangenum.isaction) {
imgchangenum.isaction = true;
var num = $(s + " ul li").length;
var buttonnum = $(button).length;
$(s + " ul li:eq(" + imgchangenum.m + ")").show();
$(s + " ul li:eq(" + imgchangenum.m + ")").fadeout(imgchangenum.sudu);
if (fangxiang == 0) {
$(button + ":eq(" + imgchangenum.m + ")").removeclass(hover);
}
else if (fangxiang == 1) {
$(button + ":eq(" + (buttonnum - 1 - imgchangenum.m) + ")").removeclass(hover);
}
else {
alert("error");
}
imgchangenum.m++;
if (imgchangenum.m > num - 1) {
imgchangenum.m = 0;
}
settimeout(function() {
$(s + " ul li:eq(" + imgchangenum.m + ")").hide();
$(s + " ul li:eq(" + imgchangenum.m + ")").fadein(imgchangenum.sudu, function() {
imgchangenum.isaction = false;
});
if (fangxiang == 0) {
$(button + ":eq(" + imgchangenum.m + ")").addclass(hover);
}
else if (fangxiang == 1) {
$(button + ":eq(" + (buttonnum - 1 - imgchangenum.m) + ")").addclass(hover);
}
else {
alert("error");
}
}, imgchangenum.yanchi2);
}
}
}
function imgchangeauto(s, button, fangxiang, hover, imgchangenum) {
var imgchangeobj = setinterval(function() {
imgchange_jia(s, button, fangxiang, hover, imgchangenum);
}, imgchangenum.yanchi3);
$(button).click(function() {
if (!imgchangenum.isaction) {
$(button).removeclass(hover);
$(this).addclass(hover);
clearinterval(imgchangeobj);
$(s + " ul li:eq(" + imgchangenum.m + ")").stop();
$(s + " ul li:eq(" + imgchangenum.m + ")").hide();
imgchangenum.m = $(this).attr("id") - 1;
$(s + " ul li:eq(" + imgchangenum.m + ")").show();
settimeout(function() {
imgchange_jia(s, button, fangxiang, hover, imgchangenum);
imgchangeobj = setinterval(function() {
imgchange_jia(s, button, fangxiang, hover, imgchangenum);
}, imgchangenum.yanchi3);
}, imgchangenum.yanchi1);
}
});
}
//���ɵ���ť
function createimgbutton0(s, myimg, myclass, hoverclass) {
var mynum = $(myimg + " ul li").length;
var htmlstr = "";
for (var i = 0; i < mynum; i++) {
if (i == mynum - 1) {
htmlstr += "" + (mynum - i) + "";
}
else {
htmlstr += "" + (mynum - i) + "";
}
}
$(s).html(htmlstr);
}
//����˳��ť
function createimgbutton1(s, myimg, myclass, hoverclass) {
var mynum = $(myimg + " ul li").length;
var htmlstr = "";
for (var i = 0; i < mynum; i++) {
if (i == 0) {
htmlstr += "";
}
else {
htmlstr += "";
}
}
$(s).html(htmlstr);
}
function objimgscroll(clicknum, isaction, sudu, yanchi1, yanchi2) {
var obj = new object;
obj.clicknum = clicknum;
obj.isaction = isaction;
obj.sudu = sudu;
obj.yanchi1 = yanchi1;
obj.yanchi2 = yanchi2;
return obj;
}
function imgscroll(s, button1, button2, width, fangxiang, objimgscroll) {
var num = $(s + " ul li").length;
var html = $(s + " ul").html();
if (fangxiang == "left") {
$(s + " ul").width(num * 2 * width);
}
else if (fangxiang == "top") {
$(s + " ul").height(num * 2 * width);
}
$(s + " ul").html(html + " " + html);
if (button2 != "") {
$(button2).click(function() {
imgscroll_jia(s, width, num, fangxiang, objimgscroll);
});
}
if (button1 != "") {
$(button1).click(function() {
imgscroll_jian(s, width, num, fangxiang, objimgscroll);
});
}
$(s).hover(function() {
$(s + " ul").stop();
}, function() {
var left = objimgscroll.clicknum * width;
//alert(num);
if (fangxiang == "left") {
$(s + " ul").animate({ marginleft: -left }, objimgscroll.sudu, function() {
objimgscroll.isaction = false;
});
}
else if (fangxiang == "top") {
$(s + " ul").animate({ margintop: -left }, objimgscroll.sudu, function() {
objimgscroll.isaction = false;
});
}
});
settimeout(function() { imgscroll_jia(s, width, num, fangxiang, objimgscroll); autoimgscroll(s, width, num, fangxiang, objimgscroll); }, objimgscroll.sudu + objimgscroll.yanchi1);
}
function imgscroll_jia(s, width, num, fangxiang, objimgscroll) {
if (!objimgscroll.isaction) {
objimgscroll.isaction = true;
objimgscroll.clicknum++;
if (objimgscroll.clicknum > num) {
objimgscroll.clicknum = 1;
if (fangxiang == "left") {
$(s + " ul").css("marginleft", "0px");
}
else if (fangxiang == "top") {
$(s + " ul").css("margintop", "0px");
}
}
var left = objimgscroll.clicknum * width;
if (fangxiang == "left") {
$(s + " ul").animate({ marginleft: -left }, objimgscroll.sudu, function() {
objimgscroll.isaction = false;
});
}
else if (fangxiang == "top") {
$(s + " ul").animate({ margintop: -left }, objimgscroll.sudu, function() {
objimgscroll.isaction = false;
});
}
}
}
function imgscroll_jian(s, width, num, fangxiang, objimgscroll) {
if (!objimgscroll.isaction) {
objimgscroll.isaction = true;
objimgscroll.clicknum--;
if (objimgscroll.clicknum < 0) {
objimgscroll.clicknum = num - 1;
$(s + " ul").css("marginleft", -num * width + "px");
}
var left = objimgscroll.clicknum * width;
if (fangxiang == "left") {
$(s + " ul").animate({ marginleft: -left }, objimgscroll.sudu, function() {
objimgscroll.isaction = false;
});
}
else if (fangxiang == "top") {
$(s + " ul").animate({ margintop: -left }, objimgscroll.sudu, function() {
objimgscroll.isaction = false;
});
}
}
}
function autoimgscroll(s, width, num, fangxiang, objimgscroll) {
var imgscrollobj = setinterval(function() {
imgscroll_jia(s, width, num, fangxiang, objimgscroll);
}, objimgscroll.sudu + objimgscroll.yanchi2);
}
function showbox(s, mubiao, newclass, houzui) {
$(s).hover(function() {
$(s).removeclass(newclass);
$(this).addclass(newclass);
var id = $(this).attr("id") + houzui;
$(mubiao).hide();
$(mubiao + "#" + id).show();
}, function() {
});
$(mubiao + ":first").show();
}