// AJ
jQuery(window).load(function () {
      {
      jQuery('#321').load('/templates/1/aj/logofl.html');
      }
    {
      jQuery('#advts').load('/templates/1/aj/advert.html');
    }
    });

$(document).ready(function(){
				//Examples of how to assign the ColorBox event to elements
				$("a[rel='mode1']").colorbox({maxHeight:"100%"});
				$("a[rel='mode2']").colorbox({transition:"fade", maxHeight:"100%"});
				$("a[rel='mode3']").colorbox({transition:"none", width:"75%", height:"75%"});
				$("a[rel='mode4']").colorbox({slideshow:true});
				$("a[rel='mode5']").colorbox({transition:"fade", height:"100%"});
				$(".single").colorbox({}, function(){
					alert('Howdy, this is an example callback.');
				});
				$(".colorbox").colorbox();				
				//Example of preserving a JavaScript event for inline calls.
				$("#click").click(function(){ 
					$('#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
$(function(){
$('#fdng').hide();
$('#rdmr').toggle(function() {
$('#fdng').fadeIn('slow');
	},
	function() {
		$('#fdng').fadeOut('slow');
	}
	)
});

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

//CALC
$(function () {
	$('.calc').calculator({
		showOn: 'both', buttonImageOnly: true, buttonImage: 'http://teplokrovly.ru/templates/1/images/calculator.png'});
});
