$.fn.replaceText=function(search,replace,text_only){return this.each(function(){var node=this.firstChild,val,new_val,remove=[];if(node){do{if(node.nodeType===3){val=node.nodeValue;new_val=val.replace(search,replace);if(new_val!==val){if(!text_only&&/=0){var spannode=document.createElement('span');spannode.className='highlight2';var middlebit=node.splitText(pos);var endbit=middlebit.splitText(pat.length);var middleclone=middlebit.cloneNode(true);spannode.appendChild(middleclone);middlebit.parentNode.replaceChild(spannode,middlebit);skip=1}}else if(node.nodeType==1&&node.childNodes&&!/(script|style)/i.test(node.tagName)){for(var i=0;i'+owner_name+': '+message.message+'

')}}scroll_chat_window()}var last_response=parseInt(raw_response.response.last_response);if(last_response&&(last_response<4)){user_call=false}var st_op=parseInt(raw_response.response.status);if(st_op==0){$('#consult').hide("slow")}else{$('#consult').show(1000)}}});timer=setTimeout(callback,3000)}callback=helpytalk_loop;$('head').append($('').attr('href','http://chat.list-prof.ru/css/client.css'));$("#helpytalk").dialog({autoOpen:false,width:'600px',resizable:false,open:function(ev,ui){user_call=true}});$("#helpytalk").html('
{$title}

Добрый день!Чем могу помочь?

');$("#helpytalk textarea:[name=message]").bind("keyup",function(e){var code=(e.keyCode?e.keyCode:e.which);if(code==13){send=true;user_call=true;out_message+=$('#helpytalk textarea:[name=message]').val();$('#helpytalk textarea:[name=message]').attr('disabled',true);visitor_name=$('#helpytalk input:[name=name]').val()?$('#helpytalk input:[name=name]').val():'Посетитель';$('#ht_chat_window').append('

'+visitor_name+': '+$('#helpytalk textarea:[name=message]').val()+'

');$('#helpytalk textarea:[name=message]').val('');scroll_chat_window()}});helpytalk_loop()});function strtr(str,from,to){var fr='',i=0,j=0,lenStr=0,lenFrom=0,tmpStrictForIn=false,fromTypeStr='',toTypeStr='',istr='';var tmpFrom=[];var tmpTo=[];var ret='';var match=false;if(typeof from==='object'){tmpStrictForIn=this.ini_set('phpjs.strictForIn',false);from=this.krsort(from);this.ini_set('phpjs.strictForIn',tmpStrictForIn);for(fr in from){if(from.hasOwnProperty(fr)){tmpFrom.push(fr);tmpTo.push(from[fr])}}from=tmpFrom;to=tmpTo}lenStr=str.length;lenFrom=from.length;fromTypeStr=typeof from==='string';toTypeStr=typeof to==='string';for(i=0;i