

jQuery(document).ready(function(){

  //shadowbox jquery lightbox plugin init
  Shadowbox.init({
    language: 'en',
    players:  ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv']
  });
  //style fix - catalog filters height left and main container (not work in opera)
//  var mainHeight = jQuery('div.col-main').height();
//  var leftHeight = jQuery('div.col-left').height()
//  if(leftHeight > mainHeight) {
//    jQuery('div.col-main').height(leftHeight);
//  }
//  else if(leftHeight < mainHeight) {
//    jQuery('div.col-left').height(mainHeight);
//    jQuery('div.block-layered-nav').height(mainHeight)
//  }


//js fix menu
//  var activePrevElement = jQuery('#nav li.active').prev();
//      var position = activePrevElement.css('backgroundPosition');
//        if(typeof(position) == 'undefined') {
//      position =  activePrevElement.css('background-position-x') + ' ' + activePrevElement.css('background-position-y')};
//    position = position.split(" ");
//      if(jQuery.browser.msie) {
//         activePrevElement.css({'background-position-x' : position[0],'background-position-y' : ' -1px'})
//      }
//      else {
//        activePrevElement.css({'backgroundPosition' : position[0] + ' -1px'})
//      }
//
//  jQuery('#nav li.level-top').mouseover(function(){
//    var prevElement = jQuery(this).prev();
//    if(!prevElement.hasClass('active')) {
//      var position = prevElement.css('background-position')
//      if(typeof(position) == 'undefined') {
//      position =  prevElement.css('background-position-x') + ' ' + prevElement.css('background-position-y')};
//      position = position.split(" ");
//      if(jQuery.browser.msie) {
//        prevElement.css({'background-position-x' : position[0],'background-position-y' : ' -1px'})
//      }
//      else {
//        prevElement.css({ 'background-position' : position[0] + ' -1px'})
//      }
//
//
//    }
//  }).mouseout(function(){
//    var prevElement = jQuery(this).prev();
//    if(jQuery.browser.msie) {
//       prevElement.css({'background-position-x' : '','background-position-y' : ''})
//    }
//    else {
//      prevElement.css({'background-position' : ''})
//    }
//
//  })


})
