
$(function() {
	$('#arr_cal_icon').attr('src', '/images/stylesheet/calendar.png');
	$('#arr_cal_icon').attr('width', '24');
	$('#arr_cal_icon').attr('height', '24');

});           




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

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

	    var $next =  $active.next().length ? $active.next()
	        : $('#slideshow IMG: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(){$('.nninput').val(1);});

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



Shadowbox.init({
    skipSetup: true
});

$(function() {
$('#video_popup').click(function() {
    Shadowbox.open({
        content:    '/shadowbox/royalhotel.flv',
        player:     "flv",
        width:     550,
        height:    309
    });
    return false;
});
});           

