$(document).ready(function(){PageManage.ready()});var PageManage={ready:function(){QuestionTypesManage.initMode()},complete:function(){}},SetManage={getMode:function(){var d=window.location.search,a=String(d),b=a.indexOf("mode")+5,c=0;if(b!=-1)c=a.substring(b,a.length);QuestionTypesManage.mode=c}},QuestionTypesManage={curMark:0,mode:0,initMode:function(){SetManage.getMode()},switchTags:function(c,e,d,a){a=a||"TagsSelect";var b=$(c).parent().children();b.each(function(){$(this).removeClass(a)});$(c).addClass(a).blur();var b=$("#"+e).children();b.each(function(a){if(a==d)$(this).show();else $(this).hide()})},add:function(b){var a=$(b).attr("mark");if(this.checkItem(a))return;this.send(a);this.curMark=a;this.update()},remove:function(){},getOption:function(){return $("#ID_QuestionType_Box .OptionUnSelect")},update:function(){var a=this.curMark;if(a=="")return;var b=this.getOption();b.each(function(){var b=$(this).attr("mark");if(b==a)$(this).addClass("OptionSelect");else $(this).removeClass("OptionSelect")})},checkItem:function(a){return a==this.curMark?true:false},send:function(a){parent.IframeFindSubTypeManage.receive(a)},receive:function(a){this.curMark=a;this.update()}}