var timeOut=6*1000;var oneTick=100;var tickCount=timeOut/oneTick;function ltrim(A){return A.replace(/^\s+/,"")}function rtrim(A){return A.replace(/\s+$/,"")}function trim(A){return A.replace(/^\s+|\s+$/g,"")}function removeTableRows(A){if(typeof (A)=="string"){A=document.getElementById(A)}if(A!=null){for(;A.rows.length>0;){A.deleteRow(0)}}}function getXML(C,A,B){return getXML(C,A,B,null,null,null)}function getXMLToVariable(C,A,B,E,D){return getXML(C,A,B,null,E,D)}function getXMLtoForm(C,D,B,A){return getXML(C,D,B,A,null,null)}function getXML(G,D,F,E,H,C){var A=null;try{document.getElementById("popupWait").style.display=""}catch(B){}if(window.XMLHttpRequest&&(IE==0)){A=new XMLHttpRequest();if(A.overrideMimeType){A.overrideMimeType("text/xml")}}else{if(window.ActiveXObject){try{A=new ActiveXObject("Microsoft.XMLHTTP")}catch(B){}try{A=new ActiveXObject("Msxml2.XMLHTTP")}catch(B){}}}if(!A){alert("Verzia V????ho prehliada??a neposta??uje na zobrazenie str??nky.\nYour web broser is not able to display web page, please update it.");
return false}A.onreadystatechange=function(){if(C!=null){if(E!=null){if(F==null){F=getFormXMLReceiver}F(A,E,C)}else{if(H!=null){F(A,H,C)}else{F(A,C)}}}else{if(E!=null){if(F==null){F=getFormXMLReceiver}F(A,E)}else{if(H!=null){F(A,H)}else{F(A)}}}};A.open("POST",G,true);A.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");if(D!=null){A.setRequestHeader("Content-length",D.length)}A.setRequestHeader("Connection","close");A.send(D);return A}function getValue(D,B,A){if((typeof (D)=="undefined")||(typeof (B)=="undefined")||(D==null)||(B==null)){return null}D=D.getElementsByTagName(B)[0];if((typeof (D)=="undefined")||(D==null)){return""}var C=((D.firstChild==null)?"":D.firstChild.nodeValue);return(C==null)?"":(A)?trim(C):C}function getObject(B,A){if((typeof (B)=="undefined")||(typeof (A)=="undefined")||(B==null)||(A==null)){return null}if(typeof (B)=="undefined"){alert(A+typeof (B)=="undefined")}B=B.getElementsByTagName(A)[0];if((typeof (B)=="undefined")||(B==null)){return""}return B.firstChild
}function getAttribute(D,A,C){if((typeof (D)=="undefined")||(typeof (A)=="undefined")||(D==null)||(A==null)){return null}D=D.getElementsByTagName(A)[0];if((typeof (D)=="undefined")||(D==null)){return null}var B=((typeof (D.getAttribute)=="undefined")?"":D.getAttribute(C));return B}function clearForm(B){var C=null;for(var E=0;E<B.elements.length;++E){oneObject=B.elements[E];switch(oneObject.type){case"text":case"textarea":case"hidden":oneObject.value="";break;case"select-multiple":case"select-one":for(var D=0;oneObject.options.length;++D){oneObject.remove(0)}break;case"checkbox":case"check-box":oneObject.checked=false;break;case"radio":var A=document.getElementsByName(oneObject.name);for(var D=0;D<A.length;++D){A[D].checked=false;A[D].value=null}break}}}function getFormXML(C,A,B){return getXML(C,A,getFormXMLReceiver,B)}function getFormXMLReceiver(B,A){return getFormXMLReceiver(B,A,null)}function getFormXMLReceiver(http_request,formObj,wait){if(http_request.readyState==4){if(http_request.status==200){var xmlobject=getParser(http_request);
var root=xmlobject.getElementsByTagName("root")[0];var result=root.getElementsByTagName("result")[0];if(getValue(result,"error")!="ok"){handleError(result);return }clearForm(formObj);var row=root.getElementsByTagName("row")[0];var selects=root.getElementsByTagName("selects")[0];var radios=root.getElementsByTagName("radios")[0];var oneObject=null,oneXMLObject=null;var listObject=null,options=null,oneOption=null;var radioObject=null;radioValues=null;radioList=null;var selectedAttribName=null;selectedAttribValue=null;var checkedAttribName=null;checkedAttribValue=null;var focusSet=false;var oneObjectReadOnly=null;for(var i=0;i<formObj.elements.length;++i){oneObject=formObj.elements[i];oneXMLObject=getValue(row,oneObject.name);oneObjectReadOnly=getAttribute(row,oneObject.name,"readonly");if((!focusSet)&&(oneObject.type!="hidden")&&(!oneObject.disabled)){focusSet=true;oneObject.focus()}if((oneObjectReadOnly!=null)&&((oneObjectReadOnly=="true")||(oneObjectReadOnly="readonly"))){oneObject.readOnly=true}switch(oneObject.type){case"text":case"textarea":case"hidden":oneObject.value=oneXMLObject;
break;case"select-multiple":listObject=selects.getElementsByTagName(oneObject.name)[0];if(listObject!=null){options=listObject.getElementsByTagName("option");for(var j=0;j<options.length;++j){oneOption=new Option((options[j].firstChild==null)?"":options[j].firstChild.nodeValue,(options[j].getAttribute("value")==null)?"":options[j].getAttribute("value"));oneOption.selected=(options[j].getAttribute("selected")==null)?"":options[j].getAttribute("selected");oneObject.options.add(oneOption)}}break;case"select-one":listObject=selects.getElementsByTagName(oneObject.name)[0];selectedAttribValue=null;selectedAttribName=(listObject!=null)?listObject.getAttribute("selected"):null;if(selectedAttribName!=null){selectedAttribValue=getValue(row,selectedAttribName)}if(listObject!=null){options=listObject.getElementsByTagName("option");for(var j=0;j<options.length;++j){oneOption=new Option((options[j].firstChild==null)?"":options[j].firstChild.nodeValue,(options[j].getAttribute("value")==null)?"":options[j].getAttribute("value"));
oneOption.selected=(selectedAttribValue==options[j].getAttribute("value"));oneObject.options.add(oneOption)}}break;case"checkbox":case"check-box":oneObject.value=oneXMLObject;checkedAttribValue=getAttribute(row,oneObject.name,"checked");if(checkedAttribValue!=null){oneObject.checked=(checkedAttribValue=="checked")||(checkedAttribValue=="true")||(checkedAttribValue=="True")||(checkedAttribValue=="TRUE")||(checkedAttribValue=="1")}break;case"radio":radioObject=radios.getElementsByTagName(oneObject.name)[0];radioList=document.getElementsByName(oneObject.name);checkedAttribValue=null;checkedAttribName=(radioObject!=null)?radioObject.getAttribute("checked"):null;if(checkedAttribName!=null){checkedAttribValue=getValue(row,checkedAttribName)}if(radioObject!=null){radioValues=radioObject.getElementsByTagName("value");for(var j=0;j<radioList.length;++j){radioList[j].value=radioValues[j].firstChild.nodeValue;if(checkedAttribValue==radioList[j].value){radioList[j].checked=true}}}break}}var onOKScript=getValue(row,"onOKScript");
if((onOKScript!=null)&&(onOKScript.length!=0)){eval(onOKScript)}}else{handleError(result)}}try{document.getElementById("popupWait").style.display="none"}catch(e){}}function getFormValues(E){var D="";var F=null;var C="";var B="";for(var A=0;A<E.elements.length;A++){switch(E.elements[A].type){case"text":D+=E.elements[A].name+"="+E.elements[A].value+"&";break;case"select-one":D+=E.elements[A].name+"="+E.elements[A].options[E.elements[A].selectedIndex].value+"&";break}}D=D.substr(0,(D.length-1));return D}function setFormXML(F){var D=null;var G=null;var E=false;var B=true;try{D="<row>\n";for(var A=0;A<F.elements.length;A++){E=false;G="";B=true;switch(F.elements[A].type){case"select-one":G=(F.elements[A].selectedIndex==-1)?"":F.elements[A].options[F.elements[A].selectedIndex].value;break;case"select-multiple":E=true;G="\n";for(var H=0;H<F.elements[A].options.length;++H){G+=(F.elements[A].options[H].selected)?("\t\t<option>"+encodeURIComponent(F.elements[A].options[H].value)+"</option>\n"):""}G+="\t";break;case"text":case"hidden":case"textarea":case"password":G=F.elements[A].value;
break;case"checkbox":case"check-box":B=true;G=F.elements[A].checked;break;case"radio":B=F.elements[A].checked;G=F.elements[A].value;break}if(B){if(!E){if((G!=null)&&(G!=undefined)){G=encodeURIComponent((""+G).replace("&","qUoCk01"))}}D+="\t<"+F.elements[A].name+(E?' multiple="true"':"")+">"+G+"</"+F.elements[A].name+">\n"}}D+="</row>\n"}catch(C){}return D}function getHTMLSync(A,C,D,B){getXMLToVariable(A,(C==null)?"":C,receiveGetHTML,D,B);return false}function getHTML(B,C,A){getXMLToVariable(B,(C==null)?"":C,receiveGetHTML,A,null);return false}function receiveGetHTML(http_request,var_,wait_){if(http_request.readyState==4){if(http_request.status==200){var ie=(typeof DOMParser=="undefined");var xmlobject=getParser(http_request);var obj=document.getElementById(var_);var result=xmlobject.getElementsByTagName("result")[0];if(result!=null){handleError(result)}if(obj!=null){obj.innerHTML="Loading..."}var html=xmlobject.getElementsByTagName("html")[0];if(html==null){obj.innerHTML="Error read content. </br> Chyba obsahu stranky.";
return }var body=html.getElementsByTagName("body")[0];var str=null;if(!ie){var s=new XMLSerializer();str=new String(s.serializeToString(body))}else{str=new String(body.xml)}obj.innerHTML="";obj.innerHTML=str.replace(/^<.*body.*>|<\/body.*>/ig,"");if(typeof (wait_)=="object"){wait_[0]=true}try{var txt_onload=getAttribute(html,"body","onload");eval(txt_onload)}catch(e){}try{if(obj.innerHTML.indexOf("naj.sk",0)!=0){}else{getHTML("pages/get_postload_naj.jsp",null,"id_naj_code_on_title_page")}}catch(e){}}}try{document.getElementById("popupWait").style.display="none"}catch(e){}}function getParser(B){if(typeof DOMParser=="undefined"){xmlobject=new ActiveXObject("MSXML.DomDocument");xmlobject.loadXML(B.responseText)}else{xmlobject=(new DOMParser()).parseFromString(B.responseText,"text/xml")}var A=xmlobject.getElementsByTagName("root")[0];if((A==null)&&(B.responseText.indexOf("Exception")>=0)){alert(B.responseText)}return xmlobject}function handleError(A){if(getValue(A,"error")=="not logged on"){document.location.reload(true)
}else{alert(getValue(A,"errorDescription",false))}}function createTD(C,A,B){var D=C.insertCell(-1);D.innerHTML=A;D.className=B;return D}function fnDefaultReceiver(D){if(D.readyState==4){if(D.status==200){var C=null;var C=getParser(D);var F=C.getElementsByTagName("root")[0];var E=F.getElementsByTagName("result")[0];var B=F.getElementsByTagName("row")[0];if(getValue(E,"error")=="ok"){}else{handleError(E)}try{getHTML("pages/get_postload_naj.jsp",null,"id_naj_code_on_title_page")}catch(A){}}}try{document.getElementById("popupWait").style.display="none"}catch(A){}}function fnReceiveDefault(http_request){if(http_request.readyState==4){if(http_request.status==200){var xmlobject=getParser(http_request);var root=xmlobject.getElementsByTagName("root")[0];var result=root.getElementsByTagName("result")[0];var row=root.getElementsByTagName("row")[0];if(getValue(result,"error")=="ok"){var popupName=getValue(row,"popupName");if((popupName!=null)&&(popupName.length!=0)){fnClosePopup(popupName)}var onOKScript=getValue(row,"onOKScript");
if((onOKScript!=null)&&(onOKScript.length!=0)){eval(onOKScript)}var displayOKMessage=getValue(row,"displayOKMessage");if((displayOKMessage!=null)&&("true"==displayOKMessage)){alert(getValue(result,"errorDescription"))}try{getHTML("pages/get_postload_naj.jsp",null,"id_naj_code_on_title_page")}catch(e){}}else{var onNOKScript=getValue(row,"onNOKScript");if((onNOKScript!=null)&&(onNOKScript.length!=0)){eval(onNOKScript)}handleError(result)}}}try{document.getElementById("popupWait").style.display="none"}catch(e){}}function fnOpenDefaultPopupWindow(id_,x_,y_,w_,h_,iframe_id_,content_,content_params_,form_id_,form_content_,form_params_,post_loading_script_){var ready=new Array(2);ready[0]=false;ready[1]=0;var width_=w_;height_=h_;var obj=document.getElementById(id_);var zi=(++zIndex);var krytie;getHTMLSync(content_,content_params_,id_,ready);function xx(){if(ready[0]){if((form_id_!=null)&&(form_id_!=undefined)){getXMLtoForm(form_content_,form_params_,null,document.getElementById(form_id_))}if((post_loading_script_!=null)&&(post_loading_script_!=undefined)){eval(post_loading_script_)
}krytie=document.getElementById(iframe_id_);if(krytie!=null){if(IE){with(krytie.style){left="1px";top="2px";height=(obj.scrollHeight-2)+"px";width=(obj.offsetWidth-2)+"px"}}else{krytie.style.visibility="hidden"}}}else{++ready[1];if(ready[1]<tickCount){window.setTimeout(xx,oneTick)}else{fnDefaultTimeout("fnOpenDefaultPopupWindow|iframe_id:"+iframe_id_+"|content_:"+content_+"|content_params_:"+content_params_)}}}px=(x_==-1)?(document.body.clientWidth/2-width_/2):x_;py=(y_==-1)?(document.body.clientHeight/2-height_/2):y_;with(obj.style){left=px+"px";top=py+"px";width=width_+"px";height=height_+"px";zIndex=zi;visibility="visible"}window.setTimeout(xx,oneTick);try{getHTML("pages/get_postload_naj.jsp",null,"id_naj_code_on_title_page")}catch(e){}DragHandler.attach(obj)}function fnDefaultTimeout(B){var A=B;if((A==undefined)||(A==null)){A=""}A+="\nBrowser: "+navigator.appVersion;A+="\nName: "+navigator.appName;getXML("ajax/ajax.mail.jsp","activity=send&to=system@nehnutelnosti.sk&subject=Timeout reading&body="+A,fnReceiveDefault)
}var context=null;var online_c_id=null;var online_u_id=null;var online_name=null;var online_nick=null;var online_c_name=null;var online_login=null;var online_contact_mail=null;var online_right_approve=null;var online_right_insert=null;var online_right_billing=null;var online_is_person=null;var online_chr_id=null;var zIndex=1000;var popupParams={};var ie=document.all;var IE55=((document.all)&&(navigator.appVersion.indexOf("MSIE 5.5")!=-1));var IE6=((document.all)&&(navigator.appVersion.indexOf("MSIE 6.")!=-1));var IE7=((document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1));var IE=IE55|IE6|IE7;function fixPNG(B){var D=navigator.appVersion.split("MSIE");var G=parseFloat(D[1]);if((G>=5.5)&&(G<7)&&(document.body.filters)){var F=(B.id)?"id='"+B.id+"' ":"";var A=(B.className)?"class='"+B.className+"' ":"";var C=(B.title)?"title='"+B.title+"' ":"title='"+B.alt+"' ";var H="display:inline-block;"+B.style.cssText;var E="<span "+F+A+C+' style="width:'+B.width+"px; height:"+B.height+"px;"+H+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+B.src+"', sizingMethod='scale');\"></span>";
B.outerHTML=E}}function loadAllScripts(){loadJSFile("scripts/login.js","js");loadJSFile("scripts/chat.js","js");loadJSFile("scripts/invoices.js","js");loadJSFile("scripts/realty.js","js");loadJSFile("scripts/advertisement.js","js");loadJSFile("scripts/mbank.js","js");loadJSFile("scripts/BtJsCode.js","js")}function loadJSFile(B,C){var A;if(C=="js"){A=document.createElement("script");A.setAttribute("type","text/javascript");A.setAttribute("src",B)}else{if(C=="css"){A=document.createElement("link");A.setAttribute("rel","stylesheet");A.setAttribute("type","text/css");A.setAttribute("href",B)}}if(typeof A!="undefined"){document.getElementsByTagName("head")[0].appendChild(A)}}function getScrollY(){var B=0,A=0;if(typeof (window.pageYOffset)=="number"){A=window.pageYOffset;B=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){A=document.body.scrollTop;B=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){A=document.documentElement.scrollTop;
B=document.documentElement.scrollLeft}}}return A}function clearPX(A){return new Number(A.replace("px",""))}function fnClosePopup(A){var B=document.getElementById(A);if(B!=null){B.style.visibility="hidden";B.innerHTML=""}}function fnGetCredentials(){getXML("ajax/ajax.login.jsp","activity=credentials",fnReceiveCredentials);return false}function fnReceiveCredentials(http_request){if(http_request.readyState==4){if(http_request.status==200){var xmlobject=getParser(http_request);var root=xmlobject.getElementsByTagName("root")[0];if(root!=null){var result=root.getElementsByTagName("result")[0];var row=root.getElementsByTagName("row")[0];var onOKScript=getValue(row,"onOKScript");if((onOKScript!=null)&&(onOKScript.length!=0)){eval(onOKScript)}if(getValue(result,"error")=="ok"){online_c_id=getValue(row,"online_c_id");online_u_id=getValue(row,"online_u_id");online_name=getValue(row,"online_name");online_c_name=getValue(row,"online_c_name");online_nick=getValue(row,"online_nick");online_login=getValue(row,"online_login");
online_chr_id=getValue(row,"online_chr_id");online_contact_mail=getValue(row,"online_contact_mail");online_right_admin=("true"==getValue(row,"online_right_admin"));online_right_approve=("true"==getValue(row,"online_right_approve"));online_right_insert=("true"==getValue(row,"online_right_insert"));online_right_billing=("true"==getValue(row,"online_right_billing"));online_is_person=("true"==getValue(row,"online_is_person"))}else{handleError(result)}}}}}function leftMenuClick(A){alert(A)}function fnSelectAllOptions(B){for(var A=0;A<B.options.length;++A){B.options[A].selected=true}}function fnLog(B,F,G,A){var H=(B==null)?"default":B;var D=((F==null)||(F==undefined))?"":F;D=D.replace("&","~","g");var C=(G==null)?"page":G;var E=(A==null)?"page":A;getXML("ajax/ajax.logging.jsp","ajax=ajax&context="+H+"&data="+D+"&type="+C+"&section="+E,fnReceiveDefault)}var displayedMenuBelongsTo=null;var displayedMenuFile=null;var displayedMenuContext=null;var displayedMenuId=null;var displayedMenuCounter=0;var activeLayout="";var activeSubLayout="";
document.write('<div id="menuObject" class="popup_menu" onclick="++zIndex;this.style.zIndex=zIndex;" onmouseover="customMenuOver(this)" onmouseout="customMenuOut(this)"></div>');document.write('<div id="loggingObject" style="height:0px; width:0px; display:none;"></div>');function fnFindPosX(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 fnFindPosY(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 showCustomMenu(C,A,B){doHideCustomMenu();if("moje_nehnutelnosti"==C){displayedMenuBelongsTo=A;displayedMenuBelongsTo.style.color="#eaeaea";displayedMenuBelongsTo.style.backgroundColor="#B72A24";displayedMenuFile="pages/my.menu.jsp";displayedMenuContext=C;displayedMenuId=document.getElementById("menuObject");displayedMenuCounter=1}else{if("info"==C){displayedMenuBelongsTo=A;displayedMenuBelongsTo.style.color="#eaeaea";displayedMenuBelongsTo.style.backgroundColor="#B72A24";
displayedMenuFile="pages/info.menu.jsp";displayedMenuContext=C;displayedMenuId=document.getElementById("menuObject");displayedMenuCounter=1}else{if("cenniky"==C){displayedMenuBelongsTo=A;displayedMenuBelongsTo.style.color="#eaeaea";displayedMenuBelongsTo.style.backgroundColor="#B72A24";displayedMenuFile="pages/menu.cenniky.jsp";displayedMenuContext=C;displayedMenuId=document.getElementById("menuObject");displayedMenuCounter=1}else{if("sa"==C){displayedMenuBelongsTo=A;displayedMenuBelongsTo.style.color="#eaeaea";displayedMenuBelongsTo.style.backgroundColor="#B72A24";displayedMenuFile="pages/sa.menu.jsp";displayedMenuContext=C;displayedMenuId=document.getElementById("menuObject");displayedMenuCounter=1}else{if("tools"==C){displayedMenuBelongsTo=A;displayedMenuBelongsTo.style.color="#eaeaea";displayedMenuBelongsTo.style.backgroundColor="#B72A24";displayedMenuFile="pages/tools.menu.jsp";displayedMenuContext=C;displayedMenuId=document.getElementById("menuObject");displayedMenuCounter=1}else{if("realty_types"==C){displayedMenuBelongsTo=A;
displayedMenuBelongsTo.style.color="#eaeaea";displayedMenuBelongsTo.style.backgroundColor="#B72A24";displayedMenuFile="pages/menu.realty.types.jsp";displayedMenuContext=C;displayedMenuId=document.getElementById("menuObject");displayedMenuCounter=1}}}}}}fnMenuWindow(displayedMenuId,displayedMenuBelongsTo,displayedMenuFile)}function hideCustomMenu(C,A,B){--displayedMenuCounter;window.setTimeout("doHideCustomMenu()",10)}function doHideCustomMenu(){if((displayedMenuCounter<=0)&&(displayedMenuBelongsTo!=null)){displayedMenuBelongsTo.style.color="#B72A24";displayedMenuBelongsTo.style.backgroundColor="transparent";displayedMenuBelongsTo=null;displayedMenuContext=null;displayedMenuId.style.visibility="";document.getElementById("menuObject").innerHTML="";displayedMenuId=null;displayedMenuCounter=0;var A=document.getElementById("id_menu_ie_worarround");if(A!=null){A.style.display="none"}}}function customMenuOver(A){++displayedMenuCounter}function customMenuOut(A){--displayedMenuCounter;window.setTimeout("doHideCustomMenu()",10)
}function fnMenuWindow(displayedMenuId,displayedMenuBelongsTo,displayedMenuFile){var obj=displayedMenuId;var zi=++zIndex;displayedMenuId.style.visibility="hidden";fnLoadMenuBox(displayedMenuFile,true);with(obj.style){left=fnFindPosX(displayedMenuBelongsTo)+"px";top=(fnFindPosY(displayedMenuBelongsTo)+displayedMenuBelongsTo.offsetHeight)+"px";zIndex=zi;visibility="visible"}}function fnContextMenuHide(B){if((displayedMenuCounter<=0)||(B)){displayedMenuContext=null;var A=document.getElementById("menuObject");A.style.visibility="hidden";A.innerHTML="";displayedMenuCounter=0;var C=document.getElementById("id_menu_ie_worarround");if(C!=null){C.style.display="none"}}else{displayedMenuCounter=1}}function fnContextMenuWindow(posX_,posY_,displayedMenuFile_,param1_,param2_,param3_){try{var obj=document.getElementById("menuObject");var zi=++zIndex;obj.style.visibility="hidden";obj.onmouseout=function(){--displayedMenuCounter;window.setTimeout("fnContextMenuHide()",10)};fnLoadMenuBox(displayedMenuFile_,false);with(obj.style){left=posX_-10+"px";
top=posY_+getScrollY()-5+"px";zIndex=zi;visibility="visible"}}catch(e){}}function dropdownMouseOver(A){A.style.color="#eaeaea";A.style.backgroundColor="#B72A24"}function dropdownMouseOut(A){A.style.color="#B72A24";A.style.backgroundColor="transparent"}function dropdownMouseClick(A){dropdownHide()}function dropdownHide(){--displayedMenuCounter;doHideCustomMenu()}function fnLoadMenuBox(menu_file_,workarround_){var ready=new Array(2);ready[0]=false;ready[1]=0;var obj;getHTMLSync(menu_file_,"popupName=menuObject","menuObject",ready);function xx(){if(ready[0]){krytie=document.getElementById("id_menu_ie_worarround");obj=document.getElementById("menuObject");if(krytie!=null){if((IE)&&(workarround_!=undefined)&&(workarround_)){with(krytie.style){left="0px";top="0px";height=obj.scrollHeight+2+"px";width=obj.offsetWidth+"px";backgroundColor=obj.style.background;border=obj.style.border;borderWidth="1px";display=""}with(obj.style){border="0px solid white";color="transparent"}}else{krytie.style.display="none"}}}else{++ready[1];
if(ready[1]<oneTick){window.setTimeout(xx,tickCount)}else{fnDefaultTimeout("Menu|menu_file_:"+menu_file_)}}}window.setTimeout(xx,oneTick)}function fnEditCustomer(A){fnOpenDefaultPopupWindow("popupRegister",-1,20+getScrollY(),920,570,"id_user_detail_ie_worarround","pages/user.detail.edit.jsp","popupName=popupRegister&c_id="+A,"editUserDetailForm","ajax/ajax.customers.jsp","activity=getCustomer&popupName=popupRegister",null)}function fnEditProfile(){document.getElementById("id_customer_data").style.display="none";with(document.getElementById("id_c_profile_iframe").style){display=""}document.getElementById("id_form_02_03_05_08_13").c_profile.value=document.getElementById("editUserDetailForm").c_profile.value;document.getElementById("id_form_02_03_05_08_13").submit();with(document.getElementById("id_c_profile_iframe").style){left="0px";top="0px";display=""}}function fnEditProfileClose(){document.getElementById("id_c_profile_iframe").style.display="none";document.getElementById("id_customer_data").style.display=""}function fnDefaultNotification(B,A){getXML("ajax/ajax.mail.jsp","activity=send&to=system@nehnutelnosti.sk&subject="+B+((A==undefined)?"":("&body="+A)),fnReceiveDefault)
}function fnRegister(A){fnDefaultNotification("Pokus o registraciu");if((A==null)||(A==undefined)){fnOpenDefaultPopupWindow("popupRegister",-1,20+getScrollY(),640,528,"id_user_detail_ie_worarround","pages/user.detail.jsp","popupName=popupRegister&activity=new",null,null,null,null)}}function fnUserDetailApply(B,A){var C=setFormXML(B);getXML("ajax/ajax.customers.jsp","popupName=popupRegister&activity="+A+"customer&xml="+C,fnReceiveDefault);return false}function fnPasswordLostWindow(){alert("Not implemented yet.")}function fnLoadTopAdvertisements(){fnShowAdvertisement("top_1_middle");fnShowAdvertisement("top_1_right")}function fnShowAnyPage(E,D){var H=640;var A=420;var C=(document.body.clientWidth-H)/2;var B=(document.body.clientHeight-A)/2;var G="title="+D+",resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=yes,location=no,directories=no,copyhistory=no,width="+H+",height="+A+",left="+C+",top="+B;var F=window.open(E,"any_page",G)}function fnReloadAllowed(){return true}function fnReloadTOP3(){var A=document.getElementById("realtyPublicTop3");
if((A!=null)&&(A.style.display!="none")){getHTML("pages/middle_top3.jsp","context=home&section=top3","realtyPublicTop3")}}function fnShowAdvertisement(A){if(A=="top_1_middle"){if(fnReloadAllowed()){getHTML("pages/advertisement.jsp","advertisement=top_1_middle","id_top_middle_advertisement")}}else{if(A=="top_1_right"){getHTML("pages/advertisement.jsp","advertisement=top_1_right","id_top_right_advertisement")}}}var DragHandler={_oElem:null,attach:function(A){A.onmousedown=DragHandler._dragBegin;return A},_dragBegin:function(B){var C=DragHandler._oElem=this;if(isNaN(parseInt(C.style.left))){C.style.left="0px"}if(isNaN(parseInt(C.style.top))){C.style.top="0px"}var A=parseInt(C.style.left);var D=parseInt(C.style.top);B=B?B:window.event;C.mouseX=B.clientX;C.mouseY=B.clientY;document.onmousemove=DragHandler._drag;document.onmouseup=DragHandler._dragEnd;return false},_drag:function(B){var C=DragHandler._oElem;var F=parseInt(C.style.left);var D=parseInt(C.style.top);B=B?B:window.event;var A=B.clientX-C.mouseX;var E=B.clientY-C.mouseY;
C.style.left=F+(B.clientX-C.mouseX)+"px";C.style.top=D+(B.clientY-C.mouseY)+"px";C.mouseX=B.clientX;C.mouseY=B.clientY;return false},_dragEnd:function(){var C=DragHandler._oElem;var B=parseInt(C.style.left);var A=parseInt(C.style.top);document.onmousemove=null;document.onmouseup=null;C.onmousedown=null;DragHandler._oElem=null}};var expandedWindows={};expandedWindows.detailSearchExpanded=false;expandedWindows.actualyVisitedExpanded=false;expandedWindows.mapSearchExpanded=false;function searchProgessBar(A){try{if(A=="on"){document.getElementById("id_search_progress_bar_yes").style.display="";document.getElementById("id_search_progress_bar_no").style.display="none"}else{document.getElementById("id_search_progress_bar_yes").style.display="none";document.getElementById("id_search_progress_bar_no").style.display=""}}catch(B){}}function fnPublicSearch(C,E,A){activeSubLayout="*";var B=E;var D=(A==undefined)?"":A;expandedWindows.detailSearchExpanded=true;expandedWindows.actualyVisitedExpanded=false;expandedWindows.mapSearchExpanded=false;
searchProgessBar("on");getXML("ajax/ajax.search.jsp","activity=resetSearch&realty_type="+B+"&realty_dopyt_ponuka="+C+"&realty_predaj_najom="+D,fnReceiveDefault)}function fnLoadPublicRealtyFilter(B){var C=new Array(2);C[0]=false;C[1]=0;if(B==undefined){getHTMLSync("pages/middle_realty_public_search.jsp","searchExpanded="+expandedWindows.detailSearchExpanded+"&actualyVisitedExpanded="+expandedWindows.actualyVisitedExpanded+"&mapSearchExpanded="+expandedWindows.mapSearchExpanded,"realtyPublicSearch",C)}else{getHTMLSync("pages/middle_realty_public_search.jsp","subContext="+B+"&searchExpanded="+expandedWindows.detailSearchExpanded+"&actualyVisitedExpanded="+expandedWindows.actualyVisitedExpanded+"&mapSearchExpanded="+expandedWindows.mapSearchExpanded,"realtyPublicSearch",C)}function A(){if(C[0]){if(expandedWindows.detailSearchExpanded){if(B==undefined){getXMLtoForm("ajax/ajax.search.jsp","activity=getPublicSearch",null,document.getElementById("id_formRealtyPublicSearch"))}else{getXMLtoForm("ajax/ajax.search.jsp","activity=getPublicSearch&subContext="+B,null,document.getElementById("id_formRealtyPublicSearch"))
}}else{if(expandedWindows.mapSearchExpanded){MapSearch.initialize()}else{if(expandedWindows.actualyVisitedExpanded){setTimeout("fnReloadActiveVisited()",10);getXML("ajax/ajax.search.jsp","activity=getPublicSearchNotExpanded",fnReceiveDefault)}else{getXML("ajax/ajax.search.jsp","activity=getPublicSearchNotExpanded",fnReceiveDefault)}}}}else{++C[1];if(C[1]<tickCount){window.setTimeout(A,oneTick)}else{fnDefaultTimeout("ajax/ajax.search.jsp|activity=getPublicSearch|subContext="+B)}}}window.setTimeout(A,oneTick)}var MapSearch={ms_latLng:null,ms_google_zoom:7,ms_map:null,ms_marker:null,ms_polygon:null,saveAndClose:function(A,C,B){alert(A+"...."+C+"...."+B)},searchForPlace:function(A){if((A!=undefined)&&(A!=null)){latLng=A}else{alert("GoogleMaps nadok??zal lokalizovana?? ur??en?? miesto,\nje potrebn?? doh??ada?? ho na mape manu??lne.")}initialize()},_afterSearchCallback:function(E,J,G){MapSearch.ms_latLng=new google.maps.LatLng(E,J);MapSearch.ms_google_zoom=G;var B=document.getElementById("id_map_search_range").value;
if(B==0.2){MapSearch.ms_google_zoom=15}else{if(B==0.5){MapSearch.ms_google_zoom=14}else{if(B==1){MapSearch.ms_google_zoom=13}else{if(B==2){MapSearch.ms_google_zoom=13}else{if(B==3){MapSearch.ms_google_zoom=12}else{if(B==5){MapSearch.ms_google_zoom=11}else{if(B==10){MapSearch.ms_google_zoom=10}else{if(B==20){MapSearch.ms_google_zoom=9}}}}}}}}MapSearch.ms_map.setCenter(MapSearch.ms_latLng,MapSearch.ms_google_zoom);if(MapSearch.ms_marker!=null){MapSearch.ms_map.removeOverlay(MapSearch.ms_marker)}MapSearch.ms_marker=new GMarker(MapSearch.ms_latLng);MapSearch.ms_map.addOverlay(MapSearch.ms_marker);var F=null;try{F=document.getElementById("id_map_search_range").value}catch(H){F=1}var C=1.61803/120/2*F;var D=1/120/2*F;var K=new Array(5);K[0]=new google.maps.LatLng(E-D,J-C);K[1]=new google.maps.LatLng(E+D,J-C);K[2]=new google.maps.LatLng(E+D,J+C);K[3]=new google.maps.LatLng(E-D,J+C);K[4]=new google.maps.LatLng(E-D,J-C);if(MapSearch.ms_polygon!=null){MapSearch.ms_map.removeOverlay(MapSearch.ms_polygon)}MapSearch.ms_map.addOverlay(MapSearch.ms_polygon=new GPolygon(K,"#ff0000",1,0.7,"#ffdddd",0.4));
var I=new Array(2);I[0]=false;I[1]=0;GEvent.addListener(MapSearch.ms_marker,"click",function(){getHTMLSync("pages/get_search_pad_control.jsp","range="+F+"&lat="+E+"&lng="+J,"id_search_pad_control",I);MapSearch.ms_map.setCenter(MapSearch.ms_latLng);window.setTimeout(A,oneTick)});getHTMLSync("pages/get_search_pad_control.jsp","range="+F+"&lat="+E+"&lng="+J,"id_search_pad_control",I);function A(){if(I[0]){MapSearch.ms_marker.openInfoWindowHtml(document.getElementById("id_search_pad_control").innerHTML);MapSearch.ms_map.panDirection(0,1)}else{++I[1];if(I[1]<tickCount){window.setTimeout(A,oneTick)}else{fnDefaultTimeout("Prekroceny cas pre vyhladavanie v Google Maps (1.search)")}}}window.setTimeout(A,oneTick)},searchCallBack:function(A){if((A!=undefined)&&(A!=null)){MapSearch._afterSearchCallback(A.lat(),A.lng(),15)}else{alert("GoogleMaps nadok??zal lokalizovana?? ur??en?? miesto.")}},searchCallBackDblClick:function(A,C,B){MapSearch._afterSearchCallback(A,C,B)},initialize:function(){try{MapSearch.ms_map=new google.maps.Map2(document.getElementById("id_map_search_object"));
MapSearch.ms_map.enableScrollWheelZoom();MapSearch.ms_map.disableDoubleClickZoom();GEvent.addListener(MapSearch.ms_map,"dblclick",function(B,C){MapSearch.searchCallBackDblClick(C.lat(),C.lng(),MapSearch.ms_map.getZoom())});if(MapSearch.ms_latLng==null){MapSearch.ms_latLng=new google.maps.LatLng(48.763431,19.544678)}MapSearch.ms_map.setCenter(MapSearch.ms_latLng,MapSearch.ms_google_zoom);MapSearch.ms_map.addControl(new GMenuMapTypeControl());MapSearch.ms_map.addControl(new GScaleControl());MapSearch.ms_map.addControl(new GLargeMapControl());MapSearch.ms_map.addControl(new GOverviewMapControl())}catch(A){}}};function fnRealtyPublicFilterApply(A){var B=setFormXML(A);searchProgessBar("on");getXML("ajax/ajax.search.jsp","activity=applyPublicSearch&xml="+B,fnReceiveDefault);return false}function fnRealtyPublicFilterMapApply(A){var B=setFormXML(A);searchProgessBar("on");getXML("ajax/ajax.search.jsp","activity=applyPublicSearchMap&xml="+B,fnReceiveDefault);return false}function fnFilterCompanyOffers(A){getXML("ajax/ajax.search.jsp","activity=applyFilterCompanyOffers&u_id="+A,fnReceiveDefault)
}function fnChangeSeachListContent(A,B){if(B=="state"){document.getElementById("id_txt_public_city").value="";document.getElementById("id_txt_public_city_part").value="";getHTML("pages/get_regions.jsp","activity=change"+B+"region&value=*&state="+A,"id_list_public_realty_region_container");getHTML("pages/get_regions.jsp","activity=change"+B+"district&value=*&state="+A,"id_list_public_realty_district_container")}else{if(B=="region"){getHTML("pages/get_regions.jsp","activity=change"+B+"&value="+A,"id_list_public_realty_district_container")}else{getXML("ajax/ajax.search.jsp","activity=change"+B+"&value="+A,fnReceiveDefault)}}}function fnShowPublicSearchList(){getHTML("pages/middle_realty_public_list.jsp",null,"realtyPublicSearchResult");try{getHTML("pages/get_postload_naj.jsp",null,"id_naj_code_on_title_page")}catch(A){}}function fnPageMove(direction_,form_){var aktualnaStranka_=null;aktualnaStranka_=form_.aktualnaStranka.value;if(isNaN(form_.aktualnaStranka.value)||(form_.aktualnaStranka.value=="")||(form_.aktualnaStranka.value<1)||(form_.aktualnaStranka.value>1*form_.total_pages.value)){aktualnaStranka_=form_.aktualnaStranka.value=form_.actual_page.value;
return false}if(((direction_=="down")&&(1*form_.actual_page.value>=1*form_.total_pages.value))||((direction_=="up")&&(1*form_.actual_page.value<=1))){}else{if(((direction_=="home")&&(1*form_.actual_page.value<=1))||((direction_=="end")&&(1*form_.actual_page.value>=1*form_.total_pages.value))){}else{with(form_){if(document.getElementById("id_td_aktualnaStranka")!=null){document.getElementById("id_td_aktualnaStranka").innerHTML="<img align='left' src='images/working.gif' alt='' /><img src='images/spacer.gif' width='20' height='8'/>"}getXML("ajax/ajax.search.jsp","activity=changepage&direction="+direction_+"&rows_per_page="+rows_per_page.value+"&new_page="+aktualnaStranka_,fnReceiveDefault)}}}return false}function fnOnCityPartChangePublic(D){var C=D.options[D.selectedIndex].text;var B;var A="Slovensko";document.getElementById("id_list_public_realty_state").value=A;document.getElementById("id_txt_public_city_part").value=D.value;if(C.indexOf("BA:")==0){document.getElementById("id_txt_public_city").value="Bratislava";
B="Okres Bratislava ";if(C.indexOf("??u??ovo")>=0){B+="V"}else{if(C.indexOf("Dev??n")>=0){B+="IV"}else{if(C.indexOf("D??bravka")>=0){B+="IV"}else{if(C.indexOf("Karlova")>=0){B+="IV"}else{if(C.indexOf("Lama??")>=0){B+="IV"}else{if(C.indexOf("Nov??")>=0){B+="III"}else{if(C.indexOf("Petr??alka")>=0){B+="V"}else{if(C.indexOf("Biskupice")>=0){B+="II"}else{if(C.indexOf("Pohrani")>=0){B+="V"}else{if(C.indexOf("Jarovce")>=0){B+="V"}else{if(C.indexOf("Ra??a")>=0){B+="III"}else{if(C.indexOf("Ru??inov")>=0){B+="II"}else{if(C.indexOf("Star??")>=0){B+="I"}else{if(C.indexOf("Vajnory")>=0){B+="III"}else{if(C.indexOf("Vraku??a")>=0){B+="II"}else{if(C.indexOf("Z??horsk??")>=0){B+="IV"}else{B+="I"}}}}}}}}}}}}}}}}fnReloadPublicDistricts(A,B);fnReloadPublicRegions(A,B)}else{if(C.indexOf("NR:")==0){document.getElementById("id_txt_public_city").value="Nitra";B="Nitra";fnReloadPublicDistricts(A,B);fnReloadPublicRegions(A,B)}else{if(C.indexOf("TN:")==0){document.getElementById("id_txt_public_city").value="Tren????n";B="Tren????n";fnReloadPublicDistricts(A,B);
fnReloadPublicRegions(A,B)}else{if(C.indexOf("TT:")==0){document.getElementById("id_txt_public_city").value="Trnava";B="Trnava";fnReloadPublicDistricts(A,B);fnReloadPublicRegions(A,B)}else{if(C.indexOf("BB:")==0){document.getElementById("id_txt_public_city").value="Bansk?? Bystrica";B="Bansk?? Bystrica";fnReloadPublicDistricts(A,B);fnReloadPublicRegions(A,B)}else{if(C.indexOf("ZA:")==0){document.getElementById("id_txt_public_city").value="??ilina";B="??ilina";fnReloadPublicDistricts(A,B);fnReloadPublicRegions(A,B)}else{if(C.indexOf("PO:")==0){document.getElementById("id_txt_public_city").value="Pre??ov";B="Pre??ov";fnReloadPublicDistricts(A,B);fnReloadPublicRegions(A,B)}else{if(C.indexOf("KE:")==0){document.getElementById("id_txt_public_city").value="Ko??ice";B="Ko??ice";fnReloadPublicDistricts(A,B);fnReloadPublicRegions(A,B)}}}}}}}}}function fnReloadPublicDistricts(A,B){var C=new Array(2);C[0]=false;C[1]=0;getHTMLSync("pages/get_districts_in_public_search.jsp","m_stat="+A+((B==undefined)?"":("&selected="+B)),"id_list_public_realty_district_container",C);
function D(){if(C[0]){}else{++C[1];if(C[1]<tickCount){window.setTimeout(D,oneTick)}else{fnDefaultTimeout("fnStateChanged( '"+A+"' )")}}}window.setTimeout(D,oneTick)}function fnReloadPublicRegions(A,B){getHTML("pages/get_regions_in_public_search.jsp","m_stat="+A+"&selected="+B,"id_list_public_realty_region_container")}function fnReloadInquery(){getHTML("pages/right_panel_anketa.jsp",null,"anketa_panel")}function fnHlasuj(A){getXML("ajax/ajax.others.jsp","activity=jednoZahlasovanie&question_id="+A,fnReceiveDefault)}function fnReloadNajdiFirmuSearch(){getHTML("pages/middle_najdi_firmu_search.jsp",null,"najdiFirmuSearch")}function fnReloadNajdiFirmuList(C,B){getHTML("pages/middle_najdi_firmu_list.jsp","najdi_firmu_correction="+B+"&key_word_txt_name="+(((C==undefined)||(C==null))?"bbeeggiinn":C),"najdiFirmuList");try{getXML("ajax/ajax.mail.jsp","activity=send&to=system@nehnutelnosti.sk&subject=Hladaj firmu&body="+C,fnReceiveDefault)}catch(A){}}function fnReloadBlackListFilter(){getHTML("pages/middle_blacklist_filter.jsp",null,"blackListSearch")
}function fnReloadBlackListList(){getHTML("pages/middle_blacklist_list.jsp",null,"blackListList")}function fnShowBlackListDetail(A){fnOpenDefaultPopupWindow("popupBlackList",-1,170+getScrollY(),600,400,"id_black_list_ie_worarround","pages/popup_blacklist_detail.jsp","popupName=popupBlackList&bl_id="+A,null,null,null,null)}function fnEditBlackListDetail(A){if((A==undefined)||(A==null)){fnOpenDefaultPopupWindow("popupBlackList",-1,170+getScrollY(),600,440,"id_black_list_ie_worarround","pages/popup_blacklist_edit.jsp","popupName=popupBlackList",null,null,null,null)}else{fnOpenDefaultPopupWindow("popupBlackList",-1,170+getScrollY(),600,440,"id_black_list_ie_worarround","pages/popup_blacklist_edit.jsp","popupName=popupBlackList&bl_id="+A,null,null,null,null)}}function fnBlackListEditIssue(A){var B=setFormXML(A);getXML("ajax/ajax.others.jsp","activity=applyBlackList&xml="+B,fnReceiveDefault);return false}function fnBlackListDeleteIssue(A){if(confirm("Naozaj zru??i?? pr??spevok?")){getXML("ajax/ajax.others.jsp","activity=delBlackListIssue&bl_id="+A,fnReceiveDefault)
}}function fnBlackListFilterApply(A){var B=setFormXML(A);getXML("ajax/ajax.others.jsp","activity=applyBlackListFilter&xml="+B,fnReceiveDefault);return false}function fnOpenZariaditOnline(){var A=810,B=580;fnOpenDefaultPopupWindow("popupZariaditOnline",-1,120+getScrollY(),A,B,"id_zariadit_online_ie_worarround","pages/popup.zariadit.online.jsp","popupName=popupZariaditOnline&width="+A+"&height="+B,null,null,null,"document.getElementById('popupZariaditOnline').style.zIndex = (++zIndex);")}function fnOpenNote(D,A,C,B){var E=209,F=204;fnOpenDefaultPopupWindow("popupNote",C,B,E,F,"id_note_ie_worarround","pages/popup.note.jsp","popupName=popupNote&width="+E+"&height="+F+"&title="+D+"&text="+A,null,null,null,"document.getElementById('popupZariaditOnline').style.zIndex = (++zIndex);")}function fnVideoOnline(A){var B=434,C=408;fnOpenDefaultPopupWindow("popupVideoOnline",-1,120+getScrollY(),B,C,"id_video_online_ie_worarround","pages/popup.you.tube.video.jsp","popupName=popupVideoOnline&width="+B+"&height="+C,null,null,null,"document.getElementById('popupVideoOnline').style.zIndex = (++zIndex);");
getXML("ajax/ajax.mail.jsp","activity=send&to=system@nehnutelnosti.sk&subject=Play sample movie&body="+navigator.appVersion,fnReceiveDefault)}function fnEncDec(B,A){if((B==null)||(B==undefined)){return null}if(A=="enc"){return B.replace('"',"uuvvoo","g").replace("&","aanndd","g").replace(">","ggtt","g").replace("<","lltt","g")}if(A=="dec"){return B.replace("lltt","<","g").replace("ggtt",">","g").replace("aanndd","&","g").replace("uuvvoo",'"',"g")}if((B.indexOf("ggtt")>=0)||(B.indexOf("lltt")>=0)||(B.indexOf("aanndd")>=0)||(B.indexOf("uuvvoo")>=0)){return B.replace("lltt","<","g").replace("ggtt",">","g").replace("aanndd","&","g").replace("uuvvoo",'"',"g")}else{if((B.indexOf(">")>=0)||(B.indexOf("<")>=0)||(B.indexOf("&")>=0)||(B.indexOf('"')>=0)){return B.replace('"',"uuvvoo","g").replace("&","aanndd","g").replace(">","ggtt","g").replace("<","lltt","g")}}return B}function fnVideoOnlinePlay(A){var B=434,C=408;var D=434,E=408;var F="bad";if((A==null)||(A==undefined)){alert("Nezn??my video form??t!");return }else{if(A.indexOf("youtube",0)!=-1){F="youtube";
B=425+12;C=355+53;D=425;E=355}else{if(A.indexOf("myubo",0)!=-1){F="myubo";B=470+12;C=386+53;D=470;E=386}else{alert("Nezn??my video form??t!");return }}}fnOpenDefaultPopupWindow("popupVideoOnlinePlay",-1,120+getScrollY(),B,C,"id_video_online_play_ie_worarround","pages/popup.video.play.jsp","popupName=popupVideoOnlinePlay&width="+D+"&height="+E+"&type="+F+"&video="+fnEncDec(A,"enc"),null,null,null,"document.getElementById('popupVideoOnlinePlay').style.zIndex = (++zIndex);")}function fnVideoOnlineUpload(B){var C=800,A=452;fnOpenDefaultPopupWindow("popupVideoOnline",-1,80+getScrollY(),C,A,"id_video_online_ie_worarround","pages/popup.video.upload.jsp","popupName=popupVideoOnline&width="+C+"&height="+A+"&offer_id="+B,null,null,null,"document.getElementById('popupVideoOnline').style.zIndex = (++zIndex);")}function fnVideoUpdateData(){document.getElementById("id_offer_video").value=document.getElementById("id_embeded_video_text").value;if((document.getElementById("id_offer_video").value!=null)&&(document.getElementById("id_offer_video").value.indexOf("object",0)!=0)){document.getElementById("id_realty_edit_video_no").style.display="none";
document.getElementById("id_realty_edit_video_yes").style.display=""}else{document.getElementById("id_realty_edit_video_yes").style.display="none";document.getElementById("id_realty_edit_video_no").style.display=""}}function fnVideoDel(){document.getElementById("id_offer_video").value="";document.getElementById("id_realty_edit_video_yes").style.display="none";document.getElementById("id_realty_edit_video_no").style.display=""}function fnPopupAnyPage(B,D,C){var A=(C==undefined)?"":"&"+C;fnOpenDefaultPopupWindow("popupAnyPage",-1,130+getScrollY(),640,410,"id_any_page_ie_worarround","pages/popup.any.page.jsp","popupName=popupAnyPage&title="+D+"&page_address="+B+A,null,null,null,"document.getElementById('popupAnyPage').style.zIndex = (++zIndex);")}function fnPopupAnyPageWide(B,D,C){var A=(C==undefined)?"":"&"+C;fnOpenDefaultPopupWindow("popupAnyPage",-1,80+getScrollY(),1010,520,"id_any_page_ie_worarround","pages/popup.any.page.wide.jsp","popupName=popupAnyPage&title="+D+"&page_address="+B+A,null,null,null,"document.getElementById('popupAnyPage').style.zIndex = (++zIndex);")
}function fnPopupAnyPageMBank(){fnOpenDefaultPopupWindow("popupAnyPage",-1,40+getScrollY(),708,662,"id_mbank_any_page_ie_worarround","pages/popup.any.page.mbank.jsp","popupName=popupAnyPage&title=mBank online",null,null,null,"document.getElementById('popupAnyPage').style.zIndex = (++zIndex);")}function fnMenuBlog(A){fnContextMenuWindow(A.clientX,A.clientY,"pages/menu.blog.jsp")}function fnNapisteBlog(){fnOpenDefaultPopupWindow("popupInformacie",-1,140+getScrollY(),535,600,"id_kontakty_ie_worarround","pages/popup_napiste_blog.jsp","popupName=popupInformacie",null,null,null,"with (document.getElementById('idformNapiste')) { txt.value=''; txt.focus(); }")}function fnNapisteBlogPoslat(A){var B=setFormXML(A);getXML("ajax/ajax.mail.jsp","popupName=popupInformacie&activity=napisteBlog&xml="+B,fnReceiveDefault);return false}function fnNapisteRealitkamSend(A){var B=setFormXML(A);getXML("ajax/ajax.mail.jsp","popupName=popupInformacie&activity=napisteRealitkam&xml="+B,fnReceiveDefault);return false}function fnAddBookmark(A){getXML("ajax/ajax.search.jsp","activity=addbookmark&offer_id="+A,fnReceiveDefault)
}function fnDelBookmark(A){getXML("ajax/ajax.search.jsp","activity=delbookmark&offer_id="+A,fnReceiveDefault)}function fnNapiste(A){var B=setFormXML(A);getXML("ajax/ajax.mail.jsp","popupName=popupRegister&activity=napiste&xml="+B,fnReceiveDefault);return false}function fnMenuMagazines(A){fnContextMenuWindow(A.clientX,A.clientY,"pages/menu.magazines.jsp")}function fnMagazinesPage(A){getHTML("pages/middle_magazine_public_list.jsp","page="+A,"realtyMagazine")}function fnMagazineZoom(obj_,x_,y_,w_,h_,p_,c_,show_){var el_orig_=document.getElementById("id_magazine_zoom_orig");var el_=document.getElementById("id_magazine_zoom");var zoom_=1.75;var width_=Math.round(w_*zoom_);var height_=Math.round(h_*zoom_);with(el_orig_.style){left=x_+"px";top=y_+"px";width=w_+"px";height=h_+"px";display=""}with(el_.style){backgroundImage="url(servlet/sk.indatex.tools.image.ImageSizerJimi?quality=1&height="+height_+"&width="+width_+"&fullpath=files/naj-reality/2008-12-05/2008-12-05-"+((p_<10)?"0":"")+p_+"_"+((c_<10)?"0":"")+c_+".png)";
display="";width=width_+"px";height=height_+"px";left=Math.round(x_-(zoom_-1)*w_/2)+"px";top=y_+h_+"px"}}function fnMenuPriceMaps(A){fnContextMenuWindow(A.clientX,A.clientY,"pages/menu.pricemaps.jsp")}function fnShowPopupChartPriceMaps(B,C,A){fnOpenDefaultPopupWindow("popupChart",-1,110+getScrollY(),616,440,"id_chart_ie_worarround","pages/popup_chart_price_maps.jsp","popupName=popupChart&type="+B+"&param1="+C+"&param2="+A,null,null,null,"document.getElementById('popupChart').style.zIndex = (++zIndex);fnShowChartObjectPriceMaps('"+B+"','"+C+"','"+A+"');")}function fnShowChartObjectPriceMaps(B,C,A){getHTML("pages/get_chart_object_price_maps.jsp","type="+B+"&param1="+C+"&param2="+A,"id_chart_object");getXML("ajax/ajax.mail.jsp","activity=send&to=system@nehnutelnosti.sk&subject=Cenova mapa&body="+navigator.appVersion+"\nParam1="+C,fnReceiveDefault)}function fnLoadGoogleLibrary(A){document.write('<script type="text/javascript" src="http://www.google.com/jsapi?key='+A+'"><\/script>')}function fnFaderUpActiveVisitedIE(C,D){if(((D>0)&&(C<=100))||((C>=0)&&(D<0))){try{var E=document.getElementById("id_actualy_visited_panorama_table");
if(E==null){return }var B=document.getElementById("id_actualy_visited_panorama_table_hider");B.style.display="";B.style.left=fnFindPosX(E);B.style.top=fnFindPosY(E);B.style.width=E.offsetWidth+"px";B.style.height=E.scrollHeight+"px";B.style.opacity=C/100;B.style.MozOpacity=C/100;B.style.filter="alpha(opacity="+C+")"}catch(A){}setTimeout("fnFaderUpActiveVisitedIE("+(C+D*4)+", "+D+")",60);window.status=(100-C)+"%"}else{if(C>=100){document.getElementById("id_actualy_visited_panorama_table_hider").display="none";getHTML("pages/get_actualy_visited.jsp",null,"id_actualy_visited_panorama_object");setTimeout("fnFaderUpActiveVisitedIE(0,1)",13000)}else{try{document.getElementById("id_actualy_visited_panorama_table_hider").style.display="none"}catch(A){}}}}function fnFaderUpActiveVisited(A,B){if(((B>0)&&(A<=100))||((A>=0)&&(B<0))){try{var C=document.getElementById("id_actualy_visited_panorama_object");if(C==null){return }C.style.opacity=A/100;C.style.MozOpacity=A/100;C.style.filter="alpha(opacity="+A+")"}catch(D){}setTimeout("fnFaderUpActiveVisited("+(A+3*B)+","+B+")",75);
window.status=A}else{if(B<0){getHTML("pages/get_actualy_visited.jsp",null,"id_actualy_visited_panorama_object");setTimeout("fnFaderUpActiveVisited(0,1)",10);setTimeout("fnFaderUpActiveVisited(75,-1)",13000)}}}function fnEnable_id_actualy_visited_panorama_table(){try{document.getElementById("id_actualy_visited_panorama_table").style.visibility=""}catch(A){setTimeout("fnEnable_id_actualy_visited_panorama_table()",10)}}function fnReloadActiveVisited(){var A=document.getElementById("id_actualy_visited_panorama_object");if(A==null){return }if(document.getElementById("id_actualy_visited_panorama_table")==null){getHTML("pages/get_actualy_visited.jsp",null,"id_actualy_visited_panorama_object");if(IE){setTimeout("fnFaderUpActiveVisitedIE(0,1)",13000)}else{setTimeout("fnFaderUpActiveVisited(100,-1)",13000)}}else{if(IE){setTimeout("fnFaderUpActiveVisitedIE(0,1)",13000)}else{setTimeout("fnFaderUpActiveVisited(100,-1)",13000)}}}function fnNeplaticWarning(){fnOpenDefaultPopupWindow("popupNewRealtyByEmail",-1,110+getScrollY(),616,440,"id_novinky_emailom_ie_worarround","pages/popup_neplatic_warning.jsp","popupName=popupNewRealtyByEmail",null,null,null,"document.getElementById('popupNewRealtyByEmail').style.zIndex = (++zIndex);")
}function fnSendNewRealtyByEmail(){fnOpenDefaultPopupWindow("popupNewRealtyByEmail",-1,110+getScrollY(),616,440,"id_novinky_emailom_ie_worarround","pages/popup_novinky_mailom.jsp","popupName=popupNewRealtyByEmail",null,null,null,"document.getElementById('popupNewRealtyByEmail').style.zIndex = (++zIndex);")}function fnNovinkyMailomApply(A){var B=setFormXML(A);getXML("ajax/ajax.others.jsp","popupName=popupNewRealtyByEmail&activity=newRealtyByEmail&xml="+B,fnReceiveDefault);return false}function fnChangeVIPOnPlace(C,B){var A=window.prompt("D??tum, do kedy je VIP",B);getXML("../ajax/ajax.others.jsp","activity=setVIP&c_id="+C+((A==null)?"":("&c_vip_until_date="+A)),fnReceiveDefault)}function fnChangePrepayedOnPlace(C,B){var A=window.prompt("D??tum, do kedy m?? predplatn??",B);getXML("../ajax/ajax.others.jsp","activity=setPrepayedDate&c_id="+C+((A==null)?"":("&tar_prepayed_until_date="+A)),fnReceiveDefault)}function fnChangePaperFADate(B,A){var C=window.prompt("D??tum, od kedy m?? papierov?? FA",A);getXML("../ajax/ajax.others.jsp","activity=setPaperFADate&c_id="+B+((C==null)?"":("&tar_pay_by_inv_from_date="+C)),fnReceiveDefault)
}function fnReloadDisplayCredit(){if(document.getElementById("id_display_kredit")!=null){getHTML("pages/get_credits.jsp",null,"id_display_kredit")}}function fnChangeTopOnPlace(A,F,D,C,E){var B=window.prompt(F,D);getXML("../ajax/ajax.others.jsp","activity=fnChangeTopOnPlace&cal_id="+A+"&field_name="+C+"&field_type="+E+((B==null)?"":("&new_value="+B)),fnReceiveDefault)}function enableTooltips(D){var A,B,C;if(!document.getElementById||!document.getElementsByTagName){return }AddCss();C=document.createElement("span");C.id="btc";C.setAttribute("id","btc");C.style.position="absolute";document.getElementsByTagName("body")[0].appendChild(C);if(D==null){A=document.getElementsByTagName("a")}else{A=document.getElementById(D).getElementsByTagName("a")}for(B=0;B<A.length;B++){Prepare(A[B])}}function enableTooltip41Element(A){var B;if(!document.getElementById||!document.getElementsByTagName){return }try{if(document.getElementById(A).tooltip!=null){return }}catch(C){return }AddCss();B=document.createElement("span");B.id="btc";
B.setAttribute("id","btc");B.style.position="absolute";document.getElementsByTagName("body")[0].appendChild(B);PrepareAny(document.getElementById(A))}function Prepare(C){var D,A,E,B,F;A=C.getAttribute("title");if(A==null||A.length==0){A="link:"}C.removeAttribute("title");D=CreateEl("span","tooltip");B=CreateEl("span","top");B.appendChild(document.createTextNode(A));D.appendChild(B);E=CreateEl("b","bottom");F=C.getAttribute("href");if(F.length>28){F=F.substr(0,25)+"..."}E.appendChild(document.createTextNode(F));D.appendChild(E);setOpacity(D);C.tooltip=D;C.onmouseover=showTooltip;C.onmouseout=hideTooltip;C.onmousemove=Locate}function PrepareAny(C){var D,A,E,B,F;A=C.getAttribute("title");C.removeAttribute("title");D=CreateEl("span","tooltip");B=CreateEl("span","top");B.appendChild(document.createTextNode(A));D.appendChild(B);E=CreateEl("b","bottom");D.appendChild(E);setOpacity(D);C.tooltip=D;C.onmouseover=showTooltip;C.onmouseout=hideTooltip;C.onmousemove=Locate}function showTooltip(A){document.getElementById("btc").appendChild(this.tooltip);
Locate(A)}function hideTooltip(A){try{var B=document.getElementById("btc");if(B.childNodes.length>0){B.removeChild(B.firstChild)}}catch(A){}}function setOpacity(A){A.style.filter="alpha(opacity:95)";A.style.KHTMLOpacity="0.95";A.style.MozOpacity="0.95";A.style.opacity="0.95"}function CreateEl(C,A){var B=document.createElement(C);B.className=A;B.style.display="block";return(B)}function AddCss(){var A=CreateEl("link");A.setAttribute("type","text/css");A.setAttribute("rel","stylesheet");A.setAttribute("href","styles/bt.css");A.setAttribute("media","screen");document.getElementsByTagName("head")[0].appendChild(A)}function Locate(C){var B=0,A=0;if(C==null){C=window.event}if(C.pageX||C.pageY){B=C.pageX;A=C.pageY}else{if(C.clientX||C.clientY){if(document.documentElement.scrollTop){B=C.clientX+document.documentElement.scrollLeft;A=C.clientY+document.documentElement.scrollTop}else{B=C.clientX+document.body.scrollLeft;A=C.clientY+document.body.scrollTop}}}document.getElementById("btc").style.top=(A+10)+"px";document.getElementById("btc").style.left=(B-20)+"px"
}function fnLoginWindow(px,py){var width_=210;height_=100;var obj=document.getElementById("popup");var zi=++zIndex;fnLoadLoginBox();with(obj.style){left=px-width_/2+"px";top=py+"px";width=width_+"px";height=height_+"px";zIndex=zi;visibility="visible"}}function fnAddToFavorites(){var B="Port??l NEHNUTE??NOSTI.sk";var A="http://www.nehnutelnosti.sk";if(window.sidebar){window.sidebar.addPanel(B,A,"")}else{if(window.external){window.external.AddFavorite(A,B)}else{if(window.opera&&window.print){}}}getXML("ajax/ajax.mail.jsp","activity=send&to=system@nehnutelnosti.sk&subject=Add to favorites&body="+navigator.appVersion,fnReceiveDefault)}function fnDoLogin(A){var B=setFormXML(A);getXML("ajax/ajax.login.jsp","activity=dologin&xml="+B,fnReceiveDefault);return false}function fnPasswordLost(){fnOpenDefaultPopupWindow("popupForgetPass",-1,100+getScrollY(),420,230,"id_forget_ie_worarround","pages/popup.forget.pass.jsp","popupName=popupForgetPass",null,null,null,null)}function fnPasswordLostApply(A){var B=setFormXML(A);getXML("ajax/ajax.customers.jsp","activity=forgetPass&xml="+B,fnReceiveDefault);
return false}function fnLogout(){getXML("ajax/ajax.login.jsp","activity=logout",fnReceiveDefault)}function fnCustomerDetailApply(B,A){var C=setFormXML(B);getXML("ajax/ajax.customers.jsp","activity="+A+"user&xml="+C,fnReceiveDefault);return false}function closeUserDetail(A){var B=document.getElementById(A);if(B!=null){B.style.display="none";B.innerHTML=""}getHTML("pages/right_panel_makler_list.jsp",null,"makler_list")}function addUser(){var A=new Array(2);A[0]=false;A[1]=0;getHTMLSync("pages/makler_detail.jsp",null,"maklerEditContext",A);function B(){if(A[0]){getXMLtoForm("ajax/ajax.customers.jsp","activity=getnewuser",null,document.getElementById("formMaklerDetail"))}else{++A[1];if(A[1]<oneTick){window.setTimeout(B,tickCount)}else{fnDefaultTimeout("addUser|pages/makler_detail.jsp|getnewuser")}}}window.setTimeout(B,oneTick)}function editUser(B){var C=new Array(2);C[0]=false;C[1]=0;document.getElementById("maklerEditContext").style.display="";getHTMLSync("pages/makler_detail.jsp?activity=edit",null,"maklerEditContext",C);
function A(){if(C[0]){getXMLtoForm("ajax/ajax.customers.jsp","activity=getoneuser&u_id="+B,null,document.getElementById("formMaklerDetail"))}else{++C[1];if(C[1]<tickCount){window.setTimeout(A,oneTick)}else{fnDefaultTimeout("editUser|pages/makler_detail.jsp?activity=edit|u_id="+B)}}}window.setTimeout(A,oneTick)}function f_remove_user(A){if(window.confirm("Zru??i?? makl??ra?")){getXML("ajax/ajax.customers.jsp","activity=removeUser&u_id="+A,fnReceiveDefault)}}function fnChangeTariffModelNoRights(A){alert(A);window.document.location.reload(true)}function fnChangeTariffModel(A){fnOpenDefaultPopupWindow("popupTariff",-1,10+getScrollY(),680,650,"id_tariff_ie_worarround","pages/tariff.model.jsp","popupName=popupTariff&reload="+new String((A==undefined)?true:A),null,null,null,null)}function fnGetChecked(A,C){for(var B=0;B<A.length;++B){if(A[B].checked){return A[B].value}}return C}function fnTariffApply(A){if(fnGetChecked(A.tar_id,-1)==-1){alert("Vyberte, pros??m, tarif.")}else{getXML("ajax/ajax.customers.jsp","activity=setTariff&tar_id="+fnGetChecked(A.tar_id,-1)+"&popupName="+A.popupName.value+"&reload="+A.reload.value,fnReceiveDefault)
}return false}function fnCopyAddress(typ_,public_){var form_=document.getElementById((public_==undefined)?"userDetailForm":"editUserDetailForm");if(form_!=null){if(typ_=="billing"){with(form_){c_bill_name.value=c_name.value;c_bill_street.value=c_seat_street.value;c_bill_zip.value=c_seat_zip.value;c_bill_city.value=c_seat_city.value;c_bill_state.value=c_seat_state.value}}else{if(typ_=="post"){with(form_){c_post_name.value=c_bill_name.value;c_post_street.value=c_bill_street.value;c_post_zip.value=c_bill_zip.value;c_post_city.value=c_bill_city.value;c_post_state.value=c_bill_state.value}}}}}function fnRegistrationTypeChange(B){if(B.value=="person"){for(var A=1;A<5;++A){document.getElementById("id-tb-0"+A).style.display="none"}}else{for(var A=1;A<5;++A){document.getElementById("id-tb-0"+A).style.display=""}}}if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()
}deconcept.SWFObject=function(I,G,C,J,L,B,D,K,E,H){if(!document.getElementById){return }this.DETECT_KEY=H?H:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(I){this.setAttribute("swf",I)}if(G){this.setAttribute("id",G)}if(C){this.setAttribute("width",C)}if(J){this.setAttribute("height",J)}if(L){this.setAttribute("version",new deconcept.PlayerVersion(L.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(B){this.addParam("bgcolor",B)}var F=D?D:"high";this.addParam("quality",F);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var A=(K)?K:window.location;this.setAttribute("xiRedirectUrl",A);this.setAttribute("redirectUrl","");if(E){this.setAttribute("redirectUrl",E)}};deconcept.SWFObject.prototype={useExpressInstall:function(A){this.xiSWFPath=!A?"expressinstall.swf":A;
this.setAttribute("useExpressInstall",true)},setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]},addParam:function(A,B){this.params[A]=B},getParams:function(){return this.params},addVariable:function(A,B){this.variables[A]=B},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var B=new Array();var C;var A=this.getVariables();for(C in A){B.push(C+"="+A[C])}return B},getSWFHTML:function(){var D="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}D='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"';D+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var C=this.getParams();for(var A in C){D+=[A]+'="'+C[A]+'" '}var B=this.getVariablePairs().join("&");
if(B.length>0){D+='flashvars="'+B+'"'}D+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}D='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';D+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var C=this.getParams();for(var A in C){D+='<param name="'+A+'" value="'+C[A]+'" />'}var B=this.getVariablePairs().join("&");if(B.length>0){D+='<param name="flashvars" value="'+B+'" />'}D+="</object>"}return D},write:function(B){if(this.getAttribute("useExpressInstall")){var C=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(C)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var A=(typeof B=="string")?document.getElementById(B):B;A.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var B=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){B=new deconcept.PlayerVersion(A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(D){try{var C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");B=new deconcept.PlayerVersion([6,0,21]);C.AllowScriptAccess="always"}catch(D){if(B.major==6){return B}}try{C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(D){}}if(C!=null){B=new deconcept.PlayerVersion(C.GetVariable("$version").split(" ")[1].split(","))
}}return B};deconcept.PlayerVersion=function(A){this.major=A[0]!=null?parseInt(A[0]):0;this.minor=A[1]!=null?parseInt(A[1]):0;this.rev=A[2]!=null?parseInt(A[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false}if(this.major>A.major){return true}if(this.minor<A.minor){return false}if(this.minor>A.minor){return true}if(this.rev<A.rev){return false}return true};deconcept.util={getRequestParameter:function(D){var C=document.location.search||document.location.hash;if(C){var B=C.substring(1).split("&");for(var A=0;A<B.length;A++){if(B[A].substring(0,B[A].indexOf("="))==D){return B[A].substring((B[A].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var A=document.getElementsByTagName("OBJECT");for(var C=0;C<A.length;C++){A[C].style.display="none";for(var B in A[C]){if(typeof A[C][B]=="function"){A[C][B]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};
window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload)}if(Array.prototype.push==null){Array.prototype.push=function(A){this[this.length]=A;return this.length}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var mbank_myWinWidth=0;var mbank_myWinHeight=0;var mbank_myScrLeft=0;var mbank_myScrTop=0;var mbank_shown=0;var mbank_layer_timer=0;var mbank_dont_open=0;var mbank_open_timer=0;function mbank_keepOpen(){if(mbank_layer_timer!=0){clearTimeout(mbank_layer_timer);mbank_layer_timer=0}}function mbank_soonClose(){if(mbank_shown==1){if(mbank_layer_timer!=0){clearTimeout(mbank_layer_timer);mbank_layer_timer=0}mbank_layer_timer=setTimeout(mbank_ttHide,1000)}}function mbank_splash_DoFSCommand(B,A){if(B=="stop"){mbank_ttHide()}}function mbank_starter_DoFSCommand(B,A){if(B=="start"){mbank_showLay()}}function mbank_prepareOpen(){if(mbank_dont_open==1){return 
}if(mbank_open_timer==0){mbank_open_timer=setTimeout(mbank_showLay,500)}}function mbank_cancelOpen(){if(mbank_open_timer!=0){clearTimeout(mbank_open_timer);mbank_open_timer=0}}function mbank_showLay(){if(mbank_dont_open==1){return }if(mbank_layer_timer!=0){clearTimeout(mbank_layer_timer);mbank_layer_timer=0}if(mbank_shown==0){try{document.getElementById("csob_velky").style.display="block";document.getElementById("csob_maly").style.visibility="hidden";document.getElementById("id_td_0_0").style.visibility="hidden";document.getElementById("id_td_0_1").style.visibility="hidden";document.getElementById("id_td_0_2").style.visibility="hidden"}catch(A){}mbank_shown=1;mbank_layer_timer=setTimeout(mbank_ttHide,30000);try{if(document.attachEvent&&!window.opera){var C=document.getElementById("mbank_splash");var B=document.getElementById("mbank_starter");if(C){if(typeof C.GotoFrame!="undefined"){C.GoToFrame(0);C.Play();B.Stop()}}}}catch(A){}}}function mbank_ttHide(){if(mbank_shown==1){try{document.getElementById("csob_maly").style.visibility="visible";
document.getElementById("csob_velky").style.display="none";document.getElementById("id_td_0_0").style.visibility="visible";document.getElementById("id_td_0_1").style.visibility="visible";document.getElementById("id_td_0_2").style.visibility="visible"}catch(A){}setTimeout("mbank_shown=0;",1000);if(mbank_layer_timer!=0){clearTimeout(mbank_layer_timer);mbank_layer_timer=0}try{if(document.attachEvent&&!window.opera){var C=document.getElementById("mbank_splash");var B=document.getElementById("mbank_starter");if(C){if(typeof C.GotoFrame!="undefined"){B.GoToFrame(0);B.Play();C.Stop()}}}}catch(A){}}}function mbank_clrTimBL(){mbank_layer_timer=setTimeout(mbank_ttHide,30000)}var fo=null;var mbank_resizer_timer=0;var windowRealtyFilter=null;var formChanged=false;var formForGoogleMaps=null;var googleZoom=15;var offerAllowedEditExc=true;function fnAdvertisementDetailShow(id_loga_,id_workarround_,http_nazov_){var x_,y_;if(IE){x_=document.getElementById(id_workarround_).offsetLeft-30+"px";y_=document.getElementById(id_workarround_).offsetTop-54/2+"px"
}else{x_=document.getElementById(id_workarround_).offsetLeft-25-10+"px";y_=document.getElementById(id_workarround_).offsetTop-54/2-2+"px"}with(document.getElementById("id_spoj_na_adv").style){left=x_;top=y_}if(IE){x_=document.getElementById("id_zaciatok_prekryvu_adv").offsetLeft-6+"px";y_=document.getElementById("id_zaciatok_prekryvu_adv").offsetTop-25+"px"}else{x_=document.getElementById("id_zaciatok_prekryvu_adv").offsetLeft-12+"px";y_=document.getElementById("id_zaciatok_prekryvu_adv").offsetTop-18+"px"}with(document.getElementById("id_adv_show_bank_detail").style){left=x_;top=y_;display=""}if((http_nazov_!=null)&&(http_nazov_!="")){try{document.getElementById("id_adv_show_bank_detail_iframe").src=http_nazov_}catch(c){}}}function fnAdvertisementDetailHide(){try{document.getElementById("id_spoj_na_adv").style.display="none";document.getElementById("id_adv_show_bank_detail").style.display="none"}catch(A){}}function fnLoadRealtyFilter(){var A=new Array(2);A[0]=false;A[1]=0;getHTMLSync("pages/middle_realty_filter.jsp",null,"realtyFilter",A);
function B(){if(A[0]){getXMLtoForm("ajax/ajax.realty.jsp","activity=getFilter",null,document.getElementById("formRealtyFilter"))}else{++A[1];if(A[1]<tickCount){window.setTimeout(B,oneTick)}else{fnDefaultTimeout("ajax/ajax.realty.jsp|activity=getFilter")}}}window.setTimeout(B,oneTick)}function fnUploadImage(E,F){var D=(document.body.clientWidth-640)/2;var C=(document.body.clientHeight-240)/2;var B="resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no,directories=no,copyhistory=no,width=640,height=240,left="+D+",top="+C;var A=window.open("pages/upload_frame.jsp?offer_id="+F+"&online_u_id="+E,"uploder",B)}function fnUploadImageWindow(A,B){fnPopupAnyPage("pages/upload_frame.jsp","Vlo??i?? obr??zok","offer_id="+B+"&online_u_id="+A)}function fnUploadLogoImage(D){var A=(document.body.clientWidth-640)/2;var E=(document.body.clientHeight-240)/2;var C="resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no,directories=no,copyhistory=no,width=640,height=240,left="+A+",top="+E;var B=window.open("pages/c_upload_frame.jsp?c_id="+D,"uploder",C)
}function fnRealtyFilterApply(A){var B=setFormXML(A);getXML("ajax/ajax.realty.jsp","activity=applyEditFilter&xml="+B,fnReceiveDefault);return false}function fnAddRealty(A){var B=setFormXML(A);getXML("ajax/ajax.realty.jsp","activity=createRealty&xml="+B,fnReceiveDefault);return false}function fnEditRealty(C,B,A){formChanged=false;if((B==undefined)||(B==null)){B=C.substring(0,2)}fnOpenDefaultPopupWindow("popupRealtyEdit",-1,10+getScrollY(),984,652,"id_realty_edit_ie_worarround","pages/popup_realty_edit_1.jsp","popupName=popupRealtyEdit&offer_id="+C+"&offer_type="+B,"formRealtyEdit","ajax/ajax.realty.jsp","activity=getRealty&popupName=popupRealtyEdit&offer_id="+C+"&type="+B,"fnReloadImagesInEditDialog( '"+C+"', 'pages/' )")}function fnClosePopupAsk(A){var B=true;if(formChanged){B=confirm("??daje boli zmenen??, pokia?? ich teraz neulo????te, zmeny bud?? straten??.\nZatvori?? okno bez ulo??enia?")}if(B){fnClosePopup(A)}return B}function fnDeleteRealty(A,B){getXML("ajax/ajax.realty.jsp","activity=deleteRealty&offer_id="+A+"&popupName="+B,fnReceiveDefault)
}function fnReloadRealtyList(){if(document.getElementById("realtyList")!=null){getHTML("pages/middle_realty_list.jsp",null,"realtyList")}}function showRealtyDetail(A){window.open("pages/realty_preview.jsp?inv_num="+A,"InvoicePreview")}function fnReloadImagesInEditDialog(A,B){getHTML(((B!=undefined)?B:"")+"popup_realty_edit_1_images.jsp","offer_id="+A,"id_images_list")}function fnReloadImagesInRegisterDialog(C,A){var B=parent.document.getElementById("id_logo_image");if(B!=null){B.src="servlet/sk.indatex.tools.image.ImageSizerJimi?quality=1.0&maxWidth=110&maxHeight=63&fullpath="+C;parent.document.getElementById("id_btn_del_logo").style.display="";parent.document.getElementById("id_btn_add_logo").style.display="none";parent.document.getElementById("id_fil_path").value=C}}function fnRealtyDelLogo(){getXML("ajax/ajax.customers.jsp","activity=deletelogo&fil_path="+document.getElementById("id_fil_path").value,fnReceiveDefault);var A=parent.document.getElementById("id_logo_image");if(A!=null){A.src="images/spacer.gif";
parent.document.getElementById("id_btn_del_logo").style.display="none";parent.document.getElementById("id_btn_add_logo").style.display=""}}function fnShowPrintPreview(E,G){var F=800;var J=600;var C=(document.body.clientWidth-F)/2;var B=(document.body.clientHeight-J)/2;var D;try{D=(G)?"":"tex/"}catch(A){D="tex/"}var H="title=www.nehnutelnosti.sk - tla??,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=yes,location=no,directories=no,copyhistory=no,width="+F+",height="+J+",left="+C+",top="+B;var I=window.open(D+"print.jsp?id="+E,"print_preview",H)}function fnRealtyEditApply(A){A.offer_video.value=fnEncDec(A.offer_video.value,"enc");var B=setFormXML(A);if((A.offer_street.value==null)||(A.offer_street.value=="")||(A.offer_city.value==null)||(A.offer_city.value=="")){if(window.confirm("Nevyplnili ste ulicu a/alebo mesto - d??le??it?? ??daje pre vyh??ad??vanie a mapy.\nZap??sa?? inzer??t v tomto stave a zavrie?? okno?")){getXML("ajax/ajax.realty.jsp","activity=updateRealty&xml="+B,fnReceiveDefault)}}else{getXML("ajax/ajax.realty.jsp","activity=updateRealty&xml="+B,fnReceiveDefault)
}return false}function fnOnRealtyEditWindowClose(){fnClosePopup("popupNoScroll");fnReloadRealtyList()}function fnRealtyDelImage(A,B){getXML("ajax/ajax.realty.jsp","activity=deleteImage&offer_id="+A+"&path="+B,fnReceiveDefault)}function fnRealtyEditSort(A){getXML("ajax/ajax.realty.jsp","activity=changeSortOrder&column="+A,fnReceiveDefault)}function fnRealtyPublicSort(A){getXML("ajax/ajax.search.jsp","activity=changePublicSortOrder&column="+A,fnReceiveDefault)}function fnRealtyChangeImageAttributes(B,A,D,C){getXML("ajax/ajax.realty.jsp","activity=changeImageAttributes&offer_id="+B+"&fil_id="+A+"&set_default="+D+"&fil_desc="+C,fnReceiveDefault)}function fnShowFullImage(J,F,G,E,D){var H;var B,I;var K=-1,A=160+getScrollY();var C=document.getElementById("popupFullImagePreview");if(parseInt(F)>parseInt(G)){H=G/F;B=640;I=G*(B/F)}else{I=512;B=F*(I/G)}if(C.style.visibility=="visible"){K=C.offsetLeft;A=C.offsetTop}fnOpenDefaultPopupWindow("popupFullImagePreview",K,A,B,I,"id_full_image_preview_ie_worarround","pages/popup_full_image_preview.jsp","popupName=popupFullImagePreview&fil_path="+escape(J)+"&fil_width="+B+"&fil_height="+I+"&zoom="+E+"&fil_desc="+D,null,null,null,"document.getElementById('popupFullImagePreview').style.zIndex = (++zIndex);")
}function fnPublicRealtyDetailContext(D,B,C,A){fnContextMenuWindow(B.clientX,B.clientY,"pages/menu.realty.public.list.jsp?offer_id="+C+"&edit_rights="+A);return false}function fnPublicRealtyDetail(E,A){fnClosePopup("popupFullImagePreview");fnClosePopup("popupPublicRealtyDetail");if(A=="true"){fnLog(activeLayout+(((activeSubLayout!=null)&&(activeSubLayout!=""))?("/"+activeSubLayout):""),"offer_id:"+E,"detail_web");var F=800;var B=650;var D=(document.body.clientWidth-F)/2;var C=(document.body.clientHeight-B)/2;var G="title=Web Reality,resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=no,directories=no,copyhistory=no,width="+F+",height="+B+",left="+D+",top="+C;var I=window.open("pages/web_preview.jsp?offer_id="+E,"web_preview",G)}else{fnLog(activeLayout+(((activeSubLayout!=null)&&(activeSubLayout!=""))?("/"+activeSubLayout):""),"offer_id:"+E,"detail_window");var H=document.getElementById("popupPublicRealtyDetail");var D=-1,C=60+getScrollY();if(H.style.visibility=="visible"){D=H.scrollX;C=H.scrollY;
if(document.getElementById("popupFullImagePreview").style.visibility=="visible"){fnClosePopup("popupFullImagePreview")}}fnOpenDefaultPopupWindow("popupPublicRealtyDetail",D,C,900,650,"id_realty_detail_ie_worarround","pages/popup_realty_public.jsp","popupName=popupPublicRealtyDetail&offer_id="+E,null,null,null,"enableTooltip41Element( 'id_a_pss_icon' );")}}function fnShowLookupGoogleMapIndirect(form_){var width_=600;var height_=width_/1.61803+20;var left_=(screen.width-width_)/2;var top_=(screen.height-height_)/2;try{var winProperties="title=Google maps,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no,directories=no,copyhistory=no,width="+width_+",height="+height_+",left="+left_+",top="+top_;if(form_.offer_google_x.value==""){var location_="";var zoom_="15";with(form_){if((offer_street.value!="")&&(offer_city.value!="")){location_=encodeURI(offer_street.value+", "+offer_city.value+", "+combo_state.value)}else{if(offer_city.value!=""){location_=encodeURI(offer_city.value+", "+combo_state.value);
zoom_=11}}}if(location_!=""){var winId=window.open("pages/google_lookup.jsp?form_name="+form_.name+"&location="+location_+"&google_zoom="+zoom_,"google_lookup",winProperties)}else{var winId=window.open("pages/google_lookup.jsp?form_name="+form_.name+"","google_lookup",winProperties)}}else{var winId=window.open("pages/google_lookup.jsp?form_name="+form_.name+"&google_x="+form_.offer_google_x.value+"&google_y="+form_.offer_google_y.value+"&google_zoom="+form_.offer_google_zoom.value,"google_lookup",winProperties)}}catch(e){}}function fnShowWindowedMapPreview(A){if(IE){fnShowMapPreview_as_browser_window(A)}else{fnShowMapPreview(A)}}function fnShowMapPreview_as_browser_window(E){var H=640;var A=420;var C=(screen.width-H)/2;var B=(screen.height-A)/2;try{var G="title=Google maps,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no,directories=no,copyhistory=no,width="+H+",height="+A+",left="+C+",top="+B;var F=window.open("pages/google_inside.jsp?offer_id="+E,"google_preview",G)}catch(D){}}function fnShowMapPreview(B){if(IE){fnShowMapPreview_as_browser_window(B);
return }var C=614;var D=420;var A=(document.body.clientWidth-C)/2;var E=120+getScrollY();fnOpenDefaultPopupWindow("popupGooglePreview",-1,E,C,D,"id_google_ie_worarround","pages/google.jsp","popupName=popupGooglePreview&offer_id="+B,null,null,null,"document.getElementById('popupGooglePreview').style.zIndex = (++zIndex);")}function fnDisplaySmallPreview(obj_,text_obj_){var smallWindow=document.getElementById("popupSmallPreview");if(smallWindow==null){return }smallWindow.innerHTML=text_obj_.innerHTML+'<br/><iframe id ="id_small_preview_IE_workarround" marginheight="0" frameborder="0" marginwidth="0" style="background-color: transparent; position: absolute; z-index:-100001; visibility:visible;"/>';with(smallWindow.style){top=(fnFindPosY(obj_)+obj_.offsetHeight-14)+"px";left=(fnFindPosX(obj_)-smallWindow.offsetWidth+5)+"px";width=360-42-18-40+"px";height=220-27-10-12+"px";zIndex=100001;backgroundImage="";visibility="visible"}if(false){with(document.getElementById("id_small_preview_IE_workarround").style){top="5px";
height=document.getElementById("popupSmallPreview").offsetHeight-11+"px";width=document.getElementById("popupSmallPreview").offsetWidth-4+"px";visibility="visible"}}else{document.getElementById("id_small_preview_IE_workarround").style.visibility="hidden"}}function fnHideSmallPreview(){document.getElementById("popupSmallPreview").style.visibility="hidden"}function fnFaderUpActiveVisitedIEExt(G,H,F,A,B){if(((B>0)&&(A<=100))||((A>=0)&&(B<0))){var C=document.getElementById(G);if(C==null){return }var E=document.getElementById(H);E.style.display="";E.style.opacity=A/100;E.style.MozOpacity=A/100;E.style.filter="alpha(opacity="+A+")";setTimeout("fnFaderUpActiveVisitedIEExt('"+G+"','"+H+"','"+F+"',"+(A+B*4)+", "+B+")",60)}else{if(A>=100){document.getElementById(H).style.display="none";getHTML(F,null,G);setTimeout("fnFaderUpActiveVisitedIEExt('"+G+"','"+H+"','"+F+"',0,1)",13000)}else{try{document.getElementById(H).style.display="none"}catch(D){}}}}function fnFaderUpActiveVisitedExt(G,C,B,D,E){if(((E>0)&&(D<=100))||((D>=0)&&(E<0))){try{var F=document.getElementById(G);
if(F==null){return }F.style.opacity=D/100;F.style.MozOpacity=D/100;F.style.filter="alpha(opacity="+D+")"}catch(A){}setTimeout("fnFaderUpActiveVisitedExt('"+G+"','"+C+"','"+B+"',"+(D+3*E)+","+E+")",75);window.status=D}else{if(E<0){getHTML(B,null,G);setTimeout("fnFaderUpActiveVisitedExt('"+G+"','"+C+"','"+B+"',0,1)",10);setTimeout("fnFaderUpActiveVisitedExt('"+G+"','"+C+"','"+B+"',75,-1)",13000)}}}function fnEnable_id_actualy_visited_panorama_tableExt(){try{document.getElementById("id_actualy_visited_panorama_table").style.visibility=""}catch(A){setTimeout("fnEnable_id_actualy_visited_panorama_table()",10)}}function fnReloadActiveVisitedExt(B,C,A){try{if(B==null){return }getHTML(B,null,C);if(IE){setTimeout("fnFaderUpActiveVisitedIEExt('"+C+"','"+A+"','"+B+"',0,1)",13000)}else{setTimeout("fnFaderUpActiveVisitedExt('"+C+"','"+A+"','"+B+"',100,-1)",13000)}}catch(D){}}function fnDisplaySmallPreviewRight(obj_,text_obj_){var smallWindow=document.getElementById("popupSmallPreviewRight");if(smallWindow==null){return }smallWindow.innerHTML=text_obj_.innerHTML;
with(smallWindow.style){top=(fnFindPosY(obj_)+obj_.offsetHeight-14)+"px";left=(fnFindPosX(obj_)+obj_.offsetWidth-5)+"px";width=360-42-18-40+"px";height=220-27-10-12+"px";zIndex=100001;backgroundImage="";visibility="visible"}if(false){with(document.getElementById("id_small_preview_IE_workarround").style){top="5px";height=document.getElementById("popupSmallPreview").offsetHeight-11+"px";width=document.getElementById("popupSmallPreview").offsetWidth-4+"px";visibility="visible"}}else{}}function fnHideSmallPreviewRight(){document.getElementById("popupSmallPreviewRight").style.visibility="hidden"}function fnGetRegion(A){getXML("ajax/ajax.realty.jsp","activity=getRegion&m_okres="+A,fnReceiveDefault)}function fnCheckAndCheck(A,B){for(var C=0;C<A.length;++C){if(A.options[C].value==B){A.options.selectedIndex=C;return }}}function fnOnCityPartChange(A){document.getElementById("id_combo_state").value="Slovensko";document.getElementById("id_offer_city_part").value=A.value;var C=null;var B=A.options[A.selectedIndex].text;if(B.indexOf("BA:")==0){C="Okres Bratislava ";
if(B.indexOf("??u??ovo")>=0){C+="V"}else{if(B.indexOf("Dev??n")>=0){C+="IV"}else{if(B.indexOf("D??bravka")>=0){C+="IV"}else{if(B.indexOf("Karlova")>=0){C+="IV"}else{if(B.indexOf("Lama??")>=0){C+="IV"}else{if(B.indexOf("Nov??")>=0){C+="III"}else{if(B.indexOf("Petr??alka")>=0){C+="V"}else{if(B.indexOf("Biskupice")>=0){C+="II"}else{if(B.indexOf("Pohrani")>=0){C+="V"}else{if(B.indexOf("Jarovce")>=0){C+="V"}else{if(B.indexOf("Ra??a")>=0){C+="III"}else{if(B.indexOf("Ru??inov")>=0){C+="II"}else{if(B.indexOf("Star??")>=0){C+="I"}else{if(B.indexOf("Vajnory")>=0){C+="III"}else{if(B.indexOf("Vraku??a")>=0){C+="II"}else{if(B.indexOf("Z??horsk??")>=0){C+="IV"}else{C+="I"}}}}}}}}}}}}}}}}document.getElementById("id_offer_city").value="Bratislava";fnReloadDistricts(document.getElementById("id_combo_state").value,C);fnGetRegion(C)}else{if(B.indexOf("NR:")==0){document.getElementById("id_offer_city").value="Nitra";fnReloadDistricts(document.getElementById("id_combo_state").value,"Nitra");fnGetRegion("Nitra")}else{if(B.indexOf("TN:")==0){document.getElementById("id_offer_city").value="Tren????n";
fnReloadDistricts(document.getElementById("id_combo_state").value,"Tren????n");fnGetRegion("Tren????n")}else{if(B.indexOf("TT:")==0){document.getElementById("id_offer_city").value="Trnava";fnReloadDistricts(document.getElementById("id_combo_state").value,"Trnava");fnGetRegion("Trnava")}else{if(B.indexOf("BB:")==0){document.getElementById("id_offer_city").value="Bansk?? Bystrica";fnReloadDistricts(document.getElementById("id_combo_state").value,"Bansk?? Bystrica");fnGetRegion("Bansk?? Bystrica")}else{if(B.indexOf("ZA:")==0){document.getElementById("id_offer_city").value="??ilina";fnReloadDistricts(document.getElementById("id_combo_state").value,"??ilina");fnGetRegion("??ilina")}else{if(B.indexOf("PO:")==0){document.getElementById("id_offer_city").value="Pre??ov";fnReloadDistricts(document.getElementById("id_combo_state").value,"Pre??ov");fnGetRegion("Pre??ov")}else{if(B.indexOf("KE:")==0){document.getElementById("id_offer_city").value="Ko??ice";fnReloadDistricts(document.getElementById("id_combo_state").value,"Ko??ice");
fnGetRegion("Ko??ice")}}}}}}}}}function fnRequestForContact(A){fnOpenDefaultPopupWindow("popupContact",-1,140+getScrollY(),535,600,"id_contact_ie_worarround","pages/popup_contact.jsp","popupName=popupContact&offer_id="+A+"&typ=contact",null,null,null,"document.getElementById('popupContact').style.zIndex = (++zIndex); with (document.getElementById('idformNapiste')) { txt.value=''; txt.focus(); }")}function fnRequestForContactApply(A){var B=setFormXML(A);getXML("ajax/ajax.mail.jsp","popupName=popupRegister&activity=contact&xml="+B,fnReceiveDefault);return false}function fnSendTip(A){fnOpenDefaultPopupWindow("popupContact",-1,140+getScrollY(),535,600,"id_contact_ie_worarround","pages/popup_contact.jsp","popupName=popupContact&offer_id="+A+"&typ=tip",null,null,null,"document.getElementById('popupContact').style.zIndex = (++zIndex); with (document.getElementById('idformNapiste')) { txt.value=''; emailZnamy.focus(); }")}function fnSendTipApply(A){var B=setFormXML(A);getXML("ajax/ajax.mail.jsp","popupName=popupRegister&activity=tip&xml="+B,fnReceiveDefault);
return false}function fnStateChanged(A){fnReloadDistricts(A);document.getElementById("id_offer_region").value="";document.getElementById("id_offer_city").value="";document.getElementById("id_offer_city_part").value="";document.getElementById("id_combo_city_parts").value=""}function fnReloadDistricts(A,B){var C=new Array(2);C[0]=false;C[1]=0;getHTMLSync("pages/get_districts_in_edit_box.jsp","m_stat="+A+((B==undefined)?"":("&selected="+B)),"id_combo_sistricts_parent_element",C);function D(){if(C[0]){}else{++C[1];if(C[1]<tickCount){window.setTimeout(D,oneTick)}else{fnDefaultTimeout("fnStateChanged( '"+A+"' )")}}}window.setTimeout(D,oneTick)}function searchForPlaceInGoogleMaps(latLng_){var google_x,google_y,zoom;if((latLng_!=undefined)&&(latLng_!=null)){with(formForGoogleMaps){offer_google_x.value=latLng_.lat();offer_google_y.value=latLng_.lng();offer_google_zoom.value=googleZoom}}formForGoogleMaps.btn_update_nehnutelnost.value=" Ulo??i?? zmeny a zatvori??! ";var docXML=setFormXML(formForGoogleMaps);getXML("ajax/ajax.realty.jsp","activity=updateRealty&xml="+docXML,fnReceiveDefault)
}function fnGoogleMapsSearchPos(form_){try{var position=new GClientGeocoder();var location_;googleZoom=15;with(form_){if((offer_street.value!="")&&(offer_city.value!="")){location_=offer_street.value+", "+offer_city.value+", "+combo_state.value}else{if(offer_city.value!=""){location_=offer_city.value+", "+combo_state.value;googleZoom=11}}}formForGoogleMaps=form_;position.getLatLng(location_,searchForPlaceInGoogleMaps)}catch(c){}}function searchForPlaceInGoogleMapsRepair(A,C,B){if(A!=null){getXML("../ajax/ajax.others.jsp","activity=updateRealtyRepairMap&offer_id="+C+"&lat="+A.lat()+"&lng="+A.lng()+"&zoom="+B,fnReceiveDefault)}}function fnGoogleMapsSearchPosRepair(D,C,E,F){try{var B=new GClientGeocoder();var G="";googleZoom=14;if((F!="")&&(E!="")){G=F.substring(0,F.length-2)+", "+E+", "+C}else{if(E!=""){G=E+", "+C;googleZoom=11}}B.getLatLng(G,function(H){searchForPlaceInGoogleMapsRepair(H,D,googleZoom)})}catch(A){}}function fnOnCloseOfferDetail(A){getXML("ajax/ajax.others.jsp","activity=OnCloseOfferDetail&id="+A,fnReceiveDefault)
}function fnShowPopupChart(C,B,A){fnOpenDefaultPopupWindow("popupChart",-1,110+getScrollY(),616,440,"id_chart_ie_worarround","pages/popup_chart.jsp","popupName=popupChart&offer_id="+C,null,null,null,"document.getElementById('popupChart').style.zIndex = (++zIndex);fnShowChartObject('"+C+"','"+B+"','"+A+"');")}function fnShowChartObject(B,C,A){if(A==undefined){getHTML("pages/chart_object.jsp","id="+B+"&date="+C,"id_chart_object")}else{getHTML("pages/chart_object.jsp","id="+B+"&year="+C+"&month="+A,"id_chart_object")}}function fnMenuGroupOperations(A){fnContextMenuWindow(A.clientX,A.clientY,"pages/menu.offers.group.operations.jsp")}function fnDoGroupOperations(D){var A=document.getElementById("id_formOfferGroupActions");var B="'-1'";if("check_all"==D){for(var C=0;C<A.elements.length;++C){if(A.elements[C].type=="checkbox"){A.elements[C].checked=true}}}else{if("uncheck_all"==D){for(var C=0;C<A.elements.length;++C){if(A.elements[C].type=="checkbox"){A.elements[C].checked=false}}}else{if("invert_all"==D){for(var C=0;
C<A.elements.length;++C){if(A.elements[C].type=="checkbox"){A.elements[C].checked=(!A.elements[C].checked)}}}else{if("delete_checked"==D){for(var C=0;C<A.elements.length;++C){if((A.elements[C].type=="checkbox")&&(A.elements[C].checked)){B+=", '"+A.elements[C].value+"'"}}if((B!="'-1'")&&(window.confirm("Naozaj vymaza?? vybran?? nehnute??nosti?"))){getXML("ajax/ajax.realty.jsp","activity="+D+"&offer_id_group="+B,fnReceiveDefault)}}else{for(var C=0;C<A.elements.length;++C){if((A.elements[C].type=="checkbox")&&(A.elements[C].checked)){B+=", '"+A.elements[C].value+"'"}}getXML("ajax/ajax.realty.jsp","activity="+D+"&offer_id_group="+B,fnReceiveDefault)}}}}}function fnPageMovePrivate(direction_,form_){var aktualnaStrankaPrivate_=null;aktualnaStrankaPrivate_=form_.aktualnaStrankaPrivate.value;if(isNaN(form_.aktualnaStrankaPrivate.value)||(form_.aktualnaStrankaPrivate.value=="")||(form_.aktualnaStrankaPrivate.value<1)||(form_.aktualnaStrankaPrivate.value>1*form_.total_pages_private.value)){aktualnaStranka_=form_.aktualnaStrankaPrivate.value=form_.actual_page_private.value;
return false}if(((direction_=="down")&&(1*form_.actual_page_private.value>=1*form_.total_pages_private.value))||((direction_=="up")&&(1*form_.actual_page_private.value<=1))){}else{if(((direction_=="home")&&(1*form_.actual_page_private.value<=1))||((direction_=="end")&&(1*form_.actual_page_private.value>=1*form_.total_pages_private.value))){}else{with(form_){if(document.getElementById("id_td_aktualnaStrankaPrivate")!=null){document.getElementById("id_td_aktualnaStrankaPrivate").innerHTML="<img align='left' src='images/working.gif' alt='' /><img src='images/spacer.gif' width='20' height='8'/>"}getXML("ajax/ajax.realty.jsp","activity=changepage&direction="+direction_+"&rows_per_page="+rows_per_page_private.value+"&new_page="+aktualnaStrankaPrivate_,fnReceiveDefault)}}}return false}var chatParams={};chatParams.interval=5000;chatParams.userInterval=30000;function fnReloadChatListRealty(){if(document.getElementById("chatListRealty")!=null){getHTML("pages/middle_chat_list_realty.jsp",null,"chatListRealty")}}function fnReloadChatListFree(){if(document.getElementById("chatListFree")!=null){getHTML("pages/middle_chat_list_free.jsp",null,"chatListFree")
}}function fnOpenRealtyChat(A,B,C){fnOpenFreeChatPopup(A,B,C)}function fnOpenFreeChatPopup(A,D,E){var B=((D==undefined)||(D==null))?"1":D;var C=((E==undefined)||(E==null))?null:E;fnOpenDefaultPopupWindow("popupChatFree"+B,-1,10+getScrollY(),600,460,"id_free_chat_window_ie_worarround_"+B,"pages/popup_free_chat.jsp","popupName=popupChatFree"+B+"&chr_id="+A+"&wnd="+B+"&title="+C,null,null,null,"")}function fnChatSendText(B){var C=setFormXML(B);var A=B.chr_id.value;getXML("ajax/ajax.chat.jsp","activity=addmsg&xml="+C,fnReceiveDefault);clearForm(B);B.chr_id.value=A;return false}function fnReloadChatContent(C,A){try{var D=document.getElementById("chatMsgList"+C),B;B=D.innerHTML;getHTML("ajax/ajax.chat.jsp","activity=updateList&wnd="+C+"&chr_id="+A,"chatMsgList"+C);getHTML("ajax/ajax.chat.jsp","activity=onlineChatRoomUsers&wnd="+C+"&chr_id="+A,"chatroomUsersList"+C)}catch(E){}}function fnChangeNickName(){getXML("ajax/ajax.chat.jsp","activity=changeNickName",fnReceiveDefault)}function fnSendPrivateMessage(form_,nick_,c_id_,u_id_){with(document.getElementById(form_)){u_id_to.value=u_id_;
c_id_to.value=c_id_;u_nick_to.value=nick_}}function fnCreateNewChatRoom(A){var B=setFormXML(A);getXML("ajax/ajax.chat.jsp","activity=addChatRoom&xml="+B,fnReceiveDefault);return false}function fnOpenNewChatRoomWindow(){fnOpenDefaultPopupWindow("popupNewChatRoom",-1,110+getScrollY(),616,440,"id_new_chat_room_ie_worarround","pages/popup_vytvorit_chat_room.jsp","popupName=popupNewChatRoom",null,null,null,"document.getElementById('popupNewChatRoom').style.zIndex = (++zIndex);")}function fnCheckRealtyChatNewMessage(A){getHTML("pages/get_chat_new_msgs.jsp","chr_id="+A,"id_display_new_chat_msgs")}function fnLoadInvoiceFilter(){var A=new Array(2);A[0]=false;A[1]=0;getHTMLSync("pages/middle_inv_filter.jsp",null,"invFilter",A);function B(){if(A[0]){getXMLtoForm("ajax/ajax.invoices.jsp","activity=getFilter",null,document.getElementById("formInvFilter"))}else{++A[1];if(A[1]<oneTick){window.setTimeout(B,tickCount)}else{alert("Do??lo k chybe po??as ????tania d??t zo servera, sk??ste nesk??r, pros??m.")}}}window.setTimeout(B,oneTick)
}function fnOrderCredits(A){getXML("ajax/ajax.invoices.jsp","activity=createProFA&pr_id="+A,fnReceiveDefault);return false}function fnOrderCreditsFree(B){var C=B;try{C*=1;if(isNaN(C)||(C<10)){alert("Uve??te po??et kreditov ako kladn?? cel?? ????slo,\ns hodnotou aspo?? 10, pros??m!")}else{getXML("ajax/ajax.invoices.jsp","activity=createProFAFree&sum="+B,fnReceiveDefault)}}catch(A){alert("Uve??te po??et kreditov ako kladn?? cel?? ????slo,\ns hodnotou aspo?? 10, pros??m!")}return false}function fnReloadInvoiceList(){getHTML("pages/middle_inv_list.jsp",null,"invList")}function showInvoiceDetail(A){window.open("pages/invoice_preview.jsp?inv_num="+A,"InvoicePreview")}function fnRecalcHypoCalc(D,E){var G=D.hypo_years_txt.value;var C=D.hypo_ammount_txt.value;var A=D.hypo_ammount_skk_txt.value;var B=D.hypo_rate_txt.value;var F=D.suffix_hypocalc_popup.value;if(E==undefined){getHTML("pages/get_hypo_calc.jsp","roky="+G+"&suma="+C+"&urok="+B+"&suffix_hypocalc_popup="+F,"id_hypo_monthly")}else{if(E=="SKK"){getHTML("pages/get_hypo_calc.jsp","roky="+G+"&suma_skk="+A+"&urok="+B+"&suffix_hypocalc_popup="+F,"id_hypo_monthly")
}else{if(E=="EUR"){getHTML("pages/get_hypo_calc.jsp","roky="+G+"&suma="+C+"&urok="+B+"&suffix_hypocalc_popup="+F,"id_hypo_monthly")}else{if(E=="abs"){getHTML("../pages/get_hypo_calc.jsp","roky="+G+"&suma="+C+"&urok="+B+"&suffix_hypocalc_popup="+F,"id_hypo_monthly")}else{if(E=="SKKabs"){getHTML("../pages/get_hypo_calc.jsp","roky="+G+"&suma_skk="+A+"&urok="+B+"&suffix_hypocalc_popup="+F,"id_hypo_monthly")}else{if(E=="EURabs"){getHTML("../pages/get_hypo_calc.jsp","roky="+G+"&suma="+C+"&urok="+B+"&suffix_hypocalc_popup="+F,"id_hypo_monthly")}else{getHTML("pages/get_hypo_calc.jsp","roky="+G+"&suma_skk="+A+"&urok="+B+"&suffix_hypocalc_popup="+F,"id_hypo_monthly")}}}}}}return false}function fnConvertTypeChanged(B){var C=document.getElementById("id_course_from_txt");var A=document.getElementById("id_course_to_txt");if(B.convert_type.value=="SKK2EUR"){C.innerHTML="SKK:";A.innerHTML="??? (eur):"}else{if(B.convert_type.value=="EUR2SKK"){C.innerHTML="??? (eur):";A.innerHTML="SKK:"}else{if(B.convert_type.value=="SKK2USD"){C.innerHTML="SKK:";
A.innerHTML="$ (usd):"}else{if(B.convert_type.value=="USD2SKK"){C.innerHTML="$ (usd):";A.innerHTML="SKK:"}else{if(B.convert_type.value=="SKK2GBP"){C.innerHTML="SKK:";A.innerHTML="? (gbp):"}else{if(B.convert_type.value=="GBP2SKK"){C.innerHTML="? (gbp):";A.innerHTML="SKK:"}}}}}}fnConvertCalc(B)}function fnConvertCalc(A){getHTML("pages/get_conversion.jsp","convert_type="+A.convert_type.value+"&course_from="+A.course_from.value,"id_course_to")}function fnChangeInvItemTextOnPlace(B,C){var A=window.prompt("Uprav text polo??ky fakt??ry",B);if(A!=null){getXML("../ajax/ajax.invoices.jsp","activity=changeInvItemTextOnPlace&ii_id="+C+"&txt="+A,fnReceiveDefault)}}function fnChangeInvItemUnitPriceOnPlace(A,B,D){var C=window.prompt("Uprav jednotkov?? cenu polo??ky fakt??ry",A);if(C!=null){getXML("../ajax/ajax.invoices.jsp","activity=changeInvItemUnitPriceOnPlace&ii_id="+B+"&txt="+C+"&inv_num="+D,fnReceiveDefault)}}function fnChangeInvFieldOnPlace(E,D,A,C){var B=window.prompt(C,A);if(B!=null){getXML("../ajax/ajax.invoices.jsp","activity=changeInvFieldOnPlace&field_name="+D+"&new_value="+B+"&inv_num="+E,fnReceiveDefault)
}}function fnAddInvItemOnPlace(A){getXML("../ajax/ajax.invoices.jsp","activity=addInvItemOnPlace&inv_num="+A,fnReceiveDefault)}function fnDelInvItemOnPlace(A,B){if(window.confirm("Zru??i???")){getXML("../ajax/ajax.invoices.jsp","activity=delInvItemOnPlace&ii_id="+A+"&inv_num="+B,fnReceiveDefault)}}var calendarClickCounter=0;function fnShowHighlightsList(A){fnOpenDefaultPopupWindow("popupHighlights",-1,50+getScrollY(),640,525,"id_hightlights_ie_worarround","pages/highlights_list.jsp","popupName=popupHighlights&offer_id="+A,"formHighlightsList","ajax/ajax.advertisement.jsp","activity=getAddNewHighlight&popupName=popupHighlights&offer_id="+A,"document.getElementById('popupHighlights').style.zIndex = (++zIndex);")}function fnShowCalendar(B,C,A,D){calendarClickCounter=0;fnOpenDefaultPopupWindow("popupCalendar",-1,90+getScrollY(),600,375,"id_hightlights_calendar_ie_worarround","pages/highlights_calendar.jsp","popupName=popupCalendar&offer_id="+B+"&adv_id="+C,null,null,null,"document.getElementById('popupCalendar').style.zIndex = (++zIndex);fnShowCalendarObject('"+B+"','"+C+"',"+A+","+D+",'','');");
return false}function fnShowCalendarObject(A,C,F,D,B,E){getHTML("pages/highlights_visual_calendar.jsp","offer_id="+A+"&adv_id="+C+"&year="+F+"&month="+D+"&cal_date_from="+((B==undefined)?"":B)+"&cal_date_to="+((E==undefined)?"":E),"id_calendar_object")}function fnSetCalendarObjectDate(D,G,C,A,E,B,F){if((++calendarClickCounter)%2==0){fnShowCalendarObject(D,G,C,A,E,F)}else{fnShowCalendarObject(D,G,C,A,F,(calendarClickCounter==1)?F:B)}}function fnChangeHightlightPreview(A){var C="id_preview_"+A.value;var E=document.getElementById(C);var B;if(E!=null){B=E.parentNode;for(var D=0;D<B.childNodes.length;++D){if(B.childNodes[D].tagName=="DIV"){B.childNodes[D].style.display="none"}}E.style.display=""}}function fnOrderAdvertisement(A){var B=setFormXML(A);getXML("ajax/ajax.advertisement.jsp","activity=order_advertisement&xml="+B,fnReceiveDefault);return false};