//>>built
define("demos/faces/src/webcam",["dojo","dijit","dojox","dojo/require!dojox/embed/Flash"],function(_1,_2,_3){_1.provide("demos.faces.src.webcam");_1.require("dojox.embed.Flash");function _4(_5){base64Img="data:image/jpeg;base64,"+_5;var _6=false;for(i in people){if(people[i]=="webcam"){_6=true;break;}}if(!_6){people.push("webcam");}_1.style(_1.byId("photoShot"),"display","none");_1.query("#hair, #eyes, #mouth").forEach(function(_7){var _8=new Image();_8.src=base64Img;_1.style(_7,"backgroundImage","url("+_8.src+")");});};_1.addOnLoad(function(){var _9=_1.moduleUrl("dojoc.flash","photo_shot.swf");var _a={path:_9,width:"100%",height:"100%",params:{allowFullScreen:true,wmode:"transparent"}};var _b=new _3.embed.Flash(_a,"photoShot");_1.query("#addPic").onclick(function(e){_1.style("photoShot","display","");});_1.removeClass("addPic","invisible");});});