jQuery(document).ready(function(){jQuery(".success .close-notification").click(function(){jQuery(".success.canhide").fadeOut("slow")});jQuery(".fail .close-notification").click(function(){jQuery(".fail.canhide").fadeOut("slow")});jQuery(".info .close-notification").click(function(){jQuery(".info.canhide").fadeOut("slow")});jQuery(".warning .close-notification").click(function(){jQuery(".warning.canhide").fadeOut("slow")});jQuery(".download .close-notification").click(function(){jQuery(".download.canhide").fadeOut("slow")});jQuery(".chat .close-notification").click(function(){jQuery(".chat.canhide").fadeOut("slow")});jQuery(".task .close-notification").click(function(){jQuery(".task.canhide").fadeOut("slow")})});jQuery(document).ready(function(){jQuery(".tooltip").tipTip();jQuery("a.button-link").hover(function(){var e=jQuery(this).css("borderTopColor");jQuery(this).css({"background-color":e});jQuery(this).find("span").css({color:"#fff"})},function(){var e=jQuery(this).css("borderTopColor");jQuery(this).css({background:"none"});jQuery(this).find("span").css({color:e})})});jQuery(document).ready(function(){jQuery("#back-to-top,#backtop").hide();jQuery(window).scroll(function(){if(jQuery(this).scrollTop()>100){jQuery("#back-to-top,#backtop").fadeIn()}else{jQuery("#back-to-top,#backtop").fadeOut()}});jQuery("#back-to-top,#backtop").click(function(){jQuery("html, body").animate({scrollTop:0},"slow")})});(function(e){e.fn.sketchaccordian=function(t){var n={autoplay:1,hoverpause:1,itemno:"3",effect:2,tspeed:"100",tdelay:"3000",togacc:1};var t=e.extend(n,t);var r=e(this);var i=r.find("div.ske_acc_title");var s=r.find("div.ske_acc_content");var o=i.eq(t.itemno-1);var u=s.eq(t.itemno-1);var a=i.length;var f=t.itemno-1;var l,c;var h;return this.each(function(){o.addClass("active").show();u.show();i.click(function(r){if(t.togacc){if(jQuery(this).hasClass("active")){jQuery(this).removeClass("active");switch(t.effect){case 1:case"fade":e(this).next("div.ske_acc_content").fadeOut(t.tspeed);break;case 2:case"slide":e(this).next("div.ske_acc_content").slideUp(t.tspeed);break}}else{jQuery(this).addClass("active");switch(t.effect){case 1:case"fade":e(this).next("div.ske_acc_content").fadeIn(t.tspeed);break;case 2:case"slide":e(this).next("div.ske_acc_content").slideDown(t.tspeed);break}}}else{if(!jQuery(this).hasClass("active")){i.removeClass("active");e(this).addClass("active");if(t.autoplay){c=jQuery(this).index();if(c==0)f=0;else f=c/2;if(!t.hoverpause){clearInterval(h);setTimeout(n,0)}}switch(t.effect){case 1:case"fade":s.fadeOut(t.tspeed);e(this).next("div.ske_acc_content").fadeIn(t.tspeed);break;case 2:case"slide":s.slideUp(t.tspeed);e(this).next("div.ske_acc_content").slideDown(t.tspeed);break}}}return false});if(a>1&&t.autoplay&&!t.togacc){function n(){h=setInterval(function(){switch(t.effect){case 1:case"fade":i.eq(f).removeClass("active");s.eq(f).fadeOut(t.tspeed);f=f+1==a?0:f+1;i.eq(f).addClass("active");s.eq(f).fadeIn(t.tspeed);break;case 2:case"slide":i.eq(f).removeClass("active");s.eq(f).slideUp(t.tspeed);f=f+1==a?0:f+1;i.eq(f).addClass("active");s.eq(f).slideDown(t.tspeed);break}},t.tdelay)}n();if(t.hoverpause){r.hover(function(){clearInterval(h)},function(){setTimeout(n,0)})}}})}})(jQuery);(function(e){e.fn.sketchtab=function(t){var n={orient:"h",itemno:"1",effect:1,tspeed:"500"};var t=e.extend(n,t);var r=e(this);var i=r.find("ul.ske_tabs li");var s=r.find(".ske_tab_content");var o=i.eq(t.itemno-1);var u=s.eq(t.itemno-1);return this.each(function(){if(t.orient=="h"){r.addClass("ske_tab_h")}else if(t.orient=="v"){r.addClass("ske_tab_v clearfix")}s.hide();o.addClass("active").show();u.show();i.click(function(){i.removeClass("active");e(this).addClass("active");s.hide();var n=e(this).index();var r=s.width();switch(t.effect){case 1:case"fade":s.eq(n).fadeIn(t.tspeed);break;case 2:case"slide":s.eq(n).animate({left:-r},0).show().animate({left:"0"},t.tspeed);break}return false})})}})(jQuery);(function(e){e.fn.sketchtoggle=function(t){var n={state:"open",effect:1,tspeed:"100"};var t=e.extend(n,t);var r=e(this);var i=r.find("h3.ske_tog_title");var s=r.find("div.ske_tog_content");return this.each(function(){if(t.state=="open")i.addClass("active");else if(t.state=="close")s.hide();i.click(function(){if(jQuery(this).hasClass("active")){jQuery(this).removeClass("active");switch(t.effect){case 1:case"fade":s.fadeOut(t.tspeed);break;case 2:case"slide":s.slideUp(t.tspeed);break}}else{switch(t.effect){case 1:case"fade":s.fadeIn(t.tspeed);break;case 2:case"slide":s.slideDown(t.tspeed);break}jQuery(this).addClass("active")}return false})})}})(jQuery)