function GetUnity() { if (typeof unityObject != "undefined") { return unityObject.getObjectById("unityPlayer"); } return null; } function detectUnityWebPlayer() { if (navigator.mimeTypes && navigator.mimeTypes["application/vnd.unity"] && navigator.mimeTypes["application/vnd.unity"].enabledPlugin) { if (navigator.plugins && navigator.plugins["Unity Player"]) { return true; } } return false; } jQuery(function($){ if (typeof unityObject != "undefined") { var tIsInstalled = detectUnityWebPlayer(); if (tIsInstalled){ $("#unityPlayer").show(); } else $("#unityInstall").show(); } $("#inline").fancybox({ 'autoDimensions' : false, 'width' : 810, 'height' : 610, 'transitionIn' : 'none', 'transitionOut' : 'none' }); });

Pulse para ver más información sobre el programa