function page_switch_type(def){
var type = document.form1.type.value ;
var mType = document.form1.mType.value ;
if(!def){$("#IDregion").load("/fx_get-region-list.php?mType="+mType+"&type="+type, function(){ page_switch_region(); });}   
if(def) {$("#IDregion").load("/fx_get-region-list.php?mType="+mType+"&type="+type+"&region="+def, function(){ page_switch_region(); });}   
PopBallon($("#IDregion"),'','S\'il vous plaît attendez un moment');}

function page_switch_region(def){
var reg = document.form1.region.value ;
var type = document.form1.type.value ;
var mType = document.form1.mType.value ;
if(!def){$("#city").load("/fx_get-city-list.php?mType="+mType+"&type="+type+"&region="+reg);}
if(def) {$("#city").load("/fx_get-city-list.php?mType="+mType+"&type="+type+"&region="+reg+"&city="+def);}
PopBallon($("#city"),'','S\'il vous plaît attendez un moment');}

function changeSearch(URL){window.location = URL;}

$(document).ready(function() {$("#browsable").scrollable().navigator();});

function sw_mType(){
var mty = document.form1.mType.value;
$("#type").load("/fx_get-stype-list.php?mType="+mty);
PopBallon($("#type"),'','S\'il vous plaît attendez un moment',function(){page_switch_type();});}

var GBallons = 0;

function PopBallon(element,location,mess,xFunction) {
GBallons++ ;
var Id=new Array();
Id['0']="xMess"+String(GBallons) ;
Id['offset'] = element.offset();
Id['len'] = element.width() ;
Id['hei'] = element.height() ;
$("body").append('<div style="position:absolute;top:'+Id['offset'].top+'px;left:'+Id['offset'].left+'px;white-space: nowrap;padding:4px 3px;font-size: 16px;background:#ccccff;color:#0000aa;border:2px solid #0000aa;z-index:999999;display:none;" id="'+Id['0']+'">'+mess+'</div>');
$("#"+Id['0']).css('width',Id['len']+'px').css('height',(Id['hei']-2)+'px').fadeIn(200).delay(400).fadeOut(200,function(){ $(this).remove();});
if(typeof xFunction == 'function')
{xFunction.call(this)}}


function fbs_click(u,t,c) 
{window.open('http://www.facebook.com/sharer.php?s=100&p[url]='+u+'&p[title]='+t+'&p[summary]='+c,'louer','toolbar=0,status=0,width=626,height=436');}





