;var _CTC_UITHEME_DEFAULT=0,_CTC_UITHEME_ZIPPY1=1,_CTC_UITHEME_MAPS=2,_CTC_UITHEME_MOMA=3,_CTC_UITHEME_ONEBOX=4,_CTC_OPEN_DEFAULT=0,_CTC_OPEN_LEFT=1,_CTC_OPEN_RIGHT=2,_CTC_OPEN_DOWN=3,_CTC_OPEN_NONE=4,_CTC_LANG_DEFAULT=0,_CTC_LANG_ENGLISH=1,ctc_d,ctc_=null;function _CTC_OnPhoneClick(a,b,c,d,e,g,h,j,o,n,i,k){if(b==""){}else{var f=typeof a=="string"?document.getElementById(a):a,l=false;if(ctc_){if(f===ctc_.f){_CTC_ToggleUI()}else{var p=false;switch(ctc_.a){case 1:case 2:ctc_.m();break;case 3:if(ctc_.o!=
0){var m=new Date,q=Math.floor(m.getTime()/1000)-ctc_.o;if(q<=15){p=true}}break}if(p){}else{_CTC_CloseUI(true);ctc_c();l=true}}}else{l=true}if(l&&f){ctc_=new ctc_a;ctc_.q=e;ctc_.ga=k;ctc_.v=g;ctc_.f=f;ctc_.fa=f.offsetHeight;ctc_.L=unescape(c);ctc_.U=unescape(d);ctc_.t=b;ctc_.k="";ctc_.p=true;ctc_.w=e==_CTC_UITHEME_MAPS?null:n;ctc_.z=e==_CTC_UITHEME_MAPS?n:null;ctc_.E=i;ctc_.B=h;ctc_.g=null;ctc_.o=0;ctc_.D=false;ctc_.y="";ctc_.$=f.innerHTML;ctc_.activate()}}}function _CTC_SetParentNode(a){if(ctc_){ctc_.f=
a}}function _CTC_Reset(){if(ctc_){_CTC_CloseUI(true);ctc_c()}}function ctc_a(){}ctc_a.prototype.activate=function(){this.a=4;this.n=0;this.A=0;this.j=this.I(this.t);{if(this.j.length==10)this.j="1"+this.j}this.aa();_CTC_ToggleUI()};function ctc_c(){var a=ctc_.$;while(ctc_.f.lastChild){var b=ctc_.f.removeChild(ctc_.f.lastChild);delete b}ctc_.f.innerHTML=a;delete ctc_;ctc_=null}ctc_a.prototype.H=function(){if(document.forms["CTC_form"]!=ctc_d){if(this.k==""){this.p=true}document.forms["CTC_form"].elements["CTC_usernum"].value=
this.k;if(document.forms["CTC_form"].elements["CTC_rem"]!=ctc_d){document.forms["CTC_form"].elements["CTC_rem"].checked=this.p}}};ctc_a.prototype.F=function(){var a=document.forms["CTC_form"];if(a){var b=a.elements["CTC_usernum"];b.focus();b.focus()}var c="/maps/call/clientopen",d="to="+this.j+(this.w?"&redirect_url="+escape(this.w):(this.z?"&ticket="+this.z:""))+"&hmac="+this.E;this.J(c,d,ctc_f,false)};function _CTC_OnUIOpen(){if(ctc_){ctc_.F()}}function _CTC_Call(a){if(ctc_){ctc_.k=ctc_.I(a);ctc_.R()}}
function _CTC_SetRem(a){if(ctc_){ctc_.p=a}}function ctc_g(){if(ctc_&&ctc_.r&&ctc_.r.readyState==4&&ctc_.C){var a,b;try{a=ctc_.r.status;b=ctc_.r.responseText}catch(c){a=500}ctc_.C=false;if(a==200){var d;ctc_.n=ctc_.W(b);if(ctc_.n==0){var e=ctc_.Y(b);if(e&&ctc_.a!=5){d=e}else{d=ctc_.a}if(!ctc_.g){ctc_.g=ctc_.X(b);var g=ctc_.G(b);if(g.length>0){ctc_.k=g;ctc_.e()}}}else{if(ctc_.a==4){d=4}else{d=0;if(ctc_.n==101){ctc_.y=ctc_.G(b)}}}if(d!=ctc_.a){ctc_.a=d;ctc_.e()}if(d==4||d==0||d==5){}else{setTimeout(ctc_h,
50)}}else if(a>=400){ctc_.a=0;ctc_.n=a;ctc_.e()}}}function ctc_f(){if(ctc_&&ctc_.s&&ctc_.s.readyState==4){var a,b;try{b=ctc_.s.status;a=ctc_.s.responseText}catch(c){b=500}if(b==200&&document.forms["CTC_form"]!=ctc_d&&document.forms["CTC_form"].elements["CTC_usernum"].value==""){var d=ctc_.Z(a);ctc_.k=d;if(d.length>0){ctc_.p=true}ctc_.H()}}}ctc_a.prototype.x=function(a,b){this.J(a,b,ctc_g,true)};ctc_a.prototype.J=function(a,b,c,d){var e;if(window.XMLHttpRequest){e=new XMLHttpRequest}else{var g=["Msxml2.XMLHTTP",
"MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MICROSOFT.XMLHTTP.1.0","MICROSOFT.XMLHTTP.1","MICROSOFT.XMLHTTP"];for(var h=0;h<g.length;h++){var j=g[h];try{e=new ActiveXObject(j)}catch(o){e=null}if(e){break}}}if(e){try{e.onreadystatechange=c;e.open("POST",a,true);if(d){this.r=e;this.C=true}else{this.s=e}e.send(b)}catch(o){}}};ctc_a.prototype.aa=function(){var a=window.navigator.userAgent.toLowerCase();if(this.q==_CTC_UITHEME_DEFAULT){this.q=_CTC_UITHEME_MAPS}switch(this.q){case _CTC_UITHEME_MAPS:{this.l=
225;this.h=128;this.i=0}break;case _CTC_UITHEME_MOMA:break;case _CTC_UITHEME_ZIPPY1:break;case _CTC_UITHEME_ONEBOX:break;default:this.q=_CTC_UITHEME_ZIPPY1;this.S();break}this.N=200;this.u=8;this.d=1;this.b=0;this.Q=false;if(a.indexOf("opera")!=-1){}else if(a.indexOf("safari")!=-1){}else if(a.indexOf("msie")!=-1){this.Q=true}this.c=null};ctc_a.prototype.S=function(){};function _CTC_StopRinging(){if(ctc_){if(ctc_.a==1||ctc_.a==2){ctc_.m()}}}function _CTC_CancelCall(){if(ctc_){ctc_.m();ctc_.a=4;ctc_.e()}}
function _CTC_ToggleUI(){if(ctc_){if(ctc_.d==1||ctc_.d==4){if(!ctc_.D){if(ctc_.c){clearTimeout(ctc_.c);ctc_.c=null}ctc_.V()}}else{var a=true;switch(ctc_.a){case 1:case 2:ctc_.L="Hanging up...";ctc_.D=true;ctc_.m();break;case 3:if(ctc_.o!=0){var b=new Date,c=Math.floor(b.getTime()/1000)-ctc_.o;if(c<=15){a=false}}break}if(a){if(ctc_.c){clearTimeout(ctc_.c);ctc_.c=null}_CTC_CloseUI(false)}}}}ctc_a.prototype.V=function(){this.d=2;{if(ctc_.v==_CTC_OPEN_NONE){this.d=3;ctc_.c=null;ctc_.e();return}else{ctc_.M=
[45,64,79,90,97,100]}}this.c=setTimeout(ctc_e,0)};function ctc_e(){if(ctc_){ctc_.b=ctc_.M.shift();if(!ctc_.b){ctc_.d=3;ctc_.c=null;ctc_.e();ctc_.F()}else{ctc_.e();ctc_.c=setTimeout(ctc_e,25)}}}function _CTC_CloseUI(a){if(ctc_){ctc_.d=4;if(a){while(ctc_.d!=1){ctc_b(true)}}else{ctc_.c=setTimeout(function(){ctc_b(false)},0)}}}function ctc_b(a){if(ctc_){var b;if(ctc_.v==_CTC_OPEN_NONE){ctc_.d=1;ctc_.c=null;b=ctc_.b}else if(ctc_.b>60){b=ctc_.b-60}else if(ctc_.b>ctc_.i+16){b=ctc_.u}else if(ctc_.b>ctc_.i+
8){b=Math.max(Math.floor(ctc_.u/2),1)}else if(ctc_.b>ctc_.i+4){b=Math.max(Math.floor(ctc_.u/4),1)}else if(ctc_.b>ctc_.i){b=ctc_.b-ctc_.i}else{ctc_.d=1;ctc_.c=null;b=ctc_.b}b=Math.min(b,ctc_.b-ctc_.i);ctc_.b-=b;if(ctc_.d==1){if(!a){ctc_c()}}else{ctc_.e();if(!a){var c=Math.floor(ctc_.N*b/100);ctc_.c=setTimeout(function(){ctc_b(false)},c)}}}}ctc_a.prototype.e=function(){var a=document.getElementById("ctc_in");{this.f.innerHTML=this.O();a=a}this.H()};ctc_a.prototype.O=function(){var a="",b,c,d,e;if(this.d!=
1){switch(this.v){case _CTC_OPEN_LEFT:b=Math.floor(this.b*this.l/100);c=this.h;d=-Math.floor(this.l/5);e=-Math.floor(this.h*3/4);break;case _CTC_OPEN_RIGHT:b=Math.floor(this.b*this.l/100);c=this.h;d=Math.floor(this.l/5);e=-Math.floor(this.h*3/4);break;case _CTC_OPEN_NONE:b=this.l;c=this.h;break;case _CTC_OPEN_DOWN:case _CTC_OPEN_DEFAULT:b=this.l;c=Math.floor(this.b*this.h/100);break}switch(this.q){case _CTC_UITHEME_MAPS:{a=this.P(this.j,this.L,this.U,this.a,this.n,this.A,b,c)}break;case _CTC_UITHEME_MOMA:break;
case _CTC_UITHEME_ZIPPY1:break;case _CTC_UITHEME_ONEBOX:break}}return a};ctc_a.prototype.ea=function(a,b,c,d,e,g,h,j){};ctc_a.prototype.P=function(a,b,c,d,e,g,h,j){var o=j==-1?0:j+4,n,i,k,f;this.T=1;var l=this.K(c).length;if(l==0||l>60){c="this business"}var p="<a href=http://maps.google.com/support/bin/answer.py?answer=52512&topic=1467 class=fl><nobr>Learn more</nobr></a>";k="";if(this.d==3){k+="<br><span id=ctc_tt>Google can call your phone now and<br>connect you to this business. "+p+"<br><div style='margin-top:0.8em'><b>Enter your phone number:</b></div></span>";
var m="<div style='margin:0; padding:0'><form name=CTC_form onsubmit='_CTC_Call(this.CTC_usernum.value); return false;' style='margin:0'><div style='margin:4px 0 0 0; padding:0'><input id=CTC_usernum size=12 style='width:8em' type=text><font size=-1><input id=CTC_call value='Connect for free'style='margin-left:4px; padding:0 .2em 0 .2em;width:auto;overflow:visible'type=submit></font></div><div style='margin-top:0px;'><span style='font-size:85%;color:#808080'>e.g. 415-555-1212</span><br><span style='font-size:85%'><input id=CTC_rem type=checkbox onchange='_CTC_SetRem(this.checked);' style='margin-left:0' /> <label for=CTC_rem>Remember this phone number</label></span></div></form></div>",
q="<form><input type=button value='Cancel this call' style='margin-top:.5em;padding:0 .2em 0 .2em;width:auto;overflow:visible'onclick='_CTC_CancelCall()' /></form>";switch(d){case 1:i="<div style='margin:8px 0 8px 0'><span style='background-color:#DDFFDD;color:#000000;'>Calling your telephone number...</span>"+q+"</div>";break;case 2:i="<div style='margin:8px 0 8px 0'><span style='background-color:#DDFFDD;color:#000000;'>Calling the business...</span>"+q+"</div>";break;case 3:i="<div style='margin:8px 0 8px 0; '><span>You are now connected to <br />"+
this.t+"</span></div>";break;case 5:i="<div style='margin:8px 0 8px 0;'>Answer your phone and you will<br />be connected to "+this.t+"</div>";break;case 4:i="<div style='margin:0 0 0 0; '>"+m+"</div>";break;case 0:switch(e){case 101:f="<div style='margin:0 0 0 0;'><font size=-1 color=#CC4444>Enter a valid area code and phone <br />number such as "+this.y+".</font></div>"+m;break;case 106:f="<div style='margin:0 0 0 0;'><font size=-1 color=#CC4444>No answer at your number.</font></div>"+m;break;case 107:f=
"<div style='margin:0 0 0 0;'><font size=-1 color=#CC4444>No answer. Try again later.</font></div>"+m;break;case 108:f="<font size=-1 color=#CC4444>Your number is blocked.<br /></font>";break;case 109:f="<font size=-1 color=#CC4444>The number you are attempting<br />to reach is blocked.<br /></font>";break;default:f="<font size=-1 color=#CC4444>You could not be connected with<br />"+this.t+"<br /></font>";break}i="<div style='margin:8px 0 8px 0;'>"+f+"</div>";break}k+=i}else{var r=o-this.T;k+="<div id=ctc_sp style='height:"+
r+"px;'>&nbsp;</div>"}n="<div id=ctc_in style='overflow:hidden; "+(this.B!=""?"padding: 3px; border-width: 1px; border-style: solid;border-color: "+this.B+";":"margin: 0px; padding: 0px;")+"'>"+k+"</div>";return n};ctc_a.prototype.da=function(a,b,c,d,e,g,h,j){};ctc_a.prototype.ba=function(a,b,c,d,e){var g="/maps/call",h="from="+a+"&to="+b+(c?"&redirect_url="+escape(c):(d?"&ticket="+d:""))+"&hmac="+e+(this.p?"&save_phone_cookie=1":"");this.x(g,h)};function ctc_h(){if(ctc_){ctc_.x("/maps/call/statuswait",
"call_id="+ctc_.g)}}ctc_a.prototype.m=function(){this.x("/maps/call/cancel","call_id="+this.g)};ctc_a.prototype.X=function(a){var b=/call_id\sdata\=\"(\S+)\"/,c=a.match(b),d;if(c&&c.length>0){d=c[1]}else{d=""}return d};ctc_a.prototype.Y=function(a){var b=/status\sint\=\"(\d+)\"/,c=null,d=a.match(b);if(d&&d.length>0){var e=new Date;this.o=Math.floor(e.getTime()/1000);c=parseInt(d[1])}return c};ctc_a.prototype.W=function(a){var b=/error\sint\=\"(\d+)\"/,c=a.match(b),d=0;if(c&&c.length>0){d=parseInt(c[1])}return d};
ctc_a.prototype.G=function(a){var b=/sugg_num\sdata\=\"(\S+)\"/,c=a.match(b),d;if(c&&c.length>0){d=c[1]}else{d=""}return d};ctc_a.prototype.Z=function(a){var b=/phone_number\sdata\=\"(\S+)\"/,c=a.match(b),d;if(c&&c.length>0){d=c[1]}else{d=""}return d};ctc_a.prototype.R=function(){var a=document.cookie.match(/S=[^;]*callhost=/);if(this.a==4||this.a==0){this.A=0;if(a){this.a=1}else{this.a=5}this.g=null;this.e();this.y="";this.ba(this.k,this.j,this.w,this.z,this.E)}else{this.A=0;this.m();this.a=4;this.g=
null;this.e()}};ctc_a.prototype.K=function(a){while(true){var b=a.indexOf("<"),c=a.indexOf(">");if(b!=-1&&b<c){a=a.slice(0,b)+a.slice(c+1,a.length)}else{break}}return a};ctc_a.prototype.I=function(a){var b="0123456789",c;a=this.K(a);c=0;while(c<a.length){var d=a.charAt(c);if(b.indexOf(d)==-1){a=a.slice(0,c)+a.slice(c+1,a.length)}else{c++}}return a};function _CTC_UniquifyDIVs(a){var b,c=0;while(b=document.getElementById(a)){b.id=b.id+c;c++}}ctc_a.prototype.ca=function(a,b,c,d,e,g,h,j,o,n){};

