$(function() {

	// scrollable for video gallery
	$("div.scrollable").scrollable({
		size: 1,
		items: '#thumbs',
		hoverClass: 'hover',
		keyboard:false
	});

	// setup overlay actions for city
	$("a.show_city[rel]").overlay({

		// setup exposing (optional operation);
		onBeforeLoad: function() {
			this.expose();

		},

		onLoad: function(content, link) {
			// find the player contained inside this overlay and load it
			//$("#city_overlay a div").load("<? echo constant('HOME_PATH')?>show_cities.php?return_add=<?echo $_SERVER['PHP_SELF']?>"); 
			//$("#city_overlay a div").load(link.attr("href")); 
			$("#city_overlay a div").load(this.getTrigger().attr("href"));
		},

		onClose: function(content) {
			// cloase exposing
			$.expose.close();
		}
	});

	
});