// encoding: utf-8
/*@cc_on/*@if(@_jscript_version<5.7)try{document.execCommand('BackgroundImageCache',0,1)}catch(e){}/*@end@*/

// ***** jqreq *****
Req.localPath = Req.localPath || '/skin/basic/'
Req(
  'autovalidate',
  'labelizor',
  'x/ifixpng',
  'popups',

  function(){
    var $ = jQuery;

    //pagestepping
    if( $(window).width() < 850 ) {
      $('body').removeClass('width1');
    };
    $(window).resize(function(){
      if( $(window).width() < 850 ) {
        $('body').removeClass('width1');
      } else {
        if(!$('body').hasClass('width1') ) {
          $('body').addClass('width1'); 
        };
      }
    });

    // labelize search input
    $('#qstr').labelizor();

    if (!window.EPLICA_loggedin)
    {

      // pngfix for IE6
      if ($.browser.msie && $.browser.version < 7) {
        $('img[src$=".png"]').ifixpng();
      }

    }

    $('a.popup').popUps();

    //remove flicker trick
    $('#noflickerCSS').remove();

    // validate all forms
    $('form').autoValidate();

    
    $('.articlelist')
        .each(function() {
            $(this).find('.item')
                .each(function(i) {
                    if(i % 2 == 0) {
                      $(this).css({ clear : 'left' })
                    };
                  });
          });


  }
);
// **** /jqreq *****
