$(function() {
    $('#slideshow').cycle({
        fx:     'fade',
        speed:  '1000',
        timeout: 8000,
        pager:  '#controls',
		slideExpr: 'div.slide',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#controls li:eq(' + (idx) + ') a';
        }
    });
});

 function playSound(soundfile) {
 document.getElementById("audio").innerHTML=
 "<embed src=\""+soundfile+"\" hidden=\"true\" autostart=\"true\" loop=\"false\" />";
 }
