jQuery(function(a){var b=a("#rm_container > ul > li"),x=b.length,y=a("#rm_next"),z=a("#rm_prev"),k=a("#rm_play"),l=a("#rm_pause"),q=a("#rm_mask_left"),r=a("#rm_mask_right"),s=a("#rm_corner_left"),t=a("#rm_corner_right"),e=a.browser.msie&&8>=parseInt(a.browser.version);(function(){var u=yiw_slider_rotating_timeDiff,A=yiw_slider_rotating_slideshowTime,m,f=!1,c=0,v=["155px","930px"],B=function(){w();y.bind("click",function(a){n();p(1);return!1});z.bind("click",function(a){n();p(-1);return!1});k.bind("click",
function(a){w();return!1});l.bind("click",function(a){n();return!1})},p=function(g){if(f)return!1;f=!0;b.each(function(b){var h=a(this);setTimeout(function(){var b=a("#"+h.data("images")).children("img"),d=b.length;$img=h.children("img:last");current=h.data("current");current>d-1?current=0:0>current&&(current=d-1);d=1===g?"-30deg":"30deg";b=b.eq(current).clone();e||b.css({rotate:d,origin:v});1===g?++current:--current;h.data("current",current).prepend(b);d=1===g?"80deg":"-80deg";e?$img.fadeOut(1200,
function(){a(this).remove();++c;c===yiw_slider_rotating_npanels&&(c=0,f=!1)}):($img.animate({rotate:d},1200,function(){a(this).remove();++c;c===yiw_slider_rotating_npanels&&(c=0,f=!1)}),b.animate({rotate:"0deg"},600))},1===g?b*u:(x-1-b)*u)})},C=function(){a.browser.msie&&!e?(q.transform({rotate:"-3deg"}),r.transform({rotate:"3deg"}),s.transform({rotate:"45deg"}),t.transform({rotate:"-45deg"})):e&&(q.hide(),r.hide(),s.hide(),t.hide());b.each(function(b){b=a(this).data("current",1);e||b.transform({rotate:b.data("rotation")+
"deg"}).find("img").transform({origin:v})})},w=function(){clearInterval(m);m=setInterval(function(){p(1)},A);k.hide();l.show()},n=function(){clearInterval(m);l.hide();k.show()};return{init:function(){C();B()}}})().init()});