$(document).ready(function() {

// alter the attribute on all external links
$('a.external').attr("target","_blank");
$('a.doc_link').attr("target","_blank");

// companies a-z list

// $('#q').liveUpdate('companies_list').focus();

// initialise cycling logos
// hide static
$('#single_company_logo').css({ display: 'none'});
   
$('#company_logos').css({ display: 'block',overflow:'hidden'});

$('#company_logos img').each(function() {

                if (($(this).width())!=0)
                	$(this).css({marginLeft: ((200-$(this).width())/2)});
                else
			$(this).css({marginLeft: 10});
                if (($(this).height())!=0)
			$(this).css({marginTop: (120-$(this).height())/2});
		else 
			$(this).css({marginTop: 10});
        }); 
 
  

$('#company_logos').cycle({ 
    fx:    'fade', 
    speed:  2500,
    random: 1
 });

  
       

				 
$("table  tr:nth-child(even)").addClass("odd");
$("ul.events-list  li:nth-child(even)").addClass("odd");



});	


 
 
 




