var so = null; function launchHtml5(content_head, content_body) { $('body').html(''); $('body').each(function() { var attributes = $.map(this.attributes, function(item) { return item.name; }); var body = $(this); $.each(attributes, function(i, item) { body.removeAttr(item); }); }); $('head').html(content_head); $('body').html(content_body); mainHTML5.launchApplication({id: flashParams.mid, lng: flashParams.lng, title: encodeURIComponent(title), start_page: flashParams.startPage}); } function launchFlash() { $('body > div').css('display', ''); so = new SWFObject('index.swf', 'home', '100%', '100%', '8', '#ffffff', true); so.addParam('allowFullScreen', 'true'); if (flashParams.wmode != undefined) { so.addParam('wmode', flashParams.wmode); } so.addParam('menu', 'false'); for (var i in flashParams) { so.addVariable(i, flashParams[i]); } so.write('flashcontent'); if (typeof createLightbox == 'function') { createLightbox(); } } $(document).ready(function() { if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/android/i) || navigator.userAgent.match(/BlackBerry/i)) { var content_head = '