window.addEvent("load",function(){$$('.gk_npro_mainwrap').each(function(c,i){var d=c.getProperty('id');var e=$(d);var f=e.hasClass('hover');var g=false;var h=$Gavick[d];if($E('.gk_npro_full_interface',e)&&$E('.gk_npro_full_scroll1',e)){var l=$E('.gk_npro_full_scroll1',e).getSize().size.x;var m=new Fx.Scroll($E('.gk_npro_full_scroll1',e),{duration:h['animation_speed'],wheelStops:false,wait:false});var n=$ES('.gk_npro_full_tablewrap',e);var o=0;var p=(c.hasClass('autoanim'))?true:false;var q=function(){$clear(g);g=(function(){if(o==n.length-1){m.scrollTo(0,0);$ES('.gk_npro_full_interface li',e).each(function(a,k){if(k!=0)a.removeProperty("class");else a.setProperty("class","active")});o=0}else{o++;m.scrollTo(o*l,0);$ES('.gk_npro_full_interface li',e).each(function(a,k){if(k!=o)a.removeProperty("class");else a.setProperty("class","active")})}}).periodical(h['animation_interval'])};if(p)q();if($E('.gk_npro_full_interface li',e)){$E('.gk_npro_full_interface li',e).setProperty("class","active");$ES('.gk_npro_full_interface li',e).each(function(b,j){b.addEvent(f?"mouseover":"click",function(){if(p)q();m.scrollTo(j*l,0);$ES('.gk_npro_full_interface li',e).each(function(a,k){if(k!=j)a.removeProperty("class");else a.setProperty("class","active");o=j})})})}if($E('.gk_npro_full_prev',e)){$E('.gk_npro_full_prev',e).addEvent("click",function(){if(p)q();if(o==0){m.scrollTo((n.length-1)*l,0);$ES('.gk_npro_full_interface li',e).each(function(a,k){if(k!=n.length-1)a.removeProperty("class");else a.setProperty("class","active")});o=n.length-1}else{o--;m.scrollTo(o*l,0);$ES('.gk_npro_full_interface li',e).each(function(a,k){if(k!=o)a.removeProperty("class");else a.setProperty("class","active")})}});$E('.gk_npro_full_next',e).addEvent("click",function(){if(p)q();if(o==n.length-1){m.scrollTo(0,0);$ES('.gk_npro_full_interface li',e).each(function(a,k){if(k!=0)a.removeProperty("class");else a.setProperty("class","active")});o=0}else{o++;m.scrollTo(o*l,0);$ES('.gk_npro_full_interface li',e).each(function(a,k){if(k!=o)a.removeProperty("class");else a.setProperty("class","active")})}})}}if($E('.gk_npro_short_interface',e)){var r=new Fx.Scroll($E('.gk_npro_short_scroll1',e),{duration:h['animation_speed'],wheelStops:false});var s=$ES('.gk_npro_short_ulwrap',e);var t=$E('.gk_npro_short_scroll1',e).getSize().size.x;var u=0;if($E('.gk_npro_short_prev',e)){$E('.gk_npro_short_prev',e).addEvent("click",function(){if(u==0){r.scrollTo((s.length-1)*t,0);u=s.length-1}else{u--;r.scrollTo(u*t,0)}});$E('.gk_npro_short_next',e).addEvent("click",function(){if(u==s.length-1){r.scrollTo(0,0);u=0}else{u++;r.scrollTo(u*t,0)}})}}})});
