var viewer = createPanoViewer({swf:"krpano.swf", id:"krpanoSWFObject", target:"krpanoDIV"}); //viewer.useHTML5("whenpossible"); // incomment to use the HTML5 krpanoJS viewer always when possible (Safari5) if( viewer.isDevice("iPhone|iPod|Android") ) viewer.addVariable("xml", "krpano_mobile.xml"); else viewer.addVariable("xml", "krpano.xml"); viewer.embed();