$(document).ready(function()
{
	// menu
    $("#menu_left a").click(function(){
                $(this).next().toggle();
 				$(this).toggleClass('act');
        });
        
    $("#menu_left_additional a").click(function(){
                $(this).next().toggle();
 				$(this).toggleClass('act');
        });
        
    $('.tac').disableTextSelect();
        
    // lightbox
	$('a[@rel*=lightbox]').lightBox({
		imageLoading: '/images/lightbox/lightbox-ico-loading.gif',
		imageBtnClose: '/images/lightbox/lightbox-btn-close.gif',
		imageBtnPrev: '/images/lightbox/lightbox-btn-prev.gif',
		imageBtnNext: '/images/lightbox/lightbox-btn-next.gif'
   });
   
   
   // form validation
   
   
   $("#hotel_order").validate({
            //set the rules for the fild names
            rules: {
                name: {
                    required: true,
                    minlength: 3
                },
                surname: {
                    required: true,
                    minlength: 3
                },
                address: {
                    required: true,
                    minlength: 3
                },
                tel: {
                    required: true,
                    minlength: 3
                },
                email: {
                    required: true,
                    minlength: 3
                },
                country: {
                    required: true,
                    minlength: 3
                },
                city: {
                    required: true,
                    minlength: 3
                },
                hotel_place: {
                    required: true
                },
                room_type: {
                    required: true
                },
                people: {
                    required: true
                }
            },
            //set messages to appear inline
            messages: {
                name: "  <b>!!!<b/>",
                surname: "  <b>!!!<b/>",
                address: "  <b>!!!<b/>",
                tel: "  <b>!!!<b/>",
                email: "  <b>!!!<b/>",
                country: "  <b>!!!<b/>",
                city: "  <b>!!!<b/>",
                country: "  <b>!!!<b/>",
                hotel_place: "  <b>!!!<b/>",
                room_type: "  <b>!!!<b/>",
                people: "  <b>!!!<b/>"
            }
        });

   
   

});