



$(document).ready(function() { 



$("#clientsList li:nth-child(0)").addClass("cl0");
$("#clientsList li:nth-child(1)").addClass("cl1");
$("#clientsList li:nth-child(2)").addClass("cl2");
$("#clientsList li:nth-child(3)").addClass("cl3");
$("#clientsList li:nth-child(4)").addClass("cl4");
$("#clientsList li:nth-child(5)").addClass("cl5");
$("#clientsList li:nth-child(6)").addClass("cl6");
$("#clientsList li:nth-child(7)").addClass("cl7");
$("#clientsList li:nth-child(8)").addClass("cl8");
$("#clientsList li:nth-child(9)").addClass("cl9");
$("#clientsList li:nth-child(10)").addClass("cl10");
$("#clientsList li:nth-child(11)").addClass("cl11");
$("#clientsList li:nth-child(12)").addClass("cl12");
$("#clientsList li:nth-child(13)").addClass("cl13");
$("#clientsList li:nth-child(14)").addClass("cl14");
$("#clientsList li:nth-child(15)").addClass("cl15");
$("#clientsList li:nth-child(16)").addClass("cl16");
$("#clientsList li:nth-child(17)").addClass("cl17");
$("#clientsList li:nth-child(18)").addClass("cl18");

$("#work #midExpose").hide();


$('a.tvLaunch').bind('mouseover mouseout', function(event) {
  if (event.type == 'mouseover') {
	  $('#tv').css('z-index', 60);
	  $('#midExpose').addClass('hider');
      $('#midExpose').show();
  } else {
    $('#midExpose').hide();
	$('#tv').css('z-index', 40); 
	$('#midExpose').removeClass('hider');
  }
});

$('a.radioLaunch').bind('mouseover mouseout', function(event) {
  if (event.type == 'mouseover') {
	  $('#radio').css('z-index', 60);
	  $('#midExpose').addClass('hider');
      $('#midExpose').show();
  } else {
    $('#midExpose').hide();
	$('#radio').css('z-index', 40); 
	$('#midExpose').removeClass('hider');
  }
});

$('a.printpressLaunch').bind('mouseover mouseout', function(event) {
  if (event.type == 'mouseover') {
	  $('#printpress').css('z-index', 60);
	  $('#midExpose').addClass('hider');
      $('#midExpose').show();
  } else {
    $('#midExpose').hide();
	$('#printpress').css('z-index', 40); 
	$('#midExpose').removeClass('hider');
  }
});

$('a.envelopeLaunch').bind('mouseover mouseout', function(event) {
  if (event.type == 'mouseover') {
	  $('#envelope').css('z-index', 60);
	  $('#midExpose').addClass('hider');
      $('#midExpose').show();
  } else {
    $('#midExpose').hide();
	$('#envelope').css('z-index', 40); 
	$('#midExpose').removeClass('hider');
  }
});




$('#playlist a').click(function() {
$('#playlist a').removeClass("playing");
$(this).addClass("playing");
});








$('a#s1Right a').click(function() {
$(this).overlay({api: true, target: 'div#newsItem1'}).load(); 
});

$("a.newsLink[rel]").each(function(i) { 
        $(this).overlay({ 
         // common configuration for each overlay 
         oneInstance: true,  
         closeOnClick: true,
		 onLoad: function(event) { 
        $('.onAir').animate({
	    opacity: 1
  		}, 400, function() {});
  		  },
	 onClose: function(event) { 
        $('.onAir').animate({
	    opacity: 0
  		}, 400, function() {});
  		  }
	});             
}); 

$("a.servLink[rel]").each(function(i) { 
        $(this).overlay({ 
         // common configuration for each overlay 
         oneInstance: true,  
         closeOnClick: true
		
	});             
}); 


$('#newsList').jScrollPane();














// close

});

