First of all you need to update to the latest version and use the updatetool to change the krpano.swf and the js file.
To get autodetection you also need to update the html file and change the embed settings.
You will see what is needed if you just generate a tour with the latest version and check the html.
This is how the embed look for auto HTML
embedpano({swf:"tour.swf", xml:"tour.xml", target:"pano", html5:"auto", passQueryParameters:true});
Hans