$(document).ready(function() {
  	var el = $('#county_hotel_select');
	el.html(el.html().replace(/Bewleys Hotel/ig, ""));          
	el.html(el.html().replace(/3\*/ig, ""));
	//var numnights = $('.nninput');
	$('.nninput').val(1);


});        




function slideSwitch() {
    var $numberimages = $('#slideshow .panel');
    if ( $numberimages.length != 1 )
	{
	    var $active = $('#slideshow .active');

	    if ( $active.length == 0 ) $active = $('#slideshow .panel:last');

	    var $next =  $active.next().length ? $active.next()
	        : $('#slideshow .panel:first');

	    $active.addClass('last-active');

	    $next.css({opacity: 0.0})
	        .addClass('active')
	        .animate({opacity: 1.0}, 1000, function() {
	            $active.removeClass('active last-active');
	        }); 
	}
}


$(function() {
    setInterval( "slideSwitch()", 4000 );
});

$(document).ready(function(){$("a[href^='http']").not("[href*='bewleyshotels.com']").attr('target','_blank');});
$(document).ready(function(){$("a[href$=pdf]").attr('target','_blank');});
$(function(){
    $('a.pageedit').click(function(){
        window.open(this.href);
        return false;
    });
});

