/**
 * конструктор, на входе JSON-конфиг
 */function initChart(a,b,c,d,e){if($("#"+a).size()===0)return!1;if(!b){$("#"+a).hide();return!1}typeof c=="undefined"&&(c=[]),typeof d=="undefined"&&(d={}),typeof e=="undefined"&&(e={}),typeof e.ti=="undefined"&&(e.ti="y"),typeof e.show_subtitle=="undefined"&&(e.show_subtitle=!1),typeof e.sign_ends=="undefined"&&(e.sign_ends=!1),typeof e.cut_monthnames=="undefined"&&(e.cut_monthnames=!0),typeof e.tick_length=="undefined"&&(e.tick_length=20),typeof e.chart_vertical_padding=="undefined"&&(e.chart_vertical_padding=.03);var f=new Date,g,h=+(new Date(f.getFullYear(),f.getMonth(),f.getDate(),0,0,0,0))-36e5;switch(e.ti){case"m":g=+(new Date(f.getFullYear(),f.getMonth()-1,f.getDate(),0,0,0,0));break;case"3m":g=+(new Date(f.getFullYear(),f.getMonth()-3,f.getDate(),0,0,0,0));break;case"6m":g=+(new Date(f.getFullYear(),f.getMonth()-6,f.getDate(),0,0,0,0));break;case"y":g=+(new Date(f.getFullYear()-1,f.getMonth(),f.getDate(),0,0,0,0))}return drawChart(a,d,c,g,h,$(window).scrollTop(),e)}function drawChart(a,b,c,d,e,f,g){var h=g.ti,i=g.show_subtitle,j=g.sign_ends,k=g.cut_monthnames,l=g.tick_length,m=g.chart_vertical_padding,n={m:-13,"3m":2,"6m":4,y:28},o={m:17,"3m":16,"6m":16,y:16},p={m:.003,"3m":.001,"6m":.001,y:.001},q={m:.003,"3m":.001,"6m":.001,y:.001},r=7506e4;d-=r,e-=r;var s,t;i&&(s={1:"стоимость перевозки",2:"стоимость 1 км перевозки",3:"стоимость перевозки 1 тонны груза на расстояние 1 км"},t=$("input:radio:checked[name=price_type]").val());var u={m:[40,25,80,55],"3m":[40,25,50,55],"6m":[40,25,50,55],y:[40,25,50,55]},v,w,x=c[h][0],y=c[h][1];prs.month_separators=[];var z=0,A=!0,B="",C="";empty(x)&&(i&&(B="<b>(данные отсутствуют)</b>"),A=!1);if(A&&i){var D=Highcharts.dateFormat("%e.%m.%Y",Math.max(x[0][0],d)),E=Highcharts.dateFormat("%e.%m.%Y",Math.min(x[x.length-1][0],e));C=D===E?"("+D+")":"("+D+"-"+E+")"}var F=[];if(h!=="y"){var G=new Date(d-864e5);G=G.getTime()-G.getDay()*24*3600*1e3;while(G<e)F.push({color:"#E3E3E3",value:G,width:1}),G+=6048e5}var H=[g_phrase[951],g_phrase[952],g_phrase[953],g_phrase[954],g_phrase[955],g_phrase[956],g_phrase[957],g_phrase[958],g_phrase[959],g_phrase[960],g_phrase[961],g_phrase[963]],I;for(I=0;I<H.length;I++)H[I]=H[I].toLowerCase(),k&&h==="y"&&(H[I]=H[I].substr(0,3));Highcharts.setOptions({lang:{loading:g_phrase[1378],months:H,weekdays:[g_phrase[950],g_phrase[944],g_phrase[945],g_phrase[946],g_phrase[947],g_phrase[948],g_phrase[949]],decimalPoint:".",thousandsSep:" "}});var J=A?99999999:0,K=A?0:1;if(A){var L;A&&1===x.length-z&&(x[0][1]>K&&(K=x[0][1]),x[0][1]<J&&(J=x[0][1]));if(x.length>1){for(L=0;L<x.length;L++)x[L][1]>K&&(K=x[L][1]),x[L][1]<J&&(J=x[L][1]);m>0&&(J=Math.min(J,y[0][1],y[1][1]),K=Math.max(K,y[0][1],y[1][1]))}}var M={chart:{renderTo:a,margin:u[h],defaultSeriesType:"spline",plotShadow:!0,borderWidth:0,borderRadius:0,borderColor:"#A2A2A2",plotBorderWidth:1,backgroundColor:null},credits:{enabled:!1},title:{text:"<b>Default Chart Title</b>",style:{fontFamily:"Verdana,Arial,Helvetica,sans-serif",fontSize:"12px",color:"#c37a7a"},x:15,y:13},subtitle:{text:i?"<font size='2'>"+s[t]+"</font>"+B+"<br/>"+C:"",style:{color:"#7F8A89"},x:0},xAxis:[{plotLines:F,type:"datetime",maxZoom:5184e5,title:{text:null},minPadding:p[h],maxPadding:q[h],labels:{align:h==="m"||h==="y"?"center":"left",x:n[h],y:o[h],formatter:function(){var a=new Date(this.value);switch(h){case"m":if(this.value>d)return a.getTime()+864e5<e&&(a.getDate()===1||a.getDate()===15)||this.isFirst&&Highcharts.dateFormat("%d",this.value)>="16"&&Highcharts.dateFormat("%d",this.value)<=String(daysInMonth(Highcharts.dateFormat("%m",this.value)-1,Highcharts.dateFormat("%Y",this.value))-3)?Highcharts.dateFormat('<span style="color:'+prs.weekday_color+'">%a</span><br><span style="color:'+prs.day_color+'">%d</span><br><span style="color:'+prs.month_color+'">'+H[Highcharts.dateFormat("%m",this.value)===0?11:Highcharts.dateFormat("%m",this.value)-1]+"</span>",this.value):Highcharts.dateFormat('<span style="color:'+prs.weekday_color+'">%a</span><br><span style="color:'+prs.day_color+'">%d</span><br>',this.value);break;case"3m":Highcharts.dateFormat("%d",this.value)==="01"&&this.value-d>864e5&&prs.month_separators.push(this.value);if(Highcharts.dateFormat("%d",this.value)==="01"&&a.getTime()+432e6<e){this.value-d>864e5&&prs.month_separators.push(this.value);return H[Highcharts.dateFormat("%m",this.value)-1]}if(this.isFirst&&a.getTime()+864e6<+(new Date(a.getFullYear(),a.getMonth()+1,1,0,0,0,0)))return H[Highcharts.dateFormat("%m",this.value)-1];break;case"6m":Highcharts.dateFormat("%d",this.value)==="01"&&this.value-d>864e5&&prs.month_separators.push(this.value);if(Highcharts.dateFormat("%d",this.value)==="01"&&a.getTime()+864e6<e){this.value-d>1728e5&&prs.month_separators.push(this.value);return H[Highcharts.dateFormat("%m",this.value)-1]}if(this.isFirst&&a.getTime()+12096e5<+(new Date(a.getFullYear(),a.getMonth()+1,1,0,0,0,0)))return H[Highcharts.dateFormat("%m",this.value)-1];break;case"y":var b=null;Highcharts.dateFormat("%d",this.value)==="01"&&this.value-d>864e5&&$.inArray(this.value,prs.month_separators)===-1&&prs.month_separators.push(this.value);if(Highcharts.dateFormat("%d",this.value)==="01"&&this.value+1728e6<e){this.value-d>3456e5&&$.inArray(this.value,prs.month_separators)===-1&&prs.month_separators.push(this.value);if(typeof CHART_SHOW_ONLY_FOUR_MONTHS=="undefined"||Highcharts.dateFormat("%m",this.value)%3==0)b=H[Highcharts.dateFormat("%m",this.value)-1]}else this.isFirst&&this.value+24192e5<+(new Date(a.getFullYear(),a.getMonth()+1,1,0,0,0,0))&&(typeof CHART_SHOW_ONLY_FOUR_MONTHS=="undefined"||Highcharts.dateFormat("%m",this.value)%3==0)&&(b=H[Highcharts.dateFormat("%m",this.value)-1]);return b}}},gridLineWidth:h!=="6m"&&h!=="y"?1:0,gridLineColor:"#eaeaea",tickInterval:864e5,tickLength:0}],yAxis:[{title:{text:"Default yAxis title",margin:10,style:{color:"#808080",fontFamily:"Verdana,Arial,Helvetica,sans-serif",fontSize:"11px"}},labels:{formatter:function(){return priceFormat(this.value,3,!1)},style:{color:"#808080"}},min:J*(1-m),max:K*(1+m)}],tooltip:{formatter:function(){return"<b>"+priceFormat(this.y,2)+"</b>"}},toolbar:{itemStyle:{margin:"90px 805px"}},legend:{enabled:x.length>1,borderWidth:0,x:10,y:1,itemStyle:{color:"#808080",fontFamily:'"Lucida Grande","Lucida Sans Unicode",Verdana,Arial,Helvetica,sans-serif',fontSize:"12px"},itemHoverStyle:{color:"#555555"}},loading:{hideDuration:1500,showDuration:750,labelStyle:{top:"45%"}},plotOptions:{spline:{animation:!1,marker:{enabled:!1},fillOpacity:.15,lineWidth:1.5,pointInterval:864e5},line:{animation:!1,dataLabels:{enabled:!0,formatter:function(){return"<b>"+this.series.name+"</b> ("+Highcharts.dateFormat("%e.%m.%Y",this.x+r)+"):<br/>"+this.y}},pointInterval:864e5}},series:[{name:g_phrase[1780]||"тренд",type:"line",dashStyle:"dash",dashLength:20,lineWidth:1,color:"#c37373",dataLabels:{enabled:!1},marker:{enabled:!1},enableMouseTracking:!1,showInLegend:x.length>1,data:x.length>1?y:[[d,null],[e,null]]},{name:g_phrase[1779],lineWidth:3,color:"#598f7f",data:x.length>1?x:[],marker:{enabled:!1},enableMouseTracking:!1,showInLegend:x.length>1},{type:"line",lineWidth:0,color:"#b16464",data:$.merge($.merge([[d,null]],y),[[e,null]]),marker:{enabled:j,symbol:"circle",radius:4},enableMouseTracking:!1,dataLabels:{enabled:!1},showInLegend:!1}]};$.extend(!0,M,b),v=new Highcharts.Chart(M),$("#"+a).show(),$.browser.opera&&$(window).scrollTop(f);var N=$("#"+a).width(),O=$("#"+a).height();if(h!=="m"){var P=0,Q=0,R=0;for(w=0;w<prs.month_separators.length;w++)P=parseInt((N-u[h][1]-u[h][3])*(prs.month_separators[w]-d)/(e-d),10)+u[h][3],prs.month_separators.length===3&&(P+=2*(1-w)),Q=h!=="y"?O-u[h][2]:u[h][0],R=l+(h!=="y"?0:O-u[h][2]-u[h][0]),v.renderer.path(v.renderer.crispLine(["M",P,Q,"L",P,Q+R],3)).attr({stroke:"#d5d5d5","stroke-width":1}).add()}prs.charts[a]=v;return!0}function priceFormat(a,b,c,d,e){typeof b=="undefined"&&(b=3),typeof c=="undefined"&&(c=!0),typeof d=="undefined"?d=0:d=String(d),d==="1"?d=1:d==="2"?d=0:d==="3"&&(d=-2),typeof e=="undefined"?e=CURRENCY_LABELS[LOCAL_CURRENCY][d]:e=CURRENCY_LABELS[e][d];var f=String(a);f.indexOf(".")!==-1&&(f=f.substr(f.indexOf(".")+1),f.length>b&&(a=a.toFixed(b)));return a+(c?" "+e:"")}function daysInMonth(a,b){return 32-(new Date(b,a,32)).getDate()}function empty(a){return a===""||a===0||a==="0"||a===null||a===!1||is_array(a)&&a.length===0}function is_array(a){return a.constructor.toString().indexOf("Array")!==-1}function nameoflog(){document.getElementById("nameoflog").innerHTML=document.getElementById("qwerty").value}function zaglushka(a){a?alert(g_phrase[964]):alert(g_phrase[965]);return!1}function go_to_classic_main_page(a,b){var c=a=="cargo"?"Cargo":"Trans",d=document.getElementById("SelectCountryFrom"+c).value,e=document.getElementById("SelectCountryTo"+c).value,f=document.getElementById("SelectRegionFrom"+c).value,g=document.getElementById("SelectRegionTo"+c).value,h="";if(!a){if(d==0&&e==0){alert("Укажите страну отправления либо страну прибытия");return!1}h=document.getElementById("classicCargo").checked?"cargo":"trans"}else h=a=="cargo"?"cargo":"trans";if(!b){var i=new String("http://"+DELLA_URL+ADD_PATH+"/classic/?");d!=0&&(i+="from_country="+d),f!=0&&(i+="&from_region="+f),e!=0&&(i+="&to_country="+e),g!=0&&(i+="&to_region="+g),h!="cargo"&&(i+="&order_type="+h)}else{var j=new String("http://"+DELLA_URL+ADD_PATH+"/search/"),i=new String(""),k="a",l="b",m="d",n="e";d!=0&&(k+=d),f!=0&&(l+=f),e!=0&&(m+=e),g!=0&&(n+=g),i+=k+l+m+n,i+="f",i+="l",i+="o",i+="l",i+="h",i+="0",i+="i",h=="trans"?i+="k1":i+="k0",i+="m1"}i!=""&&(i+=".html"),i=j+i,window.location=i}function country_change(a,b,c,d){var e=listCountries[a.options[a.selectedIndex].value],f=null;a.id=="SelectCountryFrom"?f="SelectRegionFrom":a.id=="SelectCountryTo"?f="SelectRegionTo":a.id=="SelectCountryFromTrans"?f="SelectRegionFromTrans":a.id=="SelectCountryToTrans"?f="SelectRegionToTrans":a.id=="SelectCountryToCargo"?f="SelectRegionToCargo":a.id=="SelectCountryFromCargo"&&(f="SelectRegionFromCargo"),!f&&d&&(f=d);var g=document.getElementById(f);while(g.hasChildNodes())g.removeChild(g.firstChild);g.options[0]=new Option(g_phrase[108],"0");try{var h=e.regions}catch(i){var h=!1}if(h){var j=1;g.disabled=!1,g.className=b?b:"active_select";for(var k in h)g.options[j++]=new Option(h[k][1],h[k][0])}else g.disabled=!0,g.className=c?c:"inactive_select"}function JsHttpRequest_query(a,b,c,d){a+=a.indexOf("?")==-1?"?":"&";return JsHttpRequest.query(a,b,function(a,b){parse_json(a,b,d)},c)}function parse_json(a,b,c){a&&typeof c=="function"&&c(a,b),b&&(document.getElementById("tsetingdiv").innerHTML=b)}function checkOut(a){actChek("check_cityOut["+a+"]"),controlCheckCity(1,a,!0)}function checkIn(a){actChek("check_cityIn["+a+"]"),controlCheckCity(0,a,!0)}function activ_cb_inp(a,b,c,d,e,f,g){updateDOM(c),addHiddenFieldToRequest(d,extra_input_name1,g),addToAddition(a,b,e)}function activ_cb(a,b,c,d,e,f){activateCheckBox(a,b),updateDOM(document.getElementById(a)),c.className+=" extra_span",addHiddenFieldToRequest(document.getElementById(a).value,d,e),addToAddition(a,b,f)}function f2(a,b,c,d,e){activateCheckBox("extra["+a+"]","text_"+a),updateDOM(document.getElementById("extra["+a+"]")),b.className+=" extra_span",addHiddenFieldToRequest(document.getElementById("extra["+a+"]").value,"request[extra]["+a+"]",c),addToAddition("extra["+a+"]","text_"+a,d),activateInput("extra["+e+"][value]","extra["+e+"]",!0)}function f1(a,b,c,d,e){activateCheckBox("extra["+a+"]","text_"+a,!0),document.getElementById("text_"+a).className+=" extra_span",updateDOM(b),addHiddenFieldToRequest(b.value,"request[extra]["+a+"]",c),addToAddition("extra["+a+"]","text_"+a,d),activateInput("extra["+e+"][value]","extra["+e+"]",!0)}function activateInput(a,b,c){c?document.getElementById(b).checked?document.getElementById(a).disabled=!1:document.getElementById(a).value="":document.getElementById(b).checked?document.getElementById(a).disabled=!1:document.getElementById(a).disabled=!0}function chooseRequest(a,b){a=document.getElementById(a);if(a.checked){for(var c=0;c<=4;c++)document.getElementById("price_cash"+c).checked&&(document.getElementById("price_cash"+c).checked=!1);var d=document.getElementById("price_cash"+b);d&&(d.checked=!0)}}function hideLowerLayer(a,b){var c=document.getElementById(a),d=document.getElementById(b);c.value===0&&(hideLayer(b),c.checked=!1)}function showLayerByCheck(a,b){var c=document.getElementById(a),d=document.getElementById(b);c.checked?displayLayer(b):hideLayer(b)}function activateFieldByText(a,b,c){style=styleS;var d=document.getElementById(a);d.checked===!0?d.checked=!1:d.checked=!0,activateFieldWithStyle(a,b,c)}function activateField(a,b,c,d){style=styleC,activateFieldWithStyle(a,b,c,!1,d)}function activateFieldSmall(a,b,c){style=styleS,activateFieldWithStyle(a,b,c)}function activateFieldWithStyle(a,b,c,d,e){var f=document.getElementById(c),g=document.getElementById(b),h=document.getElementById(a);h.checked===!0?(f&&(f.className=style.formText),g&&(g.className=style.formInput,e?g.removeAttribute("readonly"):g.disabled=!1)):(f&&(f.className=style.formTextDisabled),g&&(g.className=style.formInputDisabled,d||(g.value=""),e?g.setAttribute("readonly","readonly"):g.disabled=!0))}function activateText(a,b){var c=document.getElementById(b),d=document.getElementById(a);d.checked===!0?c.className=style.formText:c.className=style.formTextDisabled}function activateCheckBox(a,b,c,d){var e=document.getElementById(b),f=document.getElementById(a),g=document.getElementById(d);f.checked===!0?c?(e.className=style.formText,g&&(g.className=style.formText)):(f.checked=!1,e.className=style.formTextDisabled,g&&(g.className=style.formTextDisabled)):c?(e.className=style.formTextDisabled,g&&(g.className=style.formTextDisabled)):(f.checked=!0,e.className=style.formText,g&&(g.className=style.formText))}function chng_bg_color(a,b){var c=document.getElementById("q");a.style.backgroundColor=b}function chngclassName_1(a){a.className=="Branch_1st_level"?a.className="Mouse_over_tr_1st":a.className="Branch_1st_level"}function chngclassName_2(a){a.className=="Branch_2nd_level"?a.className="Mouse_over_tr_2nd":a.className="Branch_2nd_level"}function chngclassName(a){a.className=="Branch_3rd_level"?a.className="Mouse_over_tr_3rd":a.className="Branch_3rd_level"}function displayTableRow(a){document.getElementById(a).style.display="block"}function hideLayer(a){defineStatusLayer(a)==!0&&(ie4&&(document.all[a].style.display="none"),nn4&&(document.layers[a].display="none"),dom&&(document.getElementById(a).style.display="none"))}function displayLayer(a){defineStatusLayer(a)==!1&&(ie4&&(document.all[a].style.display="block"),nn4&&(document.layers[a].display="block"),dom&&displayTable(a))}function displayTable(a){if(defineStatusLayer(a)==!1){ie4&&(document.all[a].style.display="block"),nn4&&(document.layers[a].display="block");if(dom)try{document.getElementById(a).style.display="table"}catch(b){document.getElementById(a).style.display="block"}}}function defineStatusLayer(a){if(ie4)return document.all[a].style.display=="none"?!1:!0;if(nn4)return document.layers[a].display=="none"?!1:!0;if(dom)return document.getElementById(a).style.display=="none"?!1:!0}function moveSelect(a,b){clearInterval(sIntVal),divs=a.getElementsByTagName("div"),selectedNumDivId!=-1&&selectDiv(document.getElementById(selectedNumDivId)),b==!0&&(selectedNumDivId<divs.length-1?(selectedNumDivId++,unSelectDiv(document.getElementById(selectedNumDivId))):(selectedNumDivId=0,unSelectDiv(document.getElementById(selectedNumDivId)))),b||(selectedNumDivId!=0&&selectedNumDivId!=-1?(selectedNumDivId--,unSelectDiv(document.getElementById(selectedNumDivId))):(selectedNumDivId=divs.length-1,unSelectDiv(document.getElementById(selectedNumDivId))))}function clickDiv(a,b,c,d,e){if(b){inp=document.getElementById(b.getAttribute("own"));if(d){inpNumber=inp.getAttribute("numberinp"),inpInOut=inp.getAttribute("inout"),inpRegion=document.getElementsByName("request[r"+inpInOut+"id]["+inpNumber+"]"),inpCountry=document.getElementsByName("request[c"+inpInOut+"id]["+inpNumber+"]"),inpCity=document.getElementsByName("request[cit"+inpInOut+"id]["+inpNumber+"]");if(c){var f=document.getElementById("citid"+selectedNumDivId);f&&(inpCity[0].value=f.value,f.getAttribute("rid")&&(inpRegion[0].value=f.getAttribute("rid")),f.getAttribute("cid")&&(inpCountry[0].value=f.getAttribute("cid")))}if($("#select_region_uid option")){var g=f.getAttribute("rid");$("#select_region_uid option[value='"+g+"']").val()?$("#select_region_uid option[value='"+g+"']").attr("selected","selected"):$("#select_region_uid option[value='0']").attr("selected","selected")}}c&&(inp.value=document.getElementById("span"+selectedNumDivId).innerHTML),e&&document.getElementById("span_r"+selectedNumDivId)&&(inp.value+=", "+document.getElementById("span_r"+selectedNumDivId).innerHTML),inp.setAttribute("flagReq",0),b.innerHTML="",b.style.display="none",selectedNumDivId=-1,clearInterval(sIntVal)}return!1}function unSelectDiv(a){isMouseOn=1;if(!a)return!1;selectedNumDivId!=-1&&selectDiv(document.getElementById(selectedNumDivId)),a.className="srs",selectedNumDivId=a.id}function selectDiv(a,b){isMouseOn=0;if(!a)return!1;a.className="sr",b==!0&&(selectedNumDivId=-1)}function inputGetPeep(a,b,c,d){function o(){typeof o.fWasBadPhraseDivDraw=="undefined"&&(o.fWasBadPhraseDivDraw=!1),typeof o.fWasBadPhraseDivClear=="undefined"&&(o.fWasBadPhraseDivClear=!1),text=g.value;if(!g.wasBckSpc&&text.length<2)return!1;rtplBadPhrase=["любой","будь-який"],itplBadPhraseMax=rtplBadPhrase.length-1;if(typeof text=="undefined")return!1;for(var c=0;c<=itplBadPhraseMax;c++){var e=text.indexOf(rtplBadPhrase[c],0);if(e!=-1){var f=!0;break}var f=!1}var p=document.getElementById("div_bad_phrase");if(p!=null)var q=!0;else var q=!1;if(f&&!o.fWasBadPhraseDivDraw){document.getElementById(k).style.display="block",document.getElementById(l).style.display="block",document.getElementById(k).innerHTML='<div onclick="" class="sr" style="cursor: default;" id="div_bad_phrase"> <span onclick="" class="srt" id="span0">'+g_phrase[1064]+"</span></div>",inputGetPeep.fWasBadPhraseDivDraw=!0,o.fWasBadPhraseDivDraw=!0,o.fWasBadPhraseDivClear=!1;return!0}if(f&&o.fWasBadPhraseDivDraw&&!q){document.getElementById(k).style.display="block",document.getElementById(l).style.display="block",document.getElementById(k).innerHTML='<div  onclick="return false;" class="sr" style="cursor: default;" id="div_bad_phrase"> <span onclick="return false;" class="srt" id="span0">'+g_phrase[1064]+"</span></div>",inputGetPeep.fWasBadPhraseDivDraw=!0,o.fWasBadPhraseDivDraw=!0,o.fWasBadPhraseDivClear=!1;return!0}if(f&&o.fWasBadPhraseDivDraw&&!o.fWasBadPhraseDivClear)return!0;!f&&o.fWasBadPhraseDivDraw&&!o.fWasBadPhraseDivClear&&(document.getElementById(k).style.display="none",document.getElementById(l).style.display="none",document.getElementById(k).innerHTML="",inputGetPeep.fWasBadPhraseDivDraw=!1,o.fWasBadPhraseDivDraw=!1,o.fWasBadPhraseDivClear=!0),url="ajax_drop_down.php?mode=city_hint_old";if(text!=n){n=text,selectedNumDivId=-1;if(text&&g.getAttribute("flagReq")!=0){var r=0;typeof SELECTED_COUNTRY_UID!="undefined"&&(r=SELECTED_COUNTRY_UID),m.setAttribute("own",a),params={mode:"city_hint_old",is_trans:b?1:0,name:text,input:a,isShowWp:d,cntr_uid:r},JsHttpRequest.query(url,params,function(a,b){h=!0,document.getElementById(k).style.display="none",document.getElementById(l).style.display="none",document.getElementById(k).innerHTML="";var c=0;a.hint_cities&&!i?(document.getElementById(k).style.display="block",document.getElementById(l).style.display="block",document.getElementById(k).innerHTML=a.hint_cities):(document.getElementById(k).innerHTML="",document.getElementById(k).style.display="none",document.getElementById(l).style.display="none");if(window.navigator.userAgent.indexOf("MSIE")!=-1&&a.hint_cities!=""&&j&&j.length)for(c=0;c<j.length;c++){var d=document.getElementById(j[c]);d&&(d.style.visibility="hidden")}},!1),selectedNumDivId=0}else{if(window.navigator.userAgent.indexOf("MSIE")!=-1&&j&&j.length)for(var s=0;s<j.length;s++){var t=document.getElementById(j[s]);t&&(t.style.visibility="visible")}document.getElementById(k).innerHTML="",document.getElementById(k).style.display="none"}}}function f(a){var b=a?a:window.event,d=b.charCode?a.charCode:b.keyCode;switch(d){case 27:escapeKey(k);return!1;case 38:if(document.getElementById(k).innerHTML=="")return!1;clearInterval(sIntVal),moveSelect(m);return!1;case 40:if(document.getElementById(k).innerHTML=="")return!1;clearInterval(sIntVal),moveSelect(m,!0);return!1;case 13:if(document.getElementById("div_bad_phrase")!=null)return!1;if(selectedNumDivId!=-1){g.value=document.getElementById("span"+selectedNumDivId).innerHTML,e&&document.getElementById("span_r"+selectedNumDivId)&&(g.value+=", "+document.getElementById("span_r"+selectedNumDivId).innerHTML);if(c){inpNumber=g.getAttribute("numberinp"),inpInOut=g.getAttribute("inout"),inpRegion=document.getElementsByName("request[r"+inpInOut+"id]["+inpNumber+"]"),inpCountry=document.getElementsByName("request[c"+inpInOut+"id]["+inpNumber+"]"),inpCity=document.getElementsByName("request[cit"+inpInOut+"id]["+inpNumber+"]");var f=document.getElementById("citid"+selectedNumDivId);f&&(inpCity[0].value=f.value,f.getAttribute("rid")&&(inpRegion[0].value=f.getAttribute("rid")),f.getAttribute("cid")&&(inpCountry[0].value=f.getAttribute("cid")))}escapeKey(k),clearInterval(sIntVal);if($("#select_region_uid option")){var h=f.getAttribute("rid");$("#select_region_uid option[value='"+h+"']").val()?$("#select_region_uid option[value='"+h+"']").attr("selected","selected"):$("#select_region_uid option[value='0']").attr("selected","selected")}}g.setAttribute("flagReq",0),clearInterval(sIntVal);return!1;case 9:break;case 8:g.wasBckSpc=1;break;default:c&&(inpNumber=g.getAttribute("numberinp"),inpInOut=g.getAttribute("inout"),inpRegion=document.getElementsByName("request[r"+inpInOut+"id]["+inpNumber+"]"),inpCountry=document.getElementsByName("request[c"+inpInOut+"id]["+inpNumber+"]"),inpCity=document.getElementsByName("request[cit"+inpInOut+"id]["+inpNumber+"]"),inpRegion[0].value="",inpCountry[0].value="",inpCity[0].value=""),g.wasBckSpc=0,g.setAttribute("flagReq",1),sIntVal=setInterval(o,1e3)}}var e=!1,g=document.getElementById(a);if(!!g){g.setAttribute("flagReq",1),g.onkeydown=f;var h=!1,i=!1,j=hideSelectList[a];g.onfocus=function(){g.className=="regCommentInput"&&(g.className="regCommentInputBlack"),sIntVal=setInterval(o,1e3),h=!1,i=!1},typeof inputGetPeep.fWasBadPhraseDivDraw=="undefined"&&(inputGetPeep.fWasBadPhraseDivDraw=!1),g.onblur=function(a){h||(i=!0),selectedNumDivId!=-1&&(isMouseOn==1&&!inputGetPeep.fWasBadPhraseDivDraw?clickDiv(!1,m,!0,c,e):clickDiv(!1,m,!1,c,e)),document.getElementById(k).innerHTML="",document.getElementById(k).style.display="none",document.getElementById(k+"x").style.display="none",selectedNumDivId=-1};var k=g.getAttribute("peepDiv"),l=k+"x",m=document.getElementById(k),n=""}}function escapeKey(a){document.getElementById(a).innerHTML="",document.getElementById(a).style.display="none",document.getElementById(a+"x").style.display="none",selectedNumDivId=-1;return!1}function initInputsTrans(a){inputGetPeep("cityIn[0]",!0,!0,1),inputGetPeep("cityIn[1]",!0,!0,1),inputGetPeep("cityIn[2]",!0,!0,1),inputGetPeep("cityIn[3]",!0,!0,1),inputGetPeep("cityIn[4]",!0,!0,1),inputGetPeep("cityIn[5]",!0,!0,1),inputGetPeep("cityIn[6]",!0,!0,1),inputGetPeep("cityIn[7]",!0,!0,1),inputGetPeep("cityOut[0]",!0,!0,1),inputGetPeep("cityOut[1]",!0,!0,1),inputGetPeep("cityOut[2]",!0,!0,1),inputGetPeep("cityOut[3]",!0,!0,1),inputGetPeep("cityOut[4]",!0,!0,1),inputGetPeep("cityOut[5]",!0,!0,1),inputGetPeep("cityOut[6]",!0,!0,1),inputGetPeep("cityOut[7]",!0,!0,1)}function initInputsCargo(){inputGetPeep("cityIn[0]",!0,!0,0),inputGetPeep("cityIn[1]",!0,!0,0),inputGetPeep("cityIn[2]",!0,!0,0),inputGetPeep("cityIn[3]",!0,!0,0),inputGetPeep("cityIn[4]",!0,!0,0),inputGetPeep("cityIn[5]",!0,!0,0),inputGetPeep("cityIn[6]",!0,!0,0),inputGetPeep("cityIn[7]",!0,!0,0),inputGetPeep("cityOut[0]",!0,!0,0),inputGetPeep("cityOut[1]",!0,!0,0),inputGetPeep("cityOut[2]",!0,!0,0),inputGetPeep("cityOut[3]",!0,!0,0),inputGetPeep("cityOut[4]",!0,!0,0),inputGetPeep("cityOut[5]",!0,!0,0),inputGetPeep("cityOut[6]",!0,!0,0),inputGetPeep("cityOut[7]",!0,!0,0)}function getLeftTopElem(a){initDHTMLAPI();var b=[],c=getRawObject(a);b[0]=0,b[1]=0;while(c)b[0]+=c.offsetLeft,b[1]+=c.offsetTop,c=c.offsetParent;if(isNaN(b[0])||isNaN(b[1]))b[0]=0,b[1]=0;return b.join(".")}function initMap(){initDHTMLAPI();var a=getRawObject("imgUkraine");posImgLeft=0,posImgTop=0;while(a)posImgLeft+=a.offsetLeft,posImgTop+=a.offsetTop,a=a.offsetParent;if(isNaN(posImgLeft)||isNaN(posImgTop))posImgLeft=0,posImgTop=0}function getInsideWindowHeight(){if(window.innerHeight)return window.innerHeight;if(isIE6CSS)return document.body.parentElement.clientHeight;if(document.body&&document.body.clientHeight)return document.body.clientHeight;return 0}function getInsideWindowWidth(){if(window.innerWidth)return window.innerWidth;if(isIE6CSS)return document.body.parentElement.clientWidth;if(document.body&&document.body.clientWidth)return document.body.clientWidth;return 0}function getObjectHeight(a){var b=getRawObject(a),c=0;b.offsetHeight?c=b.offsetHeight:b.clip&&b.clip.height?c=b.clip.height:b.style&&b.style.pixelHeight&&(c=b.style.pixelHeight);return parseInt(c,10)}function getObjectWidth(a){var b=getRawObject(a),c=0;b.offsetWidth?c=b.offsetWidth:b.clip&&b.clip.width?c=b.clip.width:b.style&&b.style.pixelWidth&&(c=b.style.pixelWidth);return parseInt(c,10)}function hide(a){var b=getObject(a);b&&(b.visibility="hidden")}function show(a){var b=getObject(a);b&&(b.visibility="visible")}function setBGColor(a,b){var c=getObject(a);c&&(isNN4?c.bgColor=b:isCSS&&(c.backgroundColor=b))}function setZIndex(a,b){var c=getObject(a);c&&(c.zIndex=b)}function shiftBy(a,b,c){var d=getObject(a);if(d)if(isCSS){var e=typeof d.left=="string"?"px":0;d.left=getObjectLeft(a)+b+e,d.top=getObjectTop(a)+c+e}else isNN4&&d.moveBy(b,c)}function getObjectTop(a){var b=getRawObject(a),c=0;if(document.defaultView){var d=document.defaultView,e=d.getComputedStyle(b,"");c=e.getPropertyValue("top")}else b.currentStyle?c=b.currentStyle.top:b.style?c=b.style.top:isNN4&&(c=b.top);return parseInt(c,10)}function getObjectLeft(a){var b=getRawObject(a),c=0;if(document.defaultView){var d=document.defaultView,e=d.getComputedStyle(b,"");c=e.getPropertyValue("left")}else b.currentStyle?c=b.currentStyle.left:b.style?c=b.style.left:isNN4&&(c=b.left);return parseInt(c,10)}function shiftTo(a,b,c){var d=getObject(a);if(d)if(isCSS){var e=typeof d.left=="string"?"px":0;d.left=b+e,d.top=c+e}else isNN4&&d.moveTo(b,c)}function getObject(a){var b=getRawObject(a);b&&isCSS&&(b=b.style);return b}function getRawObject(a){var b;typeof a=="string"?isW3C?b=document.getElementById(a):isIE4?b=document.all(a):isNN4&&(b=seekLayer(document,a)):b=a;return b}function seekLayer(a,b){var c;for(var d=0;d<a.layers.length;d++){if(a.layers[d].name==b){c=a.layers[d];break}a.layers[d].document.layers.length>0&&(c=seekLayer(document.layers[d].document,b))}return c}function initDHTMLAPI(){document.images&&(isCSS=document.body&&document.body.style?!0:!1,isW3C=isCSS&&document.getElementById?!0:!1,isIE4=isCSS&&document.all?!0:!1,isNN4=document.layers?!0:!1,isIE6CSS=document.compatMode&&document.compatMode.indexOf("CSS1")>=0?!0:!1,isOpera=navigator.userAgent.indexOf("Opera")!=-1)}function sinchronSelects(a,b,c){var d=document.getElementById(a),e=document.getElementById(b);c===!0?d.value-0>e.value-0&&e.value!=0&&(e.value=d.value):d.value-0<e.value-0&&d.value!=0&&(d.value=e.value);return 1}function newTriggerMy(a,b,c,d,e){var f=document.getElementById(a),g=document.getElementById(d);if(f&&b){var h=f.getAttribute("request_id"),i=!1;if(myRequestsList.in_array(h)){i=!0;var j=myRequestsList.length;for(var k=0;k<j;k++)if(myRequestsList[k]==h){myRequestsList.splice(k,1);break}f.style.backgroundColor="#FFFFFF",c.style.backgroundColor="#FFFFFF",jq_img_rating=$(f).find('img[rating="rating"]'),jq_img_rating.attr("src","/img/prlist_coins/rating_coins_"+jq_img_rating.attr("rating_value")+"_short.png"),g.checked=!1}else i=!1,checkRequest(h),myRequestsList.push(h);saveMyRequestClassic(h,i)}}function saveMyRequestClassic(a,b){var c="mySRClassic",d="-",e=getCookie(c);if(e){var f=e.split(d),g=f.length;if(g>0)if(!b)f.in_array(a)||(e=e+d+a);else if(f.in_array(a)){e="";for(var h=0;h<g;h++)f[h]!=a&&(e=e+d+f[h]);e[0]==d&&(e=e.substr(1))}}else b?e="":e=a;var i=new Date;i.setMonth(i.getMonth()+1),setCookie(c,e,i.toGMTString())}function isLoggedClassic(a){if(a){asTrigger();return!0}alert(g_phrase[55]);return!1}function look_if_online_is_still_checked(){if(document.getElementById("state_scan_cb")&&!document.getElementById("state_scan_cb").checked){asPermitRequest=!1,asStop(),colStandart(),clearTimeout(asShowTimerHandle);return!1}return!0}function draw_one_request(a){if(!!look_if_online_is_still_checked())if(!a||a.length==0)clearInterval(asShowTimerHandle);else{var b=a.pop(),c=b.request,d=b.id,e=b.date_up;b="rRow"+b.id;if((check_spam(shownIds,b,e)||asAjaxParams[0].order_type!="T"&&!deletedRequestsList.in_array(d))&&check_date_up(e)){var f=$("#request_list_main_tbl > tr").length>=27,g=$("#request_list_main_tbl > tr:last"),h=g.length?g.get()[0].id:!1,i,j=!1;if(h=="google_advertisement_in_middle"||h=="google_advertisement_in_middle2"){var k=h=="google_advertisement_in_middle";f&&(g.remove(),g=$("#request_list_main_tbl > tr:last"),h=g.length?g.get()[0].id:!1),j=!0}!j&&f&&(g.remove(),g=$("#request_list_main_tbl > tr:last"),h=g.length?g.get()[0].id:!1),g.find(".request_level_check_ms,.request_level_ms").css("border-bottom","1px solid #a2a2a2"),g.find(".request_checkbox,.request").css("border-bottom","1px solid #cfcfcf");if(j){$("#request_list_main_tbl > tr:first").before(k?google_ad_iframe_src:google_ad_iframe_src2),$(".google_ad").css("border-bottom","none"),i=$("#request_list_main_tbl > tr:first"),i.find(".request_level_ms,.request_level_check_ms").css("border-top","1px solid #a2a2a2"),i.find(".request_checkbox,.request").css("border-top","1px solid #cfcfcf"),show_one_request(i),asShowTimerHandle=setTimeout(function(){draw_one_request(a)},asDrawTimeInterval*1e3);return!0}h&&(shownIds.push([h,g.attr("dateup")]),shownIds.length>100&&(shownIds.shift(),shownIds.shift(),shownIds.shift())),$("#request_list_main_tbl > tr:first").find(".request_level_ms, .request_level_check_ms, .request_checkbox,.request").css("border-top","none"),h===!1?$("#request_list_main_tbl").append(c):$("#request_list_main_tbl > tr:first").before(c),i=$("#request_list_main_tbl > tr:first"),i.find(".request_level_ms,.request_level_check_ms").css("border-top","1px solid #a2a2a2"),i.find(".request_checkbox,.request").css("border-top","1px solid #cfcfcf"),$("#veshka_"+d).css("visibility","visible"),show_one_request(i),SetCompanyStatus("rRow"+d)}asShowTimerHandle=setTimeout(function(){draw_one_request(a)},asDrawTimeInterval*1e3)}}function show_one_request(a){jQuery.support.opacity&&$(a).hide().fadeIn(1e3);return!0}function check_spam(a,b,c){var d=0,e=0;for(e=a.length-1;e>=0;e--){d=parseInt(a[e][1])+spamTimeLimit;if(a[e][0]==b)return d>parseInt(c)?!1:!0}return!0}function check_date_up(a){dateUp=parseInt(a);if(!maxDateUp||maxDateUp<dateUp){maxDateUp=dateUp;return!0}var b=maxDateUp<dateUp+120?!0:!1;return b}function asu_new(a){var b="Внимание!\n\nДля продолжения on-line обновления информации требуется Ваше подтверждение.\n\nВы действиельно хотите продолжить обновление по данному направлению?";asRequestsCnt>=123?(asPermitRequest=!1,document.getElementById("state_scan_cb").checked=!1,asStop(),window.confirm(b)===!0?refreshBookmark(document.getElementById("bookmark_number").value,1):(clearInterval(asShowTimerHandle),clearInterval(asTimerHandle)),asRequestsCnt=0):document.getElementById("state_scan_cb").checked=!0,colStandart();!look_if_online_is_still_checked()||(drawBirdsNew(),draw_one_request(a))}function refreshBookmark(a,b){var c=document.createElement("FORM");document.body.appendChild(c),c.method="POST";var d=document.createElement("INPUT");d.setAttribute("type","hidden"),d.setAttribute("name","scanner_on"),d.setAttribute("value",b),c.appendChild(d),c.action=document.location.pathname,c.submit()}function convert2RawIds(a){var b=[];for(var c in a){if(typeof a[c]!="string")continue;if(a[c].indexOf("google")>=0)continue;b.push(a[c].replace("rRow",""))}return b}function SetDeleted(a){var b=document.getElementById("veshka_"+a);b&&(b.style.visibility="visible",b.className="klushka veshka_deleted",b.innerHTML="X",$(b).css("color","#FF0000"),$("#request_tr_"+a+" > table").addClass("c89_deleted"
))}function drawBirdsNew(){var a=[],b=$("#request_list_main_tbl > tr").get();for(var c in b)if(b[c].id){var d=b[c].id.replace("rRow",""),e=document.getElementById("veshka_"+d);if(e&&e.innerHTML!="X"&&!deletedRequestsList.in_array(d)){if(e.style.visibility=="visible"&&!in_array(d,a)){var f=getHexRGBColor($(e).css("color"));for(var g in vshkaColors){if(vshkaColors[g]==f&&g<birdToShowCnt-1){var h=parseInt(g);$(e).css("color",vshkaColors[h+1]),a.push(d);break}g==birdToShowCnt-1&&vshkaColors[g]==f&&(e.style.visibility="hidden")}}}else SetDeleted(d)}}function getHexRGBColor(a){a=a.replace(/\s/g,"");var b=a.match(/^rgb\((\d{1,3}[%]?),(\d{1,3}[%]?),(\d{1,3}[%]?)\)$/i);if(b){a="";for(var c=1;c<=3;c++)a+=Math.round((b[c][b[c].length-1]=="%"?2.55:1)*parseInt(b[c])).toString(16).replace(/^(.)$/,"0$1");a="#"+a}else a=a.replace(/^#?([\da-f])([\da-f])([\da-f])$/i,"$1$1$2$2$3$3");return a}function new_requests(a){var b=[],c=[],d=current_active_requests();for(var e in a)a[e].id&&typeof a[e]!="function"&&(!d.in_array("rRow"+a[e].id)||asAjaxParams[0].order_type!="T")&&c.push(a[e]);return c}function last_request_date_up(){var a=$("#request_list_main_tbl > tr").get();if(a.length>0){var b=a[0].id;if(b=="google_advertisement_in_middle"||b=="google_advertisement_in_middle2")b=a[1].id;var c=$("#"+b).attr("dateup"),d=parseInt(c);maxDateUp&&d<maxDateUp&&(d=maxDateUp);return d}return maxDateUp?maxDateUp:"0"}function current_active_requests(){var a=[],b=$("#request_list_main_tbl > tr").get();for(var c in b){var d=b[c].id;d&&$("#veshka_"+d.replace("rRow","")).html()!="X"&&a.push(d)}return a}function colStandart(){document.getElementById("on_line_hdr").style.color="#586A85"}function make_mobile_search_query_params(){var a="",b=0;document.getElementById("SelectVTruck")&&(b=document.getElementById("SelectVTruck").value);var c=0;document.getElementById("SelectWeightFrom")&&(c=document.getElementById("SelectWeightFrom").value);var d=0;document.getElementById("SelectWeightTo")&&(d=document.getElementById("SelectWeightTo").value);var e=document.getElementById("classicCargo_").checked?"cargo":"trans",f=!1,g=!1,h=!1,i="a",j="b",k="d",l="e",m="SelectCountryFrom1";if(document.getElementById(m)){var n=document.getElementById(m);h=n.options[n.selectedIndex].value;if(h&&h+0!=0){var o=n.options[n.selectedIndex].value;o==""?i+="0":i+=o;var p=document.getElementById("SelectRegionFrom1"),o=p.options[p.selectedIndex].value;o?j+=o:j+="0",f=!0}}var m="SelectCountryTo1";if(document.getElementById(m)){var n=document.getElementById(m);h=n.options[n.selectedIndex].value;if(h&&h+0!=0){var o=n.options[n.selectedIndex].value;o==""?k+="0":k+=o;var p=document.getElementById("SelectRegionTo1"),o=p.options[p.selectedIndex].value;o?l+=o:l+="0",g=!0}}j=="b0"&&(j="b"),l=="e0"&&(l="e"),a+=i+j+k+l,a+="f",a+="o",c!==0&&(c!=0&&(a+=c),a+="l",d!=0&&(a+=d));if(!g&&!f){alert(g_phrase[1030]);return!1}a+="h",b!==0&&(a+=b),e=="trans"?a+="k1":a+="k0",a+="m";return a}function find_me_some_mobile_treasures(){var a=make_mobile_search_query_params();if(!a)return!1;var b="http://"+DELLA_URL+ADD_PATH+"/results/?geo="+a;if(b)window.location=b;else return!1}function find_parent_with_class_name(a,b,c){var d=document.getElementById(a),e,f=0,g=c.toLowerCase(),h=b.toLowerCase();do{e=d.parentNode,d=e;if(!e||e.tagName.toLowerCase()=="body")return null;if(e.tagName.toLowerCase()==h&&e.className.toLowerCase().indexOf(g)!=-1)return e}while(f++<1e3)}function selectLanguage(a,b){$("#"+b+" option[value='"+SELECTED_COUNTRY_UID+"']").val()?$("#"+b+" option[value='"+SELECTED_COUNTRY_UID+"']").attr("selected","selected"):$("#"+b+" option[value='164']").attr("selected","selected")}function redraw_ownership(a,b){var c=$("#"+b),d=OWNERSHIP_LIST[a.options[a.selectedIndex].value];SELECTED_COUNTRY_UID=a.options[a.selectedIndex].value;while(c[0].hasChildNodes())c[0].removeChild(c[0].firstChild);var e=0;c[0].options[e++]=new Option("выбрать","0"),c[0].options[e++]=new Option("----------------------------------","0");if(d){c[0].disabled=!1;for(var f in d)c[0].options[e++]=new Option(d[f],f);c[0].options[e++]=new Option("----------------------------------","0")}else c[0].disabled=!0}function redraw_regions(a,b,c,d){var e=find_parent_with_class_name(a.id,"table","multisearchBlock"),f=e.getElementsByTagName("*");for(var g=0;g<f.length;g++)if((f[g].tagName+"").toLowerCase()=="select"){if(f[g].name=="SelectRegion")var h=f[g];if(f[g].name=="SelectCountry")var i=f[g]}var j=listCountries[i.options[i.selectedIndex].value],k=h;while(k.hasChildNodes())k.removeChild(k.firstChild);k.options[0]=new Option(g_phrase[108],"0");try{var l=j.regions}catch(m){l=!1}if(l){var n=1;k.disabled=!1,k.className=b?b:"active_select",d&&(k.options[n++]=new Option("------------------------------",0));for(var g in l)d?l[g][0]>0&&(k.options[n++]=new Option(l[g][1],l[g][0])):k.options[n++]=new Option(l[g][1],l[g][0])}else k.disabled=!0,k.className=c?c:"inactive_select"}function delBookmarkClick(a,b){if(!confirm(b))return!1;var c="http://"+DELLA_URL+ADD_PATH+"/search/bookmark/"+$("#bookmark_number").attr("value")+"/"+a+"/";if(c)window.location=c;else return!1}function find_me_some_treasures(){var a=make_short_search_query_url();if(a)window.location=a;else return!1}function make_short_search_query_url(){var a=make_short_search_query_params();if(!a)return!1;var b="http://"+DELLA_URL+ADD_PATH+"/search/"+a+".html";return b}function make_short_search_query_params(){var a="",b=0;document.getElementById("SelectCube")&&(b=document.getElementById("SelectCube").value);var c=0;document.getElementById("SelectVTruck")&&document.getElementById("SelectVTruck").value!=6&&(c=document.getElementById("SelectVTruck").value);var d=0;document.getElementById("SelectWeight")&&(d=document.getElementById("SelectWeight").value);var e=0;document.getElementById("SelectWeightFrom")&&(e=document.getElementById("SelectWeightFrom").value);var f=0;document.getElementById("SelectWeightTo")&&(f=document.getElementById("SelectWeightTo").value);var g=0;document.getElementById("SelectCubeFrom")&&(g=document.getElementById("SelectCubeFrom").value);var h=0;document.getElementById("SelectCubeTo")&&(h=document.getElementById("SelectCubeTo").value);var i=0;document.getElementById("calInputTextFrom")&&(i=document.getElementById("calInputTextFrom").getAttribute("datevalue").replace(/\//g,"-"));var j=0;document.getElementById("calInputTextTo")&&(j=document.getElementById("calInputTextTo").getAttribute("datevalue").replace(/\//g,"-"));var k=document.getElementById("classicCargo_").checked?"cargo":"trans",l=!1,m=!1,n=-1,o=-1,p=$("[name=marshrutteKeeperFrom] select"),q=$("[name=marshrutteKeeperTo] select"),r=$("[name=marshrutteKeeperFrom] [name=SelectCountry]"),s=$("[name=marshrutteKeeperFrom] [name=SelectRegion]"),t=$("[name=marshrutteKeeperTo] [name=SelectCountry]"),u=$("[name=marshrutteKeeperTo] [name=SelectRegion]"),v=!1,w="a",x="b",y="d",z="e";for(var A=1;A<=8;A++){var B="SelectCountryFrom"+A;if(document.getElementById(B)){var C=document.getElementById(B);v=C.options[C.selectedIndex].value;if(v&&v+0!=0){++n;var D=C.options[C.selectedIndex].value;D==""?w+="0":w+=D,A!=r.length&&(w+="l");var E=document.getElementById("SelectRegionFrom"+A),D=E.options[E.selectedIndex].value;D?x+=D:x+="0",A!=r.length&&(x+="l"),l=!0}}var B="SelectCountryTo"+A;if(document.getElementById(B)){var C=document.getElementById(B);v=C.options[C.selectedIndex].value;if(v&&v+0!=0){++o;var D=C.options[C.selectedIndex].value;D==""?y+="0":y+=D,A!=t.length&&(y+="l");var E=document.getElementById("SelectRegionTo"+A),D=E.options[E.selectedIndex].value;D?z+=D:z+="0",A!=t.length&&(z+="l"),m=!0}}}x=="b0"&&(x="b"),z=="e0"&&(z="e"),a+=w+x+y+z,a+="f";if(g!==0||h!==0)g!=0&&(a+=g),a+="l",h!=0&&(a+=h);a+="o";if(e!==0||f!==0)e!=0&&(a+=e),a+="l",f!=0&&(a+=f);if(!m&&!l){alert(g_phrase[1030]);return!1}a+="h",c!==0&&(a+=c),a+="i";if(i!==0||j!==0){var F=new Date,G=getDateObject(i),H=getDateObject(j),I=!0;F.getDate()==G.getDate()&&F.getMonth()==G.getMonth()&&F.getYear()==G.getYear()&&(F.getDate()==H.getDate()&&H.getMonth()-F.getMonth()==2&&F.getYear()==H.getYear()&&(I=!1),F.getDate()==H.getDate()&&H.getMonth()+12-F.getMonth()==2&&F.getYear()==H.getYear()-1&&(I=!1)),I&&(a+=convertDate(i),a+="l",a+=convertDate(j))}k=="trans"?a+="k1":a+="k0",a+="m";if(document.getElementById("bookmark_number")){var J=document.getElementById("bookmark_number").value;a+=J}return a}function getDateObject(a){var b=a.split("-"),c=b[0],d=b[1];d.substring(0,1)==0&&(d=d.substring(1));var e=b[2];e.substring(0,1)==0&&(e=e.substring(1));return new Date(c,d-1,e,17,35,22)}function convertDate(a){var b=a.split("-"),c=b[0].substring(2),d=b[1];d.length==1&&(d="0"+d);var e=b[2];e.length==1&&(e="0"+e);return c+d+e}function find_next_all(a,b,c){var d=b.toLowerCase(),e=c.toLowerCase();if(typeof a=="object")var f=a;else f=document.getElementById(a);var g=f.nextSibling,h=[];while(g)g.tagName&&g.tagName.toLowerCase()==d&&g.className.toLowerCase().indexOf(e)!=-1&&(h[h.length]=g),g=g.nextSibling;return h}function we_want_more(a,b,c){var d=a.id.substring(a.id.length-1),e=a.id.substring(0,a.id.length-1),f=$("table").filter("[class=multisearchBlock]"),g=$("#"+a.id+"").parents("table[class=multisearchBlock]")[0],h=g.parentNode,i=e.toLowerCase().indexOf("from")!=-1,j=$(g).find("label")[0],k=$(j).find("span")[0];if(a.checked){var l=d;l++;if(f.length>=8){a.checked=!1,alert(g_phrase[1029]);return!1}var m=g.cloneNode(!0);b&&(j.style.color=c?"#5b6264":"black",k.style.visibility="visible");var n=a.id.substring(0,a.id.length-1),o=$(m).find("select").filter("[name=SelectCountry]")[0].id.substring(0,$(m).find("select").filter("[name=SelectCountry]")[0].id.length-1),p=$(m).find("select").filter("[name=SelectRegion]")[0].id.substring(0,$(m).find("select").filter("[name=SelectRegion]")[0].id.length-1),q=$(m).find("input").filter("type=checkbox").prevObject[0];q.checked=!1,q.id=n+l+"";var r=$(m).find("label")[0];r.setAttribute("for",q.id),r.htmlFor=q.id;var s=$(m).find("select").filter("[name=SelectCountry]")[0];s.id=o+l,a.id.substring(0,a.id.length-1)=="cbxMoreFrom"?s.selectedIndex=document.getElementById("SelectCountryFrom"+d).selectedIndex:s.selectedIndex=document.getElementById("SelectCountryTo"+d).selectedIndex;var t=$(m).find("select").filter("[name=SelectRegion]")[0];t.id=p+l,a.id.substring(0,a.id.length-1)=="cbxMoreFrom"?t.selectedIndex=document.getElementById("SelectRegionFrom"+d).selectedIndex:t.selectedIndex=document.getElementById("SelectRegionTo"+d).selectedIndex;var u=find_parent_with_class_name(a.id,"table","multisearchBlock");u==g&&h.appendChild(m)}else{var v=find_next_all(g,"table","multisearchBlock"),w=v[0],x=v[1];x?a.checked=!0:b&&(j.style.color="#949494",k.style.visibility="hidden"),h.removeChild(w)}}function showRequestSearchWnd(a){var b=$("#bookmark_number")[0],c=$("#state_scan_cb")[0];a?b.value=a:b.value=1,blockRequestsSycle=!0,hwndRequestSearch||(hwndCfg.header.title=g_phrase[937],hwndCfg.width=CURRENT_LANG=="kz"?857:757,hwndRequestSearch=new EvaxModalWindow(hwndCfg)),hwndRequestSearch.show();return!1}function messagePager(a,b,c,d){if(typeof a=="undefined"||a=="")return!1;d==-1&&(document.getElementById("mess_prev").style.color="red"),d==1&&(document.getElementById("mess_next").style.color="red"),JsHttpRequest.query("new_ajax.php",{mode:"user_message",user_id:a,type:b,page_number:c},function(a){a&&a.html&&($("#message").html(a.html),showUserMessageWnd(a.user_name))},!0)}function messagesIsRead(a,b,c,d,e){var f=document.getElementById("delete_mess_dots"+c);e.style.color="red",f.style.color="red",JsHttpRequest.query("new_ajax.php",{mode:"user_message",status:"is_read",user_id:a,message_id:c},function(e){e&&(countMessages(a,c),messagePager(a,b,d))},!0)}function showMessage(a,b){var c;b==1?c=$("#partner_message_content"):c=$("#message_content"),c.css("color","red");if(typeof a=="undefined"||a=="")return!1;JsHttpRequest.query("new_ajax.php",{mode:"user_message",user_id:a,type:b},function(a){a&&(a.html?($("#message").html(a.html),showUserMessageWnd(a.user_name)):alert(g_phrase[1771]+"!"),c.css("color","#286B98"))},!0)}function countMessages(a,b){language_postfix=$("#language_postfix").val(),JsHttpRequest.query("new_ajax.php",{mode:"user_message",sub_mode:"count",user_id:a},function(a){a&&(typeof b!=undefined&&b!=""&&$("#message_"+b).css("display","none"),a.user_count==0&&a.partner_count==0?($("#main_menu_bottom").css("display","none"),$("#main_menu_bottom").removeClass("scroll_poplavok_menu")):($("#main_menu_bottom").addClass("scroll_poplavok_menu"),$("#main_menu_bottom").css("display","block")),a.user_count==0?($("#empty_messages").css("display","block"),$("#message_content").html(g_phrase[1772]),$("#message_content").css("background-color","transparent"),$("#message_content").bind("mouseover",function(){$("#message_content").css("background-color","#f4fefe")}),$("#message_content").bind("mouseout",function(){$("#message_content").css("background-color","transparent")})):($("#message_content").html(g_phrase[1772]+" ("+a.user_count+")"),$("#message_content").css("background-color","#ffeecc")),a.partner_count==0?($("#empty_messages").css("display","block"),$("#partner_message_content").html(g_phrase[2234]),$("#partner_message_content").css("background-color","transparent"),$("#partner_message_content").bind("mouseover",function(){$("#partner_message_content").css("background-color","#f4fefe")}),$("#partner_message_content").bind("mouseout",function(){$("#partner_message_content").css("background-color","transparent")})):($("#partner_message_content").html(g_phrase[2234]+" ("+a.partner_count+")"),$("#partner_message_content").css("background-color","#eeeeee")))},!0)}function showUserMessageWnd(a){hwndUserMessage||(hwndUserMessage=new EvaxModalWindow(hwndCfgUserMessage)),$("#UserMessage_title").html(g_phrase[1773]+" "+a),hwndUserMessage.show();return!1}function openResponseCloseMsg(){hwndUserMessage.close(),showResponseWnd()}function TopicSelect(){document.getElementById("response_topic").options[2].selected==!0?($("#response_text").css("display","none"),$("#response_place_cargo").css("display","none"),$("#response_place_transport").fadeIn("slow"),$("#send_response").css("display","none"),$("#send_response_disabled").fadeIn("slow")):document.getElementById("response_topic").options[3].selected==!0?($("#response_text").css("display","none"),$("#response_place_transport").css("display","none"),$("#response_place_cargo").fadeIn("slow"),$("#send_response").fadeOut("slow"),$("#send_response").css("display","none"),$("#send_response_disabled").fadeIn("slow")):($("#response_place_cargo").css("display","none"),$("#response_place_transport").css("display","none"),$("#response_text").fadeIn("slow"),$("#send_response_disabled").css("display","none"),$("#send_response").fadeIn("slow"))}function isValidEmail(a){var b=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i;return a.match(b)}function sendresponse(a,b){if(typeof a=="undefined"||a=="")return!1;name=$("#response_name").val(),email=$("#response_email").val(),phone=$("#response_phone").val(),response=$("#response_response").val(),topic=$("#response_topic option:selected").val();if(name==""){alert(g_phrase[1747]),$("#response_name").focus();return!1}if(email==""){alert(g_phrase[1749]),$("#response_email").focus();return!1}valid=isValidEmail(email);if(valid==null){alert(g_phrase[1748]),$("#response_email").focus();return!1}if(topic>100){alert(g_phrase[1848]),$("#response_topic").focus();return!1}if(response==""){alert(g_phrase[1750]),$("#response_response").focus();return!1}JsHttpRequest.query("new_ajax.php",{mode:"response",name:name,email:email,phone:phone,topic_type:topic,response:response,user_id:a,page_url:b},function(a){a&&alert(g_phrase[1745]+"\n"+g_phrase[1746])},!0),$("#response_response").val(""),$("#response_topic option:first").attr("selected","selected"),hwndResponse.close()}function showResponseWnd(){hwndResponse||(hwndResponse=new EvaxModalWindow(hwndCfgResponse)),hwndResponse.positionY=125,hwndResponse.show();return!1}function goToMobileVersion(a){JsHttpRequest.query("new_ajax.php",{mode:"go_to_mobile_version"},function(b,c){window.location.href="http://mob.della."+a},!1)}function checkIfShowMobileLink(a){var b=477,c=0;if(screen.width<b||screen.height<b)c=1;document.getElementById("go_to_mob_version")&&c==1&&(document.getElementById("go_to_mob_version").style.display="")}function ChangeLanguage(a,b,c){var d=new Date;d.setMonth(d.getMonth()+12),document.cookie="USERLANG="+escape(b)+"; expires="+d.toGMTString()+"; path=/"+"; domain="+a,document.location=c}function liveinternet_cnt(){if(document.getElementById("liveintervetImg"))try{var a="http://counter.yadro.ru/hit?t44.1;r"+escape(document.referrer)+(typeof screen=="undefined"?"":";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+";"+Math.random();document.getElementById("liveintervetImg").src=a}catch(b){}}function selectBookmark(a,b){if(selectedBookmarkNum!=b){unUnderline(a),ToggleShowHideElem("dots_"+b),document.getElementById("bookmark_menu_"+b).style.color="#ff0000",selectedBookmarkNum=b;var c=["UaCargo","WorldCargo","UaTrans","WorldTrans"],d="ajax_request.php?mode=main_page_list",e={list:c[b],numBookmark:b};JsHttpRequest_query(d,e,!0,function(c,d){c&&(ReloadList(c),lightBookmarkTopFull(a,b),document.getElementById("hdr_real_time").innerHTML=hdr_real_time[b][0],document.getElementById("linkHeaderShowAllRequests").innerHTML=hdr_real_time[b][1],document.getElementById("linkHeaderShowAllRequests").href=hdr_real_time[b][2].replace(regexp_ua_id,document.getElementById("hdnUkrId").value)),b==2||b==3?document.getElementById("zirkaTop").style.display="none":document.getElementById("zirkaTop").style.display="block"})}}function ReloadList(a){$("#request_list").html(a.html),numBookmark=a.numBookmark;if(numBookmark==1||numBookmark==3)document.getElementById("contentDiv").style.backgroundImage="url('/img/mp_classic/map_eu.jpg')";else switch(CURRENT_LOCALE){case RU_LOCALE:document.getElementById("contentDiv").style.backgroundImage="url('/img/mp_classic/ru_map_bg.jpg')";break;case UA_LOCALE:document.getElementById("contentDiv").style.backgroundImage="url('/img/mp_classic/ukr_map_bg.jpg')";break;case BY_LOCALE:document.getElementById("contentDiv").style.backgroundImage="url('/img/mp_classic/by_map_bg.jpg')";break;case KAZ_LOCALE:document.getElementById("contentDiv").style.backgroundImage="url('/img/mp_classic/kz_map_bg.jpg')";break;case LIT_LOCALE:document.getElementById("contentDiv").style.backgroundImage="url('/img/mp_classic/lt_map_bg.jpg')";break;case MDA_LOCALE:document.getElementById("contentDiv").style.backgroundImage="url('/img/mp_classic/md_map_bg.jpg')";break;case TAJ_LOCALE:document.getElementById("contentDiv").style.backgroundImage="url('/img/mp_classic/tj_map_bg.jpg')";break;case GE_LOCALE:document.getElementById("contentDiv").style.backgroundImage="url('/img/mp_classic/map_ge.jpg')";break;case UZB_LOCALE:document.getElementById("contentDiv").style.backgroundImage="url('/img/mp_classic/map_uzb.jpg')";break;case AZE_LOCALE:document.getElementById("contentDiv").style.backgroundImage="url('/img/mp_classic/map_aze.jpg')";break;case ARM_LOCALE:document.getElementById("contentDiv").style.backgroundImage="url('/img/mp_classic/map_arm.jpg')";break;case EE_LOCALE:document.getElementById("contentDiv").style.backgroundImage="url('/img/mp_classic/map_ee.jpg')";break;case LAT_LOCALE:document.getElementById("contentDiv").style.backgroundImage="url('/img/mp_classic/map_lat.jpg')";break;case TM_LOCALE:document.getElementById("contentDiv").style.backgroundImage="url('/img/mp_classic/map_tm.jpg')";break;case KGZ_LOCALE:document.getElementById("contentDiv").style.backgroundImage="url('/img/mp_classic/map_kgz.jpg')";break;default:document.getElementById("contentDiv").style.backgroundImage="url('/img/mp_classic/map_eu.jpg')"}ToggleShowHideElem("dots_"+numBookmark),document.getElementById("bookmark_menu_"+numBookmark).style.color="#517aac"}function ToggleShowHideElem(a,b){b==null&&(b="display"),id=document.getElementById(a),id!==null&&(b==="display"&&(id.style.display=="none"?id.style.display="":id.style.display="none"),b==="visibility"&&(id.style.visibility=="hidden"?id.style.visibility="visible":id.style.visibility="hidden"))}function unUnderline(a){a&&(a.style.textDecoration="none")}function underlineBookmarkMenu(a,b){b!=selectedBookmarkNum&&underline(a)}function underline(a){a&&(a.style.textDecoration="underline")}function showRecoverPwdWnd(){hwndLogin.close(),document.getElementById("loginEmail").value="";var a={newWindowId:"recoverPwdWnd",header:{closeBtn:!0},positionX:null,positionY:158,height:null,width:560,bgDiv:{color:"#343434",opacity:20},cssStyleClass:"enterWnd",contentId:"recoverPwdWndContent",onClose:function(){blockRequestsSycle=!1},thisObjName:"hwndRecoverPass"};hwndRecoverPass||(a.header.title=g_phrase[1023],hwndRecoverPass=new EvaxModalWindow(a)),hwndRecoverPass.show();return!1}function zaglushkaTesting(){alert(g_phrase[1022]);return!1}function showEnterWnd(a){blockRequestsSycle=!0,a||(a=0),a!=1&&(document.getElementById("login").value=""),document.getElementById("password").value="";var b={newWindowId:"enterWnd",header:{closeBtn:!0},positionX:null,positionY:158,height:null,width:560,bgDiv:{color:"#343434",opacity:20},cssStyleClass:"enterWnd",contentId:"enterWndContent",onClose:function(){blockRequestsSycle=!1},thisObjName:"hwndLogin"};hwndLogin||(b.header.title=g_phrase[1021],hwndLogin=new EvaxModalWindow(b)),hwndLogin.show(),document.getElementById("login").focus();return!1}function initCityInputs(){inputGetPeep("from_input",!1,!0,!0),inputGetPeep("to_input",!1,!0,!0),inputGetPeep("from_input2",!0,!0,!0),inputGetPeep("to_input2",!0,!0,!0),inputGetPeep("from_input_dist",!1,!0,!0),inputGetPeep("to_input_dist",!1,!0,!0)}function lightBookmarkTopFull(a,b){var c=b+1;document.getElementById("full_header").className="full_header_"+c}function remind_pwd_support(){var a=document.getElementById("remind_pwd_support_company_name").value,b=document.getElementById("remind_pwd_support_phone").value,c=document.getElementById("remind_pwd_support_contact_name").value;if(a==""){alert(g_phrase[1309]);return!1}if(c==""){alert(g_phrase[1311]);return!1}if(b==""){alert(g_phrase[1310]);return!1}var d="/ajax_request.php?mode=remind_pwd_support";JsHttpRequest_query(d,{company_name:a,phone:b,contact_name:c,login:g_login},!0,function(a){a.result==!1?zaglushka(!1):alert(g_phrase[1313])});return!0}function handle_remind_pwd(a,b){if(a.result=="no_such_login")alert(g_phrase[1025]+' "'+b+'" '+g_phrase[1026]);else{if(a.result=="login_has_not_email"){hwndRecoverPass.close();var c={newWindowId:"remindPwdSupportWnd",header:{closeBtn:!0},positionX:null,positionY:158,height:null,width:560,bgDiv:{color:"#343434",opacity:20},cssStyleClass:"enterWnd",contentId:"remindPwdSupportWndContent",onClose:function(){blockRequestsSycle=!1},thisObjName:"hwndRemindPwdSupport"};hwndRemindPwdSupport||(c.header.title=g_phrase[1023],hwndRemindPwdSupport=new EvaxModalWindow(c)),hwndRemindPwdSupport.show();return!1}a.result!=""&&a.result!=0?alert(g_phrase[1027]+' "'+b+'" '+g_phrase[1028]):zaglushkaTesting()}}function remind_pwd(){var a=document.getElementById("loginEmail").value;g_login=a;if(a==""){alert(g_phrase[1024]);return!1}var b="/ajax_request.php?mode=remind_pwd&login="+a;JsHttpRequest_query(b,null,!0,function(b){handle_remind_pwd(b,a)});return!1}function operatorNewScroll(){this.name.indexOf("della")>-1&&this.scroll(0,175)}function exit(a,b){confirm(g_phrase[2351])&&(window.location="/?login_mode=exit&login="+a+"&cookie_id="+b)}function enter(){var a=document.getElementById("login"),b=/^[\w\@\.\-]{5,}$/;if(b.test(a.value))document.getElementById("logForm").action=document.location.pathname,document.getElementById("logForm").submit();else{document.getElementById("errorMes").innerHTML="&nbsp;"+g_phrase[983],a.value="";return!1}}function EvaxModalWindow(a){a.header?(a.header.title?this.headerTitle=a.header.title:this.headerTitle="",a.header.closeBtn?this.headerCloseBtn=!0:this.headerCloseBtn=!1,this.showHeader=!0):this.showHeader=!1,a.positionX?this.positionX=a.positionX:this.positionX=null,a.positionY?this.positionY=a.positionY:this.positionY=null,a.width?this.width=a.width:this.width=null,a.height?this.height=a.height:this.height=null,a.bgDiv?(a.bgDiv.color?this.bgDivColor=a.bgDiv.color:this.bgDivColor="#ff0000",a.bgDiv.opacity?this.bgDivOpacity=a.bgDiv.opacity:this.bgDivopacity=50,this.showBgDiv=!0):this.showBgDiv=!1,a.cssStyleClass&&(this.cssStyleClass=a.cssStyleClass),a.newWindowId&&(this.newWindowId=a.newWindowId),a.contentId&&(this.contentId=a.contentId),a.thisObjName&&(this.thisObjName=a.thisObjName),a.onClose&&(this.onCloseEvt=a.onClose),this.createWindow()}EvaxModalWindow.prototype.close=function(){this.divElem.style.display="none",this.showBgDiv&&(this.overdivElem.style.display="none"),this.onCloseEvt();return!1},EvaxModalWindow.prototype.createWindow=function(){this.divElem=document.createElement("DIV"),this.divElem.className=this.cssStyleClass,this.divElem.id=this.newWindowId,this.width!==null&&(this.divElem.style.width=this.width+"px"),this.height!==null&&(this.divElem.style.height=this.height+"px");var a="";a+='<table class="karkas" width="100%" cellpadding="0" cellspacing="0" border="0">',a+='<tr id="'+this.divElem.id+'_header_tr">',a+='<td class="hdr_td" valign="middle">',a+='<div class="hdr" id="'+this.divElem.id+'_title">'+this.headerTitle+'</div><div class="close"><a href="#" onClick="'+this.thisObjName+'.close();return false;"><img border="0" src="/img/mp_classic/close_x.gif" /></a></div>',a+="</td>",a+="</tr>",a+="<tr>",a+='<td valign="top" class="content_td" id="'+this.divElem.id+"_content_container"+'">',a+="</td>",a+="</tr>",a+="</table>",this.divElem.innerHTML=a,document.body.appendChild(this.divElem),document.getElementById(this.newWindowId+"_content_container")&&(document.getElementById(this.newWindowId+"_content_container").appendChild(document.getElementById(this.contentId)),document.getElementById(this.contentId).style.display="block"),this.showHeader===!1&&(document.getElementById(this.divElem.id+"_header_tr").style.display="none")},EvaxModalWindow.prototype.setPosition=function(){this.positionX!==null?this.divElem.style.left=this.positionX+"px":this.divElem.style.left=Math.round(document.body.clientWidth/2-this.calcWidth(this.divElem)/2)+"px";var a=document.documentElement.scrollTop;a==0&&(a=document.body.scrollTop);if(this.positionY!==null)this.divElem.style.top=this.positionY+a+"px";else{var b=Math.round(a+this.getScreenHeightSeen()/2-this.calcHeight(this.divElem)/2);b>=0?this.divElem.style.top=b+"px":this.divElem.style.top=a+10+"px"}},EvaxModalWindow.prototype.createOverlay=function(){document.getElementById("overlay")?this.overdivElem=document.getElementById("overlay"):(this.overdivElem=document.createElement("DIV"),this.overdivElem.id="overlay",document.body.appendChild(this.overdivElem)),this.overdivElem&&this.showBgDiv&&(this.overdivElem.style.backgroundColor=this.bgDivColor,this.setOpacity(this.overdivElem,this.bgDivOpacity),this.overdivElem.style.height=this.getScreenHeight()+"px",this.overdivElem.style.display="block")},EvaxModalWindow.prototype.getScreenHeightSeen=function(){var a=0,b=0;window.innerHeight&&(a=window.innerHeight),document.body&&document.body.clientHeight&&(b=document.body.clientHeight);var c=Math.max(a,b);return c},EvaxModalWindow.prototype.getScreenHeight=function(){var a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),c=Math.max(a,b),d=0;window.innerHeight&&(d=window.innerHeight),c=Math.max(c,d);return c},EvaxModalWindow.prototype.show=function(){this.divElem.style.display="block",this.showBgDiv&&this.createOverlay(),this.setPosition()},EvaxModalWindow.prototype.hide=function(){this.divElem.style.display="none"},EvaxModalWindow.prototype.setOpacity=function(a,b){var c=this.$(a);c&&(typeof c.style.opacity=="string"&&(c.style.opacity=b/100),typeof c.style.filter=="string"&&(c.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+b+")"),typeof c.style.MozOpacity=="string"&&(c.style.MozOpacity="0."+b),typeof c.style.KhtmlOpacity=="string"&&(c.style.KhtmlOpacity="0."+b),b==100&&(typeof c.style.MozOpacity=="string"?c.style.MozOpacity="1.0":typeof c.style.KhtmlOpacity=="string"&&(c.style.KhtmlOpacity="1.0")))},EvaxModalWindow.prototype.calcHeight=function(a){var b=this.$(a),c=0;b&&(b.offsetHeight?c=b.offsetHeight:b.clip&&b.clip.height?c=b.clip.height:b.style&&b.style.pixelHeight?c=b.style.pixelHeight:b.clientHeight&&(c=b.clientHeight));return parseInt(c,10)},EvaxModalWindow.prototype.calcWidth=function(a){var b=this.$(a),c=0,d="";b&&(b.offsetWidth?c=b.offsetWidth:b.clip&&b.clip.width?c=b.clip.width:b.style&&b.style.pixelWidth?c=b.style.pixelWidth:b.clientWidth&&(c=b.clientWidth));return parseInt(c,10)},EvaxModalWindow.prototype.$=function(a){var b=null;typeof a=="string"?document.getElementById(a)&&(b=document.getElementById(a)):typeof a=="object"&&a&&(b=a);return b};var cookie=" "+document.cookie,search=" della_request_v2=",lang=null,offset=0,end=0;cookie.length>0&&(offset=cookie.indexOf(search),offset!=-1&&(offset+=search.length,end=cookie.indexOf(";",offset),end==-1&&(end=cookie.length),lang=unescape(cookie.substring(offset,end)))),lang||alert(g_phrase[2252]+" "+g_phrase[2251]);var g_login="",hwndRemindPwdSupport=null,requestsCntOnePage=20,opacityDelay=150,oneRequestDelay=200,sclToWaitCnt=15,request_list_tr_num=0,request_list_tr_num_global=0,cklNum=0,timerHandler=null,namePartNum=0,hdrName="",sclToWait=sclToWaitCnt,blockRequestsSycle=!1,selectedBookmarkNum=0,hwndLogin=null,hwndRecoverPass=null,regexp_ua_id=new RegExp("{ua_id}","gi");$(document).click(function(a){if($(a.target).hasClass("my_menu")||$(a.target).parent().hasClass("my_menu")||$("#nav").is(":visible:not(:animated)"))if($.browser.msie)$("#nav").toggle(),$(".my_menu").toggleClass("opened");else{var b=$("#nav").is(":visible");b||$(".my_menu").toggleClass("opened"),$("#nav").slideToggle(function(){b&&$(".my_menu").toggleClass("opened")})}}),$(document).ready(function(){var a=[],b=["/img/my_menu_closed.png","/img/my_menu_opened.png","img/my_menu_bg_active.png"],c;for(c=0;c<b.length;c++)a[c]=new Image,a[c].src=b[c];$("#nav").click(function(a){a.stopPropagation()})});var hwndResponse=null,hwndCfgResponse={newWindowId:"Response",header:{title:"",closeBtn:!0},positionX:null,positionY:245,height:null,width:610,bgDiv:{color:"#343434",opacity:20},cssStyleClass:"enterWnd",contentId:"response_content_id",onClose:function(){},thisObjName:"hwndResponse"},hwndUserMessage=null,hwndCfgUserMessage={newWindowId:"UserMessage",header:{title:"",closeBtn:!0},positionX:null,positionY:59,height:null,width:800,bgDiv:{color:"#343434",opacity:20},cssStyleClass:"enterWnd",contentId:"user_message_content_id",onClose:function(){},thisObjName:"hwndUserMessage"},hwndRequestSearch=null,hwndCfg={newWindowId:"RequestSearchWnd",header:{closeBtn:!0},positionX:null,positionY:245,height:null,bgDiv:{color:"#343434",opacity:20},cssStyleClass:"enterWnd",contentId:"RequestSearchWndContent",onClose:function(){blockRequestsSycle=!1},thisObjName:"hwndRequestSearch"},mousePositionCords={left:0,top:0},IE=!0,MousePosition=function(){this.left=-100,this.top=-100,getMouseXY=function(a){var b=document.all?!0:!1;IE&&b?(mousePositionCords.left=event.clientX+document.body.scrollLeft,mousePositionCords.top=event.clientY+document.body.scrollTop):(mousePositionCords.left=a.pageX,mousePositionCords.top=a.pageY),mousePositionCords.left<0&&(mousePositionCords.left=0),mousePositionCords.top<0&&(mousePositionCords.top=0);return!0},this.Init=function(){IE=document.all?!0:!1,IE||document.captureEvents(Event.MOUSEMOVE),document.onmousemove=getMouseXY},this.getTop=function(){this.top=mousePositionCords.top;return this.top},this.getLeft=function(){this.left=mousePositionCords.left;return this.left}},vshkaColors=["#00cc00","#9ecdab","#e6e6e6"],birdToShowCnt=3,requestsNewCnt=0,google_ad_iframe_src="",maxDateUp=(new Date).getTime()/1e3;Array.prototype.in_array=function(a){var b=this.length;for(var c=0;c<=b;c++)if(this[c]==a)return!0;return!1};var shownIds=[],isCSS,isW3C,isIE4,isNN4,isOpera,sIntVal=0,isMouseOn=0,hideSelectList={},selectedNumDivId=-1,dom=document.getElementById?!0:!1,nn4=document.layers?!0:!1,ie4=!dom&&document.all?!0:!1;styleC=[],styleC={formTextDisabled:"formTextDisabled",formText:"formText",formInput:"inputText",formInputDisabled:"formInputDisabled inputText"},styleS=[],styleS={formTextDisabled:"formTextDisabled",formText:"formText"
,formInput:"s",formInputDisabled:"s_dis"};var style=styleC,PHP_IS_JSON_ENABLED="__della_operator_JsHttpRequest_enabled";(function(){function cc(j,k){function di(){var c="onreadystatechange";!r&&!b.parent&&a.readyState!="complete"?a.attachEvent(c,function(){a.detachEvent(c,di),di()}):(de(),cK(),cL(),bf(j.series||[],function(a){cU(a)}),cf.inverted=cD=bA(cD,j.chart.inverted),c_(),cf.render=dg,cf.tracker=cr=new cS(cf,j.tooltip),dg(),bm(cf,"load"),k&&k.apply(cf,[cf]),bf(cf.callbacks,function(a){a.apply(cf,[cf])}))}function dh(){var a=cC.length,c=bK&&bK.parentNode;bm(cf,"destroy"),bl(b,"unload",dh),bl(cf),bf(cA,function(a){bl(a)});while(a--)cC[a].destroy();bK.innerHTML="",bl(bK),c&&c.removeChild(bK),bK=null,cE&&cE.alignedObjects&&(cE.alignedObjects=null),clearInterval(cG);for(a in cf)delete cf[a]}function dg(){var a=j.labels,b=j.credits,c;dc(),cu=cf.legend=new cT(cf),cJ(),bf(cA,function(a){a.setTickPositions(!0)}),cW(),cJ(),cI(),cy&&bf(cA,function(a){a.render()}),cf.seriesGroup||(cf.seriesGroup=cE.g("series-group").attr({zIndex:3}).add()),bf(cC,function(a){a.translate(),a.setTooltipPoints(),a.render()}),a.items&&bf(a.items,function(){var b=br(a.style,this.style),c=bs(b.left)+bG,d=bs(b.top)+bv+12;delete b.left,delete b.top,cE.text(this.html,c,d).attr({zIndex:2}).css(b).add()}),cf.toolbar||(cf.toolbar=cQ(cf)),b.enabled&&!cf.credits&&(c=b.href,cE.text(b.text,0,0).on("click",function(){c&&(location.href=c)}).attr({align:b.position.align,zIndex:8}).css(b.style).add().align(b.position)),ct(),cf.hasRendered=!0,bJ&&(bI.appendChild(bK),bL(bJ))}function df(){function b(){var b=l.width||bI.offsetWidth,c=l.height||bI.offsetHeight;if(b&&c){if(b!=bT||c!=bU)clearTimeout(a),a=setTimeout(function(){cM(b,c,!1)},100);bT=b,bU=c}}var a;bk(window,"resize",b),bk(cf,"destroy",function(){bl(window,"resize",b)})}function de(){bI=l.renderTo,bM=J+x++,bt(bI)&&(bI=a.getElementById(bI)),bI.innerHTML="",bI.offsetWidth||(bJ=bI.cloneNode(0),bC(bJ,{position:G,top:"-9999px",display:""}),a.body.appendChild(bJ)),dd(),cf.container=bK=bD(F,{className:"highcharts-container"+(l.className?" "+l.className:""),id:bM},br({position:H,overflow:I,width:bV+L,height:bW+L,textAlign:"left"},l.style),bJ||bI),cf.renderer=cE=l.renderer=="SVG"?new b$(bK,bV,bW):new cb(bK,bV,bW);var c,d;/Firefox/.test(n)&&bK.getBoundingClientRect&&(c=function(){bC(bK,{left:0,top:0}),d=bK.getBoundingClientRect(),bC(bK,{left:-d.left%1+L,top:-d.top%1+L})},c(),bk(b,"resize",c),bk(cf,"destroy",function(){bl(b,"resize",c)}))}function dd(){bT=(bJ||bI).offsetWidth,bU=(bJ||bI).offsetHeight,cf.chartWidth=bV=l.width||bT||600,cf.chartHeight=bW=l.height||(bU>19?bU:400)}function dc(a,b){bj=bi(j.title,a),bq=bi(j.subtitle,b),bf([["title",a,bj],["subtitle",b,bq]],function(a){var b=a[0],c=cf[b],d=a[1],e=a[2];c&&d&&(c.destroy(),c=null),e&&e.text&&!c&&(cf[b]=cE.text(e.text,0,0).attr({align:e.align,"class":"highcharts-"+b,zIndex:1}).css(e.style).add().align(e,!1,be))})}function db(){return bg(cC,function(a){return a.selected})}function da(){var a=[];bf(cC,function(b){a=a.concat(bg(b.data,function(a){return a.selected}))});return a}function c_(){var a=j.xAxis||{},b=j.yAxis||{},c;a=bz(a),bf(a,function(a,b){a.index=b,a.isX=!0}),b=bz(b),bf(b,function(a,b){a.index=b}),cA=a.concat(b),cf.xAxis=[],cf.yAxis=[],cA=bh(cA,function(a){c=new cP(cf,a),cf[c.isXAxis?"xAxis":"yAxis"].push(c);return c}),cW()}function c$(a){var b,c,d;for(b=0;b<cA.length;b++)if(cA[b].options.id==a)return cA[b];for(b=0;b<cC.length;b++)if(cC[b].options.id==a)return cC[b];for(b=0;b<cC.length;b++){d=cC[b].data;for(c=0;c<d.length;c++)if(d[c].id==a)return d[c]}return null}function cZ(){cm&&(bn(cm,{opacity:0},{duration:j.loading.hideDuration,complete:function(){bC(cm,{display:M})}}),co=!1)}function cY(a){var b=j.loading;cm||(cm=bD(F,{className:"highcharts-loading"},br(b.style,{left:bG+L,top:bv+L,width:cq+L,height:cp+L,zIndex:10,display:M}),bK),cn=bD("span",null,b.labelStyle,cm)),cn.innerHTML=a||j.lang.loading,co||(bC(cm,{opacity:0,display:""}),bn(cm,{opacity:b.style.opacity},{duration:b.showDuration}),co=!0)}function cX(a){var b=cf.isDirtyLegend,c,d=cf.isDirtyBox,e=cC.length,f=e,g=cf.clipRect,h;bE(a,cf);while(f--){h=cC[f];if(h.isDirty&&h.options.stacking){c=!0;break}}if(c){f=e;while(f--)h=cC[f],h.options.stacking&&(h.isDirty=!0)}bf(cC,function(a){a.isDirty&&(a.cleanData(),a.getSegments(),a.options.legendType=="point"&&(b=!0))}),b&&cu.renderLegend&&(cu.renderLegend(),cf.isDirtyLegend=!1),cy&&(cz||(cB=null,bf(cA,function(a){a.setScale()})),cW(),cJ(),bf(cA,function(a){if(a.isDirty||d)a.redraw(),d=!0})),d&&(cI(),ct(),g&&(bo(g),g.animate({width:cf.plotSizeX,height:cf.plotSizeY}))),bf(cC,function(a){a.isDirty&&a.visible&&(!a.isCartesian||a.xAxis)&&a.redraw()}),cr&&cr.resetTracker&&cr.resetTracker(),bm(cf,"redraw")}function cW(){l.alignTicks!==!1&&bf(cA,function(a){a.adjustTickAmount()}),cB=null}function cV(a,b,c){var d;a&&(bE(c,cf),b=bA(b,!0),bm(cf,"addSeries",{options:a},function(){d=cU(a),d.isDirty=!0,cf.isDirtyLegend=!0,b&&cf.redraw()}));return d}function cU(a){var b=a.type||l.type||l.defaultSeriesType,c=bp[b],d,e=cf.hasRendered;e&&(cD&&b=="column"?c=bp.bar:!cD&&b=="bar"&&(c=bp.column)),d=new c,d.init(cf,a),!e&&d.inverted&&(cD=!0),d.isCartesian&&(cy=d.isCartesian),cC.push(d);return d}function cS(c,d){function y(){var b=!0;bK.onmousedown=function(b){b=s(b),c.mouseIsDown=cl=!0,e=b.chartX,f=b.chartY,bk(a,t?"touchend":"mouseup",x)};var d=function(a){if(!(a&&a.touches&&a.touches.length>1)){a=s(a),t||(a.returnValue=!1);var d=a.chartX,g=a.chartY,h=!cj(d-bG,g-bv);t&&a.type=="touchstart"&&(by(a.target,"isTracker")?c.runTrackerClick||a.preventDefault():!ch&&!h&&a.preventDefault()),h&&(b||w(),d<bG?d=bG:d>bG+cq&&(d=bG+cq),g<bv?g=bv:g>bv+cp&&(g=bv+cp));if(cl&&a.type!="touchstart"){if(j=Math.sqrt(Math.pow(e-d,2)+Math.pow(f-g,2))>10){cy&&(n||p)&&cj(e-bG,f-bv)&&(k||(k=cE.rect(bG,bv,q?1:cq,r?1:cp,0).attr({fill:"rgba(69,114,167,0.25)",zIndex:7}).add()));if(k&&q){var l=d-e;k.attr({width:i(l),x:(l>0?0:l)+e})}if(k&&r){var m=g-f;k.attr({height:i(m),y:(m>0?0:m)+f})}}}else h||v(a);b=h;return h||!cy}};bK.onmousemove=d,bk(bK,"mouseleave",w),bK.ontouchstart=function(a){(n||p)&&bK.onmousedown(a),d(a)},bK.ontouchmove=d,bK.ontouchend=function(){j&&w()},bK.onclick=function(a){var b=c.hoverPoint;a=s(a),a.cancelBubble=!0;if(!j)if(b&&by(a.target,"isTracker")){var d=b.plotX,e=b.plotY;br(b,{pageX:cx.left+bG+(cD?cq-e:d),pageY:cx.top+bv+(cD?cp-d:e)}),bm(b.series,"click",br(a,{point:b})),b.firePointEvent("click",a)}else br(a,u(a)),cj(a.chartX-bG,a.chartY-bv)&&bm(c,"click",a);j=!1}}function x(){if(k){var b={xAxis:[],yAxis:[]},d=k.getBBox(),e=d.x-bG,f=d.y-bv;j&&(bf(cA,function(a,c){var i=a.translate,j=a.isXAxis,k=cD?!j:j,l=i(k?e:cp-f-d.height,!0),m=i(k?e+d.width:cp-f,!0);b[j?"xAxis":"yAxis"].push({axis:a,min:h(l,m),max:g(l,m)})}),bm(c,"selection",b,cN)),k=k.destroy()}c.mouseIsDown=cl=j=!1,bl(a,t?"touchend":"mouseup",x)}function w(){var a=c.hoverSeries,b=c.hoverPoint;b&&b.onMouseOut(),a&&a.onMouseOut(),ck&&ck.hide(),cH=null}function v(a){var b,e,f=c.hoverPoint,g=c.hoverSeries,j,k,l=bV,m=cD?a.chartY:a.chartX-bG;if(ck&&d.shared){e=[],j=cC.length;for(k=0;k<j;k++)cC[k].visible&&cC[k].tooltipPoints.length&&(b=cC[k].tooltipPoints[m],b._dist=i(m-b.plotX),l=h(l,b._dist),e.push(b));j=e.length;while(j--)e[j]._dist>l&&e.splice(j,1);e.length&&e[0].plotX!=cH&&(ck.refresh(e),cH=e[0].plotX)}g&&g.tracker&&(b=g.tooltipPoints[m],b&&b!=f&&b.onMouseOver())}function u(a){var b={xAxis:[],yAxis:[]};bf(cA,function(c,d){var e=c.translate,f=c.isXAxis,g=cD?!f:f;b[f?"xAxis":"yAxis"].push({axis:c,value:e(g?a.chartX-bG:cp-a.chartY+bv,!0)})});return b}function s(a){var c;a=a||b.event,a.target||(a.target=a.srcElement),c=a.touches?a.touches.item(0):a;if(a.type!="mousemove"||b.opera)cx=bY(bK);o?(a.chartX=a.x,a.chartY=a.y):c.layerX===E?(a.chartX=c.pageX-cx.left,a.chartY=c.pageY-cx.top):(a.chartX=a.layerX,a.chartY=a.layerY);return a}var e,f,j,k,m=l.zoomType,n=/x/.test(m),p=/y/.test(m),q=n&&!cD||p&&cD,r=p&&!cD||n&&cD;ct=function(){cs?(cs.translate(bG,bv),cD&&cs.attr({width:c.plotWidth,height:c.plotHeight}).invert()):c.trackerGroup=cs=cE.g("tracker").attr({zIndex:9}).add()},ct(),d.enabled&&(c.tooltip=ck=cR(d)),y(),cG=setInterval(function(){cF&&cF()},32),br(this,{zoomX:n,zoomY:p,resetTracker:w})}function cR(a){function w(c){var g,i,o,p,w,x,y,z=0,A={},B,C=[],D=c.tooltipPos,E=a.formatter||t,F=cf.hoverPoints,G=function(a){return{series:a.series,point:a,x:a.category,y:a.y,percentage:a.percentage,total:a.total||a.stackTotal}};h?(F&&bf(F,function(a){a.setState()}),cf.hoverPoints=c,bf(c,function(a,b){a.setState(R),z+=a.plotY,C.push(G(a))}),y=c[0].plotX,z=d(z)/c.length,A={x:c[0].category},A.points=C,c=c[0]):A=G(c),B=E.call(A),b=c.series,y=h?y:c.plotX,z=h?z:c.plotY,g=d(D?D[0]:cD?cq-z:y),i=d(D?D[1]:cD?cp-y:z),w=h||!c.series.isCartesian||cj(g,i),B===!1||!w?v():(l&&(q.show(),l=!1),s.attr({text:B}),x=s.getBBox(),m=x.width,n=x.height,r.attr({width:m+2*j,height:n+2*j,stroke:a.borderColor||c.color||b.color||"#606060"}),o=g-m+bG-25,p=i-n+bv+10,o<7&&(o=7,p-=30),p<5?p=5:p+n>bW&&(p=bW-n-5),u(d(o-k),d(p-k)));if(e){e=bz(e);var H,I=e.length,J,L;while(I--)e[I]&&(L=c.series[I?"yAxis":"xAxis"])&&(H=L.getPlotLinePath(c[I?"y":"x"],1),f[I]?f[I].attr({d:H,visibility:K}):(J={"stroke-width":e[I].width||1,stroke:e[I].color||"#C0C0C0",zIndex:2},e[I].dashStyle&&(J.dashstyle=e[I].dashStyle),f[I]=cE.path(H).attr(J).add()))}}function v(){if(!l){var a=cf.hoverPoints;q.hide(),bf(f,function(a){a&&a.hide()}),a&&bf(a,function(a){a.setState()}),cf.hoverPoints=null,l=!0}}function u(a,b){o=l?a:(2*o+a)/3,p=l?b:(p+b)/2,q.translate(o,p),i(a-o)>1||i(b-p)>1?cF=function(){u(a,b)}:cF=null}function t(){var a=this,b=a.points||bz(a),c=b[0].series.xAxis,d=a.x,e=c&&c.options.type=="datetime",f=bt(d)||e,g,h;h=f?['<span style="font-size: 10px">',e?B("%A, %b %e, %Y",d):d,"</span><br/>"]:[],bf(b,function(a){h.push(a.point.tooltipFormatter(f))});return h.join("")}var b,c=a.borderWidth,e=a.crosshairs,f=[],g=a.style,h=a.shared,j=bs(g.padding),k=c+j,l=!0,m,n,o=0,p=0;g.padding=0;var q=cE.g("tooltip").attr({zIndex:8}).add(),r=cE.rect(k,k,0,0,a.borderRadius,c).attr({fill:a.backgroundColor,"stroke-width":c}).add(q).shadow(a.shadow),s=cE.text("",j+k,bs(g.fontSize)+j+k).attr({zIndex:1}).css(g).add(q);q.hide();return{shared:h,refresh:w,hide:v}}function cQ(a){function d(a){bL(b[a].element),b[a]=null}function c(a,c,d,e){if(!b[a]){var f=cE.text(c,0,0).css(j.toolbar.itemStyle).align({align:"right",x:-bB-20,y:bv+30}).on("click",e).attr({align:"right",zIndex:20}).add();b[a]=f}}var b={};return{add:c,remove:d}}function cP(a,b){function cu(b,c){o.categories=bK=b,bf(H,function(a){a.translate(),a.setTooltipPoints(!0)}),o.isDirty=!0,bA(c,!0)&&a.redraw()}function ct(){cr.resetTracker&&cr.resetTracker(),co(),bf(bn,function(a){a.render()}),bf(H,function(a){a.isDirty=!0})}function cs(a){for(var b=0;b<bn.length;b++)bn[b].id==a&&bn[b].destroy()}function co(){var c=b.title,d=b.alternateGridColor,e=b.lineWidth,f,g,h,i=a.hasRendered,l=i&&bx(P)&&!isNaN(P),n=H.length&&bx(M)&&bx(K);s=k?cq:cp,t=s/(K-M||1),v=k?bG:bF;if(n||bd){if(bp&&!bK){var p=M+(bt[0]-M)%bp;for(p;p<=K;p+=bp)by[p]||(by[p]=new b$(p,!0)),l&&by[p].isNew&&by[p].render(null,!0),by[p].isActive=!0,by[p].render()}bf(bt,function(a,b){if(!bd||a>=M&&a<=K)l&&bu[a].isNew&&bu[a].render(b,!0),bu[a].isActive=!0,bu[a].render(b)}),d&&bf(bt,function(a,b){b%2===0&&a<K&&(bz[a]||(bz[a]=new ca),bz[a].options={from:a,to:bt[b+1]!==E?bt[b+1]:K,color:d},bz[a].render(),bz[a].isActive=!0)}),i||bf((b.plotLines||[]).concat(b.plotBands||[]),function(a){bn.push((new ca(a)).render())})}bf([bu,by,bz],function(a){for(var b in a)a[b].isActive?a[b].isActive=!1:(a[b].destroy(),delete a[b])}),e&&(f=bG+(j?cq:0)+q,g=bW-bF-(j?cp:0)+q,h=cE.crispLine([N,k?bG:f,k?g:bv,O,k?bV-bB:f,k?g:bW-bF],e),D?D.animate({d:h}):D=cE.path(h).attr({stroke:b.lineColor,"stroke-width":e,zIndex:7}).add());if(o.axisTitle){var r=k?bG:bv,u=bs(c.style.fontSize||12),w={low:r+(k?0:s),middle:r+s/2,high:r+(k?s:0)}[c.align],x=(k?bv+cp:bG)+(k?1:-1)*(j?-1:1)*bI+(m==2?u:0);o.axisTitle[i?"animate":"attr"]({x:k?w:x+(j?cq:0)+q+(c.x||0),y:k?x-(j?cp:0)+q:w+(c.y||0)})}o.isDirty=!1}function cn(){var a=H.length&&bx(M)&&bx(K),c=0,d=0,e=b.title,f=b.labels,h=[-1,1,1,-1][m];z||(z=cE.g("axis").attr({zIndex:7}).add(),C=cE.g("grid").attr({zIndex:1}).add()),bD=0;if(a||bd)bf(bt,function(a){bu[a]?bu[a].addLabel():bu[a]=new b$(a);if(m===0||m==2||{1:"left",3:"right"}[m]==f.align)bD=g(bu[a].getLabelSize(),bD)}),bM&&(bD+=(bM-1)*16);else for(var i in bu)bu[i].destroy(),delete bu[i];e&&e.text&&(o.axisTitle||(o.axisTitle=cE.text(e.text,0,0).attr({zIndex:7,rotation:e.rotation||0,align:e.textAlign||{low:"left",middle:"center",high:"right"}[e.align]}).css(e.style).add()),c=o.axisTitle.getBBox()[k?"height":"width"],d=bA(e.margin,k?5:10)),q=h*(b.offset||bH[m]),bI=bD+(m!=2&&bD&&h*b.labels[k?"y":"x"])+d,bH[m]=g(bH[m],bI+c+h*q)}function cm(a){var b=(new ca(a)).render();bn.push(b);return b}function cl(a){M>a?a=M:K<a&&(a=K);return w(a,0,1)}function ck(){return{min:M,max:K,dataMin:F,dataMax:G}}function cj(b,c,d,e){bE(e,a),d=bA(d,!0),bm(o,"setExtremes",{min:b,max:c},function(){I=b,J=c,d&&a.redraw()})}function ci(){var a,b;P=M,Q=K,cb(),cg(),u=t,t=s/(K-M||1);if(!i)for(a in n)for(b in n[a])n[a][b].cum=n[a][b].total;o.isDirty||(o.isDirty=M!=P||K!=Q)}function ch(){if(cB&&!p&&!bK&&!bd){var a=bC,b=bt.length;bC=cB[r];if(b<bC){while(bt.length<bC)bt.push(ce(bt[bt.length-1]+bo));t*=(b-1)/(bC-1),K=bt[bt.length-1]}bx(a)&&bC!=a&&(o.isDirty=!0)}}function cg(c){var d,e,f,j,l=b.tickInterval,m=b.tickPixelInterval,n=b.maxZoom||(i?h(a.smallestInterval*5,G-F):null),q;s=k?cq:cp,bd?(f=a[i?"xAxis":"yAxis"][b.linkedTo],j=f.getExtremes(),M=bA(j.min,j.dataMin),K=bA(j.max,j.dataMax)):(M=bA(I,b.min,F),K=bA(J,b.max,G)),K-M<n&&(q=(n-K+M)/2,M=g(M-q,bA(b.min,M-q),F),K=h(M+n,bA(b.max,M+n),G)),!bK&&!bh&&!bd&&bx(M)&&bx(K)&&(d=K-M||1,!bx(b.min)&&!bx(I)&&R&&(F<0||!be)&&(M-=d*R),!bx(b.max)&&!bx(J)&&S&&(G>0||!bg)&&(K+=d*S)),M==K?bo=1:bd&&!l&&m==f.options.tickPixelInterval?bo=f.tickInterval:bo=bA(l,bK?1:(K-M)*m/s),!p&&!bx(b.tickInterval)&&(bo=cc(bo)),o.tickInterval=bo,bp=b.minorTickInterval==="auto"&&bo?bo/5:b.minorTickInterval,p?cd():cf();if(!bd){if(bK||i&&a.hasColumn){e=(bK?1:bo)*.5;if(bK||!bx(bA(b.min,I)))M-=e;if(bK||!bx(bA(b.max,J)))K+=e}var t=bt[0],u=bt[bt.length-1];b.startOnTick?M=t:M>t&&bt.shift(),b.endOnTick?K=u:K<u&&bt.pop(),cB||(cB={x:0,y:0}),!p&&bt.length>cB[r]&&(cB[r]=bt.length)}}function cf(){var a,b=e(M/bo)*bo,c=f(K/bo)*bo;bt=[],a=ce(b);while(a<=c)bt.push(a),a=ce(a+bo)}function ce(a){var b,c=a;bx(bq)&&(b=(bq<1?d(1/bq):1)*10,c=d(a*b)/b);return c}function cd(){bt=[];var a,c=A.global.useUTC,d=1e3/y,f=6e4/y,g=36e5/y,h=864e5/y,i=6048e5/y,j=2592e6/y,k=31556952e3/y,l=[["second",d,[1,2,5,10,15,30]],["minute",f,[1,2,5,10,15,30]],["hour",g,[1,2,3,4,6,8,12]],["day",h,[1,2]],["week",i,[1,2]],["month",j,[1,2,3,4,6]],["year",k,null]],m=l[6],n=m[1],o=m[2];for(a=0;a<l.length;a++){m=l[a],n=m[1],o=m[2];if(l[a+1]){var p=(n*o[o.length-1]+l[a+1][1])/2;if(bo<=p)break}}n==k&&bo<5*n&&(o=[1,2,5]);var q=cc(bo/n,o),r,s=new Date(M*y);s.setMilliseconds(0),n>=d&&s.setSeconds(n>=f?0:q*e(s.getSeconds()/q)),n>=f&&s[$](n>=g?0:q*e(s[U]()/q)),n>=g&&s[_](n>=h?0:q*e(s[V]()/q)),n>=h&&s[ba](n>=j?1:q*e(s[X]()/q)),n>=j&&(s[bb](n>=k?0:q*e(s[Y]()/q)),r=s[Z]()),n>=k&&(r-=r%q,s[bc](r)),n==i&&s[ba](s[X]()-s[W]()+b.startOfWeek),a=1,r=s[Z]();var t=s.getTime()/y,u=s[Y](),v=s[X]();while(t<K)bt.push(t),n==k?t=T(r+a*q,0)/y:n==j?t=T(r,u+a*q)/y:!!c||n!=h&&n!=i?t+=n*q:t=T(r,u,v+a*q*(n==h?1:7)),a++;bt.push(t),bJ=b.dateTimeLabelFormats[m[0]]}function cc(a,d){var f;bq=d?1:c.pow(10,e(c.log(a)/c.LN10)),f=a/bq,d||(d=[1,2,2.5,5,10],b.allowDecimals===!1&&(bq==1?d=[1,2,5,10]:bq<=.1&&(d=[1/bq])));for(var g=0;g<d.length;g++){a=d[g];if(f<=(d[g]+(d[g+1]||d[g]))/2)break}a*=bq;return a}function cb(){var a=[],c=[],d;F=G=null,H=[],bf(cC,function(e){d=!1,bf(["xAxis","yAxis"],function(a){e.isCartesian&&(a=="xAxis"&&i||a=="yAxis"&&!i)&&(e.options[a]==b.index||e.options[a]===E&&b.index===0)&&(e[a]=o,H.push(e),d=!0)}),!e.visible&&l.ignoreHiddenSeries&&(d=!1);if(d){var f,g,h,j,k;i||(f=e.options.stacking,bh=f=="percent",f&&(j=e.type+bA(e.options.stack,""),k="-"+j,e.stackKey=j,g=a[j]||[],a[j]=g,h=c[k]||[],c[k]=h),bh&&(F=0,G=99)),e.isCartesian&&(bf(e.data,function(a,b){var c=a.x,d=a.y,e=d<0,l=e?h:g,m=e?k:j,o,p;F===null&&(F=G=a[r]),i?c>G?G=c:c<F&&(F=c):bx(d)&&(f&&(l[c]=bx(l[c])?l[c]+d:d),o=l?l[c]:d,p=bA(a.low,o),bh||(o>G?G=o:p<F&&(F=p)),f&&(n[m]||(n[m]={}),n[m][c]={total:o,cum:o}))}),/(area|column|bar)/.test(e.type)&&!i&&(F>=0?(F=0,be=!0):G<0&&(G=0,bg=!0)))}})}function ca(a){var b=this;a&&(b.options=a,b.id=a.id);return b}function b$(a,b){var c=this;c.pos=a,c.minor=b,c.isNew=!0,b||c.addLabel()}var i=b.isX,j=b.opposite,k=cD?!i:i,m=k?j?0:2:j?1:3,n={};b=bi(i?bN:bO,[bS,bQ,bR,bP][m],b);var o=this,p=b.type=="datetime",q=b.offset||0,r=i?"x":"y",s,t,u,v=k?bG:bF,w,x,z,C,D,F,G,H,I,J,K=null,M=null,P,Q,R=b.minPadding,S=b.maxPadding,bd=bx(b.linkedTo),be,bg,bh,bj=b.events,bl,bn=[],bo,bp,bq,bt,bu={},by={},bz={},bC,bD,bI,bJ,bK=b.categories,bL=b.labels.formatter||function(){var a=this.value,b;bJ?b=B(bJ,a):bo%1e6===0?b=a/1e6+"M":bo%1e3===0?b=a/1e3+"k":!bK&&a>=1e3?b=bX(a,0):b=a;return b},bM=k&&b.labels.staggerLines,bT=0,bU=b.reversed,bY=bK&&b.tickmarkPlacement=="between"?.5:0;b$.prototype={addLabel:function(){var a=this.pos,c=b.labels,d,e=!(a==M&&!bA(b.showFirstLabel,1)||a==K&&!bA(b.showLastLabel,0)),f,g=this.label;d=bL.call({isFirst:a==bt[0],isLast:a==bt[bt.length-1],dateTimeLabelFormat:bJ,value:bK&&bK[a]?bK[a]:a}),f=f&&{width:f-2*(c.padding||10)+L},g===E?this.label=bx(d)&&e&&c.enabled?cE.text(d,0,0).attr({align:c.align,rotation:c.rotation}).css(br(f,c.style)).add(z):null:g&&g.attr({text:d}).css(f)},getLabelSize:function(){var a=this.label;return a?(this.labelBBox=a.getBBox())[k?"height":"width"]:0},render:function(a,c){var d=this,e=!d.minor,f=d.label,g=d.pos,h=b.labels,i=d.gridLine,l=e?b.gridLineWidth:b.minorGridLineWidth,m=e?b.gridLineColor:b.minorGridLineColor,n=e?b.gridLineDashStyle:b.minorGridLineDashStyle,o,p=d.mark,r,s=e?b.tickLength:b.minorTickLength,u=e?b.tickWidth:b.minorTickWidth||0,y=e?b.tickColor:b.minorTickColor,A=e?b.tickPosition:b.minorTickPosition,B=h.step,D=c&&b_||bW,F,G,H;G=k?w(g+bY,null,null,c)+v:bG+q+(j?(c&&bZ||bV)-bB-bG:0),H=k?D-bF+q-(j?cp:0):D-w(g+bY,null,null,c)-v,l&&(o=x(g+bY,l,c),i===E&&(F={stroke:m,"stroke-width":l},n&&(F.dashstyle=n),d.gridLine=i=l?cE.path(o).attr(F).add(C):null),i&&o&&i.animate({d:o})),u&&(A=="inside"&&(s=-s),j&&(s=-s),r=cE.crispLine([N,G,H,O,G+(k?0:-s),H+(k?s:0)],u),p?p.animate({d:r}):d.mark=cE.path(r).attr({stroke:y,"stroke-width":u}).add(z)),f&&(G=G+h.x-(bY&&k?bY*t*(bU?-1:1):0),H=H+h.y-(bY&&!k?bY*t*(bU?1:-1):0),bx(h.y)||(H+=parseInt(f.styles.lineHeight)*.9-f.getBBox().height/2),bM&&(H+=bT%bM*12,bT++),B&&f[a%B?"hide":"show"](),f[d.isNew?"attr":"animate"]({x:G,y:H})),d.isNew=!1},destroy:function(){var a=this,b;for(b in a)a[b]&&a[b].destroy&&a[b].destroy()}},ca.prototype={render:function(){var a=this,b=a.options,d=b.label,e=a.label,f=b.width,i=b.to,j,l=b.from,m=b.dashStyle,n=a.svgElem,o=[],p,q,r,s,t,u,v=b.color,w=b.zIndex,y=b.events,z;if(f)o=x(b.value,f),z={stroke:v,"stroke-width":f},m&&(z.dashstyle=m);else if(bx(l)&&bx(i))l=g(l,M),i=h(i,K),j=x(i),o=x(l),o&&j?o.push(j[4],j[5],j[1],j[2]):o=null,z={fill:v};else return;bx(w)&&(z.zIndex=w);if(n)o?n.animate({d:o},null,n.onGetPath):(n.hide(),n.onGetPath=function(){n.show()});else if(o&&o.length){a.svgElem=n=cE.path(o).attr(z).add();if(y){p=function(b){n.on(b,function(c){y[b].apply(a,[c])})};for(q in y)p(q)}}d&&bx(d.text)&&o&&o.length&&cq>0&&cp>0?(d=bi({align:k&&j&&"center",x:k?!j&&4:10,verticalAlign:!k&&j&&"middle",y:k?j?16:10:j?6:-4,rotation:k&&!j&&90},d),e||(a.label=e=cE.text(d.text,0,0).attr({align:d.textAlign||d.align,rotation:d.rotation,zIndex:w}).css(d.style).add()),r=[o[1],o[4],o[6]||o[1]],s=[o[2],o[5],o[7]||o[2]],t=h.apply(c,r),u=h.apply(c,s),e.align(d,!1,{x:t,y:u,width:g.apply(c,r)-t,height:g.apply(c,s)-u}),e.show()):e&&e.hide();return a},destroy:function(){var a=this,b;for(b in a)a[b]&&a[b].destroy&&a[b].destroy(),delete a[b];bw(bn,a)}},w=function(a,b,c,d){var e=1,f=0,g=d?u:t,h=d?P:M,i;g||(g=t),c&&(e*=-1,f=s),bU&&(e*=-1,f-=e*s),b?(bU&&(a=s-a),i=a/g+h):i=e*(a-h)*g+f;return i},x=function(a,b,c){var e,f,g,h,i=w(a,null,null,c),j=c&&b_||bW,l=c&&bZ||bV,m;e=g=d(i+v),f=h=d(j-i-v);if(isNaN(i))m=!0;else if(k){f=bv,h=j-bF;if(e<bG||e>bG+cq)m=!0}else{e=bG,g=l-bB;if(f<bv||f>bv+cp)m=!0}return m?null:cE.crispLine([N,e,f,O,g,h],b||0)},cD&&i&&bU===E&&(bU=!0),br(o,{addPlotBand:cm,addPlotLine:cm,adjustTickAmount:ch,categories:bK,getExtremes:ck,getPlotLinePath:x,getThreshold:cl,isXAxis:i,options:b,plotLinesAndBands:bn,getOffset:cn,render:co,setCategories:cu,setExtremes:cj,setScale:ci,setTickPositions:cg,translate:w,redraw:ct,removePlotBand:cs,removePlotLine:cs,reversed:bU,stacks:n});for(bl in bj)bk(o,bl,bj[bl]);ci()}bN=bi(bN,A.xAxis),bO=bi(bO,A.yAxis),A.xAxis=A.yAxis=null,j=bi(A,j);var l=j.chart,m=l.margin,p=bu(m)?m:[m,m,m,m],q=bA(l.marginTop,p[0]),s=bA(l.marginRight,p[1]),w=bA(l.marginBottom,p[2]),z=bA(l.marginLeft,p[3]),D=l.spacingTop,P=l.spacingRight,S=l.spacingBottom,bd=l.spacingLeft,be,bj,bq,bv,bB,bF,bG,bH,bI,bJ,bK,bM,bT,bU,bV,bW,bZ,b_,ca,cc,cd,ce,cf=this,cg=l.events,ch=cg&&!!cg.click,ci,cj,ck,cl,cm,cn,co,cp,cq,cr,cs,ct,cu,cv,cw,cx,cy=l.showAxes,cz=0,cA=[],cB,cC=[],cD,cE,cF,cG,cH,cI,cJ,cK,cL,cM,cN,cO,cT=function(a){function G(){p=o,q=n,x=0,r=0,f=[],w||(w=cE.g("legend").attr({zIndex:7}).add()),A&&z.reverse(),bf(z,function(a){if(!!a.options.showInLegend){var b=a.options.legendType=="point"?a.data:[a];bf(b,F)}}),A&&z.reverse(),cv=y||x,cw=r-n+s;if(u||v)cv+=2*l,cw+=2*l,t?cv>0&&cw>0&&t.animate({width:cv,height:cw}):t=cE.rect(0,0,cv,cw,b.borderRadius,u||0).attr({stroke:b.borderColor,"stroke-width":u||0,fill:v||M}).add(w).shadow(b.shadow),t[f.length?"show":"hide"]();var a=["left","right","top","bottom"],c,d=4;while(d--)c=a[d],h[c]&&h[c]!="auto"&&(b[d<2?"align":"verticalAlign"]=c,b[d<2?"x":"y"]=bs(h[c])*(d%2?-1:1));w.align(br(b,{width:cv,height:cw}),!0,be),cz||E()}function F(a){var h,n,t,u,v,z,A,D=a.legendItem,E=a.series||a,F=f.length;if(!D){A=/^(bar|pie|area|column)$/.test(E.type),a.legendItem=D=cE.text(b.labelFormatter.call(a),0,0).css(a.visible?i:k).on("mouseover",function(){a.setState(R),D.css(j)}).on("mouseout",function(){D.css(a.visible?i:k),a.setState()}).on("click",function(b){var c="legendItemClick",d=function(){a.setVisible()};a.firePointEvent?a.firePointEvent(c,null,d):bm(a,c,null,d)}).attr({zIndex:2}).add(w);if(!A&&a.options&&a.options.lineWidth){var G=a.options;z={"stroke-width":G.lineWidth+1,zIndex:2},G.dashStyle&&(z.dashstyle=G.dashStyle),a.legendLine=cE.path(E.type=="line"?[N,-d-e,0,O,parseInt(-d/2,10)-e-1,0,N,parseInt(-d/2,10)-e+1,0,O,-e,0]:[N,-d-e,0,O,-e,0]).attr(z).add(w)}A?t=cE.rect(u=-d-e,v=-11,d,12,2).attr({"stroke-width":0,zIndex:3}).add(w):a.options&&a.options.marker&&a.options.marker.enabled&&(t=cE.symbol(a.symbol,u=-d/2-e,v=-4,a.options.marker.radius).attr(a.pointAttr[Q]).attr({zIndex:3}).add(w)),t&&(t.xOff=u,t.yOff=v),a.legendSymbol=t,B(a,a.visible),a.options&&a.options.showCheckbox&&(a.checkbox=bD("input",{type:"checkbox",checked:a.selected,defaultChecked:a.selected},b.itemCheckboxStyle,bK),bk(a.checkbox,"click",function(b){var c=b.target;bm(a,"checkboxClick",{checked:c.checked},function(){a.select()})}))}h=D.getBBox(),n=a.legendItemWidth=b.itemWidth||d+e+h.width+m,s=h.height,c&&p-o+n>(y||bV-2*l-o)&&(p=o,q+=s),r=q,C(a,p,q),c?p+=n:q+=s,x=y||g(c?p-o:n,x),f.push(a)}function E(){bf(f,function(a){var b=a.checkbox;b&&bC(b,{left:w.attr("translateX")+a.legendItemWidth+b.x-40+L,top:w.attr("translateY")+b.y-11+L})})}function D(a){var b=a.checkbox;bf(["legendItem","legendLine","legendSymbol"],function(b){a[b]&&a[b].destroy()}),b&&bL(a.checkbox)}function C(a,b,c){var d=a.legendItem,e=a.legendLine,f=a.legendSymbol,g=a.checkbox;d&&d.attr({x:b,y:c}),e&&e.translate(b,c-4),f&&f.attr({x:b+f.xOff,y:c+f.yOff}),g&&(g.x=b,g.y=c)}function B(a,c){var d=a.legendItem,e=a.legendLine,f=a.legendSymbol,g=k.color,h=c?b.itemStyle.color:g,i=c?a.color:g;d&&d.css({fill:h}),e&&e.attr({stroke:i}),f&&f.attr({stroke:i,fill:i})}var b=a.options.legend;if(!!b.enabled){var c=b.layout=="horizontal",d=b.symbolWidth,e=b.symbolPadding,f,h=b.style,i=b.itemStyle,j=b.itemHoverStyle,k=b.itemHiddenStyle,l=bs(h.padding),m=20,n=18,o=4+l+d+e,p,q,r,s=0,t,u=b.borderWidth,v=b.backgroundColor,w,x,y=b.width,z=a.series,A=b.reversed;G(),bk(a,"endResize",E);return{colorizeItem:B,destroyItem:D,renderLegend:G}}};cj=function(a,b){return a>=0&&a<=cq&&b>=0&&b<=cp},cO=function(){bm(cf,"selection",{resetSelection:!0},cN),cf.toolbar.remove("zoom")},cN=function(a){var b=A.lang,c=cf.pointCount<100;cf.toolbar.add("zoom",b.resetZoom,b.resetZoomTitle,cO),!a||a.resetSelection?bf(cA,function(a){a.setExtremes(null,null,!1,c)}):bf(a.xAxis.concat(a.yAxis),function(a){var b=a.axis;cf.tracker[b.isXAxis?"zoomX":"zoomY"]&&b.setExtremes(a.min,a.max,!1,c)}),cX()},cJ=function(){var a=j.legend,b=bA(a.margin,10),c=a.x,d=a.y,e=a.align,f=a.verticalAlign,h;cK(),(cf.title||cf.subtitle)&&!bx(q)&&(h=g(cf.title&&!bj.floating&&!bj.verticalAlign&&bj.y||0,cf.subtitle&&!bq.floating&&!bq.verticalAlign&&bq.y||0),h&&(bv=g(bv,h+bA(bj.margin,15)+D))),a.enabled&&!a.floating&&(e=="right"?bx(s)||(bB=g(bB,cv-c+b+P)):e=="left"?bx(z)||(bG=g(bG,cv+c+b+bd)):f=="top"?bx(q)||(bv=g(bv,cw+d+b+D)):f=="bottom"&&(bx(w)||(bF=g(bF,cw-d+b+S)))),cy&&bf(cA,function(a){a.getOffset()}),bx(z)||(bG+=bH[3]),bx(q)||(bv+=bH[0]),bx(w)||(bF+=bH[2]),bx(s)||(bB+=bH[1]),cL()},cM=function(a,b,c){var e=cf.title,f=cf.subtitle;cz+=1,bE(c,cf),b_=bW,bZ=bV,bV=d(a),bW=d(b),bC(bK,{width:bV+L,height:bW+L}),cE.setSize(bV,bW,c),cq=bV-bG-bB,cp=bW-bv-bF,cB=null,bf(cA,function(a){a.isDirty=!0,a.setScale()}),bf(cC,function(a){a.isDirty=!0}),cf.isDirtyLegend=!0,cf.isDirtyBox=!0,cJ(),e&&e.align(null,null,be),f&&f.align(null,null,be),cX(c),b_=null,bm(cf,"resize"),setTimeout(function(){bm(cf,"endResize",null,function(){cz-=1})},C&&C.duration||500)},cL=function(){cf.plotLeft=bG=d(bG),cf.plotTop=bv=d(bv),cf.plotWidth=cq=d(bV-bG-bB),cf.plotHeight=cp=d(bW-bv-bF),cf.plotSizeX=cD?cp:cq,cf.plotSizeY=cD?cq:cp,be={x:bd,y:D,width:bV-bd-P,height:bW-D-S}},cK=function(){bv=bA(q,D),bB=bA(s,P),bF=bA(w,S),bG=bA(z,bd),bH=[0,0,0,0]},cI=function(){var a=l.borderWidth||0,b=l.backgroundColor,c=l.plotBackgroundColor,d=l.plotBackgroundImage,e,f={x:bG,y:bv,width:cq,height:cp};e=a+(l.shadow?8:0);if(a||b)ca?ca.animate({width:bV-e,height:bW-e}):ca=cE.rect(e/2,e/2,bV-e,bW-e,l.borderRadius,a).attr({stroke:l.borderColor,"stroke-width":a,fill:b||M}).add().shadow(l.shadow);c&&(cc?cc.animate(f):cc=cE.rect(bG,bv,cq,cp,0).attr({fill:c}).add().shadow(l.plotShadow)),d&&(cd?cd.animate(f):cd=cE.image(d,bG,bv,cq,cp).add()),l.plotBorderWidth&&(ce?ce.animate(f):ce=cE.rect(bG,bv,cq,cp,0,l.plotBorderWidth).attr({stroke:l.plotBorderColor,"stroke-width":l.plotBorderWidth,zIndex:4}).add()),cf.isDirtyBox=!1},u=0,v=0,bk(b,"unload",dh),l.reflow!==!1&&bk(cf,"load",df);if(cg)for(ci in cg)bk(cf,ci,cg[ci]);cf.options=j,cf.series=cC,cf.addSeries=cV,cf.animation=bA(l.animation,!0),cf.destroy=dh,cf.get=c$,cf.getSelectedPoints=da,cf.getSelectedSeries=db,cf.hideLoading=cZ,cf.isInsidePlot=cj,cf.redraw=cX,cf.setSize=cM,cf.setTitle=dc,cf.showLoading=cY,cf.pointCount=0,di()}function bZ(){}function bY(b){var c={left:b.offsetLeft,top:b.offsetTop};while(b=b.offsetParent)c.left+=b.offsetLeft,c.top+=b.offsetTop,b!=a.body&&b!=a.documentElement&&(c.left-=b.scrollLeft,c.top-=b.scrollTop);return c}function bX(a,b,c,d){var e=A.lang,f=a,g=isNaN(b=i(b))?2:b,h=c===undefined?e.decimalPoint:c,j=d===undefined?e.thousandsSep:d,k=f<0?"-":"",l=bs(f=i(+f||0).toFixed(g))+"",m=(m=l.length)>3?m%3:0;return k+(m?l.substr(0,m)+j:"")+l.substr(m).replace(/(\d{3})(?=\d)/g,"$1"+j)+(g?h+i(f-l).toFixed(g).slice(2):"")}function bV(a,b){var c=function(){};c.prototype=new a,br(c.prototype,b);return c}function bL(a){z||(z=bD(F)),a&&z.appendChild(a),z.innerHTML=""}function bK(){return A}function bJ(a){A=bi(A,a),bI();return A}function bI(){var a=A.global.useUTC;T=a?Date.UTC:function(a,b,c,d,e,f){return(new Date(a,b,bA(c,1),bA(d,0),bA(e,0),bA(f,0))).getTime()},U=a?"getUTCMinutes":"getMinutes",V=a?"getUTCHours":"getHours",W=a?"getUTCDay":"getDay",X=a?"getUTCDate":"getDate",Y=a?"getUTCMonth":"getMonth",Z=a?"getUTCFullYear":"getFullYear",$=a?"setUTCMinutes":"setMinutes",_=a?"setUTCHours":"setHours",ba=a?"setUTCDate":"setDate",bb=a?"setUTCMonth":"setMonth",bc=a?"setUTCFullYear":"setFullYear"}function bE(a,b){C=bA(a,b.animation)}function bD(b,c,d,e,f){var g=a.createElement(b);c&&br(g,c),f&&bC(g,{padding:0,border:M,margin:0}),d&&bC(g,d),e&&e.appendChild(g);return g}function bC(a,b){o&&b&&b.opacity!==E&&(b.filter="alpha(opacity="+b.opacity*100+")"),br(a.style,b)}function bB(a){var b="",c;for(c in a)b+=bj(c)+":"+a[c]+";";return b}function bA(){var a=arguments,b,c,d=a.length;for(b=0;b<d;b++){c=a[b];if(typeof c!="undefined"&&c!==null)return c}}function bz(a){if(!a||a.constructor!=Array)a=[a];return a}function by(a,b,c){var d,e="setAttribute",f;if(bt(b))bx(c)?a[e](b,c):a&&a.getAttribute&&(f=a.getAttribute(b));else if(bx(b)&&bu(b))for(d in b)a[e](d,b[d]);return f}function bx(a){return a!==E&&a!==null}function bw(a,b){var c=a.length;while(c--)if(a[c]==b){a.splice(c,1);break}}function bv(a){return typeof a=="number"}function bu(a){return typeof a=="object"}function bt(a){return typeof a=="string"}function bs(a,b){return parseInt(a,b||10)}function br(a,b){a||(a={});for(var c in b)a[c]=b[c];return a}var a=document,b=window,c=Math,d=c.round,e=c.floor,f=c.ceil,g=c.max,h=c.min,i=c.abs,j=c.cos,k=c.sin,l=c.PI,m=l*2/360,n=navigator.userAgent,o=/msie/i.test(n)&&!b.opera,p=a.documentMode==8,q=/AppleWebKit/.test(n),r=b.SVGAngle||a.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"),s="http://www.w3.org/2000/svg",t="ontouchstart"in a.documentElement,u,v,w={},x=0,y=1,z,A,B,C,D,E,F="div",G="absolute",H="relative",I="hidden",J="highcharts-",K="visible",L="px",M="none",N="M",O="L",P="rgba(192,192,192,"+(r?1e-6:.002)+")",Q="",R="hover",S="select",T,U,V,W,X,Y,Z,$,_,ba,bb,bc,bd=b.HighchartsAdapter,be=bd||{},bf=be.each,bg=be.grep,bh=be.map,bi=be.merge,bj=be.hyphenate,bk=be.addEvent,bl=be.removeEvent,bm=be.fireEvent,bn=be.animate,bo=be.stop,bp={},bq;bd&&bd.init&&bd.init();if(!bd&&b.jQuery){var bF=jQuery;bf=function(a,b){for(var c=0,d=a.length;c<d;c++)if(b.call(a[c],a[c],c,a)===!1)return c},bg=bF.grep,bh=function(a,b){var c=[];for(var d=0,e=a.length;d<e;d++)c[d]=b.call(a[d],a[d],d,a);return c},bi=function(){var a=arguments;return bF.extend(!0,null,a[0],a[1],a[2],a[3])},bj=function(a){return a.replace(/([A-Z])/g,function(a,b){return"-"+b.toLowerCase()})},bk=function(a,b,c){bF(a).bind(b,c)},bl=function(b,c,d){var e=a.removeEventListener?"removeEventListener":"detachEvent";a[e]&&!b[e]&&(b[e]=function(){}),bF(b).unbind(c,d)},bm=function(a,b,c,d){var e=bF.Event(b),f="detached"+b;br(e,c),a[b]&&(a[f]=a[b],a[b]=null),bF(a).trigger(e),a[f]&&(a[b]=a[f],a[f]=null),d&&!e.isDefaultPrevented()&&d(e)},bn=function(a,b,c){var d=bF(a);b.d&&(a.toD=b.d,b.d=1),d.stop(),d.animate(b,c)},bo=function(a){bF(a).stop()},bF.extend(bF.easing,{easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c}});var bG=jQuery.fx.step._default,bH=jQuery.fx.prototype.cur;bF.fx.step._default=function(a){var b=a.elem;b.attr?b.attr(a.prop,a.now):bG.apply(this,arguments)},bF.fx.step.d=function(a){var b=a.elem;if(!a.started){var c=D.init(b,b.d,b.toD);a.start=c[0],a.end=c[1],a.started=!0}b.attr("d",D.step(a.start,a.end,a.pos,b.toD))},bF.fx.prototype.cur=function(){var a=this.elem,b;a.attr?b=a.attr(this.prop):b=bH.apply(this,arguments);return b}}D={init:function(a,b,c){b=b||"";var d=a.shift,e=b.indexOf("C")>-1,f=e?7:3,g,h,i,j=b.split(" "),k=[].concat(c),l,m,n=function(a){i=a.length;while(i--)a[i]==N&&a.splice(i+1,0,a[i+1],a[i+2],a[i+1],a[i+2])};e&&(n(j),n(k)),a.isArea&&(l=j.splice(j.length-6,6),m=k.splice(k.length-6,6)),d&&(k=[].concat(k).splice(0,f).concat(k),a.shift=!1);if(j.length){g=k.length;while(j.length<g)h=[].concat(j).splice(j.length-f,f),e&&(h[f-6]=h[f-2],h[f-5]=h[f-1]),j=j.concat(h)}l&&(j=j.concat(l),k=k.concat(m));return[j,k]},step:function(a,b,c,d){var e=[],f=a.length,g;if(c==1)e=d;else if(f==b.length&&c<1)while(f--)g=parseFloat(a[f]),e[f]=isNaN(g)?a[f]:c*parseFloat(b[f]-g)+g;else e=b;return e}};var bM={enabled:!0,align:"center",x:0,y:15,style:{color:"#666",fontSize:"11px",lineHeight:"14px"}};A={colors:["#4572A7","#AA4643","#89A54E","#80699B","#3D96AE","#DB843D","#92A8CD","#A47D7C","#B5CA92"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",resetZoom:"Reset zoom",resetZoomTitle
:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:!0},chart:{borderColor:"#4572A7",borderRadius:5,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacingTop:10,spacingRight:10,spacingBottom:15,spacingLeft:10,style:{fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"12px"},backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0"},title:{text:"Chart title",align:"center",y:15,style:{color:"#3E576F",fontSize:"16px"}},subtitle:{text:"",align:"center",y:30,style:{color:"#6D869F"}},plotOptions:{line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},lineWidth:2,shadow:!0,marker:{enabled:!0,lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:bi(bM,{enabled:!1,y:-6,formatter:function(){return this.y}}),showInLegend:!0,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:!0}},labels:{style:{position:G,color:"#3E576F"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderWidth:1,borderColor:"#909090",borderRadius:5,shadow:!1,style:{padding:"5px"},itemStyle:{cursor:"pointer",color:"#3E576F"},itemHoverStyle:{cursor:"pointer",color:"#000000"},itemHiddenStyle:{color:"#C0C0C0"},itemCheckboxStyle:{position:G,width:"13px",height:"13px"},symbolWidth:16,symbolPadding:5,verticalAlign:"bottom",x:0,y:0},loading:{hideDuration:100,labelStyle:{fontWeight:"bold",position:H,top:"1em"},showDuration:100,style:{position:G,backgroundColor:"white",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,backgroundColor:"rgba(255, 255, 255, .85)",borderWidth:2,borderRadius:5,shadow:!0,snap:t?25:10,style:{color:"#333333",fontSize:"12px",padding:"5px",whiteSpace:"nowrap"}},toolbar:{itemStyle:{color:"#4572A7",cursor:"pointer"}},credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"10px"}}};var bN={dateTimeLabelFormats:{second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,gridLineColor:"#C0C0C0",labels:bM,lineColor:"#C0D0E0",lineWidth:1,max:null,min:null,minPadding:.01,maxPadding:.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#6D869F",fontWeight:"bold"}},type:"linear"},bO=bi(bN,{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{align:"right",x:-8,y:3},lineWidth:0,maxPadding:.05,minPadding:.05,startOnTick:!0,tickWidth:0,title:{rotation:270,text:"Y-values"}}),bP={labels:{align:"right",x:-8,y:null},title:{rotation:270}},bQ={labels:{align:"left",x:8,y:null},title:{rotation:90}},bR={labels:{align:"center",x:0,y:14},title:{rotation:0}},bS=bi(bR,{labels:{y:-5}}),bT=A.plotOptions,bU=bT.line;bT.spline=bi(bU),bT.area=bi(bU,{}),bT.areaspline=bi(bT.area),bI();var bW=function(a){function g(a){b[3]=a;return this}function f(a){if(bv(a)&&a!==0){var c;for(c=0;c<3;c++)b[c]+=bs(a*255),b[c]<0&&(b[c]=0),b[c]>255&&(b[c]=255)}return this}function e(c){var d;b&&!isNaN(b[0])?c=="rgb"?d="rgb("+b[0]+","+b[1]+","+b[2]+")":c=="a"?d=b[3]:d="rgba("+b.join(",")+")":d=a;return d}function d(a){if(c=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(a))b=[bs(c[1]),bs(c[2]),bs(c[3]),parseFloat(c[4],10)];else if(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a))b=[bs(c[1],16),bs(c[2],16),bs(c[3],16),1]}var b=[],c;d(a);return{get:e,brighten:f,setOpacity:g}};B=function(a,b,c){function d(a){return a.toString().replace(/^([0-9])$/,"0$1")}if(!bx(b)||isNaN(b))return"Invalid date";a=bA(a,"%Y-%m-%d %H:%M:%S");var e=new Date(b*y),f=e[V](),g=e[W](),h=e[X](),i=e[Y](),j=e[Z](),k=A.lang,l=k.weekdays,m=k.months,n={a:l[g].substr(0,3),A:l[g],d:d(h),e:h,b:m[i].substr(0,3),B:m[i],m:d(i+1),y:j.toString().substr(2,2),Y:j,H:d(f),I:d(f%12||12),l:f%12||12,M:d(e[U]()),p:f<12?"AM":"PM",P:f<12?"am":"pm",S:d(e.getSeconds())};for(var o in n)a=a.replace("%"+o,n[o]);return c?a.substr(0,1).toUpperCase()+a.substr(1):a},bZ.prototype={init:function(b,c){this.element=a.createElementNS(s,c),this.renderer=b},animate:function(a,b,c){var d=bA(b,C,!0);d?(d=bi(d),c&&(d.complete=c),bn(this,a,d)):(this.attr(a),c&&c())},attr:function(a,b){var c,d,e,f,g=this.element,h=g.nodeName,i=this.renderer,j,k=this.shadows,l,m=this;bt(a)&&bx(b)&&(c=a,a={},a[c]=b);if(bt(a))c=a,h=="circle"?c={x:"cx",y:"cy"}[c]||c:c=="strokeWidth"&&(c="stroke-width"),m=by(g,c)||this[c]||0,c!="d"&&c!="visibility"&&(m=parseFloat(m));else for(c in a){j=!1,d=a[c];if(c=="d")d&&d.join&&(d=d.join(" ")),/(NaN| {2}|^$)/.test(d)&&(d="M 0 0"),this.d=d;else if(c=="x"&&h=="text"){for(e=0;e<g.childNodes.length;e++)f=g.childNodes[e],by(f,"x")==by(g,"x")&&by(f,"x",d);this.rotation&&by(g,"transform","rotate("+this.rotation+" "+d+" "+bs(a.y||by(g,"y"))+")")}else if(c=="fill")d=i.color(d,g,c);else if(h!="circle"||c!="x"&&c!="y")if(c=="translateX"||c=="translateY"||c=="rotation"||c=="verticalAlign")this[c]=d,this.updateTransform(),j=!0;else if(c=="stroke")d=i.color(d,g,c);else if(c=="dashstyle"){c="stroke-dasharray";if(d){d=d.toLowerCase().replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","9,5,").replace(/,$/,"").split(","),e=d.length;while(e--)d[e]=bs(d[e])*a["stroke-width"];d=d.join(",")}}else c=="isTracker"?this[c]=d:c=="width"?d=bs(d):c=="align"&&(c="text-anchor",d={left:"start",center:"middle",right:"end"}[d]);else c={x:"cx",y:"cy"}[c]||c;c=="strokeWidth"&&(c="stroke-width"),q&&c=="stroke-width"&&d===0&&(d=1e-6),this.symbolName&&/^(x|y|r|start|end|innerR)/.test(c)&&(l||(this.symbolAttr(a),l=!0),j=!0);if(k&&/^(width|height|visibility|x|y|d)$/.test(c)){e=k.length;while(e--)by(k[e],c,d)}c=="text"?(this.textStr=d,i.buildText(this)):j||by(g,c,d)}return m},symbolAttr:function(a){var b=this;b.x=bA(a.x,b.x),b.y=bA(a.y,b.y),b.r=bA(a.r,b.r),b.start=bA(a.start,b.start),b.end=bA(a.end,b.end),b.width=bA(a.width,b.width),b.height=bA(a.height,b.height),b.innerR=bA(a.innerR,b.innerR),b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.r,{start:b.start,end:b.end,width:b.width,height:b.height,innerR:b.innerR})})},clip:function(a){return this.attr("clip-path","url("+this.renderer.url+"#"+a.id+")")},css:function(a){var b=this,c=b.element;a&&a.color&&(a.fill=a.color),a=br(b.styles,a),o&&!r?bC(b.element,a):b.attr({style:bB(a)}),b.styles=a,a.width&&c.nodeName=="text"&&b.added&&b.renderer.buildText(b);return b},on:function(a,b){var c=b;t&&a=="click"&&(a="touchstart",c=function(a){a.preventDefault(),b()}),this.element["on"+a]=c;return this},translate:function(a,b){return this.attr({translateX:a,translateY:b})},invert:function(){var a=this;a.inverted=!0,a.updateTransform();return a},updateTransform:function(){var a=this,b=a.translateX||0,c=a.translateY||0,d=a.inverted,e=a.rotation,f=[];d&&(b+=a.attr("width"),c+=a.attr("height")),(b||c)&&f.push("translate("+b+","+c+")"),d?f.push("rotate(90) scale(-1,1)"):e&&f.push("rotate("+e+" "+a.x+" "+a.y+")"),f.length&&by(a.element,"transform",f.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,b,c){a?(this.alignOptions=a,this.alignByTranslate=b,c||this.renderer.alignedObjects.push(this)):(a=this.alignOptions,b=this.alignByTranslate),c=bA(c,this.renderer);var d=a.align,e=a.verticalAlign,f=(c.x||0)+(a.x||0),g=(c.y||0)+(a.y||0),h={};/^(right|center)$/.test(d)&&(f+=(c.width-(a.width||0))/{right:1,center:2}[d]),h[b?"translateX":"x"]=f,/^(bottom|middle)$/.test(e)&&(g+=(c.height-(a.height||0))/({bottom:1,middle:2}[e]||1)),h[b?"translateY":"y"]=g,this[this.placed?"animate":"attr"](h),this.placed=!0;return this},getBBox:function(){var a,b,c,d=this.rotation,e=d*m;try{a=br({},this.element.getBBox())}catch(f){a={width:0,height:0}}b=a.width,c=a.height,d&&(a.width=i(c*k(e))+i(b*j(e)),a.height=i(c*j(e))+i(b*k(e)));return a},show:function(){return this.attr({visibility:K})},hide:function(){return this.attr({visibility:I})},add:function(a){var b=this.renderer,c=a||b,d=c.element||b.box,e=d.childNodes,f=this.element,g=by(f,"zIndex"),h=this.textStr,i,j,k;this.parentInverted=a&&a.inverted,g&&(c.handleZ=!0,g=bs(g));if(c.handleZ)for(k=0;k<e.length;k++){i=e[k],j=by(i,"zIndex");if(i!=f&&(bs(j)>g||!bx(g)&&bx(j))){d.insertBefore(f,i);return this}}h!==undefined&&(b.buildText(this),this.added=!0),d.appendChild(f);return this},destroy:function(){var a=this,b=a.element||{},c=a.shadows,d=b.parentNode,e;b.onclick=b.onmouseout=b.onmouseover=b.onmousemove=null,bo(a),d&&d.removeChild(b),c&&bf(c,function(a){d=a.parentNode,d&&d.removeChild(a)}),bw(a.renderer.alignedObjects,a);for(e in a)delete a[e];return null},empty:function(){var a=this.element,b=a.childNodes,c=b.length;while(c--)a.removeChild(b[c])},shadow:function(a){var b=[],c,d,e=this.element,f=this.parentInverted?"(-1,-1)":"(1,1)";if(a){for(c=1;c<=3;c++)d=e.cloneNode(0),by(d,{isShadow:"true",stroke:"rgb(0, 0, 0)","stroke-opacity":.05*c,"stroke-width":7-2*c,transform:"translate"+f,fill:M}),e.parentNode.insertBefore(d,e),b.push(d);this.shadows=b}return this}};var b$=function(){this.init.apply(this,arguments)};b$.prototype={init:function(a,b,c){var d=this,e=location,f;d.Element=bZ,f=d.createElement("svg").attr({xmlns:s,version:"1.1"}),a.appendChild(f.element),d.box=f.element,d.boxWrapper=f,d.alignedObjects=[],d.url=o?"":e.href.replace(/#.*?$/,""),d.defs=this.createElement("defs").add(),d.setSize(b,c,!1)},createElement:function(a){var b=new this.Element;b.init(this,a);return b},buildText:function(b){var c=b.element,d=bA(b.textStr,"").toString().replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br[^>]?>/g),e=c.childNodes,f=/style="([^"]+)"/,g=/href="([^"]+)"/,h=by(c,"x"),i=b.styles,j=i&&bs(i.width),k=i&&i.lineHeight,l,m=e.length;while(m--)c.removeChild(e[m]);j&&this.box.appendChild(c),bf(d,function(b,d){var e,i=0,m;b=b.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||"),e=b.split("|||"),bf(e,function(b){if(b!==""||e.length==1){var n={},o=a.createElementNS(s,"tspan");f.test(b)&&by(o,"style",b.match(f)[1].replace(/(;| |^)color([ :])/,"$1fill$2")),g.test(b)&&(by(o,"onclick",'location.href="'+b.match(g)[1]+'"'),bC(o,{cursor:"pointer"})),b=b.replace(/<(.|\n)*?>/g,"")||" ",o.appendChild(a.createTextNode(b)),i?n.dx=3:n.x=h,i||(d&&(m=bs(window.getComputedStyle(l,null).getPropertyValue("line-height")),isNaN(m)&&(m=k||l.offsetHeight||18),m=14,by(o,"dy",m)),l=o),by(o,n),c.appendChild(o),i++;if(j){var p=b.replace(/-/g,"- ").split(" "),q,r,t=[];while(p.length||t.length)r=c.getBBox().width,q=r>j,!q||p.length==1?(p=t,t=[],o=a.createElementNS(s,"tspan"),by(o,{x:h,dy:k||16}),c.appendChild(o),r>j&&(j=r)):(o.removeChild(o.firstChild),t.unshift(p.pop())),o.appendChild(a.createTextNode(p.join(" ").replace(/- /g,"-")))}}})})},crispLine:function(a,b){a[1]==a[4]&&(a[1]=a[4]=d(a[1])+b%2/2),a[2]==a[5]&&(a[2]=a[5]=d(a[2])+b%2/2);return a},path:function(a){return this.createElement("path").attr({d:a,fill:M})},circle:function(a,b,c){var d=bu(a)?a:{x:a,y:b,r:c};return this.createElement("circle").attr(d)},arc:function(a,b,c,d,e,f){bu(a)&&(b=a.y,c=a.r,d=a.innerR,e=a.start,f=a.end,a=a.x);return this.symbol("arc",a||0,b||0,c||0,{innerR:d||0,start:e||0,end:f||0})},rect:function(a,b,c,e,f,h){if(arguments.length>1){var i=(h||0)%2/2;a=d(a||0)+i,b=d(b||0)+i,c=d((c||0)-2*i),e=d((e||0)-2*i)}var j=bu(a)?a:{x:a,y:b,width:g(c,0),height:g(e,0)};return this.createElement("rect").attr(br(j,{rx:f||j.r,ry:f||j.r,fill:M}))},setSize:function(a,b,c){var d=this,e=d.alignedObjects,f=e.length;d.width=a,d.height=b,d.boxWrapper[bA(c,!0)?"animate":"attr"]({width:a,height:b});while(f--)e[f].align()},g:function(a){return this.createElement("g").attr(bx(a)&&{"class":J+a})},image:function(a,b,c,d,e){var f={preserveAspectRatio:M},g;arguments.length>1&&br(f,{x:b,y:c,width:d,height:e}),g=this.createElement("image").attr(f),g.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a);return g},symbol:function(a,b,c,e,f){var g,h=this.symbols[a],i=h&&h(b,c,e,f),j=/^url\((.*?)\)$/,k;i?(g=this.path(i),br(g,{symbolName:a,x:b,y:c,r:e}),f&&br(g,f)):j.test(a)?(k=a.match(j)[1],g=this.image(k).attr({x:b,y:c}),bD("img",{onload:function(){var a=this,b=w[a.src]||[a.width,a.height];g.attr({width:b[0],height:b[1]}).translate(-d(b[0]/2),-d(b[1]/2))},src:k})):g=this.circle(b,c,e);return g},symbols:{square:function(a,b,c){var d=.707*c;return[N,a-d,b-d,O,a+d,b-d,a+d,b+d,a-d,b+d,"Z"]},triangle:function(a,b,c){return[N,a,b-1.33*c,O,a+c,b+.67*c,a-c,b+.67*c,"Z"]},"triangle-down":function(a,b,c){return[N,a,b+1.33*c,O,a-c,b-.67*c,a+c,b-.67*c,"Z"]},diamond:function(a,b,c){return[N,a,b-c,O,a+c,b,a,b+c,a-c,b,"Z"]},arc:function(a,b,c,d){var e=d.start,f=d.end-1e-6,g=d.innerR,h=j(e),i=k(e),m=j(f),n=k(f),o=d.end-e<l?0:1;return[N,a+c*h,b+c*i,"A",c,c,0,o,1,a+c*m,b+c*n,O,a+g*m,b+g*n,"A",g,g,0,o,0,a+g*h,b+g*i,"Z"]}},clipRect:function(a,b,c,d){var e,f=J+x++,g=this.createElement("clipPath").attr({id:f}).add(this.defs);e=this.rect(a,b,c,d,0).add(g),e.id=f;return e},color:function(a,b,c){var d,e=/^rgba/;if(a&&a.linearGradient){var f=this,g="linearGradient",h=a[g],i=J+x++,j,k,l;j=f.createElement(g).attr({id:i,gradientUnits:"userSpaceOnUse",x1:h[0],y1:h[1],x2:h[2],y2:h[3]}).add(f.defs),bf(a.stops,function(a){e.test(a[1])?(d=bW(a[1]),k=d.get("rgb"),l=d.get("a")):(k=a[1],l=1),f.createElement("stop").attr({offset:a[0],"stop-color":k,"stop-opacity":l}).add(j)});return"url("+this.url+"#"+i+")"}if(e.test(a)){d=bW(a),by(b,c+"-opacity",d.get("a"));return d.get("rgb")}return a},text:function(a,b,c){var e=A.chart.style,f;b=d(bA(b,0)),c=d(bA(c,0)),f=this.createElement("text").attr({x:b,y:c,text:a}).css({"font-family":e.fontFamily,"font-size":e.fontSize}),f.x=b,f.y=c;return f}};var b_;if(!r){var ca=bV(bZ,{init:function(a,b){var c=["<",b,' filled="f" stroked="f"'],d=["position: ",G,";"];(b=="shape"||b==F)&&d.push("left:0;top:0;width:10px;height:10px;"),p&&d.push("visibility: ",b==F?I:K),c.push(' style="',d.join(""),'"/>'),b&&(c=b==F||b=="span"||b=="img"?c.join(""):a.prepVML(c),this.element=bD(c)),this.renderer=a},add:function(a){var b=this,c=b.renderer,d=b.element,e=c.box,f=a&&a.inverted,g=a?a.element||a:e;f&&c.invertChild(d,g),p&&g.gVis==I&&bC(d,{visibility:I}),g.appendChild(d),b.added=!0,b.alignOnAdd&&b.updateTransform();return b},attr:function(a,b){var c,e,f,g=this.element||{},h=g.style,i=g.nodeName,j=this.renderer,k=this.symbolName,l,m,n=this.shadows,o,q=this;bt(a)&&bx(b)&&(c=a,a={},a[c]=b);if(bt(a))c=a,c=="strokeWidth"||c=="stroke-width"?q=this.strokeweight:q=this[c];else for(c in a){e=a[c],o=!1;if(k&&/^(x|y|r|start|end|width|height|innerR)/.test(c))m||(this.symbolAttr(a),m=!0),o=!0;else if(c=="d"){e=e||[],this.d=e.join(" "),f=e.length;var r=[];while(f--)bv(e[f])?r[f]=d(e[f]*10)-5:e[f]=="Z"?r[f]="x":r[f]=e[f];e=r.join(" ")||"x",g.path=e;if(n){f=n.length;while(f--)n[f].path=e}o=!0}else if(c=="zIndex"||c=="visibility"){if(p&&c=="visibility"&&i=="DIV"){g.gVis=e,l=g.childNodes,f=l.length;while(f--)bC(l[f],{visibility:e});e==K&&(e=null)}e&&(h[c]=e),o=!0}else if(/^(width|height)$/.test(c))this.updateClipping?(this[c]=e,this.updateClipping()):h[c]=e,o=!0;else if(/^(x|y)$/.test(c))this[c]=e,g.tagName=="SPAN"?this.updateTransform():h[{x:"left",y:"top"}[c]]=e;else if(c=="class")g.className=e;else if(c=="stroke")e=j.color(e,g,c),c="strokecolor";else if(c=="stroke-width"||c=="strokeWidth")g.stroked=e?!0:!1,c="strokeweight",this[c]=e,bv(e)&&(e+=L);else if(c=="dashstyle"){var s=g.getElementsByTagName("stroke")[0]||bD(j.prepVML(["<stroke/>"]),null,null,g);s[c]="5 2",s.weight="1.5pt",this.dashstyle=e,o=!0}else c=="fill"?i=="SPAN"?h.color=e:(g.filled=e!=M?!0:!1,e=j.color(e,g,c),c="fillcolor"):c=="translateX"||c=="translateY"||c=="rotation"||c=="align"?(c=="align"&&(c="textAlign"),this[c]=e,this.updateTransform(),o=!0):c=="text"&&(g.innerHTML=e,o=!0);if(n&&c=="visibility"){f=n.length;while(f--)n[f].style[c]=e}o||(p?g[c]=e:by(g,c,e))}return q},clip:function(a){var b=this,c=a.members;c.push(b),b.destroyClip=function(){bw(c,b)};return b.css(a.getCSS(b.inverted))},css:function(a){var b=this,c=b.element,d=a&&a.width&&c.tagName=="SPAN";d&&br(a,{display:"block",whiteSpace:"normal"}),b.styles=br(b.styles,a),bC(b.element,a),d&&b.updateTransform();return b},destroy:function(){var a=this;a.destroyClip&&a.destroyClip(),bZ.prototype.destroy.apply(a)},empty:function(){var a=this.element,b=a.childNodes,c=b.length,d;while(c--)d=b[c],d.parentNode.removeChild(d)},getBBox:function(){var a=this.element;a.nodeName=="text"&&(a.style.position=G);return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},on:function(a,c){this.element["on"+a]=function(){var a=b.event;a.target=a.srcElement,c(a)};return this},updateTransform:function(a){if(!this.added)this.alignOnAdd=!0;else{var b=this,c=b.element,e=b.translateX||0,f=b.translateY||0,g=b.x||0,h=b.y||0,i=b.textAlign||"left",l={left:0,center:.5,right:1}[i],n=i&&i!="left";(e||f)&&b.css({marginLeft:e,marginTop:f}),b.inverted&&bf(c.childNodes,function(a){b.renderer.invertChild(a,c)});if(c.tagName=="SPAN"){var o,p,q=b.rotation,r,s=0,t=1,u=0,v,w=b.xCorr||0,x=b.yCorr||0,y=[q,i,c.innerHTML,c.style.width].join(",");y!=b.cTT&&(bx(q)&&(s=q*m,t=j(s),u=k(s),bC(c,{filter:q?["progid:DXImageTransform.Microsoft.Matrix(M11=",t,", M12=",-u,", M21=",u,", M22=",t,", sizingMethod='auto expand')"].join(""):M})),o=c.offsetWidth,p=c.offsetHeight,r=d(bs(c.style.fontSize||12)*1.2),w=t<0&&-o,x=u<0&&-p,v=t*u<0,w+=u*r*(v?1-l:l),x-=t*r*(q?v?l:1-l:1),n&&(w-=o*l*(t<0?-1:1),q&&(x-=p*l*(u<0?-1:1)),bC(c,{textAlign:i})),b.xCorr=w,b.yCorr=x),bC(c,{left:g+w,top:h+x}),b.cTT=y}}},shadow:function(a){var b=[],c,d=this.element,e=this.renderer,f,g=d.style,h,i=d.path;""+d.path==""&&(i="x");if(a){for(c=1;c<=3;c++)h=['<shape isShadow="true" strokeweight="',7-2*c,'" filled="false" path="',i,'" coordsize="100,100" style="',d.style.cssText,'" />'],f=bD(e.prepVML(h),null,{left:bs(g.left)+1,top:bs(g.top)+1}),h=['<stroke color="black" opacity="',.05*c,'"/>'],bD(e.prepVML(h),null,null,f),d.parentNode.insertBefore(f,d),b.push(f);this.shadows=b}return this}});b_=function(){this.init.apply(this,arguments)},b_.prototype=bi(b$.prototype,{isIE8:n.indexOf("MSIE 8.0")>-1,init:function(a,b,c){var d=this,e;d.Element=ca,d.alignedObjects=[],e=d.createElement(F),a.appendChild(e.element),d.box=e.element,d.boxWrapper=e,d.setSize(b,c,!1)},clipRect:function(a,b,c,e){var f=this.createElement();return br(f,{members:[],left:a,top:b,width:c,height:e,getCSS:function(a){var b=this,c=b.top,e=b.left,f=e+b.width,g=c+b.height,h={clip:"rect("+d(a?e:c)+"px,"+d(a?g:f)+"px,"+d(a?f:g)+"px,"+d(a?c:e)+"px)"};!a&&p&&br(h,{width:f+L,height:g+L});return h},updateClipping:function(){bf(f.members,function(a){a.css(f.getCSS(a.inverted))})}})},color:function(a,b,d){var e,f=/^rgba/,g;if(!a||!a.linearGradient){if(f.test(a)&&b.tagName!="IMG"){e=bW(a),g=["<",d,' opacity="',e.get("a"),'"/>'],bD(this.prepVML(g),null,null,b);return e.get("rgb")}return a}var h,i,j=a.linearGradient,k,m,n,o,p;bf(a.stops,function(a,b){f.test(a[1])?(e=bW(a[1]),h=e.get("rgb"),i=e.get("a")):(h=a[1],i=1),b?(o=h,p=i):(m=h,n=i)}),k=90-c.atan((j[3]-j[1])/(j[2]-j[0]))*180/l,g=["<",d,' colors="0% ',m,",100% ",o,'" angle="',k,'" opacity="',p,'" o:opacity2="',n,'" type="gradient" focus="100%" />'],bD(this.prepVML(g),null,null,b)},prepVML:function(a){var b="display:inline-block;behavior:url(#default#VML);",c=this.isIE8;a=a.join(""),a=a.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),a.indexOf('style="')==-1?a=a.replace("/>",' style="'+b+'" />'):a=a.replace('style="','style="'+b);return a},text:function(a,b,c){var e=A.chart.style;return this.createElement("span").attr({text:a,x:d(b),y:d(c)}).css({whiteSpace:"nowrap",fontFamily:e.fontFamily,fontSize:e.fontSize})},path:function(a){return this.createElement("shape").attr({coordsize:"100 100",d:a})},circle:function(a,b,c){return this.path(this.symbols.circle(a,b,c))},g:function(a){var b,c;a&&(c={className:J+a,"class":J+a}),b=this.createElement(F).attr(c);return b},image:function(a,b,c,d,e){var f=this.createElement("img").attr({src:a});arguments.length>1&&f.css({left:b,top:c,width:d,height:e});return f},rect:function(a,b,c,e,f,g){if(arguments.length>1){var h=(g||0)%2/2;a=d(a||0)+h,b=d(b||0)+h,c=d((c||0)-2*h),e=d((e||0)-2*h)}bu(a)&&(b=a.y,c=a.width,e=a.height,f=a.r,a=a.x);return this.symbol("rect",a||0,b||0,f||0,{width:c||0,height:e||0})},invertChild:function(a,b){var c=b.style;bC(a,{flip:"x",left:bs(c.width)-10,top:bs(c.height)-10,rotation:-90})},symbols:{arc:function(a,b,c,d){var e=d.start,f=d.end,g=j(e),h=k(e),i=j(f),m=k(f),n=d.innerR;if(f-e===0)return["x"];f-e==2*l&&(i=-0.07/c);return["wa",a-c,b-c,a+c,b+c,a+c*g,b+c*h,a+c*i,b+c*m,"at",a-n,b-n,a+n,b+n,a+n*i,b+n*m,a+n*g,b+n*h,"x","e"]},circle:function(a,b,c){return["wa",a-c,b-c,a+c,b+c,a+c,b,a+c,b,"e"]},rect:function(a,b,c,d){var e=d.width,f=d.height,g=a+e,i=b+f;c=h(c,e,f);return[N,a+c,b,O,g-c,b,"wa",g-2*c,b,g,b+2*c,g-c,b,g,b+c,O,g,i-c,"wa",g-2*c,i-2*c,g,i,g,i-c,g-c,i,O,a+c,i,"wa",a,i-2*c,a+2*c,i,a+c,i,a,i-c,O,a,b+c,"wa",a,b,a+2*c,b+2*c,a,b+c,a+c,b,"x","e"]}}})}var cb=r?b$:b_;cc.prototype.callbacks=[];var cd=function(){};cd.prototype={init:function(a,b){var c=this,d;c.series=a,c.applyOptions(b),c.pointAttr={},a.options.colorByPoint&&(d=a.chart.options.colors,c.options||(c.options={}),c.color=c.options.color=c.color||d[u++],u>=d.length&&(u=0)),a.chart.pointCount++;return c},applyOptions:function(a){var b=this,c=b.series;b.config=a,bv(a)||a===null?b.y=a:bu(a)&&!bv(a.length)?(br(b,a),b.options=a):bt(a[0])?(b.name=a[0],b.y=a[1]):bv(a[0])&&(b.x=a[0],b.y=a[1]),b.x===E&&(b.x=c.autoIncrement())},destroy:function(){var a=this,b=a.series,c;b.chart.pointCount--,a==b.chart.hoverPoint&&a.onMouseOut(),b.chart.hoverPoints=null,bl(a),bf(["graphic","tracker","group","dataLabel","connector"],function(b){a[b]&&a[b].destroy()}),a.legendItem&&a.series.chart.legend.destroyItem(a);for(c in a)a[c]=null},select:function(a,b){var c=this,d=c.series,e=d.chart;c.selected=a=bA(a,!c.selected),c.firePointEvent(a?"select":"unselect"),c.setState(a&&S),b||bf(e.getSelectedPoints(),function(a){a.selected&&a!=c&&(a.selected=!1,a.setState(Q),a.firePointEvent("unselect"))})},onMouseOver:function(){var a=this,b=a.series.chart,c=b.tooltip,d=b.hoverPoint;d&&d!=a&&d.onMouseOut(),a.firePointEvent("mouseOver"),c&&!c.shared&&c.refresh(a),a.setState(R),b.hoverPoint=a},onMouseOut:function(){var a=this;a.firePointEvent("mouseOut"),a.setState(),a.series.chart.hoverPoint=null},tooltipFormatter:function(a){var b=this,c=b.series;return['<span style="color:'+c.color+'">',b.name||c.name,"</span>: ",a?"":"<b>x = "+(b.name||b.x)+",</b> ","<b>",a?"":"y = ",b.y,"</b><br/>"].join("")},update:function(a,b,c){var d=this,e=d.series,f=e.chart;bE(c,f),b=bA(b,!0),d.firePointEvent("update",{options:a},function(){d.applyOptions(a),e.isDirty=!0,b&&f.redraw()})},remove:function(a,b){var c=this,d=c.series,e=d.chart,f=d.data;bE(b,e),a=bA(a,!0),c.firePointEvent("remove",null,function(){bw(f,c),c.destroy(),d.isDirty=!0,a&&e.redraw()})},firePointEvent:function(a,b,c){var d=this,e=this.series,f=e.options;(f.point.events[a]||d.options&&d.options.events&&d.options.events[a])&&this.importEvents(),a=="click"&&f.allowPointSelect&&(c=function(a){d.select(null,a.ctrlKey||a.metaKey||a.shiftKey)}),bm(this,a,b,c)},importEvents:function(){if(!this.hasImportedEvents){var a=this,b=bi(a.series.options.point,a.options),c=b.events,d;a.events=c;for(d in c)bk(a,d,c[d]);this.hasImportedEvents=!0}},setState:function(a){var b=this,c=b.series,d=c.options.states,e=bT[c.type].marker&&c.options.marker,f=e&&!e.enabled,g=e&&e.states[a],h=g&&g.enabled===!1,i=c.stateMarkerGraphic,j=c.chart,k=b.pointAttr;a||(a=Q);a==b.state||b.selected&&a!=S||d[a]&&d[a].enabled===!1||a&&(h||f&&!g.enabled)||(b.graphic?b.graphic.attr(k[a]):(a&&(i||(c.stateMarkerGraphic=i=j.renderer.circle(0,0,k[a].r).attr(k[a]).add(c.group)),i.translate(b.plotX,b.plotY)),i&&i[a?"show":"hide"]()),b.state=a)}};var ce=function(){};ce.prototype={isCartesian:!0,type:"line",pointClass:cd,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},init:function(a,b){var c=this,d,e,f=a.series.length;c.chart=a,b=c.setOptions(b),br(c,{index:f,options:b,name:b.name||"Series "+(f+1),state:Q,pointAttr:{},visible:b.visible!==!1,selected:b.selected===!0}),e=b.events;for(d in e)bk(c,d,e[d]);if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;c.getColor(),c.getSymbol(),c.setData(b.data,!1)},autoIncrement:function(){var a=this,b=a.options,c=a.xIncrement;c=bA(c,b.pointStart,0),a.pointInterval=bA(a.pointInterval,b.pointInterval,1),a.xIncrement=c+a.pointInterval;return c},cleanData:function(){var a=this,b=a.chart,c=a.data,d,e,f=b.smallestInterval,g,h;c.sort(function(a,b){return a.x-b.x});for(h=c.length-1;h>=0;h--)c[h-1]&&c[h-1].x==c[h].x&&c.splice(h-1,1);for(h=c.length-1;h>=0;h--)if(c[h-1]){g=c[h].x-c[h-1].x;if(e===E||g<e)e=g,d=h}if(f===E||e<f)b.smallestInterval=e;a.closestPoints=d},getSegments:function(){var a=-1,b=[],c=this.data;bf(c,function(d,e){d.y===null?(e>a+1&&b.push(c.slice(a+1,e)),a=e):e==c.length-1&&b.push(c.slice(a+1,e+1))}),this.segments=b},setOptions:function(a){var b=this.chart.options.plotOptions,c=bi(b[this.type],b.series,a);return c},getColor:function(){var a=this.chart.options.colors;this.color=this.options.color||a[u++]||"#0000ff",u>=a.length&&(u=0)},getSymbol:function(){var a=this.chart.options.symbols,b=this.options.marker.symbol||a[v++];this.symbol=b,v>=a.length&&(v=0)},addPoint:function(a,b,c,d){var e=this,f=e.data,g=e.graph,h=e.area,i=e.chart,j=(new e.pointClass).init(e,a);bE(d,i),g&&c&&(g.shift=c),h&&(h.shift=c,h.isArea=!0),b=bA(b,!0),f.push(j),c&&f[0].remove(!1),e.isDirty=!0,b&&i.redraw()},setData:function(a,b){var c=this,d=c.data,e=c.initialColor,f=c.chart,g=d&&d.length||0;c.xIncrement=null,bx(e)&&(u=e),a=bh(bz(a||[]),function(a){return(new c.pointClass).init(c,a)});while(g--)d[g].destroy();c.data=a,c.cleanData(),c.getSegments(),c.isDirty=!0,f.isDirtyBox=!0,bA(b,!0)&&f.redraw(!1)},remove:function(a,b){var c=this,d=c.chart;a=bA(a,!0),c.isRemoving||(c.isRemoving=!0,bm(c,"remove",null,function(){c.destroy(),d.isDirtyLegend=d.isDirtyBox=!0,a&&d.redraw(b)})),c.isRemoving=!1},translate:function(){var a=this,b=a.chart,c=a.options.stacking,d=a.xAxis.categories,e=a.yAxis,f=a.data,g=f.length;while(g--){var h=f[g],i=h.x,j=h.y,k=h.low,l=e.stacks[(j<0?"-":"")+a.stackKey],m,n;h.plotX=a.xAxis.translate(i),c&&a.visible&&l[i]&&(m=l[i],n=m.total,m.cum=k=m.cum-j,j=k+j,c=="percent"&&(k=n?k*100/n:0,j=n?j*100/n:0),h.percentage=n?h.y*100/n:0,h.stackTotal=n),bx(k)&&(h.yBottom=e.translate(k,0,1)),j!==null&&(h.plotY=e.translate(j,0,1)),h.clientX=b.inverted?b.plotHeight-h.plotX:h.plotX,h.category=d&&d[h.x]!==E?d[h.x]:h.x}},setTooltipPoints:function(a){var b=this,c=b.chart,f=c.inverted,g=[],h=d((f?c.plotTop:c.plotLeft)+c.plotSizeX),i,j,k=[];a&&(b.tooltipPoints=null),bf(b.segments,function(a){g=g.concat(a)}),b.xAxis&&b.xAxis.reversed&&(g=g.reverse()),bf(g,function(a,b){i=g[b-1]?g[b-1].high+1:0,j=a.high=g[b+1]?e((a.plotX+(g[b+1]?g[b+1].plotX:h))/2):h;while(i<=j)k[f?h-i++:i++]=a}),b.tooltipPoints=k},onMouseOver:function(){var a=this,b=a.chart,c=b.hoverSeries;if(!!t||!b.mouseIsDown)c&&c!=a&&c.onMouseOut(),a.options.events.mouseOver&&bm(a,"mouseOver"),a.tracker&&a.tracker.toFront(),a.setState(R),b.hoverSeries=a},onMouseOut:function(){var a=this,b=a.options,c=a.chart,d=c.tooltip,e=c.hoverPoint;e&&e.onMouseOut(),a&&b.events.mouseOut&&bm(a,"mouseOut"),d&&!b.stickyTracking&&d.hide(),a.setState(),c.hoverSeries=null},animate:function(a){var b=this,c=b.chart,d=b.clipRect,e=b.options.animation;e&&!bu(e)&&(e={}),a?d.isAnimating||(d.attr("width",0),d.isAnimating=!0):(d.animate({width:c.plotSizeX},e),this.animate=null)},drawPoints:function(){var a=this,b,c=a.data,d=a.chart,e,f,g,h,i,j;if(a.options.marker.enabled){g=c.length;while(g--)h=c[g],e=h.plotX,f=h.plotY,j=h.graphic,f!==E&&!isNaN(f)&&(b=h.pointAttr[h.selected?S:Q],i=b.r,j?j.animate({x:e,y:f,r:i}):h.graphic=d.renderer.symbol(bA(h.marker&&h.marker.symbol,a.symbol),e,f,i).attr(b).add(a.group))}},convertAttribs:function(a,b,c,d){var e=this.pointAttrToOptions,f,g,h={};a=a||{},b=b||{},c=c||{},d=d||{};for(f in e)g=e[f],h[f]=bA(a[g],b[f],c[f],d[f]);return h},getAttribs:function(){var a=this,b=bT[a.type].marker?a.options.marker:a.options,c=b.states,d=c[R],e,f=a.color,g={stroke:f,fill:f},h=a.data,i,j,k=[],l,m=a.pointAttrToOptions,n;a.options.marker?(d.radius=d.radius||b.radius+2,d.lineWidth=d.lineWidth||b.lineWidth+1):d.color=d.color||bW(d.color||f).brighten(d.brightness).get(),k[Q]=a.convertAttribs(b,g),bf([R,S],function(b){k[b]=a.convertAttribs(c[b],k[Q])}),a.pointAttr=k,i=h.length;while(i--){j=h[i],b=j.options&&j.options.marker||j.options,b&&b.enabled===!1&&(b.radius=0),n=!1;if(j.options)for(var o in m)bx(b[m[o]])&&(n=!0);n?(l=[],c=b.states||{},e=c[R]=c[R]||{},a.options.marker||(e.color=bW(e.color||j.options.color).brighten(e.brightness||d.brightness).get()),l[Q]=a.convertAttribs(b,k[Q]),l[R]=a.convertAttribs(c[R],k[R],l[Q]),l[S]=a.convertAttribs(c[S],k[S],l[Q])):l=k,j.pointAttr=l}},destroy:function(){var a=this,b=a.chart,c=a.clipRect,d=/\/5[0-9\.]+ Safari\//.test(n),e,f;bl(a),a.legendItem&&a.chart.legend.destroyItem(a),bf(a.data,function(a){a.destroy()}),bf(["area","graph","dataLabelsGroup","group","tracker"],function(b){a[b]&&(e=d&&b=="group"?"hide":"destroy",a[b][e]())}),b.hoverSeries==a&&(b.hoverSeries=null),bw(b.series,a);for(f in a)delete a[f]},drawDataLabels:function(){if(this.options.dataLabels.enabled){var a=this,b,c,d=a.data,e=a.options.dataLabels,f,g=a.dataLabelsGroup,h=a.chart,i=h.inverted,j=a.type,k;g||(g=a.dataLabelsGroup=h.renderer.g(J+"data-labels").attr({visibility:a.visible?K:I,zIndex:5}).translate(h.plotLeft,h.plotTop).add()),k=e.color,k=="auto"&&(k=null),e.style.color=bA(k,a.color),bf(d,function(d,k){var l=d.barX,m=l&&l+d.barW/2||d.plotX||-999,n=bA(d.plotY,-999),o=d.dataLabel,p=e.align;f=e.formatter.call({x:d.x,y:d.y,series:a,point:d,percentage:d.percentage,total:d.total||d.stackTotal}),b=(i?h.plotWidth-n:m)+e.x,c=(i?h.plotHeight-m:n)+e.y,j=="column"&&(b+={left:-1,right:1}[p]*d.barW/2||0),o?o.animate({x:b,y:c}):bx(f)&&(o=d.dataLabel=h.renderer.text(f,b,c).attr({align:p,rotation:e.rotation,zIndex:1}).css(e.style).add(g)),i&&!e.y&&o.attr({y:c+parseInt(o.styles.lineHeight)*.9-o.getBBox().height/2})})}},drawGraph:function(a){var b=this,c=b.options,d=b.chart,e=b.graph,f=[],g,h=b.area,i=b.group,j=c.lineColor||b.color,k=c.lineWidth,l=c.dashStyle,m,n=d.renderer,o=b.yAxis.getThreshold(c.threshold||0),p=/^area/.test(b.type),q=[],r=[],s;bf(b.segments,function(a){m=[],bf(a,function(d,e){if(b.getPointSpline)m.push.apply(m,b.getPointSpline(a,d,e));else{m.push(e?O:N);if(e&&c.step){var f=a[e-1];m.push(d.plotX,f.plotY)}m.push(d.plotX,d.plotY)}}),a.length>1?f=f.concat(m):q.push(a[0]);if(p){var d=[],e,g=m.length;for(e=0;e<g;e++)d.push(m[e]);g==3&&d.push(O,m[1],m[2]);if(c.stacking&&b.type!="areaspline")for(e=a.length-1;e>=0;e--)d.push(a[e].plotX,a[e].yBottom);else d.push(O,a[a.length-1].plotX,o,O,a[0].plotX,o);r=r.concat(d)}}),b.graphPath=f,b.singlePoints=q,p&&(g=bA(c.fillColor,bW(b.color).setOpacity(c.fillOpacity||.75).get()),h?h.animate({d:r}):b.area=b.chart.renderer.path(r).attr({fill:g}).add(i)),e?e.animate({d:f}):k&&(s={stroke:j,"stroke-width":k},l&&(s.dashstyle=l),b.graph=n.path(f).attr(s).add(i).shadow(c.shadow))},render:function(){var a=this,b=a.chart,c,d,e=a.options,f=e.animation,g=f&&a.animate,h=g?f&&f.duration||500:0,i=a.clipRect,j=b.renderer;i||(i=a.clipRect=!b.hasRendered&&b.clipRect?b.clipRect:j.clipRect(0,0,b.plotSizeX,b.plotSizeY),b.clipRect||(b.clipRect=i)),a.group||(c=a.group=j.g("series"),b.inverted&&(d=function(){c.attr({width:b.plotWidth,height:b.plotHeight}).invert()},d(),bk(b,"resize",d)),c.clip(a.clipRect).attr({visibility:a.visible?K:I,zIndex:e.zIndex}).translate(b.plotLeft,b.plotTop).add(b.seriesGroup)),a.drawDataLabels(),g&&a.animate(!0),a.getAttribs(),a.drawGraph&&a.drawGraph(),a.drawPoints(),a.options.enableMouseTracking!==!1&&a.drawTracker(),g&&a.animate(),setTimeout(function(){i.isAnimating=!1,c=a.group,c&&i!=b.clipRect&&i.renderer&&(c.clip(a.clipRect=b.clipRect),i.destroy())},h),a.isDirty=!1},redraw:function(){var a=this,b=a.chart,c=a.clipRect,d=a.group;d&&(b.inverted&&d.attr({width:b.plotWidth,height
:b.plotHeight}),d.animate({translateX:b.plotLeft,translateY:b.plotTop})),a.translate(),a.setTooltipPoints(!0),a.render()},setState:function(a){var b=this,c=b.options,d=b.graph,e=c.states,f=c.lineWidth;a=a||Q;if(b.state!=a){b.state=a;if(e[a]&&e[a].enabled===!1)return;a&&(f=e[a].lineWidth||f+1),d&&!d.dashstyle&&d.attr({"stroke-width":f},a?0:500)}},setVisible:function(a,b){var c=this,d=c.chart,e=c.legendItem,f=c.group,g=c.tracker,h=c.dataLabelsGroup,i,j,k=c.data,l,m=d.options.chart.ignoreHiddenSeries,n=c.visible;c.visible=a=a===E?!n:a,i=a?"show":"hide",f&&f[i]();if(g)g[i]();else{j=k.length;while(j--)l=k[j],l.tracker&&l.tracker[i]()}h&&h[i](),e&&d.legend.colorizeItem(c,a),c.isDirty=!0,c.options.stacking&&bf(d.series,function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)}),m&&(d.isDirtyBox=!0),b!==!1&&d.redraw(),bm(c,i)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},drawTracker:function(){var a=this,b=a.options,c=[].concat(a.graphPath),d=c.length,e=a.chart,f=e.options.tooltip.snap,g=a.tracker,h=b.cursor,i=h&&{cursor:h},j=a.singlePoints,k,l;if(d){l=d+1;while(l--)c[l]==N&&c.splice(l+1,0,c[l+1]-f,c[l+2],O),(l&&c[l]==N||l==d)&&c.splice(l,0,O,c[l-2]+f,c[l-1])}for(l=0;l<j.length;l++)k=j[l],c.push(N,k.plotX-f,k.plotY,O,k.plotX+f,k.plotY);g?g.attr({d:c}):a.tracker=e.renderer.path(c).attr({isTracker:!0,stroke:P,fill:M,"stroke-width":b.lineWidth+2*f,visibility:a.visible?K:I,zIndex:1}).on(t?"touchstart":"mouseover",function(){e.hoverSeries!=a&&a.onMouseOver()}).on("mouseout",function(){b.stickyTracking||a.onMouseOut()}).css(i).add(e.trackerGroup)}};var cf=bV(ce);bp.line=cf;var cg=bV(ce,{type:"area"});bp.area=cg;var ch=bV(ce,{type:"spline",getPointSpline:function(a,b,c){var d=1.5,e=d+1,f=b.plotX,i=b.plotY,j=a[c-1],k=a[c+1],l,m,n,o,p;if(c&&c<a.length-1){var q=j.plotX,r=j.plotY,s=k.plotX,t=k.plotY,u;l=(d*f+q)/e,m=(d*i+r)/e,n=(d*f+s)/e,o=(d*i+t)/e,u=(o-m)*(n-f)/(n-l)+i-o,m+=u,o+=u,m>r&&m>i?(m=g(r,i),o=2*i-m):m<r&&m<i&&(m=h(r,i),o=2*i-m),o>t&&o>i?(o=g(t,i),m=2*i-o):o<t&&o<i&&(o=h(t,i),m=2*i-o),b.rightContX=n,b.rightContY=o}c?(p=["C",j.rightContX||j.plotX,j.rightContY||j.plotY,l||f,m||i,f,i],j.rightContX=j.rightContY=null):p=[N,f,i];return p}});bp.spline=ch;var ci=bV(ch,{type:"areaspline"});bp.areaspline=ci,b.Highcharts={Chart:cc,dateFormat:B,pathAnim:D,getOptions:bK,numberFormat:bX,Point:cd,Color:bW,Renderer:cb,seriesTypes:bp,setOptions:bJ,Series:ce,addEvent:bk,createElement:bD,discardElement:bL,css:bC,each:bf,extend:br,map:bh,merge:bi,pick:bA,extendClass:bV,version:"2.1.2"}})();var prs={charts:{},month_color:"#808080",day_color:"#9c9c9c",weekday_color:"#bdbdbd",month_separators:[]};Date.prototype.getWeek=function(){var a=new Date(this.getFullYear(),0,1);return Math.ceil(((this-a)/864e5+a.getDay()+1)/7)}
