// dropdown slider scripts ------------------------------------------------------------------------- //

 
 
$(document).ready(function () {
 
$(".tab-1").click(function () {
$("#media-trailers").show();
$("#media-adverts").hide();
return false;
});
});
 $(document).ready(function () {
 
$(".tab-2").click(function () {
$("#media-trailers").hide();
$("#media-adverts").show();
return false;
});
});

// close open sliders by clicking elsewhere on the page ------------------------------------------------------------------------- //

$(document).bind("click", function (e) {
    if (e.target.id != $(".cntry-slidedown").attr("class")) $("#country-slider").slideUp();
});

$(document).bind("click", function (e) {
    if (e.target.id != $(".cntry-slidedown-2").attr("class")) $(".country-slider-2").slideUp();
});

 

$(document).ready(function () {
	$(".media-open").click(function () {
	$("#player-holder").slideToggle("fast");
	 
	$(this).toggleClass("active");
	 
	return false;
	});
});

$(document).ready(function () {
	$(".map-open").click(function () {
	$("#large-map").slideToggle("fast");
	 $("#media-player").hide("fast");
	$(".media-open").removeClass("active");
	$(this).toggleClass("active");
	return false;
	});
});

 

$(document).ready(function () {
	$(".close-media").click(function () {
$("#player-holder").fadeOut("fast");
	 
	$('.map-open').removeClass("active");
	$('.media-open').removeClass("active");
	return false;
	});
});

$(document).ready(function () {
	$(".close-map").click(function () {
	$("#large-map").fadeOut("fast");
	 
	$('.map-open').removeClass("active");
	$('.media-open').removeClass("active");
	return false;
	});
});
















 




/*

$(document).ready(function () {
var images = ['top_header_1.jpg', 'top_header_2.jpg', 'top_header_3.jpg'];
   $('#page-top-outer').css({'background': '  top center url(images/shared/' + images[Math.floor(Math.random() * images.length)] + ')'});
});


*/

 



// backgrounds change color on rollover ------------------------------------------------------------------------- //

$(document).ready(function () {
    $('.video-box').hover(function () {
        $(this).addClass('add-bg');
    },
    function () {
        $(this).removeClass('add-bg');
    });
});


 
 
 
 $(document).ready(function () {
$("#top10-nav").addClass("current-1");
$(".top10-tbl-1").show();
$(".top10-tbl-2").hide();
$(".top10-tbl-3").hide();
 

$(".show-top10-1").click(function () {
$("#top10-nav").addClass("current-1");
$("#top10-nav").removeClass("current-2");
$("#top10-nav").removeClass("current-3");
 
$(".top10-tbl-1").fadeIn();
$(".top10-tbl-2").hide();
$(".top10-tbl-3").hide();
 
});
});
 
$(document).ready(function () {
$(".show-top10-2").click(function () {
$("#top10-nav").addClass("current-2");
$("#top10-nav").removeClass("current-1");
$("#top10-nav").removeClass("current-3");
 
$(".top10-tbl-2").fadeIn();
$(".top10-tbl-1").hide();
$(".top10-tbl-3").hide();
 
});
});

$(document).ready(function () {
$(".show-top10-3").click(function () {
$("#top10-nav").addClass("current-3");
$("#top10-nav").removeClass("current-2");
$("#top10-nav").removeClass("current-1");
 
$(".top10-tbl-3").fadeIn();
$(".top10-tbl-2").hide();
$(".top10-tbl-1").hide();
 
});
});
