jQuery.noConflict();
jQuery(function(){
  
  jQuery("body *").replaceText( /Пальмира/gi, "Пальмир-М" );
  });
// INITIALIZE TOOLTIPS IN A SEPERATE THREAD
    jQuery(document).ready(function() {
      window.setTimeout(hovertipInit, 1);
    });
// AJ
jQuery(window).load(function () {
      jQuery('div.phone').load('/templates/1/phones.htm');
      {
      jQuery('div.adrs').load('/templates/1/address.htm');
    }
    {
      jQuery('div.bottmenu').load('/templates/1/bottom.htm');
    }
    jQuery('#advr').load('/templates/1/advert.txt');
    jQuery('#prdctn').load('/index2.php?option=com_content&view=article&id=54 div#artcont');
    });
      
// CB
jQuery(document).ready(function(){
				//Examples of how to assign the ColorBox event to elements
				jQuery("a[rel='mode1']").colorbox({width:"75%", height:"75%"});
				jQuery("a[rel='mode2']").colorbox({slideshow:true, width:"75%", height:"75%"});
				jQuery("a[rel='mode3']").colorbox({transition:"none", width:"75%", height:"75%"});
				jQuery("a[rel='mode4']").colorbox({slideshow:true});
				jQuery("a[rel='mode5']").colorbox({transition:"fade", height:"100%"});
				jQuery(".single").colorbox({}, function(){
					alert('Howdy, this is an example callback.');
				});
				jQuery(".colorbox").colorbox();
				
				//Example of preserving a JavaScript event for inline calls.
				jQuery("#click").click(function(){ 
					jQuery('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
					return false;
				});
			});
			
//FADING IN/OUT PLANES
jQuery(function(){
jQuery('#fading').hide();
jQuery('#readmore').toggle(function() {
jQuery('#fading').fadeIn('slow');
	},
	function() {
		jQuery('#fading').fadeOut('slow');
	}
	)
});

//ODD TABLE TRS
jQuery(function(){
jQuery("table.price tr:nth-child(even)").addClass("cherez");
});
