$(document).ready(function() {
           
	try{
		$('.bol-select').selectmenu({
				
			style:'dropdown',
			width: 250,
			maxHeight: 300
		});
	}catch(err)
	{}


            
	$('.box-detail-offerta').cornerz({
		radius: 8,
		background: '#efefef'
	});
	try{
		$('#paese-bol2').selectmenu({
				
			style:'dropdown',
			width: 250
		});
	}catch(err)
	{}
	try{
		$('#anno-card-bol').selectmenu({
				
			style:'dropdown',
			width: 120
		});
            
		$('#mese-card-bol').selectmenu({
				
			style:'dropdown',
			width: 120
		});
            
	}catch(err)
	{}
	$('.bread-bol').cornerz({
		radius: 8
	});
	    
	$('.img-hotel-bol').cornerz({
		radius: 8
	});
            
	    
	$('.inner-block-included').cornerz({
		radius: 8,
		background: '#f6f6f6'
	});
            
	$('.inner-box-error').cornerz({
		radius: 8,
		background: '#fff'
	});
	$('.inner-block-included-long').cornerz({
		radius: 8,
		background: '#f6f6f6'
	});
	    
            
	  
	    
	    
	$('.block-included').cornerz({
		radius: 8,
		background: '#fff'
	});
	    
	    
	$('.box-white').cornerz({
		radius: 8,
		background: '#f5f5f5'
	});
            
	$('.box-white-wide').cornerz({
		radius: 8,
		background: '#f5f5f5'
	});
	    
	$('.box-grey').cornerz({
		radius: 8,
		background: '#fff'
	});
             
	$('.box-grey-wide').cornerz({
		radius: 8,
		background: '#fff'
	});

	
	$('.corners-grey').cornerz({
		radius: 8,
		background: '#F6F6F6'
	});	
		
            
            
	$('input.bol-input,textarea.bol-input-area,input.bol-input2').focus(function(){
		oldval = $(this).val();
		$(this).val('');
	}).blur(function(){
		newvla = $(this).val();
		if(newvla==''){
			$(this).val(oldval);
		}
	});


	$('a.info-hotels').live('click', function(){
		tagA = $(this);
		variable = tagA.attr('href');
		tagA.attr('href', '#');
		$.ajax({
			type: "post",
			url: variable,

			success: function(html){
				$('#dialog-spec-hotels').empty();
				$('#dialog-spec-hotels').html(html);
				$('#dialog-spec-hotels').modal({
					containerCss:{

						height:480,
						padding:0,
						width:725
					},
					opacity: 80,
					closeClass: "modalClose",
					onClose: function() {
						tagA.attr('href', variable);
						$.modal.close();   //va chiamata per forza!
						$('#dialog-spec-hotels').hide();
					}
				});
			}
		});
		return false;
	});
});
