"; style += ""; document.write(style); function toggleMotion(flag) { if (flag) { halt = 1; } else { halt = 0; } } /* ***************************************** */ /* */ function noemptybr(e) { var key; var keychar; if (window.event) { key = window.event.keyCode; } else if (e) { key = e.which; } else { return true; } if (document.getElementById("premes_text").value != "") { if (document.getElementById("premes_text").value.length >= 500 ) { if ((key == 8) || (key == 0)) { return true; } else { return false; } } else { return true; } } else { if ((key == 32) || (key == 13) || (key == 10)) { return false; } else { return true; } } } function check_question() { if (question_temp = document.getElementById("premes_text")) { var question_value = question_temp.value; var max_rmesslength = 500; if (question_value.length > max_rmesslength) { document.getElementById("premes_text").value = question_value.substr(0,max_rmesslength); alert( "Максимальная допустимая длина ответа "+max_rmesslength+" символов.\nВаш ответ был сокращен до этого размера.\nЭто ограничение действует только до запуска чата." ); } } } /* ***************************************** */ var Browser = { Version: function() { var version = 999; // we assume a sane browser if (navigator.appVersion.indexOf("MSIE") != -1) // bah, IE again, lets downgrade version number version = parseFloat(navigator.appVersion.split("MSIE")[1]); return version; } } function initializeProactive_9114202() { if(!document.getElementById("ProactiveSupport4545_9114202")) { var scroll_image = new Image; scroll_image.src = "http://srv091.f12go.ru/scroll_image.php?x=10063&l=salon3000&ps=243528d01063cf7724c883ba44a95de1&"+unique; output_init_9114202 = " "; if (Browser.Version() < 7) { output_init_9114202 += ' '; } else { output_init_9114202 += " "; } output_init_9114202 += "
"; output_init_9114202 += " "; output_init_9114202 += "
"; output_init_9114202 += "
"; output_init_9114202 += " \"Начать"; output_init_9114202 += "
"; output_init_9114202 += "
"; output_init_9114202 += " \"Фото\""; output_init_9114202 += "
"; output_init_9114202 += "
"; output_init_9114202 += " \"Закрыть"; output_init_9114202 += "
"; var dLink_9114202 = document.getElementsByTagName("body")[0]; var el_main_div = document.createElement("div"); dLink_9114202.appendChild(el_main_div); el_main_div.className = 'class_el_main_div'; el_main_div.setAttribute("align","left"); el_main_div.setAttribute("id","ProactiveSupport4545_9114202"); el_main_div.innerHTML = output_init_9114202; /* SRC фрейма обновляется ф-ей checkinitiate */ el_frame = document.createElement("iframe"); el_main_div.appendChild(el_frame); el_frame.allowTransparency = 1; el_frame.className = 'class_el_frame'; el_frame.frameBorder = 0; el_frame.src = "http://srv091.f12go.ru/initext_tracker.php?x=10063&page="+url; el_main_div2 = eval('document.getElementById("ProactiveSupport4545_9114202").style'); if(!ns && !ie && !w3) { return; } if(ie) { ProactiveDiv = eval('document.all.ProactiveSupport_9114202.style'); } else if(ns) { ProactiveDiv = eval('document.layers["ProactiveSupport_9114202"]'); } else if(w3) { ProactiveDiv = eval('document.getElementById("ProactiveSupport_9114202").style'); } } if (ie||w3) { document.getElementById("ProactiveSupport4545_9114202").style.visibility = "visible"; } else { document.getElementById("ProactiveSupport4545_9114202").style.visibility = "show"; } backtrack = 0; isclosed = 0; repeat = 1; moveIt_9114202(-177); } function moveIt_9114202(h) { var what_should_i_move_9114202 = document.getElementById("ProactiveSupport4545_9114202").style; what_should_i_move_9114202.left = 7; what_should_i_move_9114202.top = h + "px"; /* Обходим ситуацию с различными DOCTYPE страниц клиентов */ if (document.compatMode == "BackCompat") { var h_screen_coord = document.getElementsByTagName('body')[0].scrollTop; } else { var h_screen_coord = document.documentElement.scrollTop; } if (h < (h_screen_coord)) { h += 10; backtrack = 1; // document.getElementById('premes_text').focus(); } else { h = h_screen_coord; } if (halt) { setTimeout("moveIt_9114202("+h+")",timer); } else if ((!backtrack || (backtrack && (h >= 20))) && ((what_should_i_move_9114202.visibility == "visible") || (what_should_i_move_9114202.visibility == "show")) && repeat && !isclosed) { setTimeout("moveIt_9114202("+h+")",timer); } else if (!isclosed) { backtrack = 0; repeat = 0; setTimeout("moveIt_9114202("+h+")",timer); } else { what_should_i_move_9114202.left = 7; } } function DoClose() { if (ie||w3) { if(el_main_div2) el_main_div2.visibility = "hidden"; ProactiveDiv.visibility = "hidden"; } else { if(el_main_div2) el_main_div2.visibility = "hide"; ProactiveDiv.visibility = "hide"; } isclosed = 1; halt = 0; } function checkinitiate_9114202() { initiate = pullimage_9114202_0.width; if ((initiate == 2) && !chat_opened) { chat_opened = 1; launch_support_9114202_0(); } else if ((initiate == 3) && !chat_opened) { // если пришло всплывающее приглашение и чат при этом ещё не открыт chat_opened = 1; initializeProactive_9114202(); var unique = dounique(); el_frame.src = "http://srv091.f12go.ru/initext_tracker.php?x=10063&page="+url+"&unique="+unique+"&resource=243528d01063cf7724c883ba44a95de1"; document.getElementById('init_pic_name').src = "http://srv091.f12go.ru/initphoto_tracker.php?x=10063&ps=243528d01063cf7724c883ba44a95de1&unique="+unique; } else if (initiate == 100) { do_tracker_flag_9114202 = 0; } if ((initiate == 1) && chat_opened) { chat_opened = 0; } } function do_tracker_9114202() { /* check to make sure they are not idle for more then 1 hour... if so, then they left window open and let's stop the tracker to save server load time. (1000 = 1 second) */ var unique = dounique(); time_elapsed = unique - start_tracker; if (time_elapsed > 3600000) { do_tracker_flag_9114202 = 0; } //считываем значение тега title со страницы, где в данный момент находится пользователь if(document.title) { title_page = document.title; } else { title_page = ''; } pullimage_9114202_0.src = "http://srv091.f12go.ru/image_tracker.php?l=salon3000&x=10063&deptid=0&page="+url+"&title_page="+title_page+"&ps=243528d01063cf7724c883ba44a95de1&unique="+unique; pullimage_9114202_0.onload = checkinitiate_9114202; if (do_tracker_flag_9114202 == 1) { setTimeout("do_tracker_9114202()",tracker_refresh); } } /* Вызов поддержки по щелчку на кнопке */ function launch_support_9114202_0() { var premes_filtered = ""; if(tempopremes = document.getElementById('premes_text')) { premes_filtered = tempopremes.value; if (premes_filtered == 'Введите сюда ваш ответ') { premes_filtered = ""; } premes_filtered = premes_filtered.replace(/>/g, ">"); premes_filtered = premes_filtered.replace(/"; output_inold_9114202 += " "; document.writeln(output_inold_9114202); if(ie) { ProactiveDiv = eval('document.all.ProactiveSupport_9114202.style'); } else if (ns) { ProactiveDiv = eval('document.layers["ProactiveSupport_9114202"]'); } else if (w3) { ProactiveDiv = eval('document.getElementById("ProactiveSupport_9114202").style'); } if (ie||w3) { ProactiveDiv.visibility = "hidden"; } else { ProactiveDiv.visibility = "hide"; } } // Reject operator`s invitation function RejectInitiate() { var rejectimage_9114202_0 = new Image; rejectimage_9114202_0.src = "http://srv091.f12go.ru/image_tracker.php?l=salon3000&x=10063&deptid=0&unique="+unique+"&ps=243528d01063cf7724c883ba44a95de1&action=reject"; DoClose(); chat_opened = 0; } var status_image_9114202_0 = ""; document.write(status_image_9114202_0); if (!marva_rh_loaded_v090131) { WriteChatDiv(); /* Задержка для определения, единственная ли это кнопка на странице */ window.setTimeout("do_tracker_9114202()",5000); } var marva_rh_loaded_v090131 = 1; //-->