jQuery.noConflict();

//Определение позиции в тексте
function strpos( haystack, needle, offset){
  var i = haystack.indexOf(needle, offset);
  return i >= 0 ? i : false;
}

jQuery(document).ready(function(){
  jQuery('#snippet').each(function(){
    var snippetText = jQuery('#snippet').text();
    snippetText = snippetText.replace("г.","г&#046;");
    dot = strpos(snippetText, '.', 5)+1;
    newText = snippetText.substr(0,dot);
    otherText = snippetText.substr(dot,snippetText.length)
        
    jQuery('#snippet').html('<span style="cursor: pointer" onclick="jQuery(\'#snippHidden\').toggle();jQuery(\'#dots\').toggle();">'+newText+'</span><span id="dots">...</span>'+'<span style="display:none" id="snippHidden">'+otherText+'</span>');
  });
  
  jQuery(".btn-slide").toggle(		
    function(){
      jQuery("#panel").height("auto");
      jQuery(this).addClass("active");
      return false;
    },
    function(){
      jQuery("#panel").height("150px");
      jQuery(this).removeClass("active");
      return false;
    }
    );
		
		//jQuery('#zoneAdvertMini').godirect();
		jQuery('#miniBanners').godirect();
});

	
