	$(document).ready(function() {
		$("#startpt1").autocomplete(
			"http://www.hurra-nyaralunk.hu/domains/repulojegy.hu/citysearch.php",
			{
				delay:10,
				minChars:3,
				matchSubset:1,
				matchContains:0,
				cacheLength:1,
				maxItemsToShow:15,
				autoFill:true,
				onItemSelect:function(li){$("#startpt1_id").val(li.extra);}
			}
		);
	});

	$(document).ready(function() {
		$("#endpt1").autocomplete(
			"http://www.hurra-nyaralunk.hu/domains/repulojegy.hu/citysearch.php",
			{
				delay:10,
				minChars:3,
				matchSubset:1,
				matchContains:0,
				cacheLength:1,
				maxItemsToShow:15,
				autoFill:true,
				onItemSelect:function(li){$("#endpt1_id").val(li.extra);}
			}
		);
	});	
	
		$(document).ready(function() {
		$("#startpt2").autocomplete(
			"http://www.hurra-nyaralunk.hu/domains/repulojegy.hu/citysearch.php",
			{
				delay:10,
				minChars:3,
				matchSubset:1,
				matchContains:0,
				cacheLength:1,
				maxItemsToShow:15,
				autoFill:true,
				onItemSelect:function(li){$("#startpt2_id").val(li.extra);}
			}
		);
	});

	$(document).ready(function() {
		$("#endpt2").autocomplete(
			"http://www.hurra-nyaralunk.hu/domains/repulojegy.hu/citysearch.php",
			{
				delay:10,
				minChars:3,
				matchSubset:1,
				matchContains:0,
				cacheLength:1,
				maxItemsToShow:15,
				autoFill:true,
				onItemSelect:function(li){$("#endpt2_id").val(li.extra);}
			}
		);
	});	
	
	
	$(document).ready(function() {
		$("#EF_From1").autocomplete(
			"http://www.hurra-nyaralunk.hu/domains/repulojegy.hu/citysearch.php",
			{
				delay:10,
				minChars:3,
				matchSubset:1,
				matchContains:0,
				cacheLength:1,
				maxItemsToShow:15,
				autoFill:true,
				onItemSelect:function(li){$("#EF_From1_id").val(li.extra);}
			}
		);
	});	
	
	$(document).ready(function() {
		$("#EF_To1").autocomplete(
			"http://www.hurra-nyaralunk.hu/domains/repulojegy.hu/citysearch.php",
			{
				delay:10,
				minChars:3,
				matchSubset:1,
				matchContains:0,
				cacheLength:1,
				maxItemsToShow:15,
				autoFill:true,
				onItemSelect:function(li){$("#EF_To1_id").val(li.extra);}
			}
		);
	});	
	
		$(document).ready(function() {
		$("#EF_From2").autocomplete(
			"http://www.hurra-nyaralunk.hu/domains/repulojegy.hu/citysearch.php",
			{
				delay:10,
				minChars:3,
				matchSubset:1,
				matchContains:0,
				cacheLength:1,
				maxItemsToShow:15,
				autoFill:true,
				onItemSelect:function(li){$("#EF_From2_id").val(li.extra);}
			}
		);
	});	
	
	$(document).ready(function() {
		$("#EF_To2").autocomplete(
			"http://www.hurra-nyaralunk.hu/domains/repulojegy.hu/citysearch.php",
			{
				delay:10,
				minChars:3,
				matchSubset:1,
				matchContains:0,
				cacheLength:1,
				maxItemsToShow:15,
				autoFill:true,
				onItemSelect:function(li){$("#EF_To2_id").val(li.extra);}
			}
		);
	});	
	
		$(document).ready(function() {
		$("#EF_From3").autocomplete(
			"http://www.hurra-nyaralunk.hu/domains/repulojegy.hu/citysearch.php",
			{
				delay:10,
				minChars:3,
				matchSubset:1,
				matchContains:0,
				cacheLength:1,
				maxItemsToShow:15,
				autoFill:true,
				onItemSelect:function(li){$("#EF_From3_id").val(li.extra);}
			}
		);
	});	
	
	$(document).ready(function() {
		$("#EF_To3").autocomplete(
			"http://www.hurra-nyaralunk.hu/domains/repulojegy.hu/citysearch.php",
			{
				delay:10,
				minChars:3,
				matchSubset:1,
				matchContains:0,
				cacheLength:1,
				maxItemsToShow:15,
				autoFill:true,
				onItemSelect:function(li){$("#EF_To3_id").val(li.extra);}
			}
		);
	});	
	
		$(document).ready(function() {
		$("#EF_From4").autocomplete(
			"http://www.hurra-nyaralunk.hu/domains/repulojegy.hu/citysearch.php",
			{
				delay:10,
				minChars:3,
				matchSubset:1,
				matchContains:0,
				cacheLength:1,
				maxItemsToShow:15,
				autoFill:true,
				onItemSelect:function(li){$("#EF_From4_id").val(li.extra);}
			}
		);
	});	
	
	$(document).ready(function() {
		$("#EF_To4").autocomplete(
			"http://www.hurra-nyaralunk.hu/domains/repulojegy.hu/citysearch.php",
			{
				delay:10,
				minChars:3,
				matchSubset:1,
				matchContains:0,
				cacheLength:1,
				maxItemsToShow:15,
				autoFill:true,
				onItemSelect:function(li){$("#EF_To4_id").val(li.extra);}
			}
		);
	});	

	$(document).ready(function() {
		$("li.new_nav > a").click(function()
		{
	          $("li.new_nav > a").removeClass("active");
		  $(this).addClass("active");
		});
	});

	$(document).ready(function() {
		$("#hotel_dest").autocomplete(
			"http://www.hurra-nyaralunk.hu/domains/repulojegy.hu/hotel_citysearch2.php",
			{
				delay:10,
				minChars:3,
				matchSubset:1,
				matchContains:0,
				cacheLength:1,
				maxItemsToShow:15,
				autoFill:true,
				onItemSelect:function(li){$("#gtacity").val(li.extra);}
			}
		);
	});
