/* �������������֮�� www.lanrenzhijia.com */ (function(a){ a.fn.lanrenzhijia=function(p){ var p=p||{}; var n=p&&p.slideshow_autoplay?p.slideshow_autoplay:"enable"; var o=p&&p.slideshow_time_interval?p.slideshow_time_interval:"5000"; var transition_speed=p&&p.slideshow_transition_speed?p.slideshow_transition_speed:"normal"; var button_current_text_color=p&&p.slideshow_button_current_text_color?p.slideshow_button_current_text_color:"#000"; var q=p&&p.slideshow_window_background_color?p.slideshow_window_background_color:"white"; var r=p&&p.slideshow_window_padding?p.slideshow_window_padding:"5"; var s=p&&p.slideshow_window_width?p.slideshow_window_width:"400"; var t=p&&p.slideshow_window_height?p.slideshow_window_height:"400"; var u=p&&p.slideshow_border_size?p.slideshow_border_size:"1"; var v=p&&p.slideshow_border_color?p.slideshow_border_color:"black"; var w=p&&p.slideshow_show_button?p.slideshow_show_button:"enable"; var h=p&&p.slideshow_show_title?p.slideshow_show_title:"enable"; var x=p&&p.slideshow_button_text_color?p.slideshow_button_text_color:"red"; var z=p&&p.slideshow_button_background_color?p.slideshow_button_background_color:"black"; var a=p&&p.slideshow_button_current_background_color?p.slideshow_button_current_background_color:"white"; var b=p&&p.slideshow_button_border_color?p.slideshow_button_border_color:"blue"; var c=p&&p.slideshow_button_border_size?p.slideshow_button_border_size:"2"; var s_l_g=p&&p.slideshow_loading_gif?p.slideshow_loading_gif:"loading.gif"; var first = false; r += "px"; s += "px"; t += "px"; u += "px"; c += "px"; var d; var e=0; var f=a(this); var g=f.find("ul:first").children("li").length; if(f.find("ul").length==0||f.find("li").length==0){ a.append("require content"); return null } f.show(); f.find("ul:first").children("li").children("a").children("img").css("width",s).css("height",t); f.find("ul:first").css("background-image","url("+s_l_g+")").css("background-position","center center"); s_s_ul(f.find("ul:first"),r,s,t,u,v,q,z,x,s_l_g); s_s_n(f.find(".lanrenzhijia_nav"),x,w,z,a,b,c); f.find("ul:first").children("li").hide(); var img = new image(); img.src = f.find("ul:first").children("li").eq(0).children("a").children("img").attr("src"); img.onload = function(){ if(first == false){ first = true; play(); } }; if(img.complete){ if(first == false){ first = true; play(); } } f.find("ul:first").hover(function(){ cleartimeout(d); },function(){ d=settimeout(play,o); }); f.find(".lanrenzhijia_nav").children("li").hover( function(){ stop($(this)); }, function(){ } ); function play(){ if(n=="enable"){ cleartimeout(d); if(e >= g){ e = 0; } var speed = transition_speed; f.find("ul:first").children("li").fadeout(speed); f.find("ul:first").children("li").eq(e).fadein(transition_speed); f.find(".lanrenzhijia_nav").children("li").css("background-color",z); f.find(".lanrenzhijia_nav").children("li").children("a").css("color",x); f.find(".lanrenzhijia_nav").children("li").eq(e).css("background-color",a); f.find(".lanrenzhijia_nav").children("li").eq(e).children("a").css("color",button_current_text_color); e++; if(e>=g){ e=0 } d=settimeout(play,o) }else{ f.find("ul:first").children("li").eq(e).fadein(); } } function stop(a){ cleartimeout(d); var b=a.parent().children().index(a); if(b != (e-1)){ e=b+1; f.find("ul:first").children("li").fadeout(); f.find("ul:first").children("li").eq(b).fadein(); f.find(".lanrenzhijia_nav").children("li").css("background-color",z); f.find(".lanrenzhijia_nav").children("li").eq(b).css("background-color",a) } } function s_s_ul(a,b,c,d,e,f,g,h,i,l_g){ a.children("li").css("width",c).css("height",d); if(h == 'enable'){ a.children("li").each(function(i){ a.children("li").eq(i).append("

"+a.children("li").eq(i).children("a").children("img").attr("alt")+"

"); }); } a.children("li").children("p").css("background-color",h).css("color",i).css('width',parseint(c)-10); b=parseint(b); c=parseint(c); d=parseint(d); e=parseint(e); var h=c+e*2+b*2; var i=d+e*2+b*2; f.css("width",h); f.css("height",i); var j=d+"px"; var k=c+"px"; var l="border: "+f+" solid "+" "+e+"px; height:"+j+"; width:"+k+"; padding:"+b+"px; background-color:"+g+"; background-image:url("+l_g+");"; a.attr("style",l) } function s_s_n(b,c,d,e,f,g,h){ h=parseint(h); var j=b.children("li"); var a=j.children("a"); a.css("color",c); var k="border: "+g+" solid "+" "+h+"px; background-color:"+e+";"; j.attr("style",k); if(d!="enable"){ b.hide() } } } })(jquery); /* �������������֮�� www.lanrenzhijia.com */