Notice: Undefined variable: header_top in /var/www/mituser/data/www/mebelitaliisurgut.ru/catalog/view/theme/theme01/template/common/header.tpl on line 302
';
var newDivH = document.createElement('div');
newDivH.id = 'newDivH';
var d = document.body;
d.appendChild(newDivH);
var newDiv = document.createElement('div');
newDiv.id = 'Sucsesss';
var d = document.body;
d.appendChild(newDiv);
var g = document.getElementById('Sucsesss').innerHTML = '
Спасибо, Ваша заявка отправлена!
';
var newDivC = document.createElement('div');
newDivC.id = 'newDivC';
var t = document.getElementById('formai');
t.appendChild(newDivC);
var a = $('#button-cart');*/
$('#button-cart').on('mousedown',function( event ) {
/*event.preventDefault();
event.stopPropagation();
NF = document.getElementById('content').getElementsByTagName('h1')[0].childNodes[0].nodeValue;
CF = document.getElementsByClassName('description')[0].getElementsByTagName('a')[0].childNodes[0].nodeValue;*/
$('html,body').css('overflow','hidden');
$('#formai').fadeIn( 1000 );
$('#newDivH').fadeIn( 6000 );
});
$('#subbot').live('click',function( event ) {
//NF = ( ' фирмы ' + CF + ' под названием ' + NF );
var tovar_href = $('.breadcrumb a:last').attr('href');
var tovar_name = $('#product_heading').text();
var tovar = tovar_name + ', ссылка: ' + tovar_href;
var form = $( "#sub" ),
username = form.find( "input[name='user_name']" ).val(),
userphone = form.find( "input[name='phone_num']" ).val(),
posting_data = { user_name: username, phone_num: userphone, user_email: tovar };
$.post( "config/sender.php", posting_data);
$('#formai').fadeOut( 2000 );
$('#Sucsesss').fadeIn( 2000 );
$('#Sucsesss').delay( 1500 ).fadeOut( 2000 );
$('#newDivH').fadeOut( 5000 );
$('html,body').css('overflow','visible');
});
$('#newDivC').on('click',function( event ) {
$('#formai').fadeOut( 2000 );
$('#newDivH').fadeOut( 3000 );
$('html,body').css('overflow','visible');
});