// JavaScript Document $(function(){ $('.part02').slide({ counter: {auto:false, len:'ul > li', duration:3000, begin:0}, "ul": {active:AddClassSlide, param:{css:"active"}, click:"choose"}, "article": {active:ShowSlide, param:{css:"active"}} }); $('.links-l').slide({ counter: {auto:true, len:'ul > li', duration:3000, begin:0}, "ul": {active:LeftLoopMoveSlide, param:{speed:"500"}, mouseover:"stop", mouseleave:"play"}, ".preview": {active:AddClassSlide, param:{css:"active"}, click:"preview"}, ".next": {active:AddClassSlide, param:{css:"active"}, click:"next"} }); var oNavSize = $('#nav-menu li').size(); var oNavCk = true; $('#mobile-nav-btn').click(function(){ if(oNavCk){ $('#nav').stop().animate({'height':50*oNavSize},500); $(this).find('i').addClass('active'); }else{ $('#nav').stop().animate({'height':0},500); $(this).find('i').removeClass('active'); } oNavCk = !oNavCk; }); var navDown = false, items_s = $(".isearch"), search = $(".search-p-ico"); search.click(function () { if (!navDown) { items_s.slideDown(300); navDown = true; } else { items_s.slideUp(300); navDown = false; } }); $('li.mainlevel').mousemove(function () { $(this).find('ul').slideDown(); //you can give it a speed }); $('li.mainlevel').mouseleave(function () { $(this).find('ul').slideUp("fast"); }); $('#left-menu').sidr({ name: 'sidr-left', side: 'right' }); $(function(){ var domain = window.location.host; $("a[href^='http']:not([href*='domain'])").click(function(){ window.open(this.href); return false; }) }) })