var zoomer_div;var DHTML=(document.getElementById||document.all||document.layers);var isIE=(window.navigator.userAgent.indexOf("MSIE")>0);var f_ads=new Array();var f_num=1;var fragment=document.createDocumentFragment();var __json=null;if(typeof JSON!=="undefined"){__json=JSON}var JSON={parse:function(text){if(__json!==null){return __json.parse(text)}if(navigator.product=="Gecko"){return new Function("return "+text)()}return eval("("+text+")")}};function createXHR(){var D=false;try{D=new ActiveXObject("Msxml2.XMLHTTP")}catch(B){try{D=new ActiveXObject("Microsoft.XMLHTTP")}catch(A){try{D=new XMLHttpRequest()}catch(C){D=false}}}return D}function find_obj(E,D){var C,B,A;if(!D){D=document}if((C=E.indexOf("?"))>0&&parent.frames.length){D=parent.frames[E.substring(C+1)].document;E=E.substring(0,C)}if(!(A=D[E])&&D.all){A=D.all[E]}for(B=0;!A&&B<D.forms.length;B++){A=D.forms[B][E]}for(B=0;!A&&D.layers&&B<D.layers.length;B++){A=MM_findObj(E,D.layers[B].document)}if(!A&&D.getElementById){A=D.getElementById(E)}return A}function find_pos_x(A){var B=0;if(A.offsetParent){while(A.offsetParent){B+=A.offsetLeft;A=A.offsetParent}}else{if(A.x){B+=A.x}}return B}function find_pos_y(B){var A=0;if(B.offsetParent){while(B.offsetParent){A+=B.offsetTop;B=B.offsetParent}}else{if(B.y){A+=B.y}}return A}function find_pos(B){var C=0;var A=0;if(B.offsetParent){C=B.offsetLeft;A=B.offsetTop;while(B=B.offsetParent){C+=B.offsetLeft;A+=B.offsetTop}}return[C,A]}function set_layer(F,D,C,B){var G=find_pos_x(F);var E=find_pos_y(F);G+=C;E+=B;var A=new get_obj(D);A.style.top=E+"px";A.style.left=G+"px"}function get_obj(A){if(document.getElementById){this.obj=document.getElementById(A);this.style=document.getElementById(A).style}else{if(document.all){this.obj=document.all[A];this.style=document.all[A].style}else{if(document.layers){this.obj=document.layers[A];this.style=document.layers[A]}}}}function switch_visibility(B){if(!DHTML){return }var A=new get_obj("help");A.style.visibility=(B=="hidden")?"hidden":"visible"}function get_style_object(A){if(document.getElementById&&document.getElementById(A)){return document.getElementById(A).style}else{if(document.all&&document.all(A)){return document.all(A).style}else{if(document.layers&&document.layers[A]){return document.layers[A]}else{return false}}}}function change_object_visibility(C,B){var A=get_style_object(C);if(A){A.visibility=B;return true}else{return false}}function move_object(D,C,A){var B=get_style_object(D);if(B){B.left=C;B.top=A;return true}else{return false}}function insert_text(B,C){if(!DHTML){return }var A=new get_obj(C);A.obj.innerHTML="";A.obj.innerHTML=B}function replace_text(B,C){var A=(document.getElementsByTagName("body")[0].innerText!=undefined)?true:false;if(A){B.innerText=C}else{B.textContent=C}}function toggle_moreinfo(D){var B="more-info";var A=document.getElementById("more-info");if(A.style.display&&A.style.display=="none"){A.style.display="block";replace_text(this,"[Read less...]");var C=this.parentNode.removeChild(this);document.getElementById(B).parentNode.insertBefore(C,A.nextSibling)}else{A.style.display="none";replace_text(this,"[Read more...]");var C=this.parentNode.removeChild(this);document.getElementById(B).parentNode.insertBefore(C,A)}}function win(A){myFloater=window.open("","myWindow","scrollbars=yes,status=no,width=300,height=300");myFloater.location.href=A}function winimage(C,B,A){myFloater=window.open("","myWindow","scrollbars=yes,status=no,width="+B+",height="+A);myFloater.location.href=C}function showWin(C,D,B){var A="scrollbars=yes,status=no,toolbar=no,directories=no,menubar=no,resizable=yes,width="+B+",height="+D+"'";if(!window.myWin){myWin=window.open("","BarrierFreeHome",A)}else{if(!myWin.closed){myWin.close();myWin=window.open("","BarrierFreeHome",A)}else{myWin=window.open("","BarrierFreeHome",A)}}myWin.location.href=C;myWin.location.href=C}function handle_query(A){if(A=="pricing"){if(confirm("Would you like to view Pricing Info now?")){location.replace("index.php?a=28&b=143")}else{alert("Please choose *Other* as your Main Interest");return true}}else{if(A=="create"){if(confirm("Would you like to view How To Create an Ad now?")){showWin("help.php?pg=ad_placement",400,500)}else{alert("Please choose *Other* as your Main Interest");return true}}else{return true}}}function change_form(){site_search_form.change.value=1;if(site_search_form.c.options[site_search_form.c.selectedIndex].value!=""){site_search_form.submit()}}function add_onload(A){if(window.addEventListener){window.addEventListener("load",A,false)}else{if(window.attachEvent){window.attachEvent("onload",A)}}}function build_zoomer_div(){zoomer_div=document.createElement("div");zoomer_div.id="zoomer";zoomer_div.style.display="none";zoomer_div.style.position="absolute";zoomer_div.style.border="1px solid #CCC";zoomer_div.style.backgroundColor="#F5F5F5";zoomer_div.style.padding="5px";zoomer_div.style.zIndex="10000";document.getElementById("photos").appendChild(zoomer_div)}function show_image(D){var C,A,B;this.style.border="1px dotted red";C=this.id.substring(4);C="property_images/"+C+".jpg";C='<img src="'+C+'" />';zrm=document.getElementById("zoomer");zrm.innerHTML=C;zrm.style.display="block";C=find_pos(this);C[0]-=350;C[1]-=100;zrm.style.left=C[0]+"px";zrm.style.top=C[1]+"px";return true}function hide_image(C){var B,A;this.style.border="1px dotted #F5F5F5";zrm=document.getElementById("zoomer");zrm.innerHTML="";zrm.style.display="none";return true}function set_opacity(B,A){B.style.opacity=A/10;B.style.filter="alpha(opacity="+A*10+")"}function clearInnerHTML(A){while(A.firstChild){A.removeChild(A.firstChild)}}function ad_rotator(){var B=document.getElementById("fa");var A=B.childNodes;var C=A.length-1;A[f_num].style.display="block";prev=(f_num>0?f_num-1:C);A[prev].style.display="none";if(f_num<C){f_num++}else{f_num=0}return true}function build_fa_elements(Y){var J=JSON.parse(Y);var P=document.getElementById("fa");var V=J.length;for(var S=0;S<V;S++){var U=J[S];var W=document.createElement("div");W.className=U.main_class;var M=document.createElement("h4");M.className=U.h4_class;M.appendChild(document.createTextNode(U.h4_text));W.appendChild(M);var K=document.createElement("h5");K.className=U.h5_class;var C=document.createElement("a");C.setAttribute("href",U.h5_a_href);C.setAttribute("title",U.h5_a_title);C.appendChild(document.createTextNode(U.h5_a_text));K.appendChild(C);W.appendChild(K);var A=document.createElement("div");A.className=U.div_tn_class;var O=document.createElement("a");O.setAttribute("href",U.div_tn_a_href);var B=document.createElement("img");B.setAttribute("src",U.div_tn_img_src);B.setAttribute("width",U.div_tn_img_width);B.setAttribute("height",U.div_tn_img_height);B.setAttribute("alt",U.div_tn_img_alt);O.appendChild(B);A.appendChild(O);W.appendChild(A);if(U.div_ni_class!==undefined){var N=document.createElement("div");N.className=U.div_ni_class;N.appendChild(document.createTextNode(U.div_ni_text));A.appendChild(N)}if(U.div_ag_class!==undefined){var X=document.createElement("div");X.className=U.div_ag_class;var T=document.createElement("img");T.setAttribute("src",U.div_ag_img_src);T.setAttribute("alt",U.div_ag_img_alt);X.appendChild(T);W.appendChild(X)}var Q=document.createElement("div");Q.className=U.div_pr_class;Q.appendChild(document.createTextNode(U.div_pr_text));W.appendChild(Q);var H=document.createElement("div");H.className=U.div_sy_class;H.appendChild(document.createTextNode(U.div_sy_text));W.appendChild(H);var R=document.createElement("div");R.className=U.div_de_class;R.appendChild(document.createTextNode(U.div_de_text));W.appendChild(R);var G=document.createElement("div");G.className=U.div_ed_class;G.appendChild(document.createTextNode(U.div_ed_text));W.appendChild(G);var L=document.createElement("span");L.className=U.span_class;L.appendChild(document.createTextNode(U.span_text));W.appendChild(L);var F=document.createElement("div");F.className=U.div_sl_class;var D=document.createElement("a");D.setAttribute("href",U.div_sl_a_href);D.setAttribute("title",U.div_sl_a_title);var E=document.createElement("span");E.appendChild(document.createTextNode(U.div_sl_a_span_text));D.appendChild(E);F.appendChild(D);W.appendChild(F);fragment.appendChild(W)}clearInnerHTML(P);var I=fragment.childNodes;V=I.length;for(n=1;n<V;n++){I[n].style.display="none"}P.appendChild(fragment)}function init(){var F=document.getElementsByTagName("a");var D=F.length;for(var L=0;L<D;L++){if(F[L].className=="delete_link"){F[L].onclick=function(){if(confirm("You are about to permanently delete this image.")){return true}else{return false}}}}if(document.getElementById("photos")!==null){if(zoomer_div===undefined||zoomer_div===null){build_zoomer_div()}var K=document.getElementById("main").getElementsByTagName("div");var I=K.length;var O,M,B,P,R,G;for(L=0;L<I;L++){if(K[L].className=="ad_image"){B=K[L].getElementsByTagName("p");P=B.length;for(var H=0;H<P;H++){if(B[H].className=="zoom_link"){B[H].style.display="none"}}R=K[L].getElementsByTagName("img");R[0].style.border="1px dotted #F5F5F5";R[0].onmouseover=show_image;R[0].onmouseout=hide_image}}}var N=document.getElementById("more-info");if(N!==null){var A=document.createElement("p");var E=document.createElement("a");var Q=document.createTextNode("[Read more...]");E.appendChild(Q);A.appendChild(E);E.setAttribute("class","toggler");N.style.display="none";E.setAttribute("id","m-i-a");E.onclick=toggle_moreinfo;document.getElementById("more-info").parentNode.insertBefore(A,N)}var J=document.getElementById("fa");if(J!==null){J.style.height="220px";fetch_featured_ads(10);var C=setInterval(ad_rotator,5000)}}function fetch_featured_ads(B){var A="accessible-property/fetch_featured_ads.php?number_ads="+B;http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){build_fa_elements(http.responseText)}}};http.open("GET",A,true);http.send(null)}var http=createXHR();add_onload(init);
