Problem with slideshow and adding classes

Problem with slideshow and adding classes

im using this plugin http://dimsemenov.com/plugins/royal-slider/documentation/#basic-usage and im looking for a way to change menu class if image has current class. If the current image in the slideshow has class bright i want to addClass bright to menu. im using this code

 <script> 
jQuery(window).load(function() { 
if ($('#bild').hasClass('dark')) { 
$('#widget-menu').addClass('menu-dark'); 
} else if ($('#bild').hasClass('bright')) {
 $('#widget-menu').addClass('menu-bright');
 } }); </script>

this is giving my menu class menu-dark. but how to do when i want it to change if img has the class bright if is current?

 would be very thankful for an answer :) the site that im working on is: http://mlido.se/site/case/luxit/