$().ready(function(){

    $('#search_country').change(function(event) {
      if ($('#search_country').val() == '') {
          $('#region').html('');
          $('#city').html('');
        }
        else
        {
                $.post('destination/UpdateRegion', { country: $('#search_country').val() },
            function(data) {
                $('#region').html(data);
            }
        );
        $('#city').html('');
        }
    });

                      $('#search_region').change(function(event) {
        if ($('#search_region').val() == '') {
          $('#city').html('');
        }
        else
        {
                $.post('destination/UpdateCity', { region: $('#search_region').val(), country: $('#search_country').val() },
            function(data) {
                $('#city').html(data);
            }
        );
        }
    });
	$('#menu span').dropShadow({left: 1, top: 0, opacity: 0.6, blur: 1, sharp: true, color: "#000"});

	$('.newsletter .header span').dropShadow({left: 0, top: 0, opacity: 0.4, blur: 1, sharp: true, color: "#000"});
	
	$('.cwrapper2 .container .box').hover(
		function(){ $(this).addClass('hover'); },
		function(){ $(this).removeClass('hover'); }
	);	
	
	$('.cwrapper2 .container .box').each(function() {
		$(this).click(function()	{	
			document.location = $('h3 a', $(this)).attr('href');
		})
	});
	
	$('.newsletter input.i1').click(function() {
		if($(this).val() == 'Je naam') {
			$(this).attr('value', '');	
		}
	});
	
	$('.newsletter input.i1').blur(function() {
		if($(this).val() == '') {
			$(this).attr('value', 'Je naam');
		}	
	});	
	
	$('.newsletter input.i2').click(function() {
		if($(this).val() == 'Je e-mail') {
			$(this).attr('value', '');	
		}
	});
	
	$('.newsletter input.i2').blur(function() {
		if($(this).val() == '') {
			$(this).attr('value', 'Je e-mail');
		}	
	});
	
});
