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(){$.address.change(function(event){callback(event.value);});$("img[id*='changepic']").live('click',function(){var id=this.id.split("|");$('#'+id[2]).hide("fade",function(){$('#'+id[2]).attr('src','/files/'+id[1]+'/gallery/'+id[3]).show("fade",{},500);},500)})
$("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];$("tbody[id*='navbar_']").show();$("tbody[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);});$("#testie9").click(function(){$("#navbar_2").hide();})});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");if($.browser.msie&&$.browser.version=="9.0"){}
else{$("tbody[id*='navbar_']").hide();$("tbody[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;};(function($){var locationWrapper={put:function(hash,win){(win||window).location.hash=this.encoder(hash);},get:function(win){var hash=((win||window).location.hash).replace(/^#/,'');try{return $.browser.mozilla?hash:decodeURIComponent(hash);}
catch(error){return hash;}},encoder:encodeURIComponent};var iframeWrapper={id:"__jQuery_history",init:function(){var html='<iframe id="'+this.id+'" style="display:none" src="javascript:false;" />';$("body").prepend(html);return this;},_document:function(){return $("#"+this.id)[0].contentWindow.document;},put:function(hash){var doc=this._document();doc.open();doc.close();locationWrapper.put(hash,doc);},get:function(){return locationWrapper.get(this._document());}};function initObjects(options){options=$.extend({unescape:false},options||{});locationWrapper.encoder=encoder(options.unescape);function encoder(unescape_){if(unescape_===true){return function(hash){return hash;};}
if(typeof unescape_=="string"&&(unescape_=partialDecoder(unescape_.split("")))||typeof unescape_=="function"){return function(hash){return unescape_(encodeURIComponent(hash));};}
return encodeURIComponent;}
function partialDecoder(chars){var re=new RegExp($.map(chars,encodeURIComponent).join("|"),"ig");return function(enc){return enc.replace(re,decodeURIComponent);};}}
var implementations={};implementations.base={callback:undefined,type:undefined,check:function(){},load:function(hash){},init:function(callback,options){initObjects(options);self.callback=callback;self._options=options;self._init();},_init:function(){},_options:{}};implementations.timer={_appState:undefined,_init:function(){var current_hash=locationWrapper.get();self._appState=current_hash;self.callback(current_hash);setInterval(self.check,100);},check:function(){var current_hash=locationWrapper.get();if(current_hash!=self._appState){self._appState=current_hash;self.callback(current_hash);}},load:function(hash){if(hash!=self._appState){locationWrapper.put(hash);self._appState=hash;self.callback(hash);}}};implementations.iframeTimer={_appState:undefined,_init:function(){var current_hash=locationWrapper.get();self._appState=current_hash;iframeWrapper.init().put(current_hash);self.callback(current_hash);setInterval(self.check,100);},check:function(){var iframe_hash=iframeWrapper.get(),location_hash=locationWrapper.get();if(location_hash!=iframe_hash){if(location_hash==self._appState){self._appState=iframe_hash;locationWrapper.put(iframe_hash);self.callback(iframe_hash);}else{self._appState=location_hash;iframeWrapper.put(location_hash);self.callback(location_hash);}}},load:function(hash){if(hash!=self._appState){locationWrapper.put(hash);iframeWrapper.put(hash);self._appState=hash;self.callback(hash);}}};implementations.hashchangeEvent={_init:function(){self.callback(locationWrapper.get());$(window).bind('hashchange',self.check);},check:function(){self.callback(locationWrapper.get());},load:function(hash){locationWrapper.put(hash);}};var self=$.extend({},implementations.base);if($.browser.msie&&($.browser.version<8||document.documentMode<8)){self.type='iframeTimer';}else if("onhashchange"in window){self.type='hashchangeEvent';}else{self.type='timer';}
$.extend(self,implementations[self.type]);$.history=self;})(jQuery);;$().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);var vars=window.location.href;vars=vars.split('?')[1];window.location.href=sPage+"?"+vars+"&page="+value;};})});
