if (!window.adpoPriceListInitJs)
{
	var adpoPriceListInitJs = true;
	
	function adpoPriceListInit()
	{
		var toggle = jQuery(".adpo-modules-container .toggle");
		var text1 = 'Показать состав модульной программы';
		var text2 = 'Скрыть состав модульной программы';
		toggle.html(text1);
		toggle.click(function(){
	        var text = jQuery(this).html();
	        if (text == text1) {jQuery(this).html(text2);}
	        else{jQuery(this).html(text1);}
	        jQuery(this).parent().find(".adpo-modules").toggle();
	        return false;
	    });
		
		jQuery('.lang-price-notice').click(function(){
			alert('Цена за 1 этап');return false;
		});
		jQuery('.lang-time-notice').click(function(){
			alert('Цена за 1 академический час');return false;
		});
	}
	
	jQuery(document).ready(function(){
		
		adpoPriceListInit();
		jQuery(".adpo-price-list-image-date").tooltip({});
		
		jQuery(".adpo-price-list-mudule-notice-link").click(function () {
		    var href = jQuery(this).attr("href");
            var destination = jQuery(href).offset().top;
            var elementScroll = jQuery.browser.msie || jQuery.browser.mozilla ? 'html' : 'body';
            jQuery(elementScroll).animate({ scrollTop: destination}, 500 );

            return false;
		});
	});
}

