
$(document).ready(function() {

var ncp = $('<div class="dialog ncpDialog tal"></div>');
$('a.nonCopyright').click(function(ev){
var ncpLnk = this;
if ($(ncpLnk).data('open')) return false;
$(ncpLnk).data('open', true).css('cursor', 'wait');
$('.dialog').remove();
ncp.load('../extra/nonCopyright.php', function(responseText, textStatus, XMLHttpRequest){
$(ncpLnk).after(ncp);
ncp.find('.closeLnk').click(function(ev){
ncp.remove();
$(ncpLnk).data('open', false).focus();
ev.preventDefault();
});
$('.forceShow').html('&nbsp;');
ncp.find('h2').focus();
$(ncpLnk).css('cursor', 'pointer');
});
ev.preventDefault();
});

$('#ComingSoon').bind('load resize', function(ev){
$(this).css({
height: this.contentWindow.document.body.scrollHeight + 30 + 'px'
});
});

$('#fbLnk').click(function(ev){
if ($(this).data('open')) {
$(this).data('open', false).attr('title', 'Open featured broadcasts').find('small').first().html('&#9660;');
$('ul.featuredBroadcasts').addClass('hidden');
} else {
$(this).data('open', true).attr('title', 'Close featured broadcasts').find('small').first().html('&#9650;');
$('ul.featuredBroadcasts').removeClass('hidden');
}
ev.preventDefault();
});

});

