/* jQuery.fn.extend({
	neverEmpty: function() {
		return this.each(function() {
			var p = $(this);
			p.data("neverEmptyDefault",p.val());
			p.focusin(function(e) {
				if($(this).val() == $(this).data("neverEmptyDefault")) {
					$(this).val("");
				}
			});
			p.focusout(function(e) {
				if($(this).val() == "") {
					p.val($(this).data("neverEmptyDefault"));
				}
			});
		});
	}
}); */

$(document).ready(function() {
	
	/* $("select").formmod(); */
	$("#tabs").tabs(); 
	var stopit = 0;
	var timeri = 0;
	$("#nav ul").children("li").hover(
		function (e) {
			$(this).addClass("active");
		},
		function (e) {
			$(this).removeClass("active");
		}
	);
	/*$("#nav ul").children("li").hover(
		function () {
			var par_w = $(this).width();
			var chl_w = $(this).find("ul").width();
			if(par_w > 185) {
				$(this).find("ul").width(par_w+30);
			} else {
				$(this).find("ul").width(185);
			}
			$(this).addClass("hover");
			$(this).find("ul").fadeIn("fast");
		}, 
		function () {
			$(this).removeClass("hover");
			$(this).find("ul").fadeOut("fast");
		}
	);*/
	
	// $(".slider").accordion({ clearStyle: true, event: 'click', collapsible: true, animated: 'bounceslide', header: 'h1', autoHeight: false });
	
	//$("#place_origin, #name_origin, #place_destination, #name_destination").neverEmpty();
	
});

