var SUB_DIR="/";
jQuery(function()
{
	jQuery('#hotelCountry').chainSelect('#hotelRegion','/countries/getcombopairs2/',
	{ 
		before:function (target) //before request hide the target combobox and display the loading message
		{ 
			/*jQuery("#loading").css("display","block");
			//jQuery(target).css("background","#e7e7e7");
			e =  jQuery('#hotelCountry');
			p = e.position();  
			jQuery('#loader').css({
        left: p.left + 60,
        top: p.top + 10,
      }).show()*/
              			
		},
		after:function (target) //after request show the target combobox and hide the loading message
		{ 
			/*jQuery("#loading").css("display","block");
			jQuery(target).css("background","white");
			jQuery('#loader').hide();*/
			
		}
	});
	
 jQuery('#hotelRegion').chainSelect('#hotelArea','/countries/getcombopairs2/',
	{ 
		before:function (target) 
		{ 
  /*jQuery("#loading").css("display","block");
			jQuery(target).css("background","#e7e7e7");
			e =  jQuery('#hotelRegion');
			p = e.position();
			jQuery('#loader').css({
        left: p.left + 60,
        top: p.top + 10,
      }).show() */
			
		},
		after:function (target) 
		{ 
    /* jQuery("#loading").css("display","block");
			jQuery(target).css("background","white");
			jQuery('#loader').hide(); */
		}
	});
	
	/*jQuery('#hotelCountrymap').chainSelect('#hotelRegionmap','/countries/getcombopairs2/',
	{ 
		before:function (target) //before request hide the target combobox and display the loading message
		{ 
			jQuery("#loading").css("display","block");
			jQuery(target).css("background","#e7e7e7");
		},
		after:function (target) //after request show the target combobox and hide the loading message
		{ 
			jQuery("#loading").css("display","none");
			jQuery(target).css("background","white");
		}
	});
	
	jQuery('#hotelRegionmap').chainSelect('#hotelAreamap','/'+SUB_DIR+'countries/getcombopairs2/',
	{ 
		before:function (target) 
		{ 
			jQuery("#loading").css("display","block");
			jQuery(target).css("background","#e7e7e7");
		},
		after:function (target) 
		{ 
			jQuery("#loading").css("display","none");
			jQuery(target).css("background","white");
		}
	});*/
	
});

