function select_type(form){var linkList=form.search_type.selectedIndex
if(linkList!="all"){xajax_SEARCH_SUBSELECT(form.search_type.options[linkList].value);}
else{$("#region_DIV").addClass("hidden");$("#province_DIV").addClass("hidden");$("#zone_DIV").addClass("hidden");$("#city_DIV").addClass("hidden");$("#village_DIV").addClass("hidden");};}
function select_ptype(form){var linkList=form.proptype.selectedIndex
if(linkList!="0"){xajax_SEARCH_VALUE_RENT(form.proptype.options[linkList].value);}
else{$("#SEARCH_CLASS_PRICE").html("Gelieve eerst uw actie te selecteren");$("#SEARCH_CLASS_RENT").html("Gelieve eerst uw actie te selecteren");};}
$().ready(function(){$.historyInit(callback);$("img[id*='changepic']").live('click',function(){var id=this.id.split("|");$('#'+id[2]).attr('src','/files/'+id[1]+'/gallery/'+id[3]);})
$("div[id*='MORE_INFO'],td[id*='MORE_INFO'],span[id*='MORE_INFO']").live('click',function(){var btype=this.id.split("|")[1];var cibid=this.id.split("|")[2];window.location.href='#OFFERS_TITLE_anchor';location.replace('#HISTORY|'+cibid+'|'+btype);var nl=$('#lang_nl').attr('href');var fr=$('#lang_fr').attr('href');nl=nl.split('#')[0];fr=fr.split('#')[0];$('#lang_nl').attr('href',nl+'#HISTORY|'+cibid+'|'+btype);$('#lang_fr').attr('href',fr+'#HISTORY|'+cibid+'|'+btype);});$("div[id*=backtolist]").live('click',function(){var cibid=document.title.split(" - ")[1];if(!cibid){return false;}
document.title=document.title.split(" - ")[0];$("tr[id*='navbar_']").show();$("tr[id*='navbar2_']").hide();$("table[id*='item_']").each(function(){$(this).show();});$("td[id*='OFFERS_MOREINFO_']").each(function(){$(this).html("");});$("td[id*='MORE_INFO']").removeClass("bg_bm wt");$("#MORE_INFO\\|pictures\\|"+cibid).removeClass("bg_bm wt");$("#item_"+cibid).addClass("border_bm");window.location='#'+cibid;$("#MORE_INFO\\|"+cibid+"\\|LINE1").addClass("hidden");$("#MORE_INFO\\|"+cibid+"\\|LINE2").addClass("hidden");$("#MORE_INFO\\|"+cibid+"\\|LINE3").addClass("hidden");$("#MORE_INFO\\|"+cibid+"\\|MINILINE1").addClass("hidden");$("#MORE_INFO\\|"+cibid+"\\|MINILINE2").addClass("hidden");$("#MORE_INFO\\|"+cibid+"\\|MINILINE3").addClass("hidden");$("#MORE_INFO\\|"+cibid+"\\|MINILINE1").removeClass("miniline");$("#MORE_INFO\\|"+cibid+"\\|MINILINE2").removeClass("miniline");$("#MORE_INFO\\|"+cibid+"\\|MINILINE3").removeClass("miniline");$("table[id*='top_']").each(function(){if(this.id!="top_"+cibid){$(this).show();};});})
$("div[id*=listhdr]").click(function(){var other=this.id.split("|")[2];var name=this.id.split("|")[1];$("div[id*='"+name+"_DIV']").show();if(other){$("div[id*='"+other+"_DIV']").hide();};})
$("span[id*='changeimage']").live('click',function(){var cibid=this.id.split("|")[1];var img_id=this.id.split("|")[2];$("#image_"+cibid+"_1").hide();$("#image_"+cibid+"_2").hide();$("#image_"+cibid+"_3").hide();$("#image_"+cibid+"_4").hide();$("#image_"+cibid+"_5").hide();$("#image_"+cibid+"_6").hide();$("#image_"+cibid+"_"+img_id).show();$("#changeimage\\|"+cibid+"\\|1").attr("class","numbers hand grm");$("#changeimage\\|"+cibid+"\\|2").attr("class","numbers hand grm");$("#changeimage\\|"+cibid+"\\|3").attr("class","numbers hand grm");$("#changeimage\\|"+cibid+"\\|4").attr("class","numbers hand grm");$("#changeimage\\|"+cibid+"\\|5").attr("class","numbers hand grm");$("#changeimage\\|"+cibid+"\\|6").attr("class","numbers hand grm");$("#changeimage\\|"+cibid+"\\|"+img_id).removeClass("hand grm");});$("span[id*=iframe]").live('click',function(){var link=$("#fiche").attr('src');var file=this.id.split("|")[1];var lang=this.id.split("|")[2];link=link.split("/");$("#fiche").attr('src','/'+link[1]+'/'+link[2]+'/folder_'+lang+'/'+file);});});function clickit(cibid,btype){if($("#MORE_INFO\\|"+cibid+"\\|LINE1").hasClass("hidden")){$("#MORE_INFO\\|"+cibid+"\\|LINE1").removeClass("hidden");$("#MORE_INFO\\|"+cibid+"\\|LINE2").removeClass("hidden");$("#MORE_INFO\\|"+cibid+"\\|LINE3").removeClass("hidden");$("#MORE_INFO\\|"+cibid+"\\|MINILINE1").removeClass("hidden");$("#MORE_INFO\\|"+cibid+"\\|MINILINE2").removeClass("hidden");$("#MORE_INFO\\|"+cibid+"\\|MINILINE3").removeClass("hidden");$("#MORE_INFO\\|"+cibid+"\\|MINILINE1").addClass("miniline");$("#MORE_INFO\\|"+cibid+"\\|MINILINE2").addClass("miniline");$("#MORE_INFO\\|"+cibid+"\\|MINILINE3").addClass("miniline");}
$("td[id*='MORE_INFO']").removeClass("bg_bm wt");$("#MORE_INFO\\|"+btype+"\\|"+cibid).addClass("bg_bm wt");$("tr[id*='navbar_']").hide();$("tr[id*='navbar2_']").show();$("table[id*='item_']").each(function(){if(this.id!="item_"+cibid){$(this).hide();};$(this).removeClass("border_bm");});$("table[id*='top_']").each(function(){if(this.id!="top_"+cibid){$(this).hide();};});if(btype=="contact_mngr"){$('#needhelp_dialog').dialog('open');}
else{xajax_ITEM_INFO(btype,cibid);}
var title=document.title.split(" - ")[0];document.title=title+" - "+cibid;}
function callback(hash){if(hash.split('|')[0]=='HISTORY'){clickit(hash.split('|')[1],hash.split('|')[2]);return true;}
if(hash==''){$('#backtolist_1').click();return true;}
if(hash[0]+hash[1]=='GM'&&document.title.split(" - ")[1]){$('#backtolist_1').click();return true;}
return false;};jQuery.extend({historyCurrentHash:undefined,historyCallback:undefined,historyIframeSrc:undefined,historyInit:function(callback,src){jQuery.historyCallback=callback;if(src)jQuery.historyIframeSrc=src;var current_hash=location.hash.replace(/\?.*$/,'');jQuery.historyCurrentHash=current_hash;if(jQuery.historyNeedIframe){if(jQuery.historyCurrentHash==''){jQuery.historyCurrentHash='#';}
jQuery("body").prepend('<iframe id="jQuery_history" style="display: none;"'+' src="javascript:false;"></iframe>');var ihistory=jQuery("#jQuery_history")[0];var iframe=ihistory.contentWindow.document;iframe.open();iframe.close();iframe.location.hash=current_hash;}
else if(jQuery.browser.safari){jQuery.historyBackStack=[];jQuery.historyBackStack.length=history.length;jQuery.historyForwardStack=[];jQuery.lastHistoryLength=history.length;jQuery.isFirst=true;}
if(current_hash)
jQuery.historyCallback(current_hash.replace(/^#/,''));setInterval(jQuery.historyCheck,100);},historyAddHistory:function(hash){jQuery.historyBackStack.push(hash);jQuery.historyForwardStack.length=0;this.isFirst=true;},historyCheck:function(){if(jQuery.historyNeedIframe){var ihistory=jQuery("#jQuery_history")[0];var iframe=ihistory.contentDocument||ihistory.contentWindow.document;var current_hash=iframe.location.hash.replace(/\?.*$/,'');if(current_hash!=jQuery.historyCurrentHash){location.hash=current_hash;jQuery.historyCurrentHash=current_hash;jQuery.historyCallback(current_hash.replace(/^#/,''));}}else if(jQuery.browser.safari){if(jQuery.lastHistoryLength==history.length&&jQuery.historyBackStack.length>jQuery.lastHistoryLength){jQuery.historyBackStack.shift();}
if(!jQuery.dontCheck){var historyDelta=history.length-jQuery.historyBackStack.length;jQuery.lastHistoryLength=history.length;if(historyDelta){jQuery.isFirst=false;if(historyDelta<0){for(var i=0;i<Math.abs(historyDelta);i++)jQuery.historyForwardStack.unshift(jQuery.historyBackStack.pop());}else{for(var i=0;i<historyDelta;i++)jQuery.historyBackStack.push(jQuery.historyForwardStack.shift());}
var cachedHash=jQuery.historyBackStack[jQuery.historyBackStack.length-1];if(cachedHash!=undefined){jQuery.historyCurrentHash=location.hash.replace(/\?.*$/,'');jQuery.historyCallback(cachedHash);}}else if(jQuery.historyBackStack[jQuery.historyBackStack.length-1]==undefined&&!jQuery.isFirst){if(location.hash){var current_hash=location.hash;jQuery.historyCallback(location.hash.replace(/^#/,''));}else{var current_hash='';jQuery.historyCallback('');}
jQuery.isFirst=true;}}}else{var current_hash=location.hash.replace(/\?.*$/,'');if(current_hash!=jQuery.historyCurrentHash){jQuery.historyCurrentHash=current_hash;jQuery.historyCallback(current_hash.replace(/^#/,''));}}},historyLoad:function(hash){var newhash;hash=decodeURIComponent(hash.replace(/\?.*$/,''));if(jQuery.browser.safari){newhash=hash;}
else{newhash='#'+hash;location.hash=newhash;}
jQuery.historyCurrentHash=newhash;if(jQuery.historyNeedIframe){var ihistory=jQuery("#jQuery_history")[0];var iframe=ihistory.contentWindow.document;iframe.open();iframe.close();iframe.location.hash=newhash;jQuery.lastHistoryLength=history.length;jQuery.historyCallback(hash);}
else if(jQuery.browser.safari){jQuery.dontCheck=true;this.historyAddHistory(hash);var fn=function(){jQuery.dontCheck=false;};window.setTimeout(fn,200);jQuery.historyCallback(hash);location.hash=newhash;}
else{jQuery.historyCallback(hash);}}});;$().ready(function(){var page=$("select[name=page]").val();$("select[name=page]").click(function(){var value=$(this).val();if(value!=page){var sPath=window.location.pathname;var sPage=sPath.substring(sPath.lastIndexOf('/')+1);window.location.href=sPage+"?page="+value;};})});