/*
 jquery utils EZG v1.172
 accordion: based on jQuery Ui Accordion, cluetip: based on jQuery clueTip plugin  (http://www.opensource.org/licenses/mit-license.php)
 jQuery Nivo Slider v3.0.1, http://nivo.dev7studios.com, Copyright 2012, Dev7studios (http://www.opensource.org/licenses/mit-license.php)
 reflection.js v1.1 (c) 2006-2011 Christophe Beyls <http://www.digitalia.be> MIT-style license.
 easyAccordion 0.1 (c) 2010 Andrea Cima Serniotti (http://www.madeincima.eu) Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
 parseQuery (c) 2008 Michael Manning (http://actingthemaggot.com) Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
 FitVids 1.0.3  (c) 2013, Chris Coyier
 other scripts : http://www.ezgenerator.com  (c) 2015 Image-line
 */
var ua=window.navigator.userAgent.toLowerCase(),isAndroid=-1<ua.indexOf("android"),msie=ua.indexOf("msie "),msie11=ua.match(/trident.*rv\:11\./);(0<msie||msie11)&&$("html").addClass("ie");jQuery.fn.center=function(){this.css("top",Math.max(0,($(window).height()-$(this).outerHeight())/2)+"px");this.css("left",Math.max(0,($(window).width()-$(this).outerWidth())/2)+"px");return this};jQuery.fn.autoHeight=function(){this.css("height",$(window).height()+"px");return this};
jQuery.fn.getRandomArea=function(){var b=Math.floor(Math.random()*this.length);this.each(function(e,r){e!=b?$(r).empty():$(r).css({display:"block"})});return jQuery(this[b])};
jQuery.fn.updateMenu=function(b){url=(b?"":"../")+"documents/centraladmin.php";$.get(url,{process:"up"},function(b){-1!=b.indexOf("cookie_login--")&&1==b.split("cookie_login--")[1].split("--cookie_login")[0]&&($(".widget_remember_me").show(),$("#remember_me").show());if(!(-1<b.indexOf("<")&&-1==b.indexOf("categ--"))){var r=b.split("menue--")[1].split("--menue")[0];if(-1<b.indexOf("categ--")){var k=b.split("categ--")[1].split("--categ")[0],f=b.split("ssmenu--")[1].split("--ssmenu")[0];b=b.split("ttype--")[1].split("--ttype")[0];
include_categories_inmenu(k,f,b)}"none"!=r&&$(".login_form_logged").show().prev().hide();"all"==r?($("#mmenu .hidden, #smenu .hidden, .mmenu .hidden, .smenu .hidden").removeClass("hidden"),$(".hidden").parent(".smenu, #smenu, .mmenu, #mmenu")&&$(".hidden").removeClass("hidden")):$.each(r.split("|"),function(b,e){$("#"+e).removeClass("hidden")});isAndroid&&$(".mmenu").each(function(){$(this).next().is("ul")&&$(this).addClass("ar").click(function(b){var e=$(this).next("ul");e.hasClass("clicked")||(b.stopPropagation(),
b.preventDefault(),$(".clicked").removeClass("clicked").hide(),e.addClass("clicked").show())})})}});return!0};function setCookie(b,e,r,k){var f=new Date;f.setDate(f.getDate()+r);e=escape(e)+(null==r?"":"; expires="+f.toUTCString())+(null==k?"":"; path="+k);document.cookie=b+"="+e}function getCookie(b){var e,r,k,f=document.cookie.split(";");for(e=0;e<f.length;e++)if(r=f[e].substr(0,f[e].indexOf("=")),k=f[e].substr(f[e].indexOf("=")+1),r=r.replace(/^\s+|\s+$/g,""),r==b)return unescape(k)}
$.extend({getUrlVars:function(){var b=[],e;e=$(location).attr("href");for(var r=e.slice(e.indexOf("?")+1).split("&"),k=0;k<r.length;k++)e=r[k].split("="),b.push(e[0]),b[e[0]]=e[1];return b}});
function include_categories_inmenu(b,e,r){if($("#xm2").length){b=JSON.parse(b);$("html");var k=$("#xm2").attr("data-page"),f=0<$(".megamenu").length;$.each(b,function(b,u){var z="",E=0;if(k!=b)for(var C=0;C<Object.keys(u).length;C++){$v=u[C];var m="";if(m!=$v.id){var m=$v.id,m=-1==$v.pid,B=0;!0===0<$v.kids.length&&$.each($v.kids,function(b,e){B+=e.count});if((0<$v.count||0<B)&&m){var m=e.replace("%MenuItemUrl%",$v.permalink_cat).replace("%MenuItemText%",$v.name),D="";0<B&&$.each($v.kids,function(b,
f){if(0<f.count){for(var g=Object.keys(u).length-1;0<=g;g--)if(u[g].id==f.cid){var m=u[g];break}D+=e.replace("%MenuItemUrl%",m.permalink_cat).replace("%MenuItemText%",(4==r?"":"&rarr; ")+m.name)}});""!=D.trim()?(z=4==r?z+m.replace("</li>","<ul>"+D+"</ul></li>"):z+(m+D),E=1):z+=m}}}C=$("li#mi"+b);0<C.length?E?$(z).insertAfter(C):$(C).append("<ul>"+z+"</ul>"):f?$("<ul>"+z+"</ul>").appendTo($("#ci"+b+" .megamenu")):4==r&&($("#ci"+b).find("ul").length?$("<li>"+z+"</li>").prependTo($("#ci"+b).find("ul:first")):
$("#ci"+b).is("li")&&$("<ul>"+z+"</ul>").appendTo($("#ci"+b)))})}}function sortByProperty(b){return function(e,r){var k=0;e[b]<r[b]?k=-1:e[b]>r[b]&&(k=1);return k}}
jQuery.parseQuery=function(b,e){var r="string"===typeof b?b:window.location.search,k={f:function(b){return unescape(b).replace(/\+/g," ")}},k=jQuery.extend({},k,"object"===typeof b&&"undefined"===typeof e?b:e),f={};jQuery.each(r.match(/^\??(.*)$/)[1].split("&"),function(b,e){e=e.split("=");e[1]=k.f(e[1]);f[e[0]]=f[e[0]]?f[e[0]]instanceof Array?(f[e[0]].push(e[1]),f[e[0]]):[f[e[0]],e[1]]:e[1]});return f};
(function(b){b.fn.insertAtCaret=function(b){return this.each(function(r){if(document.selection)this.focus(),sel=document.selection.createRange(),sel.text=b,this.focus();else if(this.selectionStart||"0"==this.selectionStart){r=this.selectionStart;var k=this.selectionEnd,f=this.scrollTop;this.value=this.value.substring(0,r)+b+this.value.substring(k,this.value.length);this.focus();this.selectionStart=r+b.length;this.selectionEnd=r+b.length;this.scrollTop=f}else this.value+=b,this.focus()})}})(jQuery);
(function(b){b.fn.autogrow=function(e){this.filter("textarea").each(function(){var e=b(this),k=20<e.height()?e.height():20;e.css("lineHeight");var f=b("<div></div>").css({position:"absolute",top:-1E4,left:-1E4,width:b(this).width()-parseInt(e.css("paddingLeft"))-parseInt(e.css("paddingRight")),fontSize:e.css("fontSize"),fontFamily:e.css("fontFamily"),lineHeight:e.css("lineHeight"),resize:"none"}).appendTo(document.body),e=function(){var e=this.value.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/&/g,
"&amp;").replace(/\n$/,"<br/>&nbsp;").replace(/\n/g,"<br/>").replace(/ {2,}/g,function(b){for(var e=0,f="";e<b.length-1;e++)f+="&nbsp;";return f+" "});f.html(e);b(this).css("height",Math.max(f.height()+1,k))};b(this).change(e).keyup(e).keydown(e);e.apply(this)});return this}})(jQuery);
(function(b){b.fn.pmeter=function(e){return this.each(function(){var e=b(this).attr("rel");"undefined"==e&&(e="");b(".out_pass_div"+e).css("width",b(this).width());b(this).keyup(function(){var k,f=b(this).val();k=null!==f.match(/^.{1,7}$/)?1:null!==f.match(/(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/)?5:null!==f.match(/^.{12,}$/)?5:null!==f.match(/(?=^.{8,}$)(?=.*\d)(?![.\n])(?=.*[a-zA-Z]).*$/)?4:null!==f.match(/^[^0-9]{8,11}$/)?3:null!==f.match(/^[0-9]{8,}$/)?2:-1;var f="",
g=30*k;switch(k){case 5:k="#00FF00";f="strong";break;case 4:k="#00FFFF";f="good";break;case 3:k="#F5AC00";f="average";break;case 2:k="#FF0000";f="weak";break;case 1:k="#C0C0C0";f="short";break;default:k=""}b(".inn_pass_div"+e).css("width",g).css("background-color",k);b(".pass_progress_text"+e).hide();""!=f&&b("#pwdptext_"+f+e).show();"short"!=f&&b("#selfreg_password").text("")})})}})(jQuery);
(function(b){b.fn.rtable=function(e){e=b.extend({min:0,max:200,acolor:"#555555",asize:25},e||{});return this.each(function(){var r=this,k="transparent transparent "+e.acolor,f=e.acolor+" transparent transparent",g="0 "+e.asize+"px "+e.asize+"px",u=e.asize+"px "+e.asize+"px 0";b(r).animate({height:e.min});var z=b('<div class="rtable_arrow" style="cursor:pointer;border-color:'+f+";border-style:solid;border-width:"+u+';height:0;width:0"></div>').click(function(){nh=b(r).hasClass("max");b(r).animate({height:nh?
e.min:e.max}).toggleClass("max");nh?b(z).css({"border-color":f,"border-width":u}):b(z).css({"border-color":k,"border-width":g});b(z).toggleClass("up")});0<b("."+this.className+"_footer").length?b("."+this.className+"_footer").after(z):b(r).after(z)})}})(jQuery);
(function(b){b.fn.poll=function(e){e=b.extend({id:"",root:!0},e||{});return this.each(function(){function r(e){b(e).find(".bar").hide().end().fadeIn("slow",function(){b(this).find(".bar").each(function(){var e=b(this).attr("rel");b(this).css("width","0").show().animate({width:e+"%"},1E3)})})}var k=this,f=b(k).find(".loader"),g=e.root?"":"../",u=b(k).find(".pc"),z="";f.fadeIn();b.get(g+"ezg_data/poll.php",{poll_id:e.id},function(e,C){-1<e.indexOf("include_once")?e="Upload to see poll working!":z=e.match("\x3c!--(.*)--\x3e")[1];
""!=z&&b(k).addClass(z);u.html(e);u.before(u.find(".poll_title"));r(u);u.find("#pollform").submit(function(){"undefined"!=typeof b(this).find("input[name=poll_answer]:checked").val()&&(f.fadeIn(),b.post(g+"ezg_data/poll.php",b(this).serialize(),function(e,g){u.find("#formcontainer").fadeOut(100,function(){b(this).html(e);r(this);f.fadeOut()})}));return!1});f.fadeOut()})})}})(jQuery);
(function(b){b.fn.ranking=function(e){e=b.extend({cnt:5,url:"",rsw:80,numbers:!1,vote:!1},e||{});return this.each(function(){function r(f,g){d=b(f).prevUntil(".ranking_result").addBack();g?d.addClass("ranking_star_active"):d.removeClass("ranking_star_active");e.numbers&&(g?d.css({opacity:.7}):d.css({opacity:1}))}function k(f,g,r){b(f).find(".ranking_progress").remove();pr=b('<span class="ranking_progress"'+(r?' onclick="$(this).remove()"':"")+"></span>");wi=g/e.cnt*e.rsw;e.numbers&&pr.css({opacity:.7});
pr.css({width:"0px"}).prependTo(f);pr.animate({width:wi+"px"})}if(b(this).hasClass("ready"))return!0;b(this).addClass("ready");var f=this,g=b(this).find(".ranking_result");val=b(g).text();id=b(g).attr("rel");dt=b(g).attr("data");voted="0"==dt;direct="2"==dt;rating=3==dt;voted||direct||g.empty().addClass("ranking_result_locked");if(e.vote)voted||(b(this).find(".ranking_result").append('<span class="ranking_vote"><i class="icon-thumbs-up"></i></span>'),b(this).find(".ranking_vote").click(function(){b.get(e.url,
{action:"ranking",entry_id:b(f).find(".ranking_result").attr("rel"),value:"1"},function(e){b(f).find(".ranking_result").empty().removeClass("ranking_result_locked").html("<span>"+e+"</span>")})}));else for(i=e.cnt;0<i;i--){g=b('<span class="ranking_star" rel="'+i+'">'+(e.numbers?"<span>"+i+"</span>":"")+"</span>");if(!voted||direct)g.mouseover(function(){r(this,!0)}).mouseout(function(){r(this,!1)}),g.click(function(){rating?(v=this.getAttribute("rel"),b(f).find(".rating_value").val(v),k(f,v,1)):
b.get(e.url,{action:"ranking",entry_id:b(f).find(".ranking_result").attr("rel"),value:this.getAttribute("rel")},function(e){b(f).find(".ranking_star").unbind("click");b(f).find(".ranking_result").empty().removeClass("ranking_result_locked").html("<span>"+e+"</span>");k(f,e,0)})});g.prependTo(f)}voted&&k(f,val,0);b(".ranking").css("visibility","visible")})}})(jQuery);
(function(b){b.fn.resizeImg=function(e){e=b.extend({max:0},e||{});return this.each(function(){var e=this,k=b(e).attr("rel").split(","),f=parseInt(k[0],10),g=parseInt(k[1],10),u=2<k.length,z="",E=b(e).width(),C=b(e).height(),m=b(e).outerWidth(!0),B=b(e).outerHeight(!0),D=b(e).css("float"),A=b(e).parent();3<k.length&&(z=k[3]);mar=A.hasClass("rvps1")?";margin:0 auto;":A.hasClass("rvps2")?";margin-left:auto;":"";b(e).css({"z-index":3,position:"absolute",left:0});b(e).wrap('<div style="position:relative;z-index:1;width:'+
m+"px;height:"+B+"px;float:"+D+mar+'" />');b(e).hover(function(){var m=-1<z.indexOf("l"),k=-1<z.indexOf("t");if(u&&""==z){var C=b(e).parents("td");null!=C&&(cx=b(C).parent().children(),col=cx.index(b(C)),rx=b(C).parent().parent().children(),row=rx.index(b(C).parent()),col==cx.length-1&&(m=1),row==rx.length-1&&(k=1))}zz={width:f+"px",height:g+"px"};m&&(zz.left="-"+(f/2+1)+"px");k&&(zz.top="-"+(g/2+1)+"px");b(this).parent().css({"z-index":2});b(this).stop().animate(zz,400)},function(){b(this).stop().animate({width:E+
"px",height:C+"px",left:"0px",top:"0px"},100,function(){b(this).parent().css("z-index",1)})})})}})(jQuery);
(function(b){b.fn.xzoom=function(e){e=b.extend({max:0,loupe:0,loupeSize:1.5},e||{});return this.each(function(){function r(){C=b(f).width();m=b(f).height();B=b(f).outerWidth(!0);D=b(f).outerHeight(!0);b(".zoomed_wrap",f).css({width:B,height:D});b(".mt").css({width:C,height:m})}function k(k){var r=new Image;r.src=b(k.currentTarget).prev().attr("src");u=r.width;g=u/C;E=Math.ceil(m/g);z=e.loupe?E+=50*e.loupeSize:Math.ceil(C/g);o=b(f).offset();oX=o.left;oY=o.top;x=k.pageX-oX;y=k.pageY-oY;e.loupe?(lx=
0>x?0:x>C?C-z:x-z/2,ly=0>y?0:y>m?m-E:y-E/2):(lx=x<z/2?0:x>C-z/2?C-z:x-z/2,ly=y<E/2?0:y>m-E/2?m-E:y-E/2);lx2=0>x?0:x>C?C-z:x;ly2=0>y?0:y>m?m-E:y}var f=this,g,u,z,E,C,m,B,D,A=b(f).css("float");p=b(f).parent();mar=p.hasClass("rvps1")?";margin:0 auto;":p.hasClass("rvps2")?";margin-left:auto;":"";b(f).wrap('<div class="zoomed_wrap" style="position:relative;cursor:move;z-index:1;float:'+A+mar+'" />');r();b("<img/>").attr("src",b(this).attr("src")).load(function(){mt=b('<div class="mt" style="position:absolute;top:0;left:0;z-index:100;background:url(.);width:'+
C+"px;height:"+m+'px" />').mouseenter(function(g){C==b(f).width()&&m==b(f).height()||r();bg="background:url('"+b(f).attr("src")+"');";e.loupe||(xz=b('<div class="zoomed" style="'+bg+"position:absolute;display:none;width:"+C+"px;height:"+m+"px;left:"+(C+5)+'px;top:0px;" />'),b(f).parent().append(xz),xz.fadeIn("fast"));k(g);b(f).parent().append('<div class="lens" style="'+(e.loupe?bg:"")+"position:absolute;top:"+ly+"px;left:"+lx+"px;width:"+(z-4)+"px;height:"+(E-4)+'px;" />')}).mousemove(function(m){k(m);
pX=lx*g;pY=ly*g;e.loupe?(pX=lx2*g-z/2,pY=ly2*g-E/2,b(f).parent().find(".lens").css({left:lx+"px",top:ly+"px","background-position":-pX+"px "+-pY+"px"})):(b(f).parent().find(".lens").css({left:lx+"px",top:ly+"px"}),b(f).parent().find(".zoomed").css({"background-position":-pX+"px "+-pY+"px"}))}).mouseleave(function(){b(f).parent().find(".zoomed,.lens").remove()});b(f).parent().append(mt)})})}})(jQuery);
(function(b){b.fn.x_accordion=function(e){e=b.extend({active:0,autoHeight:!0,updAct:"click",collapsible:!1,transDur:400,header:"",tab:""},e||{});return this.each(function(){function r(g){var m=b(E[f]),k=b(E[g]),r=k.css("overflow"),u=0,z={},H={},J;J=k[0].style.width;k.width(parseInt(k.parent().width(),10)-parseInt(k.css("paddingLeft"),10)-parseInt(k.css("paddingRight"),10)-(parseInt(k.css("borderLeftWidth"),10)||0)-(parseInt(k.css("borderRightWidth"),10)||0));b.each(["height","paddingTop","paddingBottom"],
function(e,f){H[f]="hide";var g=(""+b.css(k[0],f)).match(/^([\d+-.]+)(.*)$/);z[f]={value:g[1],unit:g[2]||"px"}});k.css({height:0,overflow:"hidden"}).show();m.animate(H,{step:function(b,e){"height"==e.prop&&(u=0===e.end-e.start?0:(e.now-e.start)/(e.end-e.start));k[0].style[e.prop]=u*z[e.prop].value+z[e.prop].unit},duration:e.transDur,complete:function(){k.css("height","");k.css({width:J,overflow:r})}})}function k(g){-1<f&&b(E[f]).stop(!0,!0);0>f?(b(E[g]).slideDown(e.transDur),f=g):g!=f?(b(z[f]).removeClass("active"),
r(g),f=g):(b(E[g]).slideToggle(e.transDur),f=b(z[g]).hasClass("active")?-1:g);b(z[g]).toggleClass("active")}var f=-1;if(null!=b(this)){var g=b(this).attr("id"),u=b.parseQuery();null!=u[g]&&(e.active=parseInt(u[g])-1);var z=b(e.header),E=b(e.tab).css({display:"none",zoom:"1"});z.each(function(f){b(z[f]).bind(e.updAct,function(b){k(f)})});-1<e.active&&k(e.active);this.slideTo=function(b){k(b)}}})}})(jQuery);
(function(b){b.fn.lazyLoad=function(e){var r=this;if(0==b(r).length)return r;var k=b(r).attr("data-src");if(null==k)return r;var f=new Image;f.src=k;f.onload=function(){b(r).attr("src",k).removeClass(e).removeAttr("data-src");if("undefined"!==typeof window.callback_lazyLoad)b(r)[window.callback_lazyLoad](window.callback_lazyLoad_params)};return r};b.fn.rssticker=function(e){e=b.extend({height:120,width:300,speed:1E3,autoplay:!0,delay:3E3,hor:!0,hidebtn:!0,count:1},e||{});return this.each(function(){function r(f,
g){nh=0;g||(nh+=parseInt(b(A).find("li:last").attr("rel")));fi=f?b(A).children("li"):b(A).find("li:first").nextAll();b(fi).slice(0,g?e.count:e.count-1).each(function(){nh+=parseInt(b(this).attr("rel"))});return nh}function k(){var e=parseInt(b(A).width()),f=parseInt(b(A).offset().left),g=parseInt(b(A).height()),k=parseInt(b(A).offset().top);b(A).find("li").each(function(){var m=parseInt(b(this).width()),r=parseInt(b(this).offset().left),u=parseInt(b(this).height()),I=parseInt(b(this).offset().top);
b(this).find("img").length&&null!=b(this).find("img").attr("data-src")&&r>=f&&r+m<=2*(f+e)&&I>=k&&I+u<=2*(k+g)&&b(this).find("img").lazyLoad("img_loader")})}function f(){clearTimeout(C);D&&(fi=b(A).find("li:first"),e.height=fi.height(),b(G).animate({height:r(0,1)},e.speed));b(A).find("li:first").animate(e.hor?{marginLeft:"-"+e.width+"px"}:{marginTop:"-"+e.height+"px"},e.speed,function(){b(this).detach().appendTo(A).css(e.hor?{marginLeft:J}:{marginTop:H});!E&&e.autoplay&&g(0)});clearTimeout(m);m=setTimeout(k,
e.delay/3)}function g(b){clearTimeout(B);B=setTimeout(f,0==b?e.delay:b)}function u(){E=0;e.hidebtn&&b(F).find(".ctrls").hide();g(0)}function z(){E=1;b(F).find(".ctrls").show();clearTimeout(B)}var E=0,C=0,m=0,B=0,D="auto"==e.height,A=this,F=b(this).parent();fi=b(A).find("li:first");fi.find("img").length&&null!=fi.find("img").attr("data-src")&&fi.find("img").lazyLoad("img_loader");fi_width=fi.width();var H=b(fi).css("marginTop"),J=b(fi).css("marginLeft"),G=e.hor?F:A,I=b(A).find("li").length>e.count;
D&&(b(A).find("li").each(function(){b(this).css("height",b(this).height())}),b(A).children("li").each(function(e){b(this).attr("rel",b(this).outerHeight(!0))}),b(G).css("height",r(1,1)));I&&(html='<div class="ctrls" style="'+(e.hidebtn?"display:none;":"")+'"><span class="ctrlup'+(e.hor?" hor":"")+'"></span><span class="ctrldo'+(e.hor?" hor":"")+'"></span></div>',b(html).appendTo(F),b(F).find(".ctrlup").click(function(){f()}),b(F).find(".ctrldo").click(function(){clearTimeout(C);D&&(fi=b(A).find("li:last"),
e.height=fi.height(),b(G).animate({height:r(1,0)},e.speed));b(A).find("li:last").detach().prependTo(A).css(e.hor?{marginLeft:"-"+e.width+"px"}:{marginTop:"-"+e.height+"px"}).animate(e.hor?{marginLeft:J}:{marginTop:H},e.speed);clearTimeout(m);m=setTimeout(k,e.delay/3)}));b(window).load(function(){function e(){fi.width()>f.width()||b("html").hasClass("resp")?(b(A).find("li.rs").width(f.width()),g=!0):g&&(b(A).find("li.rs").width(fi_width),g=!1)}var f=get_parent(A),g=!1;e();b(window).resize(function(){e()})});
e.autoplay&&I&&(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i)?b(A).bind("touchstart",function(){z()}).bind("touchend",function(){C=setTimeout(u,3E3)}):b(F).hover(function(){z()},function(){u()}),g(0))})}})(jQuery);
(function(b){b.fn.mmenu_animation=function(e){e=b.extend({animSpeed:500},e||{});return this.each(function(){var r="ontouchstart"in window,k=/iPad|iPod|iPhone/.test(navigator.platform)&&"matchMedia"in window;if(r&&!k){var f=b(".mmenu.level1");b(f).attr("rel","0").bind("touchstart",function(e){e="0"==b(this).attr("rel");b(f).attr("rel",0);b(this).attr("rel",e?"1":"0");this.focus()}).bind("click",function(e){"1"==b(this).attr("rel")&&e.preventDefault()})}b(this).children("li").each(function(){var f=
b(this),k=f.children(".megamenu");0<k.length?b(k).children("ul:first").css({visibility:"visible",display:"block"}):k=f.children("ul:first");k&&(k.css({display:"none"}),f.mouseover(function(b){k.hasClass("active")||k.addClass("active").stop(!0,!0).css({overflow:"hidden",height:"auto"}).animate({height:"show"},500,function(){k.css({overflow:"visible"})})}),f.mouseleave(function(b){k.stop(!0,!0).hide().removeClass("active")}),b(k).children("li").each(function(f,g){var k=b(g),m=k.children("ul:first");
m&&(m.css({display:"none"}),k.mouseover(function(b){m.hasClass("active")||m.addClass("active").animate({height:"show",width:"show"},e.animSpeed)}),k.mouseleave(function(b){m.stop(!0,!0).hide().removeClass("active")}))}))})})}})(jQuery);
(function(b){b.fn.float_login=function(e){e=b.extend({animSpeed:500,d:0,op:!1,pos:"top",cook:!1,path:"",pageid:0,lang:""},e||{});return this.each(function(){function r(){0<b(".logout_float").length&&b("#openLogin").hide()}function k(b){"left"==e.pos?b.animate({width:"show",marginLeft:"show",marginRight:"show",paddingLeft:"show",paddingRight:"show"},500):b.slideDown("slow")}function f(){b("#login_register,#forgot_pwd").click(function(e){e.preventDefault();b("#frm_login_error").empty();b.get(this.getAttribute("href"),
function(e){b("#register_form").hide().html(e).slideDown(500)})})}var g=this;b("#openLogin").click(function(){e.cook&&setCookie("fl_open","1","1000","/");k(b(g))});b("#closeLogin").click(function(){e.cook&&setCookie("fl_open","0","1000","/");var f=b(g);"left"==e.pos?f.animate({width:"hide",marginLeft:"hide",marginRight:"hide",paddingLeft:"hide",paddingRight:"hide"},500):f.slideUp("slow")});b("#toggle a").click(function(e){e.preventDefault();b("#toggle a").toggle()});fr_l=b("#frm_login");null!=fr_l&&
(fr_l.append('<input type="hidden" id="cc" name="cc" value="1"/>'),fr_l.submit(function(e){e.preventDefault();b(".frmhint").empty();b("#div_frm_login").addClass("ajl").css("opacity","0.2").delay(500);b.post(fr_l.attr("action"),fr_l.serialize(),function(e){b("#div_frm_login").removeClass("ajl").css("opacity","1");if("1"==e)cc=b(".frm_login #cc"),cc.val("0"),fr_l.unbind("submit"),fr_l.submit(),cc.val("1");else if("0"==e.charAt(0))for(errors=e.substring(1).split("|"),i=0;i<errors.length;i+=2)b("#frm_login_"+
errors[i]).append("<br />"+errors[i+1])})}));if(e.cook){var u=getCookie("fl_open");e.op=null==u||"1"==u}e.op&&(k(b(g)),b("#toggle a").toggle());e.d&&b(".logged_info").length?b.get(e.path+"documents/centraladmin.php",{process:"logged",lang:e.lang,root:""==e.path?1:0,vert:"left"==e.pos?1:0,pageid:e.pageid,nodw:1},function(e){data=b.parseJSON(e);b.each(data,function(e,g){0==e?b(".logged_info").replaceWith(g):b(".reg_links").prepend(g);f()});r()}):r()})}})(jQuery);
(function(b){b.fn.scrollbar=function(e){e=b.extend({slideInt:4E3,delay:4E3,navbar:!1,nb_numbers:!0,nb_hide:!1,rtl:!1,autoplay:!1,sc:!1,mw:1,tc:0,max:3,inf:0,scrollBymax:0,navw:80,cid:0,icont:"tc",iscroll:"t",cont:"g"},e||{});return this.each(function(){function r(f,g,k){var r=e.rtl,I=r?"right":"left",u={},z={},A={};u["margin-"+I]=r?g:-g;z["margin-"+I]=r?f:-f;g!=f&&F.css(u);F.animate(z,k?10:1E3);e.sc&&(p=100/(m.length-e.max),p*=e.cid,A[I]=p+"%",b(".ui-slider-handle").animate(A,1E3))}function k(f,g){el=
b('<div id="'+f+'"></div>');e.tc&&el.append(g);b(z).append(el);return el}function f(){u(E,0);I=setInterval(function(){u(E,0)},e.slideInt)}function g(f){e.inf||(ls=m.length-1,fr=100/ls,-1<f&&(e.cid=Math.floor(f/fr)),id=e.cid,0==id?b(V).hide():b(V).show(),id+e.max-1==ls?b(T).hide():b(T).show())}function u(f,k){e.navbar&&b(U[e.cid]).removeClass("active selected");k&&clearInterval(I);ls=m.length-1;inf=e.inf;id=e.cid;!inf&&(0==id&&0>f||0<f&&id+e.max>ls)?clearInterval(I):(J.stop(!0,!0),inf&&0>=id&&0>f?
(e.cid=ls+1+f,inx=e.cid+M+E,sl=inx*B-L+K,ml=(inx+f)*B-L+K):inf&&id+f>ls&&0<f?(e.cid=0,inx=M-E,sl=inx*B-L+K,ml=(inx+f)*B-L+K):(e.cid+=f,sl=ml=(e.cid+M)*B-L+K),r(ml,sl,0));e.navbar&&b(U[e.cid]).addClass("active selected");g(-1)}var z=this,E=e.scrollBymax?e.max:1;if(null!=b("#"+e.cont+"_tc")){var C=b.parseQuery();null!=C[e.cont]&&(e.cid=parseInt(C[e.cont])-1);var m=b("#"+e.cont+"_tc .tb"),B=m.first().outerWidth(!1),D=m.first().width(),A=B-D,F=b("#"+e.cont+"_tc"),H=b(z).attr("id"),J=b("#"+e.cont+"_t"),
G=J.outerWidth(),I=0,M=0,V="#"+e.cont+"_prev",T="#"+e.cont+"_next",L=e.rtl?F.width():0,K=e.rtl?B:0,C=m.length>e.max;if(e.sc){J.append('<div class="sc-bar-wrap"><div class="sc-bar"></div></div>');var W=b(".sc-bar").slider({slide:function(b,e){F.width()>J.width()?F.css("margin-left",Math.round(e.value/100*(J.width()-F.width()))+"px"):F.css("margin-left",0);g(e.value)}}),R=W.find(".ui-slider-handle").mousedown(function(){W.width(R.width())}).mouseup(function(){W.width("100%")}).wrap("<div class='ui-handle-helper-parent'></div>").parent();
J.css("overflow","hidden");setTimeout(function(){F.width();J.width();F.width();W.find(".ui-slider-handle").css({width:100,"margin-left":-50});R.width("").width(W.width()-100)},10)}C&&(k(H+"_next","&rsaquo;").bind("click",function(){u(E,1)}),k(H+"_prev","&lsaquo;").bind("click",function(){u(-E,1)}));if(e.navbar){el=b('<div class="'+e.cont+'_tc_navbar"></div>');m.each(function(f){a=b('<a class="'+e.cont+'_tc_navbar_item" style="outline:0" href="#">'+(e.nb_numbers?f+1:"&nbsp;")+"</a>").bind("click",
function(b){b.preventDefault();u(f-e.cid,1)}).bind("mouseenter",function(e){b(this).hasClass("selected")||b(this).addClass("active")}).bind("mouseleave",function(e){b(this).hasClass("selected")||b(this).removeClass("active")});b(el).append(a)});b(z).append(el);var U=b("."+e.cont+"_tc_navbar_item")}if(e.nb_hide){var ea=b("."+e.cont+"_tc_navbar").hide();b("#"+e.cont).mouseenter(function(){b(ea).animate({height:"show"},500)}).mouseleave(function(){b(ea).animate({height:"hide"},500)})}-1==e.cid&&(e.cid=
Math.floor(Math.random()*(m.length-1-0+1)+0));e.inf&&C&&(F.append(m.slice(0,e.max).clone()),tl=m.length,F.prepend(m.slice(tl-e.max,tl).clone()),M=e.max);H=(e.cid+M)*B-L+K;C&&r(H,H,1);e.navbar&&b(U[e.cid]).addClass("active selected");g(-1);e.autoplay&&(I=setTimeout(f,e.delay),b(this).hover(function(){clearInterval(I)},function(){I=setTimeout(f,e.delay/2)}));b(window).load(function(){function f(b){th_w=1<z?I?b-A:D:b;B=th_w+A;F.attr("style","max-width: "+k.length*B+"px !important; width:"+k.length*B+
"px !important; margin-left:-"+(e.cid+(0<r?r:1))*B+"px");J.attr("style",I?"max-width: "+b+"px !important; width:"+b+"px !important":"");k.attr("style",I?"height: auto; overflow:auto; max-width: "+th_w+"px !important; width:"+th_w+"px !important;":"");L=e.rtl?F.width():0;K=e.rtl?B:0;k.find("div").css("max-width","100%")}function g(){G>u.width()||b("html").hasClass("resp")?(I=!0,f(u.width()>C?u.width()-C:u.width()-20)):I&&(I=!1,f(G))}var k=b("#"+e.cont+"_tc .tb"),r=parseInt((k.length-m.length)/2),I=
!1,u=get_parent(J),z=parseInt(G/B),C=b(V).width()+b(T).width();A=0<A?A:0;g();b(window).smartresize(function(){g()})});this.slideTo=function(b){u(b,1)}}})}})(jQuery);
(function(b){b.fn.x_tabs=function(e){e=b.extend({dir:"h",s:"#",slideInt:4E3,transDur:700,updAct:"click",anim:!0,autoplay:!0,stop:!0,id:0,ah:1,gmid:-1},e||{});return this.each(function(){function r(e){e=b(J[e]).find(".gmaps");e.length&&initialize(b(e).attr("id"))}function k(f){b(J[D]).stop(!0,!0);b(G[D]).removeClass("ct_act").addClass("ct");F&&b(H[D]).removeClass("ct_act").addClass("ct");e.anim?(du=e.transDur/2,b(J[D]).fadeOut(du,function(){b(this).hide();e.ah&&b(g).find(".di").css("height",b(J[f]).outerHeight());
b(J[f]).show();r(f);b(J[f]).hide();b(J[f]).fadeIn(du,function(){var e=b(J[f]);e.css("display","");b.support.opacity||e[0].style.removeAttribute("filter")})})):(b(J[D]).hide(),b(J[f]).show(),r(f));D=f;b(G[f]).removeClass("ct").addClass("ct_act");F&&b(H[f]).removeClass("ct").addClass("ct_act");ifr=b(J[f]).find(".ifr_ah");ifr.length&&(he=b(ifr).contents().height(),b(ifr).attr("height",he))}function f(){m=setInterval(function(){B=D;k(B+1>=J.length?0:B+1)},e.slideInt)}var g=this,u=b(g);if(null!=u){var z=
b(g).attr("id"),E="#"==e.s?"#"+z+"_":" .",C=b.parseQuery();null!=C[z]&&(e.id=parseInt(C[z])-1);var m=0,B=null,D=0;b(E+"di").show();var E="."+e.dir+"tab",C="."+e.dir+"div",A=e.dir+"_tabs_on",F=e.dir="h";if(!u.hasClass(A)){u.addClass(A);if(F)var H=b("#"+z).find(".litab");var J=b("#"+z).find(C).hide();0<e.id&&(D=0);var G=b("#"+z).find(E);k(e.id);e.autoplay&&f();G.each(function(f){b(G[f]).bind(e.updAct,function(b){D!=f&&(e.autoplay&&clearInterval(m),k(f));e.stop&&clearInterval(m)})});G.bind("mousedown",
function(){clearInterval(m)})}this.slideTo=function(b){e.autoplay&&clearInterval(m);k(b)}}})}})(jQuery);
(function(b){b.fn.cluetip=function(e,r){var k,f,g,u,z;"object"==typeof e&&(r=e,e=null);if("destroy"==e)return this.removeData("thisInfo").unbind(".cluetip");if(null!=b(this))return this.each(function(E){function C(){var e=b(window).width();0<F?A.width=F>e?e-20:F:0==F&&(A.width=b("html").hasClass("resp")?e-20:F)}function m(){var b=function(b){if(A.fixed){var e=X-b.pageX,f=R?R-b.pageY:W-b.pageY;D.bind("mousemove.cluetip",function(b){k.css({left:b.pageX+e,top:b.pageY+f})})}};D.bind("mouseenter.cluetip",
function(e){Ka(e);b(e)}).bind("mouseleave.cluetip",function(b){A.sticky&&!/click|toggle/.test("hover")||Y();D.unbind("mousemove.cluetip")});D.bind("mouseover.cluetip",function(b){D.attr("title","")}).bind("mouseleave.cluetip",function(b){D.attr("title",D.data("thisInfo").title)})}var B=this,D=b(this),A=b.extend({className:"default",width:0,height:"auto",dir:"auto",max:!1,tipDelay:0,offset:8,attribute:"rel",arrows:!0,sticky:!1,mouseOutClose:!1,clickThrough:!0,fixed:!1,truncate:0},r||{},b.metadata?
D.metadata():b.meta?D.data():{});D.data("thisInfo",{title:B.title});var F=A.width;b("#"+A.className).length||(b(['<div id="'+A.className+'">','<div class="tip"><h3 class="tip-title"></h3><div class="tip-text"/><div class="cluetip-arrows"/></div></div>'].join("")).appendTo("body").hide(),k=b("#"+A.className).css({position:"absolute"}),g=b(".tip").css({position:"relative",zIndex:1003}),f=b(".tip-text"),u=b(".tip-title"),z=b(".cluetip-arrows"),A.sticky&&(b('<div id="cluetip-close" style="position:absolute;top:0;right:3px;font: bold 12px/12px Arial"><a href="#">x</a></div>').prependTo(g).bind("click.cluetip",
function(){Y();return!1}),A.mouseOutClose&&k.bind("mouseleave.cluetip",function(){Y()})));C();var H=D.attr(A.attribute),J=A.className,G=parseInt(A.offset,10),I="",M,V,T=isNaN(parseInt(A.height,10))?"auto":/\D/g.test(A.height)?A.height:A.height+"px",L,K,W,R,U,ea=parseInt(A.width,10),P=ea+(parseInt(k.css("paddingLeft"),10)||0)+(parseInt(k.css("paddingRight"),10)||0),ca,ba,N,X,aa,Q,O="title"!=A.attribute?D.attr("title"):"";void 0===O&&(O="");U=O.split("::");var O=U.shift(),Ka=function(g){k.removeClass();
0<ea&&k.css({width:ea});H==D.attr("href")&&D.css("cursor","help");th=D.children("a,img").length?D.children():D;ba=b(th).outerHeight();ca=b(th).outerWidth();K=W=b(th).offset().top;N=b(th).offset().left;aa=g.pageX;L=b(document).scrollTop();Q=b(window).width();X=ca>N&&N>P&&0<P||N+ca+P+G>Q?N-P-G:ca+N+G;if("area"===B.tagName.toLowerCase()||ca+P>Q)aa+20+P>Q?(k.addClass(J),X=0<=aa-P-G?aa-P-G-parseInt(k.css("marginLeft"),10)+parseInt(f.css("marginRight"),10):aa-P/2):X=aa+G;var m=0>X?g.pageY+G:g.pageY;k.css({zIndex:1003});
V=b(window).height();e?("function"==typeof e&&(e=e.call(B)),f.html(e),0<A.tipDelay?setTimeout(function(){S(m)},A.tipDelay):S(m)):U&&(f.html(U.length?U[0]:""),0<A.tipDelay?setTimeout(function(){S(m)},A.tipDelay):S(m))},S=function(e){k.addClass(J);A.truncate&&(e=f.text().slice(0,A.truncate)+"...",f.html(e));b(".tip-text img").css("max-width",A.width-6);O?u.show().html(O):u.hide();f.css({overflow:"auto"==T?"visible":"auto"});A.max?f.css("max-height",T):f.css("height",T);M=k.outerHeight();P=k.outerWidth();
tipL=N+ca/2-P/2;0>tipL&&(tipL=N);tipL>N&&ca<P?tipL=N:tipL+P>Q&&(tipL=Q-P-5);R=K-M-G;I="top";if(R<L||"bottom"===A.dir)R=K+ba+G,I="bottom";"auto"===A.dir?(R+M-L>V&&za(),tipL+P>Q-10&&Aa()):"right"===A.dir?za():"left"===A.dir&&Aa();k.css({top:R,left:tipL}).removeClass().addClass(J+" tip_"+I);A.arrows&&z.show();k.fadeIn();b.fn.bgiframe&&k.bgiframe()},Aa=function(){R=K+ba/2-M/2;tipL=N-P-5;0>tipL&&(tipL=N);tipL>N&&ca<P?tipL=N:tipL+P>Q&&(tipL=(Q-P)/2);I="left"},za=function(){R=K+ba/2-M/2;R<L&&(R=L+5);tipL=
N+ca+G;tipL+P>Q&&(tipL=(Q-P)/2);I="right"},Y=function(){g.parent().hide().removeClass();f.empty();u.empty();D.removeClass("cluetip-clicked");O&&D.attr("title",O);D.css("cursor","");A.arrows&&z.css({top:""})};b(document).bind("hideCluetip",function(b){Y()});D[A.clickThrough?"unbind":"bind"]("click",function(){return!1});m();E=function(){C();ea=parseInt(A.width,10);P=ea+(parseInt(k.css("paddingLeft"),10)||0)+(parseInt(k.css("paddingRight"),10)||0);D.unbind("mouseenter.cluetip");D.unbind("mousemove.cluetip");
D.unbind("mouseover.cluetip");D.unbind("mouseleave.cluetip");m()};b(window).off("resize",E);b(window).resize(E)})}})(jQuery);
(function(b){var e=function(e,k){var f=b.extend({},b.fn.nivoSlider.defaults,k),g={currentSlide:0,currentImage:"",totalSlides:0,running:!1,paused:!1,stop:!1,controlNavEl:!1,hideCap:!1},u=b(e);u.data("nivo:vars",g).addClass("nivoSlider");u.css("position","relative");b(".nivoSlider img").addClass("nivoI");b(".nivoI",u).css({position:"absolute",top:0,left:0});var z=u.children();z.each(function(){var e=b(this),f="";e.is("img")||(e.is("a")&&(e.addClass("nivo-imageLink"),f=e),e=e.find("img:first"));e.width();
e.height();""!==f&&f.hide();e.hide();g.totalSlides++});b(".nivo-imageLink",u).css({position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"none","z-index":60,opacity:0,background:"#fff"});f.randomStart&&(f.startSlide=Math.floor(Math.random()*g.totalSlides));0<f.startSlide&&(f.startSlide>=g.totalSlides&&(f.startSlide=g.totalSlides-1),g.currentSlide=f.startSlide);b(z[g.currentSlide]).is("img")?g.currentImage=b(z[g.currentSlide]):g.currentImage=b(z[g.currentSlide]).find("img:first");b(z[g.currentSlide]).is("a")&&
b(z[g.currentSlide]).show();var E=b('<img class="nivo-main-image" src="#" />');E.attr("src",g.currentImage.attr("src")).show();u.append(E);b(window).resize(function(){f.scale&&u.children("img").width(u.width());E.attr("src",g.currentImage.attr("src"));E.stop().height("auto");b(".nivo-slice").remove();b(".nivo-box").remove()});u.append(b('<div class="nivo-caption"><div class="s_title"></div><div class="s_slogan"></div></div>').css({display:"none",position:"absolute","z-index":"89"}));-1E4<f.t&&b(".nivo-caption",
u).css({top:f.t,left:f.l});var C=function(e){var f=b(".nivo-caption",u);if(""!=g.currentImage.attr("title")&&void 0!=g.currentImage.attr("title")){var k="",m=g.currentImage.attr("title");"#"==m.substr(0,1)&&(m=b(m).html());p=m.indexOf("~");-1<p&&(k=m.substr(p+1),m=m.substr(0,p));"block"==f.css("display")?e.captionAni?b(".nivo-caption",u).fadeOut(e.animSpeed,function(){b(".nivo-caption .s_title",u).html(m);b(".nivo-caption .s_slogan",u).html(k);b(this).fadeIn(e.animSpeed)}):setTimeout(function(){b(".nivo-caption .s_title",
u).html(m);b(".nivo-caption .s_slogan",u).html(k)},e.animSpeed):(b(".nivo-caption .s_title",u).html(m),b(".nivo-caption .s_slogan",u).html(k),f.stop().fadeIn(e.animSpeed))}else f.stop().fadeOut(e.animSpeed)};-1E4<f.t&&b(".nivo-caption",u).css({top:f.t,left:f.l});f.hideCap||C(f);var m=0;!f.manualAdvance&&1<z.length&&(m=setInterval(function(){H(u,z,f,!1)},f.pauseTime));f.directionNav&&1<g.totalSlides&&(u.append('<div class="nivo-directionNav"><a class="nivo-prevNav">'+f.prevText+'</a><a class="nivo-nextNav">'+
f.nextText+"</a></div>"),f.directionNavHide&&(b(".nivo-directionNav",u).hide(),u.hover(function(){b(".nivo-directionNav",u).show()},function(){b(".nivo-directionNav",u).hide()})),b("a.nivo-prevNav",u).on("click",function(){if(g.running)return!1;clearInterval(m);m="";g.currentSlide-=2;H(u,z,f,"prev")}),b("a.nivo-nextNav",u).on("click",function(){if(g.running)return!1;clearInterval(m);m="";H(u,z,f,"next")}));if(f.controlNav){g.controlNavEl=b('<div class="nivo-controlNav"></div>');u.after('<div class="clear"></div>');
u.after(g.controlNavEl);for(var B=0;B<z.length;B++)if(f.controlNavThumbs){g.controlNavEl.addClass("nivo-thumbs-enabled");var D=z.eq(B);D.is("img")||(D=D.find("img:first"));D.attr("data-thumb")&&g.controlNavEl.append('<a class="nivo-control" rel="'+B+'"><img src="'+D.attr("data-thumb")+'" alt="" /></a>')}else g.controlNavEl.addClass("nivo-bullets"),g.controlNavEl.append('<a class="nivo-control" rel="'+B+'">'+(B+1)+"</a>");b("a:eq("+g.currentSlide+")",g.controlNavEl).addClass("active");b("a",g.controlNavEl).bind("click",
function(){if(g.running||b(this).hasClass("active"))return!1;clearInterval(m);m="";E.attr("src",g.currentImage.attr("src"));g.currentSlide=b(this).attr("rel")-1;H(u,z,f,"control")})}f.pauseOnHover&&u.hover(function(){g.paused=!0;clearInterval(m);m=""},function(){g.paused=!1;""!==m||f.manualAdvance||(m=setInterval(function(){H(u,z,f,!1)},f.pauseTime))});u.bind("nivo:animFinished",function(){E.attr("src",g.currentImage.attr("src"));g.running=!1;b(z).each(function(){b(this).is("a")&&b(this).hide()});
b(z[g.currentSlide]).is("a")&&b(z[g.currentSlide]).show();""!==m||g.paused||f.manualAdvance||(m=setInterval(function(){H(u,z,f,!1)},f.pauseTime));f.afterChange.call(this)});var A=function(e,f,g){b(g.currentImage).parent().is("a")&&b(g.currentImage).parent().show();b('img[src="'+g.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").width(f.scale?e.width():"").css("visibility","hidden").show();for(var k=b('img[src="'+g.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").parent().is("a")?
b('img[src="'+g.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").parent().height():b('img[src="'+g.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").height(),m=0;m<f.slices;m++){var r=Math.round(e.width()/f.slices);m===f.slices-1?e.append(b('<div class="nivo-slice" name="'+m+'"><img src="'+g.currentImage.attr("src")+'" style="position:absolute;'+(f.scale?"width:"+e.width()+"px;":"")+"height:auto; display:block !important; top:0; left:-"+(r+m*r-r)+
'px;" /></div>').css({left:r*m+"px",width:e.width()-r*m+"px",height:k+"px",opacity:"0",overflow:"hidden"})):e.append(b('<div class="nivo-slice" name="'+m+'"><img src="'+g.currentImage.attr("src")+'" style="position:absolute;'+(f.scale?" width:"+e.width()+"px;":"")+"height:auto; display:block !important; top:0; left:-"+(r+m*r-r)+'px;" /></div>').css({left:r*m+"px",width:r+"px",height:k+"px",opacity:"0",overflow:"hidden"}))}b(".nivo-slice",e).height(k);f.scale&&E.stop().animate({height:b(g.currentImage).height()},
f.animSpeed)},F=function(e,f,g){b(g.currentImage).parent().is("a")&&b(g.currentImage).parent().show();b('img[src="'+g.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").width(f.scale?e.width():"").css("visibility","hidden").show();for(var k=Math.round(e.width()/f.boxCols),m=Math.round(b('img[src="'+g.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").height()/f.boxRows),r=0;r<f.boxRows;r++)for(var u=0;u<f.boxCols;u++)u===f.boxCols-1?e.append(b('<div class="nivo-box" name="'+
u+'" rel="'+r+'"><img src="'+g.currentImage.attr("src")+'" style="position:absolute;'+(f.scale?"width:"+e.width()+"px;":"")+"height:auto; display:block; top:-"+m*r+"px; left:-"+k*u+'px;" /></div>').css({opacity:0,left:k*u+"px",top:m*r+"px",width:e.width()-k*u+"px"})):e.append(b('<div class="nivo-box" name="'+u+'" rel="'+r+'"><img src="'+g.currentImage.attr("src")+'" style="position:absolute;'+(f.scale?"width:"+e.width()+"px;":"")+"height:auto; display:block; top:-"+m*r+"px; left:-"+k*u+'px;" /></div>').css({opacity:0,
left:k*u+"px",top:m*r+"px",width:k+"px"})),b('.nivo-box[name="'+u+'"]',e).height(b('.nivo-box[name="'+u+'"] img',e).height()+"px");f.scale&&E.stop().animate({height:b(g.currentImage).height()},f.animSpeed)},H=function(e,f,g,k){var m=e.data("nivo:vars");m&&m.currentSlide===m.totalSlides-1&&g.lastSlide.call(this);if((!m||m.stop)&&!k)return!1;g.beforeChange.call(this);k?("prev"===k&&E.attr("src",m.currentImage.attr("src")),"next"===k&&E.attr("src",m.currentImage.attr("src"))):E.attr("src",m.currentImage.attr("src"));
m.currentSlide++;m.currentSlide===m.totalSlides&&(m.currentSlide=0,g.slideshowEnd.call(this));0>m.currentSlide&&(m.currentSlide=m.totalSlides-1);b(f[m.currentSlide]).is("img")?m.currentImage=b(f[m.currentSlide]):m.currentImage=b(f[m.currentSlide]).find("img:first");g.controlNav&&(b("a",m.controlNavEl).removeClass("active"),b("a:eq("+m.currentSlide+")",m.controlNavEl).addClass("active"));g.hideCap||C(g);b(".nivo-slice",e).remove();b(".nivo-box",e).remove();var r=g.effect;k="";"random"===g.effect&&
(k="sliceDownRight sliceDownLeft sliceUpRight sliceUpLeft sliceUpDown sliceUpDownLeft fold fade boxRandom boxRain boxRainReverse boxRainGrow boxRainGrowReverse slideInRight slideInLeft pushLeft".split(" "),r=k[Math.floor(Math.random()*(k.length+1))],void 0===r&&(r="fade"));-1!==g.effect.indexOf(",")&&(k=g.effect.split(","),r=k[Math.floor(Math.random()*k.length)],void 0===r&&(r="fade"));m.currentImage.attr("data-transition")&&(r=m.currentImage.attr("data-transition"));m.running=!0;var u=0,z=0,B=k=
"",D="";k="";if("sliceDown"===r||"sliceDownRight"===r||"sliceDownLeft"===r)A(e,g,m),z=u=0,k=b(".nivo-slice",e),"sliceDownLeft"===r&&(k=b(".nivo-slice",e)._reverse()),k.each(function(){var f=b(this);f.css({top:"0px"});z===g.slices-1?setTimeout(function(){f.animate({opacity:"1.0"},g.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+u):setTimeout(function(){f.animate({opacity:"1.0"},g.animSpeed)},100+u);u+=50;z++});else if("sliceUp"===r||"sliceUpRight"===r||"sliceUpLeft"===r)A(e,g,m),z=u=
0,k=b(".nivo-slice",e),"sliceUpLeft"===r&&(k=b(".nivo-slice",e)._reverse()),k.each(function(){var f=b(this);f.css({bottom:"0px"});z===g.slices-1?setTimeout(function(){f.animate({opacity:"1.0"},g.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+u):setTimeout(function(){f.animate({opacity:"1.0"},g.animSpeed)},100+u);u+=50;z++});else if("sliceUpDown"===r||"sliceUpDownRight"===r||"sliceUpDownLeft"===r){A(e,g,m);var H=z=u=0;k=b(".nivo-slice",e);"sliceUpDownLeft"===r&&(k=b(".nivo-slice",e)._reverse());
k.each(function(){var f=b(this);0===z?(f.css("top","0px"),z++):(f.css("bottom","0px"),z=0);H===g.slices-1?setTimeout(function(){f.animate({opacity:"1.0"},g.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+u):setTimeout(function(){f.animate({opacity:"1.0"},g.animSpeed)},100+u);u+=50;H++})}else if("fold"===r)A(e,g,m),z=u=0,b(".nivo-slice",e).each(function(){var f=b(this),k=f.width();f.css({top:"0px",width:"0px"});z===g.slices-1?setTimeout(function(){f.animate({width:k,opacity:"1.0"},g.animSpeed,
"",function(){e.trigger("nivo:animFinished")})},100+u):setTimeout(function(){f.animate({width:k,opacity:"1.0"},g.animSpeed)},100+u);u+=50;z++});else if("fade"===r)A(e,g,m),B=b(".nivo-slice:first",e),B.css({width:e.width()+"px"}),B.animate({opacity:"1.0"},2*g.animSpeed,"",function(){e.trigger("nivo:animFinished")});else if("slideInRight"===r)A(e,g,m),B=b(".nivo-slice:first",e),B.css({width:"0px",opacity:"1"}),B.animate({width:e.width()+"px"},2*g.animSpeed,"",function(){e.trigger("nivo:animFinished")});
else if("slideInLeft"===r)A(e,g,m),B=b(".nivo-slice:first",e),B.css({width:"0px",opacity:"1",left:"",right:"0px"}),B.animate({width:e.width()+"px"},2*g.animSpeed,"",function(){B.css({left:"0px",right:""});e.trigger("nivo:animFinished")});else if("pushLeft"==g.effect){b(".nivo-main-image",e).css("visibility","hidden");b(".nivo-imageLink",e).css({opacity:"1.0"});var u=z=0,G=e.width(),ba,N,X;prev_slide=0==m.currentSlide?m.totalSlides-1:m.currentSlide-1;N=b(f[prev_slide]);ba=N.is("img")?N:N.children();
X=b(f[m.currentSlide]);f=X.is("img")?X:X.children();null!=f&&f.css({display:"block"});X.css({left:G,display:"block"});N.css({left:0,display:"block"});null!=ba&&ba.css({display:"block"});N.animate({left:"-"+G},{step:function(b,e){"left"==e.prop&&(percentDone=0===e.end-e.start?0:(e.now-e.start)/(e.end-e.start));X.css({left:G-percentDone*G+"px"})},duration:2*g.animSpeed,complete:function(){null!=ba&&ba.css({display:"none"});N.css({display:"none",left:0});b(".nivo-slice",e).css({opacity:"1.0"});e.trigger("nivo:animFinished")}})}else if("boxRandom"===
r)F(e,g,m),D=g.boxCols*g.boxRows,u=z=0,k=J(b(".nivo-box",e)),k.each(function(){var f=b(this);z===D-1?setTimeout(function(){f.animate({opacity:"1"},g.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+u):setTimeout(function(){f.animate({opacity:"1"},g.animSpeed)},100+u);u+=20;z++});else if("boxRain"===r||"boxRainReverse"===r||"boxRainGrow"===r||"boxRainGrowReverse"===r){F(e,g,m);var D=g.boxCols*g.boxRows,aa=u=z=0,Q=0,O=[];O[aa]=[];k=b(".nivo-box",e);if("boxRainReverse"===r||"boxRainGrowReverse"===
r)k=b(".nivo-box",e)._reverse();k.each(function(){O[aa][Q]=b(this);Q++;Q===g.boxCols&&(aa++,Q=0,O[aa]=[])});for(f=0;f<2*g.boxCols;f++){m=f;for(k=0;k<g.boxRows;k++)0<=m&&m<g.boxCols&&(function(f,k,m,u,z){var A=b(O[f][k]),B=A.width(),C=A.height();"boxRainGrow"!==r&&"boxRainGrowReverse"!==r||A.width(0).height(0);u===z-1?setTimeout(function(){A.animate({opacity:"1",width:B,height:C},g.animSpeed/1.3,"",function(){e.trigger("nivo:animFinished")})},100+m):setTimeout(function(){A.animate({opacity:"1",width:B,
height:C},g.animSpeed/1.3)},100+m)}(k,m,u,z,D),z++),m--;u+=100}}},J=function(b){for(var e,f,g=b.length;g;e=parseInt(Math.random()*g,10),f=b[--g],b[g]=b[e],b[e]=f);return b},G=function(b){this.console&&"undefined"!==typeof console.log&&console.log(b)};this.stop=function(){b(e).data("nivo:vars").stop||(b(e).data("nivo:vars").stop=!0,G("Stop Slider"))};this.start=function(){b(e).data("nivo:vars").stop&&(b(e).data("nivo:vars").stop=!1,G("Start Slider"))};f.afterLoad.call(this);return this};b.fn.nivoSlider=
function(r){return this.each(function(k,f){var g=b(this);if(g.data("nivoslider"))return g.data("nivoslider");var u=new e(this,r);g.data("nivoslider",u)})};b.fn.nivoSlider.defaults={effect:"random",slices:15,boxCols:8,boxRows:4,t:-1E4,l:-1E4,animSpeed:1E3,pauseTime:3E3,startSlide:0,scale:!0,directionNav:!0,directionNavHide:!0,controlNav:!1,controlNavThumbs:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next",captionAni:!1,randomStart:!1,beforeChange:function(){},afterChange:function(){},
slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}};b.fn._reverse=[].reverse})(jQuery);
jQuery.SmoothScroll=function(b){function e(b){return b.replace(/^\//,"").replace(/(index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")}function r(e){e=$(e).offset().top;"undefined"!==typeof SmoothScrollOffset&&(e+=SmoothScrollOffset);$(f).animate({scrollTop:e},b,function(){})}var k=e(location.pathname),f=function(b){for(var e=0,f=arguments.length;e<f;e++){var k=arguments[e],r=$(k);if(0<r.scrollTop())return k;r.scrollTop(1);var m=0<r.scrollTop();r.scrollTop(0);if(m)return k}return[]}("html","body");
""!=location.hash&&(window.scrollTo(0,0),r(location.hash));$("a[href*=#]").each(function(){var b=e(this.pathname)||k;k!=b||location.hostname!=this.hostname&&this.hostname||!this.hash.replace(/#/,"")||this.hash&&$(this).click(function(b){b.preventDefault();r(this.hash)})})};
$.fn.extend({reflect:function(b){b=$.extend({height:.165,opacity:.5},b);return this.unreflect().each(function(){var e=this;if(/^img$/i.test(e.tagName)){var r=function(){var k=e.width,f=e.height,g,r,z,E;r=Math.floor(1<b.height?Math.min(f,b.height):f*b.height);g=$("<canvas />")[0];if(g.getContext){z=g.getContext("2d");try{$(g).attr({width:k,height:r}),z.save(),z.translate(0,f-1),z.scale(1,-1),z.drawImage(e,0,0,k,f),z.restore(),z.globalCompositeOperation="destination-out",E=z.createLinearGradient(0,
0,0,r),E.addColorStop(0,"rgba(255, 255, 255, "+(1-b.opacity)+")"),E.addColorStop(1,"rgba(255, 255, 255, 1.0)"),z.fillStyle=E,z.rect(0,0,k,r),z.fill()}catch(C){return}}$(g).css({display:"block",border:0});g=$(/^a$/i.test(e.parentNode.tagName)?"<span />":"<div />").insertAfter(e).append([e,g])[0];g.className=e.className;$.data(e,"reflected",g.style.cssText=e.style.cssText);$(g).css({width:k,height:f+r,overflow:"hidden"});e.style.cssText="display: block; border: 0px";e.className="reflected"};e.complete?
r():$(e).load(r)}})},unreflect:function(){return this.unbind("load").each(function(){var b=$.data(this,"reflected"),e;void 0!==b&&(e=this.parentNode,this.className=e.className,this.style.cssText=b,$.removeData(this,"reflected"),e.parentNode.replaceChild(this,e))})}});
(function(b){$.fn.livesearch=function(b){function r(b){b="undefined"!==typeof b?b:"";q=f.val().trim();C=g.serialize();qR=C.replace(/\+/g,"");if(2>$.trim(q).length)$("#"+u).html("").hide();else if(qR!=m||""!=b)m=qR,$.ajax({url:g.attr("action")+("shop"==k.lives_type?"?":"&")+C+("shop"==k.lives_type?"&action=search&x=1":"")+(""!=b?"&"+b+"=1":"")+"&livesearch_id="+u.replace("sid","")}).done(function(b){$("#"+u).html(b).show();$("#os_list").show();$("#livesearch_link"+u.replace("sid","")).on("click",function(){search_type_1=
$(this).attr("data-stype").trim();r("product_search"==search_type_1?search_type_1:"category_search")})})}var k=$.extend({},{lives_type:"shop"},b),f=$(this),g=f.parents("form"),u="sid"+Math.floor(999999*Math.random());f.attr("autocomplete","off");0<$("#live_results").length?$("#live_results").append('<div id="'+u+'" class="pre-search-content" style="display: none;"></div>'):(results='<div id="'+u+'"  class="pre-search-content" style="width: '+g.width()+'px; background: white; display: none;"></div>',
"shop"==k.lives_type?g.parent().append(results):$(results).insertAfter(f));var z,E=!1,C="",m="";f.keyup(function(){clearTimeout(z);z=setTimeout(r,300)});f.keydown(function(){clearTimeout(z)});f.blur(function(){E||$("#"+u).hide()});f.focus(function(){$("#"+u).show()});$("#"+u+",.filters_area").hover(function(){E=!0},function(){E=!1})}})(jQuery);
(function(b){b.fn.easyAccordion=function(e){var r={autoStart:!1,slideInterval:3E3,onHover:!1};this.each(function(){function k(){g.find("dt").each(function(){$(this).css({width:dtHeight,top:u,"margin-left":z})});g.find(".active").size()?g.find(".active").next("dd").addClass("active"):g.find("dt:first").addClass("active").next("dd").addClass("active");g.find("dt:first").css({left:"0"}).next().css({left:dtWidth});g.find("dd").css({width:ddWidth,height:ddHeight})}var f=b.extend(r,e),g=$(this);g.find("dl").addClass("easy-accordion");
b.fn.setVariables=function(b){b="undefined"!==typeof b?b:0;0<b&&$(this).width()>b?$(this).addClass("acc_respon"):$(this).hasClass("acc_respon")&&$(this).removeClass("acc_respon");dlWidth=$(this).width();dlHeight=$(this).height();dtWidth=$(this).find("dt").outerWidth(!1);dtHeight=$(this).find("dt").width();slideTotal=$(this).find("dt").size();ddWidth=dlWidth-dtWidth*slideTotal-($(this).find("dd").outerWidth(!0)-$(this).find("dd").width());ddHeight=dlHeight-($(this).find("dd").outerHeight(!0)-$(this).find("dd").height())};
$(window).load(function(){var b=get_parent(g);g.setVariables(b.width());k();g.calculateSlidePos(400);$(window).smartresize(function(){g.setVariables(b.width());k();g.calculateSlidePos(10)})});g.setVariables();k();var u=0,z=0,E,C;b.fn.findActiveSlide=function(){var b=1;this.find("dt").each(function(){$(this).hasClass("active")?E=b:$(this).hasClass("no-more-active")&&(C=b);b+=1})};b.fn.calculateSlidePos=function(e){var g=2;e="undefined"!==typeof e?e:400;$(this).find("dt").not(":first").each(function(){var b=
dtWidth*E;if(g<=E){var k=dtWidth*(g-1);1==f.onHover?$(this).stop(!0,!1).delay(400).animate({left:k},e):$(this).animate({left:k},e);g<E?$(this).next().css({left:k+dtWidth}):1==f.onHover?$(this).next().stop(!0,!1).delay(400).animate({left:b},e):$(this).next().animate({left:b},e)}else b=dlWidth-dtWidth*(slideTotal-g+1),1==f.onHover?$(this).stop(!0,!1).delay(400).animate({left:b},e):$(this).animate({left:b},e),b+=dtWidth,1==f.onHover?$(this).next().stop(!0,!1).delay(400).animate({left:b},e):$(this).next().animate({left:b},
e);g+=1});setTimeout(function(){b(".easy-accordion").find("dd").not(".active").each(function(){$(this).css({display:"none"})})},400)};b.fn.activateSlide=function(){this.parent("dl").setVariables();this.parent("dl").find("dd").css({display:"block"});this.parent("dl").find("dd.plus").removeClass("plus");this.parent("dl").find(".no-more-active").removeClass("no-more-active");this.parent("dl").find(".active").removeClass("active").addClass("no-more-active");this.addClass("active").next().addClass("active");
this.parent("dl").findActiveSlide();E<C&&this.parent("dl").find("dd.no-more-active").addClass("plus");this.parent("dl").calculateSlidePos()};b.fn.rotateSlides=function(b,e){var f=$(this);e.value=setTimeout(function(){f.rotateSlides(b,e)},b);$(this).findActiveSlide();var g=$(this).find("dt").size(),k=E+1;k>g&&(k=1);$(this).find("dt:eq("+(k-1)+")").activateSlide()};var m=new function(){this.value=null};$(this).findActiveSlide();$(this).calculateSlidePos();if(1==f.autoStart){var B=$(this),D=parseInt(f.slideInterval);
m.value=setTimeout(function(){B.rotateSlides(D,m)},D)}if(1==f.onHover){var A=new Date,F=A.getTime();$(this).find("dt").not("active").mouseover(function(){A=new Date;400<A.getTime()-F&&($(this).activateSlide(),clearTimeout(m.value),A=new Date,F=A.getTime())})}else $(this).find("dt").not("active").click(function(){$(this).activateSlide();clearTimeout(m.value)})})}})(jQuery);
(function(b){b.fn.utils_frmvalidate=function(b,r,k,f,g,u,z,E){return this.each(function(){var C=$(this),m=$(this).attr("id");u&&($(C).parent().after('<iframe name="dummy" style="display:none">'),$(C).attr("target","dummy"));C.prepend('<input type="hidden" class="cc" name="cc" value="1"/>');var B=""==document.referrer?window.location.href:document.referrer,D=$("#"+m+" :input[name=message]");D.length&&$("#"+m+" :input[name=message]").val(D.val().replace("%URL%",B));C.submit(function(u){C=$(this);m=
$(this).attr("id");u.preventDefault();z?($(".frmhint").remove(),$("#"+m+" .inputerror").removeClass("inputerror")):($(".frmhint").empty(),$("#"+m+" .input1").removeClass("inputerror"));k&&($("#div_"+m).css("opacity","0.6"),$(".loginDef_preloader").show());var B="";r&&$(":file").each(function(){B+="&up_"+$(this).attr("name")+"="+$(this).val()});$.post(C.attr("action"),C.serialize()+B,function(r){k&&($("#div_"+m).css("opacity","1"),$(".loginDef_preloader").hide());if("1"==r.charAt(0))r=$("#"+m+" .cc"),
r.val("0"),C.unbind("submit"),void 0!=E?E(C):C.submit(),r.val("1");else if("0"==r.charAt(0)){r=r.substring(1).split("|");for(i=0;i<r.length;i+=2)if(f){var u=$();g&&(u=$("#"+m+' *[name="'+r[i]+'"]').addClass("inputerror").parents("li:first"));u.length||(u=$("#"+m+" .ffooter"));$(u).append('<p class="rvts12 frmhint">'+r[i+1]+"</p>")}else $("#"+m+"_"+r[i]).append("<br />"+r[i+1]),$("#"+m+" input[name="+r[i]+"]").addClass("inputerror");b&&"function"==typeof reloadReCaptcha&&reloadReCaptcha()}else $("#div_"+
m).length?$("#div_"+m).html(r):$("#"+m+"_error").length&&$("#"+m+"_error").html(r)})})})}})(jQuery);function openhtml(b,e,r,k,f,g,u){u=void 0!=u?u:"";g?ealert('<iframe width="'+r+'" height="'+k+'" src="'+e+'"></iframe>',"OK",k,!0,u):ealert('<img style="max-width:100%;width:'+r+'px" src="'+e+'">',"OK",k,!1,u);$(".emTitle").html(b);0!=f&&setTimeout("$('.emd').remove()",f)}var prev_color;
function switch_cellcolor(b,e,r,k){prev_color=$(b.rows[e].cells[r]).css("background");$(b.rows[e].cells[r]).css("background",k)}
function rollover_on(b,e,r,k,f,g){el=$(b.target);if(!el.is("TABLE")&&(el.is("TD")||el.is("TH")||(el=$(el).parents("td,th")),$(el).length))if(ci=$(el)[0].cellIndex,ri=$(el)[0].parentNode.rowIndex,fr=""==k?0:1,fc=""==f?0:1,ri>=fr&&(g.ri=ri),ci>=fc&&(g.ci=ci),"TD"===r)ri>=fr&&ci>=fc&&switch_cellcolor(g,ri,ci,e);else{if("TR"!==r&&ci>=fc)for(x=fr;x<g.rows.length;x++)switch_cellcolor(g,x,ci,e);if("TC"!=r&&ri>=fr)for(x=fc;x<g.rows[ri].cells.length;x++)switch_cellcolor(g,ri,x,e)}}
function rollover_off(b,e,r,k,f,g){fr=""==k?0:1;fc=""==f?0:1;if("TD"===r&&g.rows[g.ri])$(g.rows[g.ri].cells[g.ci]).css("background",prev_color);else{if("TR"!==r)for(x=fr;x<g.rows.length;x++)$(g.rows[x].cells[g.ci]).css("background",prev_color);if("TC"!==r&&g.rows[g.ri])for(x=fc;x<g.rows[g.ri].cells.length;x++)$(g.rows[g.ri].cells[x]).css("background",prev_color)}}
function MultiSelector(b){this.list_target=b;this.id=0;this.addElement=function(b){if(null==b)return!1;"INPUT"==b.tagName&&"file"==b.type?(b.className=b.name="file_"+this.id++,b.multi_selector=this,b.onchange=function(){var b=document.createElement("input");b.type="file";this.parentNode.insertBefore(b,this);this.multi_selector.addElement(b);this.multi_selector.addListRow(this);$(this).css({position:"absolute",left:-1E3})},this.current_element=b):alert("Error")};this.addListRow=function(b){$(this.list_target).append('<input type="button" value=" '+
b.value+'  [x] " class="xbutton '+b.name+'" onclick="$(\'.'+b.name+"').remove();\">")}}var tog=1;function ToggleBody(b){b=$(b).parents(".block");tog&&($(b).removeClass("active"),$(".block.active").find(".blBody").slideUp(),$(".block.active").removeClass("active open"),$(b).addClass("active"));$(b).find(".blBody").slideToggle(function(){$(b).toggleClass("open")});return!1}var hda="",opa;
function initLogin(b,e){if(0==$("#"+b).length)return!1;$("#"+b).bind("mousedown",function(b){b.stopPropagation()});e&&$(document).bind("mousedown",function(b){""!=hda&&b.pageX<$(window).width()-15&&hide_Hdiv(hda)})}function responsive_hdiv(b,e,r,k,f){var g=$(window).width();$("#"+b).removeClass("resp_hdiv");$("#"+b).outerWidth()>g?($("#"+b).addClass("resp_hdiv"),0!=r&&$("#"+b).css({top:r})):(l=1==f?(g-e)/2:2==f||4==f?5:3==f||5==f?g-e-40:0,$("#"+b).css({left:l,top:k}))}
function show_Hdiv(b,e,r,k,f,g,u){if(0==$("#"+b).length)return!1;if(1==(null==u?0:u))if(ck=getCookie("hdiv"),null==ck&&(ck=""),-1==ck.indexOf("|"+b+"|"))setCookie("hdiv",ck+"|"+b+"|",e,"/");else{$("#"+b).remove();return}hda=b;h_dif=t=0;opa=null==k?1:k;pos=null==f?0:f;g=null==g?0:g;w=$(window).width();h=$(window).height();st=0==g?$(window).scrollTop():0;dw=$("#"+b).width();dh=$("#"+b).height();if(1==pos||4==pos||5==pos)h_dif=dh>h?10+st:0;else if(2==pos||3==pos)t=5+st;1==pos?(t=dh>h?h_dif:(h-dh)/2+
st,$("#"+b).css({left:(w-dw)/2,top:t})):2==pos?$("#"+b).css({left:5,top:t}):3==pos?$("#"+b).css({left:w-dw-40,top:t}):4==pos?(t=dh>h?h_dif:h-dh-45+st,$("#"+b).css({left:5,top:t})):5==pos&&(t=dh>h?h_dif:h-dh-45+st,$("#"+b).css({left:w-dw-40,top:t}));1==g&&$("#"+b).css({position:"fixed",overflow:"auto","max-height":"90%"});$("#"+b).fadeIn(e);0!=r&&(null!=r?$("#"+b).draggable({handle:"handle"}):$("#"+b).draggable());responsive_hdiv(b,dw,h_dif,t,pos);$(window).resize(function(){responsive_hdiv(b,dw,h_dif,
t,pos)})}function hide_Hdiv(b){$("#"+b).find(".yt").remove();hda="";$("#"+b).fadeOut(500)}function sClo(){$(".bkf_h").hide()}function sCls(){"undefined"!=typeof t&&clearTimeout(t)}function sTim(){t=setTimeout(sClo,1E3)}
function getImages(b,e){filter="img:not(.sb_img,.bullet,.cim,.bullet,.system_img)";obj=$(e).parents(".post_wrap").length?$(e).parents(".post_wrap").find(filter):$("#xm2 "+filter);obj.each(function(){60>$(this).width()||40>$(this).height()||(src=$(this)[0].src,url=b.replace("%MEDIA%",src),$(".sb_ul").append('<li><div class="img_block"><a href="'+url+'" target="_blank"><img class="sbp_img" src="'+src+'"/></a></div></li>'))})}
$(document).ready(function(){$(".bkc").hover(function(){bkf=$(this).children(".bkf");h=$(this).height();w=$(this).width();bw=$(bkf).width();winPos=$(window).scrollTop()+$(window).height();elPos=$(this).offset().top+h+$(bkf).height();$(bkf).css("top",winPos<elPos?"-"+$(bkf).height()+"px":h);winPos=$(window).scrollLeft()+$(window).width();elPos=$(this).offset().left+bw;$(bkf).css("left",winPos<elPos?"-"+(bw-w)+"px":0);$(bkf).show()},function(){sTim()});$(".bkf").hover(function(){sCls()},function(){sTim()});
$(".sb_pinterest").each(function(){$(this).click(function(b){$("body").append('<div class="sb_images"><img src="http://www.ezgenerator.com/social/pinterest.png"><a onclick="$(this).parent().remove();" class="close_btn"> X </a><ul class="sb_ul"></ul></div>');b.preventDefault();getImages($(this).attr("href"),this);$(".sb_images").css("top",($(window).height()-470)/2).show("fast")})})});
function loadCaptcha(b){var e=new Date;$("<img />").attr({src:b+"ezg_data/captcha.php?"+e.getTime(),"class":"system_img"}).load(function(){$("span.captcha").append($(this).clone(!0).unbind("load"));$(this).unbind("load");$("span.captcha img").click(function(e){$("span.captcha").empty();loadCaptcha(b)})})}
(function(b){b.fn.stickyC=function(e){function r(){b(window).scrollTop()>k?f.css({position:"fixed",top:"0px"}):f.css({position:"static",top:"auto"})}if(this.offset()){var k=this.offset().top;this.width();var f=this,g="undefined"==typeof e?b(this).closest("table,.div"):b(e),u=!1;g.css("position","relative");return g.height()<=f.position().top+f.height()+20?this:this.each(function(){b(window).scroll(function(){u||r();wh=g.height()+g.offset().top;sb=b(f).offset().top+f.height();wh-20<=sb?b(window).scrollTop()<
b(f).offset().top&&sb<wh?(u=!1,r()):(f.css({position:"absolute",top:g.height()-f.height()-20}),u=!0,g.height()<f.height()&&f.parent().css("height",f.height())):u=!1})})}}})(jQuery);
(function(b){b.fn.fitVids=function(e){var r={customSelector:null};if(!document.getElementById("fit-vids-style")){var k=document.createElement("div"),f=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];k.className="fit-vids-style";k.id="fit-vids-style";k.style.display="none";k.innerHTML="&shy;<style>.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>";
f.parentNode.insertBefore(k,f)}e&&b.extend(r,e);return this.each(function(){var e="iframe[src*='player.vimeo.com'] iframe[src*='youtube.com'] iframe[src*='youtube-nocookie.com'] iframe[src*='kickstarter.com'][src*='video.html'] object embed".split(" ");r.customSelector&&e.push(r.customSelector);e=b(this).find(e.join(",")).filter(".yt_auto");e=e.not("object object");e.each(function(){var e=b(this);if(!("embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){var f=
0;isNaN(parseInt(e.attr("height"),10))||parseInt(e.attr("height"),10);isNaN(parseInt(e.attr("width"),10))||(f=parseInt(e.attr("width"),10));e.attr("id")||e.attr("id","fitvid"+Math.floor(999999*Math.random()));if(0==f||e.parent().parent().width()<f)e.removeAttr("height").removeAttr("width"),e.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top","56.25%")}})})}})(window.jQuery);
function arrowScrollTop(){xm1=$("#xm1,#i_content,body").first();$("body").append('<div id="scroll_arrow"><div class="arrow1"/><div class="arrow2"/></div>');$(window).scroll(function(){$(window).scrollTop()>xm1.position().top?$("#scroll_arrow").fadeIn("slow"):$("#scroll_arrow").fadeOut("fast")});$("#scroll_arrow").click(function(){$("html, body").animate({scrollTop:0},1E3);return!1})}
function detachMenu(){if($("nav").length){var b=$("nav").offset().top;1>b&&(b=1);$(window).scroll(function(){var e=$(window).scrollTop(),r=$("nav").offset().top;e>r?($("nav,#art-hmenu-bg").addClass("fix"),$("body").addClass("fixed_menu")):e<b&&($("nav,#art-hmenu-bg").removeClass("fix"),$("body").removeClass("fixed_menu"),$(window).trigger("resize"))})}}
function ealert(b,e,r,k,f){k=void 0!=k?k:!1;f=void 0!=f?f:"";"undefined"===typeof e&&(e="OK");r="undefined"===typeof r?500:r+105;$("body").append('<div class="emd '+f+'"><div class="emd-close" style="position:fixed;z-index:2147483646;width:100%;height:100%;top:0;"></div><div class="emDlg" style="z-index:2147483647;overflow-y: auto;overflow-x: hidden;bottom: 10px;max-height:600px; min-height:120px"><div class="emd-close emClose" style="position: absolute;top: -3px;right: 3px;font-size: 24px;font-weight: bold;cursor:pointer">&times;</div><div class="emBody"><div class="emLoader" style="top: 50%;left: 50%;position: absolute;z-index: -1;'+
(k?"":"display:none;")+'">Loading...</div>'+b+'</div><div class="emFooter" ><span class="emTitle"></span><span class="emBtn emd-close">'+e+"</span></div></div></div>").addClass("ealert_body");setTimeout(function(){var b=$(".emBody").outerHeight()+$(".emFooter").outerHeight();$(".emDlg").height(r>b&&0<b?b:r)},1);$(".emd-close").click(function(b){$(".emd").remove();$("body").removeClass("ealert_body")})}
function adminLink(b){$.ajax({type:"GET",url:b+"&adminlink=true",cache:!1,dataType:"html",success:function(e){-1!=e.indexOf('class="loginDef_preloader"')?($(".loginDef_overlay").remove(),$("body").append(e)):window.location.href=b}})}
$.fn.niceSelect=function(b){return this.each(function(){function e(b){return b.replace(b.substring(b.lastIndexOf("["),b.lastIndexOf("]")+1),"")}function r(b){var e="";void 0!=m.obj_optn[b].extra_content&&""!=m.obj_optn[b].extra_content&&(e=" "+m.obj_optn[b].extra_content);return e}function k(b){m.obj_optn[b].isDisabled||(D.find(".selected_option").hide(),$.each(m.obj_optn,function(b,e){e.selected=!1}),m.obj_optn[b].selected=!0,m.obj_optn[b].el.find(".selected_option").show(),str_content=e(m.obj_optn[b].content),
I.text(str_content).attr("title",str_content))}function f(b){if(!m.obj_optn[b].isDisabled){var f=m.obj_optn[b].el.find(".selected_option"),g=!1;f.is(":visible")?(f.hide(),m.obj_optn[b].selected=!1,g=!0):(f.show(),m.obj_optn[b].selected=!0);var k="",r=!1;$.each(m.obj_optn,function(f,g){g.selected&&(r=!0,"all"==g.value&&"all"!=m.obj_optn[b].value||"all"==m.obj_optn[b].value&&"all"!=g.value?(g.selected=!1,g.el.find(".selected_option").hide()):k+=e(g.content)+" ")});H.empty().append(r||g&&"avatar"!=m.type?
m.lang_l.confirm:m.lang_l.close);r||g&&"avatar"!=m.type?H.removeClass("submit_close"):H.addClass("submit_close");k=g&&"avatar"!=m.type&&!r?m.obj_optn[0].content:k;I.text(k).attr("title",k)}}function g(b){var e=$.trim($(b).val().toLowerCase()),f=e.length;$.each(m.obj_optn,function(){var b=$.trim(this.content.toLowerCase()),g=$.trim(this.extra_content.toLowerCase());0!=e.indexOf("[")&&(b=b.replace("[a] ",""));void 0!=this.el&&(b=1==f&&0==b.indexOf(e)||1!=f&&-1!=b.indexOf(e),g=""!=g&&(1==f&&0==g.indexOf(e)||
1!=f&&-1!=g.indexOf(e)),b||g?this.el.show():this.el.hide())})}function u(){var b=[],e=0;$.each(m.obj_optn,function(){if("avatar"==m.type&&m.obj_optn[0].selected&&"all"==m.obj_optn[0].value&&"all"!=this.value||this.selected)b[e++]=this.value});W(!0);H.length&&H.hasClass("submit_close")||(0==b.length&&(b[0]=m.obj_optn[0].value),setTimeout(function(){z.val(b).change();"function"==eval("typeof "+m.onchange)&&eval(m.onchange+"("+JSON.stringify(m.obj_optn)+")")},400))}var z=$(this).css("display","none"),
E=z.prop("multiple"),C=z.find("option"),m=$.extend({},{type:"color",onchange:"color_changed_niceSelect",obj_optn:[],old_sel:z,lang_l:{confirm:"confirm",close:"close"}},b),B=$("<ul>"),D=$("<div>",{"class":"wrap_ul_niceSelect "+m.type}),A=$("<div>",{"class":"select_niceSelect"}),F=$("<div>",{"class":"wrap_niceSelect "+m.type}),H=E?$("<div>",{"class":"submit_niceSelect submit_close"}).append(m.lang_l.close).click(function(){u()}):"",J=$("<input />",{type:"text"}).keyup(function(){g(this)}),G=$("<div>",
{"class":"filter_niceSelect"}).append(J).append("<span></span>"),I=$("<div>",{"class":"firstValue_niceSelect"}),M=function(){$(this).find(".arrow_1").addClass("hover_arrow")},V=function(){$(this).find(".arrow_1").removeClass("hover_arrow")},T=function(b){var e=$("<div>",{"class":"selected_option"});e.append("&#10004;");m.obj_optn[b].selected&&e.show();return e},L=function(b){var e=$("<span>");"all"==m.obj_optn[b].value?"color"==m.type?e.addClass("all-color-icon"):"avatar"==m.type&&e.addClass("groupicon"):
""!=m.obj_optn[b].data_style&&void 0!=m.obj_optn[b].data_style?("avatar"==m.type&&(m.obj_optn[b].data_style="background-image:url("+m.obj_optn[b].data_style+");"),m.obj_optn[b].data_style+=m.obj_optn[b].isDisabled?";opacity:0.4;":"",e.attr("style",m.obj_optn[b].data_style)):"avatar"==m.type&&e.addClass("usericon");return e},K=function(b){var e="";"avatar"==m.type&&(e="",void 0!=m.obj_optn[b].extra_content&&""!=m.obj_optn[b].extra_content&&(e="<div>"+m.obj_optn[b].extra_content+"</div>"),e=$("<div />",
{"class":"option_content"+(""==e?" not_extra":"")}).append(m.obj_optn[b].content+e));return e},W=function(b){D.hasClass("openSelect")?setTimeout(function(){D.slideUp("fast").removeClass("openSelect");A.removeClass("openSelect")},b?400:0):(D.slideDown("fast").addClass("openSelect"),A.addClass("openSelect"))};(function(){var b="";z.find("option:selected").each(function(){b+=$.trim(e($(this).text()))+" "});var b=b.trim(),g=!1;C.each(function(z,A){m.obj_optn[z]={content:$.trim($(A).text()),value:$(A).val(),
data_style:$(A).attr("data-style"),extra_content:$.trim($(A).attr("data-extra-content")),isDisabled:$(A).prop("disabled"),selected:$(A).is(":selected"),indx:z};void 0!=m.obj_optn[z].data_style?(arr_style=m.obj_optn[z].data_style.split(":"),"#;"!=arr_style[1]&&"#"!=arr_style[1]?g=!0:""==b&&(b=m.obj_optn[z].content)):g=!0;if(g){var C=$("<li>").append(L(z)).append(T(z)).append(K(z)).click(function(){E?f(z):(k(z),u())}).hover(function(){m.obj_optn[z].isDisabled||$(this).addClass("hover_option")},function(){m.obj_optn[z].isDisabled||
$(this).removeClass("hover_option")}).prop("title",E?e(m.obj_optn[z].content)+r(z):m.obj_optn[z].content);B.append(C);m.obj_optn[z].el=C}});A.click(function(){W(!1)}).append(I.attr("title",b).text(b)).append($("<div>",{"class":"arrow_niceSelect arrow_1"})).append($("<div>",{"class":"arrow_niceSelect arrow_2"})).hover(M,V);D.append(G).append(B).append(H);F.append(A).append(D).insertAfter(z)})()})};
var m_loaded=0,m_visible=0,ios=navigator.userAgent.match(/(iPad|iPhone|iPod)/i),max_m,search_on=0,use_marquee=0;function content_h(){max=$(window).height();mh=$("#ms_sitemap").height();$("#i_page_body").css("min-height",Math.max(mh,max))}function openmenu(b){$(b).parent().toggleClass("active");content_h()}
function load_menu(b,e,r){$.get((e?"":"../")+"ezg_data/menu.php?id="+b+"&root="+e+"&lang="+r,function(e){$("#i_menu").html(e).hide();$(".id_"+b).addClass("active").parents("li:first").addClass("active");m_loaded=1;0<r&&($(".ms_lsitemap").not("#lang_"+r).hide().next().hide(),$(".level0").hide())})}
function toggle_menu(b){1==b?($("#i_menu").show(),content_h(),$("html, body").animate({scrollTop:0},"fast"),$("#i_page_body").animate({left:max_m},300,function(){m_visible=1;$("#i_topbar").css("position","absolute");ios&&$("#i_page_body").css("position","fixed")})):$("#i_page_body").animate({left:0},300,function(){m_visible=0;$("#i_topbar").css("position","fixed");$("#i_page_body").css("position","absolute");$("#i_menu").hide();$("#i_page_body").css("min-height",$(window).height())})}
function resize_search(){$("#i_search_box").css("width",$(window).width()-80)}function menu_pos(){sc_width=$(window).width();max_m=sc_width-60;265<max_m&&(max_m=265);1==search_on&&resize_search()}
function init_mobile(b,e,r,k){use_marquee=k;content_h();menu_pos();window.addEventListener("orientationchange",function(){menu_pos()},!1);load_menu(b,e,r);$("#i_button").click(function(){toggle_menu(0==m_visible);return!1});$("#i_search").click(function(){1==search_on?""==$("#i_search_box").val()?($("#i_search_container").hide(),search_on=!1):$("#i_searchform").submit():(resize_search(),$("#i_search_container").show(),search_on=1)});$("#i_content").on("touchend",function(b,e){1==m_visible&&(b.preventDefault(),
toggle_menu(0))});console.log($("#i_title").text().length);use_marquee&&25<$("#i_title").text().length&&titleMarquee()}function titleMarquee(){t=$("#i_title").text();$("#i_title").html('<marquee scrolldelay="85" scrollamount="6">'+t+"</marquee>")}function get_parent(b){var e=!1;$.each($(b).parents(),function(b,k){if(0<$(k).width())return e=$(k),!1});return e}
(function(b,e){var r=function(b,e,g){var r;return function(){var z=this,E=arguments;r?clearTimeout(r):g&&b.apply(z,E);r=setTimeout(function(){g||b.apply(z,E);r=null},e||50)}};jQuery.fn[e]=function(b){return b?this.bind("resize",r(b)):this.trigger(e)}})(jQuery,"smartresize");
$(document).ready(function(){if(1==$(".global_slideshow").length){var b=parseInt($("#xm2").attr("data-root"));$(".global_slideshow").each(function(){sid=parseInt($(this).attr("data-id"));custom_css=$("<div/>").text($(this).attr("data-css")).html();url=(b?"":"../")+"documents/centraladmin.php?process=slideshow&sid="+sid+"&css="+custom_css;$(this).attr("src",url)})}});
$.fn.simpleplayer=function(b){function e(b,f,g){b.clearQueue().stop();g?(original_def=f-b.width()-10,mar_left=parseInt(b.css("margin-left"),10),def=original_def-mar_left,Math.abs(def)>Math.abs(original_def)&&(def=original_def),duration=parseInt(def/20*1E3,10),b.animate({"margin-left":original_def},0>duration?-duration:duration,"linear",function(){$(this).css("margin-left","10px");e(b,f,!0)})):b.clearQueue().stop()}function r(){$.each(D,function(){var b=$(this).parents(".sp_track_info"),f=b.width(),
g=$(this);g.width()>f?(g.clearQueue().stop(),g.unbind("mouseenter mouseleave"),b.hasClass("sp_marquee_parent")?e(g,f,!0):(b.addClass("sp_marquee_parent"),setTimeout(function(){e(g,f,!0)},500)),g.hover(function(){e($(this),0,!1)},function(){e($(this),f,!0)})):b.hasClass("sp_marquee_parent")&&(b.removeClass("sp_marquee_parent"),g.clearQueue().stop(),g.unbind("mouseenter mouseleave"),e(g,f,!1))})}function k(b){var e=$(b),f=$(window);b=f.scrollTop();var f=b+f.height(),g=e.offset().top,e=g+e.height();
return g<=f&&e>=b}function f(b,e){I=e;M=b.attr("href");V=b.closest("li");1<D.length&&V.addClass("active").siblings().removeClass("active");track_info=V.find(".sp_track_info");track_info.length&&T.insertAfter(track_info);E();$(window).scroll(function(){E()})}function g(b){var e="";b=new Uint8Array(b);for(var f=b.byteLength,g=0;g<f;g++)e+=String.fromCharCode(b[g]);return window.btoa(e)}function u(){return document.fullscreenElement?document.fullscreenElement:document.mozFullScreenElement?document.mozFullScreenElement:
document.webkitFullscreenElement?document.webkitFullscreenElement:document.msFullscreenElement?document.msFullscreenElement:null}function z(b){if("function"===typeof musicmetadata){c=A.src;var e=new XMLHttpRequest;e.open("get",c,!0);e.responseType="arraybuffer";e.onload=function(e){musicmetadata(e.target.response,function(e,f){if(!e&&0<f.picture.length){var k=f.picture[0],m=g(k.data),r=B.find(".track-image");if(r.length){var u="data:image/"+k.format+"+xml;base64,"+m;$(b).attr("src",u);r.animate({opacity:.5},
400,function(){$(this).css({"background-image":'url("'+u+'")',"background-color":"transparent"}).animate({opacity:1});$(this).find("span").remove()})}}})};e.send()}}function E(){var b=A.src.substring(A.src.lastIndexOf("/")+1);if(!k(B[0])&&A.paused&&null==u())"false"!=b&&(A.src=!1),L.empty(),B.find(".sp_cssLoader").remove();else{if("false"==b||""==A.src)A.src=M;else if("auto"==I&&1!=I||!B.find(".player").length)A.src=M;else{B.find(".sp_cssLoader").remove();return}var e=V.find("img"),g="";B.find(".sp_error").remove();
A.addEventListener("error",function(b){B.find(".sp_cssLoader").remove();if(g!=$(this)[0])g=$(this)[0];else return!1;V.find(".sp_track_info").append(L);switch(b.target.error.code){case b.target.error.MEDIA_ERR_ABORTED:L.html("Error: You aborted the audio/video playback.");break;case b.target.error.MEDIA_ERR_NETWORK:L.html("Error: A network error caused the audio/video download to fail.");break;case b.target.error.MEDIA_ERR_DECODE:L.html("Error: The audio/video playback was aborted due to a corruption problem or because the audio/video used features your browser did not support.");
break;case b.target.error.MEDIA_ERR_SRC_NOT_SUPPORTED:L.html("Error: The audio/video not be loaded, either because the server or network failed or because the format is not supported.");break;default:L.html("Error: An unknown error occurred.")}},!1);A.addEventListener("loadedmetadata",function(){function b(e){G?(F.off("click",ga),document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&
document.webkitExitFullscreen()):e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen();$(document).off("webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange").on("webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange",function(b){m&&(b=u(),(G=null!=b)?(F.addClass("full-screen-holder"),Z.appendTo($(b)),ka.attr("title",
"exit full screen"),Ba.show(),Ca.hide(),Z.addClass("controls-full-screen"),S.addClass("play-pause-full-screen"),F.on("mousemove touchmove",Da)):(F.removeClass("full-screen-holder"),Z.insertAfter(La),ka.attr("title","full screen"),Ba.hide(),Ca.show(),Z.stop().height("40px"),clearTimeout(la),Z.removeClass("controls-full-screen"),S.removeClass("play-pause-full-screen"),F.off("mousemove touchmove",Da),F.off("click",ga),F.on("click",ga)),va())})}B.find(".sp_cssLoader").remove();if(g!=$(this)[0])g=$(this)[0];
else return!1;B.bind("selectstart",function(){return!1});var k=$(this)[0],r=parseFloat(k.duration);0==r&&(V.find(".sp_track_info").append(L),L.html("Error: Your browser is not supported to play this audio/video file."));var A=0,E=!1,Q=!1,O=!1,M=$(e).length&&""!=$(e).attr("src")?'<div class="track-image" style="background-image:url(\''+$(e).attr("src")+"')\">"+(m?"":'<div class="play-pause play"><div class="play-button"></div><div class="pause-button"></div></div>')+"</div>":'<div class="track-image svg-icon '+
(m?"video":"note")+'"><span></span>'+(m?"":'<div class="play-pause play"><div class="play-button"></div><div class="pause-button"></div></div>')+"</div>";B.find(".player").length&&(B.find(".player").empty().remove(),B.find(".play-pause").empty().remove(),B.find(".track-image").empty().remove(),$(window).off("resize",va),m&&$(window).off("keyup",ga));$(M+'<div class="player">'+(m?'<div class="play-pause-video"><svg height="16" width="16"><path fill="white" d="M0,0 L0,16 16,8 Z" /><path style="display:none" fill="white" d="M2,0 L2,16 6,16 6,0 Z M10,0 10,16 14,16 14,0 10,0 Z" /></svg></div>':
"")+'<div class="progress"><div class="pr_wrap"></div><div class="progress-bar"><div class="button-holder"><div class="progress-button"> </div></div></div><div class="time"><span class="ctime">00:00</span>'+(H?"":'<span class="stime"> / </span>')+'<span class="ttime">00:00</span></div></div><div class="prev-next"><svg height="16" width="14" class="next-path"><path fill="white" d="M0,0 L0,16 11,8 M11,0 11,16 13,16 13,0 11,0 Z" /></svg><svg height="16" width="14" style="transform: rotate(180deg);" class="prev-path"><path   fill="white" d="M0,0 L0,16 11,8 M11,0 11,16 13,16 13,0 11,0 Z" /></svg></div>'+
(m?'<div class="fullscreen" title="full screen"><svg height="30" width="30"><path fill="white" d="M8,11 L28,11 28,25 8,25 8,11 Z M10,13 L10,23 26,23 26,13 10,13 Z M11,18 L14,14 14,17 22,17 22,14 25,18 22,22 22,19 14,19 14,22 11,18 Z" /><path style="display:none" fill="white" d="M8,11 L28,11 28,25 8,25 8,11 Z M10,13 L10,23 26,23 26,13 10,13 Z M13,22 L13,14 16,18 Z M20,18 L23,14 23,22 Z" />full</svg></div>':"")+(H?"":'<div class="volume"><div class="volume_wrap"></div><div class="volume-holder '+(J?
"":"opacity_off")+'"><div class="volume-bar-holder"><div class="volume-bar"><div class="volume-button-holder"><div class="volume-button"> </div></div></div></div></div><div class="volume-icon v-change-0"><span> </span></div></div>')+"</div>").insertAfter(m?F:k);m&&$('<div class="play-pause play"><div class="play-button"></div><div class="pause-button"></div></div>').appendTo(F);""!=$(e).attr("src")&&void 0!=$(e).attr("src")||z(e);var S=B.find(".play-pause").addClass(G?"play-pause-full-screen":""),
U=B.find(".progress"),T=B.find(".volume_wrap"),Y=B.find(".volume-icon"),da=B.find(".volume-button"),ia=B.find(".volume-bar"),ya=B.find(".progress-bar"),ja=B.find(".progress-button"),fa=B.find(".volume-bar-holder"),oa=B.find(".volume-holder"),Ma=B.find(".ctime"),Na=B.find(".ttime"),ha=U.innerWidth(),ka=B.find(".fullscreen"),Ca=ka.find("path:nth-child(1)"),Ba=ka.find("path:nth-child(2)"),Z=B.find(".player").addClass(G?"controls-full-screen":""),ma=B.find(".play-pause-video"),Ea=ma.find("path:nth-child(1)"),
Fa=ma.find("path:nth-child(2)"),M=B.find(".prev-path"),Oa=B.find(".next-path"),La=B.find(".track-image"),pa=null,Ga=null,la=null,qa=null,ra=function(){S.removeClass("play").addClass("pause");Ea.hide();Fa.show()},Ha=function(){S.removeClass("pause").addClass("play");Fa.hide();Ea.show()};if("auto"===I||!0===I)k.play(),ra(),m&&(clearTimeout(pa),pa=window.setTimeout(function(){S.hide()},2E3)),O=!0;var sa=function(){var b=k.buffered;B.find("[class^=buffered]").remove();if(0<b.length)for(var e=b.length;e--;){$maxBuffer=
b.end(e);$minBuffer=b.start(e);var f=$minBuffer/r*100,g=($maxBuffer-$minBuffer)/r*100;$('<div class="buffered"></div>').css({left:f+"%",width:g+"%"}).appendTo(U)}};sa();var wa=function(){0==r&&(r=parseFloat(k.duration));var b=k.currentTime,e=0,f="00";minutes=Math.floor(b/60);H||(tminutes=Math.floor(r/60));n=((r/60).toFixed(2)+"").split(".");2==n.length&&(f=Math.round(60*n[1]/100));10>f&&(f="0"+f);b&&(e=Math.round(b)-60*minutes,59<e&&(e=Math.round(b)-60*minutes,60==e&&(minutes=Math.round(b/60),e=0)));
b=b/r*ha;10>e&&(e="0"+e);ya.css({width:b+"px"});b-=ja.width()/2;ja.css({left:(0>b?0:b)+"px"});Ma.html(minutes+":"+e);Na.html(H?"":tminutes+":"+f);0<k.currentTime&&0==k.paused&&0==k.ended&&sa()};wa();k.addEventListener("timeupdate",wa);var Ia=function(b){E=!0;b=("mousedown"===b.type.toLowerCase()?b.pageX:b.originalEvent.touches[0].pageX)-U.offset().left;ja.width();O&&A<r&&ra();0>b?k.currentTime=.1:b>ha?k.currentTime=r.toFixed(1):(A=b/ha*r,k.currentTime=A.toFixed(1))},xa=function(b){b="mousedown"===
b.type.toLowerCase()||"mousemove"===b.type.toLowerCase()?b.pageX:b.originalEvent.touches[0].pageX;b=fa.width()-(b-fa.offset().left+fa.width());0<b||0==b||-b<da.width()/2?(b=K=0,left=da.width()/2,Y.removeClass().addClass("volume-icon v-change-11")):-b>=fa.width()?(K=1,left=b=fa.width().toFixed(1),Y.removeClass().addClass("volume-icon v-change-1")):(left=b=-b.toFixed(1),K=b/fa.width());ia.css({width:b+"px"});da.css({left:left-da.width()/2+"px"});ta();k.volume=K},ta=function(){if(!H)for(var b=0;1>b;b+=
.1){var e=parseInt(Math.floor(10*b))/10,f=10*e+1;1==K?Y.removeClass().addClass("volume-icon v-change-11"):0==K?Y.removeClass().addClass("volume-icon v-change-1"):K>e-.1&&!Y.hasClass("v-change-"+f)&&Y.removeClass().addClass("volume-icon v-change-"+f)}};M.on("click",function(){var b=$(this);b.attr("class","prev-path click-next-prev");clearTimeout(qa);qa=window.setTimeout(function(){b.attr("class","prev-path");0!=C.current&&(C.current--,f($(D[C.current]),"auto"))},200)});Oa.on("click",function(){var b=
$(this);b.attr("class","next-path click-next-prev");clearTimeout(qa);qa=window.setTimeout(function(){b.attr("class","next-path");C.current>=D.length-1||(C.current++,f($(D[C.current]),"auto"))},200)});var Da=function(b){var e=("mousemove"===b.type.toLowerCase()?b.pageY:b.originalEvent.touches[0].pageY)-Z.offset().top;clearTimeout(la);la=setTimeout(function(){1==O&&0>e&&na(0,1E3)},3E3);0==Z.height()&&na(40,700)},M=function(){S.find("div").addClass("stoke");S.hasClass("pause")?(O=!1,k.pause(),Ha()):
(O=!0,k.play(),ra(),sa());clearTimeout(Ga);Ga=window.setTimeout(function(){S.find("div").removeClass("stoke")},400)},na=function(b,e){Z.animate({height:b+"px"},e)},ga=function(b){var e=0;if(void 0==b.keyCode){if(G&&40>Z.height()){na(40,700);return}G&&(e=b.pageY-Z.offset().top)}else if(32==b.keyCode&&G&&40>Z.height())na(40,700);else if(27==b.keyCode&&!G||!G||32!=b.keyCode)return;if(0>=e||$(b.currentTarget).is(ma))S.show(),S.hasClass("pause")?(O=!1,k.pause(),Ha()):(O=!0,k.play(),ra(),sa()),clearTimeout(pa),
pa=window.setTimeout(function(){S.hide()},2E3);G&&O&&0!=Z.height()&&!$(b.currentTarget).is(ma)&&(clearTimeout(la),la=setTimeout(function(){na(0,1E3)},3E3))};if(m)F.on("click",ga),ma.on("click",ga),$(window).on("keyup",ga),ka.on("click",function(e){b(F[0])});else S.on("click",M);U.bind("mousedown touchmove",function(b){Ia(b)});B.find(".pr_wrap").bind("touchmove",function(b){Ia(b)});fa.bind("mousedown touchmove",function(b){Q=!0;xa(b)});T.bind("touchmove",function(b){Q=!0;xa(b)});Y.bind("click",function(){R?
(K=W,k.volume=K,ta(),volMove=R,R=0,ia.css({width:volMove+"px"}),da.css({left:volMove-da.width()/2+"px"})):(W=K,K=0,R=ia.width(),ia.css({width:"0px"}),k.volume=0,da.css({left:"0px"}),$(this).removeClass().addClass("volume-icon v-change-1 mute"))});var Ja=function(){if(!H){var b=oa.width()*K,e=b-da.width()/2;ia.css({width:b+"px"});da.css({left:(0>e?0:e)+"px"})}},va=function(){var b=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;B.width()>b?B.attr("style","width: 99%; max-width: 99% !important;"):
B.attr("style","width: "+C.width+"px; max-width: "+C.width+"px;");ha=U.innerWidth();wa();ta();Ja()};$("body").on("mousemove touchmove",function(b){if(E&&($draggingProgress=!0,"mousemove"===b.type.toLowerCase())){var e,f=ja.width(),g=b.pageX-U.offset().left;O&&A<r&&S.addClass("pause").removeClass("play");0>g?(e=0,k.currentTime=0):g>ha?(k.currentTime=r.toFixed(1),e=ha):(e=g,A=g/ha*r,k.currentTime=A.toFixed(1));ya.css({width:e+"px"});e-=f/2;ja.css({left:(0>e?0:e)+"px"})}Q&&xa(b)}).on("mouseover",function(b){if(!J&&
!H){var e=b.pageX-T.offset().left;b=b.pageY-T.offset().top;0<e&&e<=T.width()&&0<b&&b<=T.height()-10?oa.removeClass("opacity_off"):oa.hasClass("opacity_off")||oa.addClass("opacity_off")}}).on("mouseup touchend",function(b){$draggingProgress=Q=E=!1});ta();Ja();$(window).resize(va);I=!1},!1)}}var C=$.extend({},{type:"audio",volume:10,current:1,loop:!1,width:390},b),m="video"==C.type,B=$(this).attr("style","width: "+C.width+"px;"),D=B.find("ul").find("li a:not(.sp_download_link, .sp_comments_icon)"),
A=m?B.find("video")[0]:B.find("audio")[0],F=m?B.find(".video-holder"):"",H=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,J="ontouchstart"in window||navigator.msMaxTouchPoints,G=!1,I=!1,M="",V="",T=$('<div class="sp_cssLoader"><div id="floatingBarsG"><div class="blockG" id="rotateG_01"></div><div class="blockG" id="rotateG_02"></div><div class="blockG" id="rotateG_03"></div><div class="blockG" id="rotateG_04"></div><div class="blockG" id="rotateG_05"></div><div class="blockG" id="rotateG_06"></div><div class="blockG" id="rotateG_07"></div><div class="blockG" id="rotateG_08"></div></div></div>'),
L=$("<div class='sp_error'></div>"),K=C.volume/100,W=0,R=0;C.current--;(function(){var b=D.length-1;if(C.current>b||0>C.current)C.current=0;var e=D[C.current];A.volume=K;f($(e));r();$(window).resize(r);D.click(function(b){b.preventDefault();C.current=$(this).closest("li").index();f($(this),"auto");b.preventDefault()});A.addEventListener("ended",function(){B.find(".play-pause").addClass("play").removeClass("pause");C.current++;C.current>b?(C.current=0,e=D[0],f($(e),C.loop)):(e=D[C.current],f($(e),
"auto"))})})()};$(document).ready(function(){if($(".imgLoader_lazyload").length){var b=function(){$.each($(".imgLoader_lazyload"),function(){var b;if(b=void 0!=$(this).attr("data-src")&&null!=$(this).attr("data-src")){$(this);var r=$(window);b=r.scrollTop();var r=b+r.height(),k=$(this).offset().top;b=(k+$(this).height())/1.2<=r&&k>=b}b&&$(this).lazyLoad("imgLoader_lazyload")})};b();$(window).scroll(function(){b()})}});