/*<noindex>
{if $rss_link}	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="{$smarty.const.URL_ROOT}/{$rss_link}">{/if}
	<script type="text/javascript">{*
{if $smarty.const.CONF_WAROOT_URL}		var WAROOT_URL = '{$smarty.const.CONF_WAROOT_URL}';{/if}*}

{if $smarty.const.CONF_WAROOT_URL}		var WAROOT_URL = '{$smarty.const.BASE_WA_URL}';//ok{/if}

{if $smarty.const.CONF_ON_WEBASYST}		var CONF_ON_WEBASYST = '{$smarty.const.CONF_ON_WEBASYST}';{/if}
	</script>
	</noindex>
---------------------
	<script type="text/javascript">
<!--		
{$current_currency_js}
var ORIG_URL = '{$smarty.const.CONF_FULL_SHOP_URL}';
var ORIG_LANG_URL = '{"?"|set_query_html}';
window.currDispTemplate = defaultCurrency.display_template;
var translate = {ldelim}{rdelim};
translate.cnfrm_unsubscribe = '{"cnfrm_unsubscribe"|transcape}';
translate.err_input_email = '{"err_input_email"|transcape}';
translate.err_input_nickname = '{"err_input_nickname"|transcape}';
translate.err_input_message_subject = '{"err_input_message_subject"|transcape}';
translate.err_input_price = '{"err_input_price"|transcape}';
{literal}function position_this_window(){
	var x = (screen.availWidth - 600) / 2;
	window.resizeTo(600, screen.availHeight - 100);
	window.moveTo(Math.floor(x),50);
}{/literal}		
{if $PAGE_VIEW eq 'printable'}Behaviour.addLoadEvent(function(){ldelim}position_this_window();setTimeout(window.print(),1000);{rdelim});{/if}
//-->
</script>

*/
var defaultCurrency = {
	display_template: '{value} руб.',
	decimal_places: '0',
	decimal_symbol: '.',
	thousands_delimiter: '&nbsp;',
	getView: function (price){return this.display_template.replace(/\{value\}/, number_format(price, this.decimal_places, this.decimal_symbol, this.thousands_delimiter));}
	};
 
var ORIG_URL = 'http://tehno-tt.ru/';
var ORIG_LANG_URL = '/index.php';
window.currDispTemplate = defaultCurrency.display_template;
var translate = {};
translate.cnfrm_unsubscribe = 'Вы уверены, что хотите удалить вашу учетную запись в магазине?';
translate.err_input_email = 'Введите правильный электронный адрес';
translate.err_input_nickname = 'Пожалуйста, введите Ваш псевдоним';
translate.err_input_message_subject = 'Пожалуйста, введите тему сообщения';
translate.err_input_price = 'Цена должна быть положительным числом';
function position_this_window(){
	var x = (screen.availWidth - 600) / 2;
	window.resizeTo(600, screen.availHeight - 100);
	window.moveTo(Math.floor(x),50);
}		

 $('#callf').ajaxForm(function() {
      $('div#wind').fadeOut(1500);
      alert ("Спасибо. Ваша заявка принята.");
      });

$(document).ready(function(){
   $('#cycle').cycle({ 
    fx:      'fade', 
    speed:    1000, 
     easeing:  'bounce', 
    timeout:  2000 
});
 $('#cycle2').cycle({ 
    fx:      'fade', 
    speed:    2600, 
     easeing:  'bounce', 
    timeout:  3100 
});

$('#slider').cycle({ 
    fx:      'fade', 
    speed:    900, 
     easeing:  'bounce', 
    timeout:  4100 
});

/*$("#induc").ajaxForm({
dataType: 'json',
success: function(data){
$('#induc_itog').html(data.induc_itog + ' руб./год');
$('#elec_itog').html(data.elec_itog + ' руб./год');
$('#econ_itog').html(data.econ_itog + ' руб./год');
$('#suggest').html(data.suggest);
$('.induc_result').slideDown(200);
/*alert(data.mess);*//*}
}) */

	$('#induc_submit').click(function(){
		quan = $('#quan option:selected').val();
			quan = parseInt(quan); 
		power = $('#power').val();
			power = power.replace(',','.');
			power = parseFloat(power);
		price = $('#price').val();
			price = price.replace(',','.');
			price = parseFloat(price);
		plit = $('#plit').val();
			plit = parseInt(plit);
			
		induc_itog = 0.5 * 1.3 * quan * 7 * 312 * price * plit;
			$('#induc_itog').html(induc_itog.toFixed(2) + ' руб./год');
		elec_itog = 11 * power / 20 * 1.3 * quan * 7 * 312 * price * plit;
			$('#elec_itog').html(elec_itog.toFixed(2) + ' руб./год');
		econ_itog = elec_itog - induc_itog;
			$('#econ_itog').html(econ_itog.toFixed(2) + ' руб./год');
			
		$('.induc_result').slideDown(200);
		return false;
	})
});

$( document ).ready( function()
{
    $( "a[rel^='prettyPhoto']" ).prettyPhoto( { theme: 'dark_rounded' } );
    
    $( '#youtube_right' ).animate(
        { 'left': '-=400px' }, 
        7000 
    );
});

