var THREEx=THREEx||{};THREEx.createTextureCube=function(e){if("string"==typeof e)var r=THREEx.TextureCube.WellKnownUrls[e];else{if(e instanceof THREE.Texture){var t=e;return t}if(e instanceof Array)var r=e}var t=THREE.ImageUtils.loadTextureCube(r);return t},THREEx.TextureCube={},THREEx.TextureCube.baseUrl="../",THREEx.TextureCube.createUrls=function(e,r,t,u,E){u=u||"p",E=E||"n";var x=t+"/"+e+"/",T=[x+u+"x"+r,x+E+"x"+r,x+u+"y"+r,x+E+"y"+r,x+u+"z"+r,x+E+"z"+r];return T},THREEx.TextureCube.initWellKnownUrls=function(e){var r={},t=e+"images/";r.bridge2=THREEx.TextureCube.createUrls("Bridge2",".jpg",t,"pos","neg"),r.escher=THREEx.TextureCube.createUrls("Escher",".jpg",t),r.park2=THREEx.TextureCube.createUrls("Park2",".jpg",t,"pos","neg"),r.park3med=THREEx.TextureCube.createUrls("Park3Med",".jpg",t),r.pisa=THREEx.TextureCube.createUrls("pisa",".png",t),r.skybox=THREEx.TextureCube.createUrls("skybox",".jpg",t),r.swedishroyalcastle=THREEx.TextureCube.createUrls("SwedishRoyalCastle",".jpg",t),r.mars=THREEx.TextureCube.createUrls("mars",".jpg",t),THREEx.TextureCube.WellKnownUrls=r},THREEx.TextureCube.WellKnownUrls={},THREEx.TextureCube.initWellKnownUrls(THREEx.TextureCube.baseUrl);