/**
 * GV Custom code to inject the button
 */
document.observe('dom:loaded', function createRSButton() {
	if( (ul = $('quicklinkvlak1').childElements().first().next()) ) {
		// client id:
		var cid = 5454;

		ul.insert({bottom:
			new Element('li', {id:'readspeaker_button1'}).insert(
				new Element('a', {href:'http://app.readspeaker.com/cgi-bin/rsent?customerid='+cid+'&lang=nl_nl&readid=content_area&url='+escape(document.location.href)})
					.update(new Element('img', {
						src: 'http://media.readspeaker.com/images/buttons/listen_nl_nl/listen_nl_nl_grey.gif',
						alt: 'Laat de tekst voorlezen met ReadSpeaker',
						title: 'Laat de tekst voorlezen met ReadSpeaker'
					}))
					.observe('click', function readPage(event) {
						readpage(this.href, 'xp1');
						event.stop();
					})
			)
		});
		
		ul.insert({bottom:
			new Element('li', {id:'xp1'})
		});
	}
});
