var main;
function initl(l)
{
main = l;
l.g.inGameMenu.loadData("hisskinhsl:0,1,1,1;hisBody:male;hisPenis:1,0.8049999999999999,0.8049999999999999;balls:0,1.3;hisSkin:0;hisTop:none,238,242,245,1;hisBottoms:none,27,29,29,1;hisFootwear:none,0,0,0,1;");
myhide(l.g.him);
myhide(l.g.him.armContainer);
myhide(l.g.him.overLayer);
var hf = new hisfootl();
l.loadCustomFull(hf,".|Him.leftLegCostume.calf.foot","x:0;y:0;r:0;a:1");
myshow(hf);
//myhide(l.g.him.rightLegCostume.calf.foot);
var hfr = new hisfootr();
l.loadCustomFull(hfr,".|Him.rightLegCostume.calf.foot","x:0;y:0;r:0;a:1");
myshow(hfr);
//myhide(l.g.him.leftLegCostume.calf);
var hcl = new hiscalfl();
l.loadCustomFull(hcl,".|Him.leftLegCostume.calf","x:0;y:0;r:0;a:1");
myshow(hcl);
//myhide(l.g.him.rightLegCostume.calf);
var hcr = new hiscalfr();
l.loadCustomFull(hcr,".|Him.rightLegCostume.calf","x:0;y:0;r:0;a:1");
myshow(hcr);
//myhide(l.g.him.leftLegCostume);
var htl = new histhighl();
l.loadCustomFull(htl,".|Him.leftLegCostume","x:0;y:0;r:0;a:1");
myshow(htl);
//myhide(l.g.him.rightLegCostume);
var htr = new histhighr();
l.loadCustomFull(htr,".|Him.rightLegCostume","x:0;y:0;r:0;a:1");
myshow(htr);
//myhide(l.g.him.torsoLayer.torso);
var ht = new historso();
l.loadCustomFull(ht,".|Him.torsoLayer.torso","x:0;y:0;r:0;a:1");
myshow(ht);
var hupperarm = new hisupperarm();
hupperarm.rotation = -90;
l.him.armContainer.arm.upperArm.addChild(hupperarm);
myshow(hupperarm);
l.registerToRemove(hupperarm);
var hforearm = new hisforearm();
l.him.armContainer.arm.lowerArm.addChild(hforearm);
myshow(hforearm);
l.registerToRemove(hforearm);
var hhand = new hishand();
l.him.armContainer.arm.hand.addChild(hhand);
myshow(hhand);
l.registerToRemove(hhand);
var hupperarml = new hisupperarml();
l.him.leftArmContainer.arm.addChild(hupperarml);
myshow(hupperarml);
l.registerToRemove(hupperarml);
var hforearml = new hisforearml();
l.him.leftArmContainer.arm.foreArm.addChild(hforearml);
myshow(hforearml);
l.registerToRemove(hforearml);
var hhandl = new hishandl();
l.him.leftArmContainer.arm.foreArm.hand.addChild(hhandl);
myshow(hhandl);
l.registerToRemove(hhandl);
var penis = new hispenis();
l.him.penis.addChildAt(penis,l.him.penis.getChildIndex(l.him.penis.getChildAt(0))+1);
myshow(penis);
l.registerToRemove(penis);
l.registerUnloadFunction(dounload);
l.unloadMod();
//l.him.leftLeg.calf.visible=false;
//l.him.rightLeg.calf.visible=false;
}
function myhide(thing)
{
for(var i:int = 0; i < thing.numChildren; i++)
{
if(thing.getChildAt(i).hasOwnProperty("numChildren"))
{
myhide(thing.getChildAt(i));
}
thing.getChildAt(i).visible = false;
}
}
function myshow(thing)
{
if(thing.hasOwnProperty("parent"))
{
if(thing.parent != null)
{
if(thing.parent.hasOwnProperty("visible"))
{
if(!thing.parent.visible) myshow(thing.parent);
}
}
}
thing.visible = true;
}
function dounload()
{
main.g.him.setBody(1);
main.g.him.setBody(0);
main.g.saveData.saveCharData();
}