dojo.provide("parus.embeddedContent");dojo.require("dojo.window");dojo.require("dijit.Dialog");dojo.require("dijit.form.Button");dojo.require("dijit.layout.BorderContainer");dojo.require("dijit.layout.TabContainer");dojo.require("dijit.layout.ContentPane");dojo.require("dijit.Menu");dojo.require("parus.parus8");dojo.require("parus.dialog");dojo.require("parus.database");dojo.require("parus.dictEdit");dojo.require("parus.xml");if(!parus){parus={}}if(!parus.embeddedContent){dojo.mixin(parus,{embeddedContent:{}})}dojo.mixin(parus.embeddedContent,{startup:function(){var j=mill.session.values.params;j=parus.parus8.hexDecodeParams(j);var i=j[0];var h=j[1];var f=j[2];var e=j[3]||"";var d=i?mill.session.values[i]:"";var c;var b=new dijit.layout.BorderContainer({design:"headline",gutters:false,"class":"balanceTemplateContentPane"+(f=="0"?" balanceModifiedHeader":""),style:"height:100%;width:100%;padding:0;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"},dojo.place("<div></div>",dojo.body(),"last"));var a=parus.balance._createHeadingPane(h);b.addChild(a);var g=new dijit.layout.ContentPane({region:"center",content:d,href:e,"class":"balanceTemplateContentPaneContent",onLoad:function(){dojo.fadeIn({node:g.domNode}).play()},onShow:function(){loadingDiv.style.display="none";dojo.fadeIn({node:b.domNode,duration:300}).play();if(f=="0"){parus.embeddedMode.changeTabState(true)}if(!e){dojo.fadeIn({node:g.domNode}).play()}if(i){mill.session.setValue(i,"",true)}}});b.addChild(g);b.startup()}});