MagicSlideshow.options['onready'] = function() { if (window.Sirv) { Sirv.start(); } else { SirvOptions.autostart = true; } }