//
//
StudioPageWidget.prototype.shortName = null;
StudioPageWidget.prototype.storageFolderPath = null;
StudioPageWidget.prototype.mashId = null;
StudioPageWidget.prototype.checkXmlFlag = "0";
//
//
function StudioPageWidget(id, domContainer, parentWidget) {
    //
    //
    StudioPageWidget.prototype.superClass.constructor.call(this, id, domContainer, parentWidget);
    
    /*
     * <object type="application/x-shockwave-flash" data="../flash/editor.swf?jsessionid=VQnDLLBZJTTcnQmLtJFQ9KtJg11JLD2xXnmmnDYTch3JHJLfNyFQ!1344929263!1221116217122&userId=&folder=&action=mash&mashid=&checkXMLFlag=0&defaultPage=&playerType=new" width="818" id="myEditorFlash" height="600">
          <param name="movie" value="../flash/editor.swf?jsessionid=VQnDLLBZJTTcnQmLtJFQ9KtJg11JLD2xXnmmnDYTch3JHJLfNyFQ!1344929263!1221116217122&userId=&folder=&action=mash&mashid=&checkXMLFlag=0&defaultPage=&playerType=new"/>
          <param name="quality" value="high" />
          <param name="wmode" value="transparent" />
          <embed src="../flash/editor.swf?jsessionid=VQnDLLBZJTTcnQmLtJFQ9KtJg11JLD2xXnmmnDYTch3JHJLfNyFQ!1344929263!1221116217122&userId=&folder=&action=mash&mashid=&checkXMLFlag=0&defaultPage=&playerType=new" quality="high" bgcolor="#bcbcbc" width="818" height="600" swliveconnect="true"  name="myEditorFlash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />    
      </object>
     */
    this.childWidgets[this.id + "_editorWidget"] = new FlashWidget(this.id+"_editorWidget",this.id+"_editorWidgetHolder",this);
    this.childWidgets[this.id + "_editorWidget"].isOpen=true;
    
   
    
    this.childWidgets[this.id+"_editorWidget"].flashVersion="8";
    this.childWidgets[this.id+"_editorWidget"].setSwfUrl("/icc/flash/editor.swf");
    this.childWidgets[this.id+"_editorWidget"].defaultFlashParams["wmode"] = "transparent";
}
//
//
copyPrototype(StudioPageWidget, ContainerWidget);
//
//
StudioPageWidget.prototype.superClass=ContainerWidget.prototype;


StudioPageWidget.prototype.show=function(){
	this.setEmbedParams();
	StudioPageWidget.prototype.superClass.show.call(this);
}
StudioPageWidget.prototype.showChild=function(){
	this.setEmbedParams();
	StudioPageWidget.prototype.superClass.showChild.call(this);
}

StudioPageWidget.prototype.setEmbedParams=function(){
	if(this.childWidgets[this.id+"_editorWidget"]){
		var flashEmbedAttr = new Object();
		flashEmbedAttr["width"] = 818;
		flashEmbedAttr["height"] = 600;
		flashEmbedAttr["id"] = this.id + "_editorWidget_swf";
		flashEmbedAttr["name"] = this.id + "_editorWidget_swf";
		flashEmbedAttr["allowScriptAccess"]	= "always";
		
		flashEmbedAttr["userId"] = this.shortName;
		flashEmbedAttr["utype"] = "";
		flashEmbedAttr["folder"] = this.storageFolderPath;
		flashEmbedAttr["action"] = "mash";
		flashEmbedAttr["mashid"] = this.mashId;
		flashEmbedAttr["checkXMLFlag"] = this.checkXmlFlag;
		flashEmbedAttr["defaultPage"] = "";
		flashEmbedAttr["playerType"] = "new";
		flashEmbedAttr["mashEntrySetId"] = "1b607be7-7007-4225-8a1a-2c3cc1d9e6d3";
		flashEmbedAttr["saveMashesAsPublic"] = "true";
		this.childWidgets[this.id+"_editorWidget"].setFlashVars(flashEmbedAttr);
	}
}