jQuery(document).ready(function(){
	$('#city_list li').live("click", function(){
		$('#city_result').text($(this).text());
		$('#txt_city').val(this.id);
		$('#city_list').hide('slow');
	});
								
	$('.slidebox .head').click(function() {
		$(this).next().toggle('slow');
		return false;
	});
	
	$("#wrapper, #contentwrapper").click(function() {
		$('.list').hide('slow');
	});
	
	$('#industry').click(function() {
		$("#country_list, #city_list, #product_list").hide('slow');
	});
	
	$('#product').click(function() {
		$("#country_list, #city_list, #industry_list").hide('slow');
	});
	
	$('#country').click(function() {
		$("#product_list, #city_list, #industry_list").hide('slow');
	});
	
	$('#city').click(function() {
		$("#product_list, #country_list, #industry_list").hide('slow');
	});
	
	$('#country_list li').click(function() {
		var country = $(this).text();
		$('#country_result').text(country);
		$('#txt_country').val(this.id);
		getCityList('getCityList','../','txt_country');
		$('#country_list').hide('slow');		
	});
	
	$('#product_list li').click(function() {
		$('#product_result').html($(this).html());
		$('#txt_product').val(this.id);
		$('#product_list').hide('slow');
	});
	
	$('#industry_list li').click(function() {
		$('#industry_result').html($(this).html());
		$('#txt_industry').val(this.id);
		$('#industry_list').hide('slow');
	});
	
	$('#search a').click(function() {
		$('#frmSearch').submit();		
	});
});