1: $(document).ready(function() {
2: var split = /^(.*\/)([^/]*)$/.exec($('#yn-boo').attr('src'));
3: if (split && (split[2] === 'default.png' || split[2] === 'sleep.png')) {
4: $('#yn-boo')
5: .nextAll('.z0').attr('src', 'http://www.mirari.fr/qiKe').end()
6: .nextAll('.z1').attr('src', 'http://www.mirari.fr/SpkR').end()
7: .nextAll('.z2').attr('src', 'http://www.mirari.fr/jX5K').end()
8: .attr('src', split[1] + 'pixel.png');
9: }
10: });