(function(a){a.fn.colorFade=function(){this.animate({backgroundColor:"#ff0000"},1).animate({backgroundColor:"#ffffff"},1000)}})(jQuery);(function(a){a.fn.jKwick=function(f){f=a.extend({min:0,max:0,mid:0,speed:150,easing:"linear"},f||{});var c=a("ul",this),e=a("li",c),d=e.length,g=null,j=null,b=true,h=false,i=function(){};e.hover(function(){if(!h){h=true;j=a(this);if(b){j.animate({width:f.max},f.speed);e.not(this).animate({width:f.min},f.speed,function(){g=j;b=h=false})}else{var l=j.width(),k=g.width();j.animate({width:f.max},{duration:f.speed,easing:f.easing,step:function(m){g.width(Math.ceil(k-(m-l)))},complete:function(){g=j;h=false}})}}},i);c.hover(i,function(){e.animate({width:f.mid},f.speed);b=true})}})(jQuery);(function(a){jQuery.fn.doxEditor=function(b){return this.each(function(){a(this).ckeditor(function(){},{customConfig:"",filebrowserBrowseUrl:"/api/gazeti/browseasset/none.html/"+Dox.Vars.SessionId,filebrowserImageBrowseUrl:"/api/gazeti/browseimage/none.html/"+Dox.Vars.SessionId,filebrowserFlashBrowseUrl:"/api/gazeti/browseflash/none.html/"+Dox.Vars.SessionId,filebrowserUploadUrl:a.cookie("UploadPath"),filebrowserImageUploadUrl:a.cookie("UploadPath"),filebrowserFlashUploadUrl:a.cookie("UploadPath"),filebrowserWindowWidth:"640",filebrowserWindowHeight:"480",filebrowserImageWindowWidth:"640",filebrowserImageWindowHeight:"480",filebrowserImageWindowWidth:"640",filebrowserImageWindowHeight:"480",htmlEncodeOutput:false,enterMode:"2",language:"sv",toolbarStartupExpanded:false,scayt_autoStartup:false,uiColor:"#ccc",toolbar:[["Bold","Italic","Underline","-","NumberedList","BulletedList"],["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","Outdent","Indent","Blockquote","-","Link","Unlink"],["Undo","Redo","-","Find","Replace","-","SelectAll","RemoveFormat"],["Image","Flash","Table","HorizontalRule","Smiley","SpecialChar","PageBreak"],["Styles","Format","Font","FontSize"],"/",["Form","Checkbox","Radio","TextField","Textarea","Select","Button","ImageButton","HiddenField"],["TextColor","BGColor"],["Templates"],["Source","Maximize"]]})})}})(jQuery);(function(a){a.fn.Slidinglabels=function(e){var d={topPosition:"5px",leftPosition:"5px",axis:"x",speed:"fast"};var e=a.extend(d,e);var c=this.children(".formslider");var b=c.children("label");return b.each(function(){obj=a(this);var g=obj.parents(".formslider");g.css({position:"relative"});obj.css({position:"absolute",top:d.topPosition,left:d.leftPosition,display:"inline","z-index":99});var h=a(this).next().val();var j=a(this).width();var i=j+5+"px";var f=a(this).height();if(h!==""){if(d.axis=="x"){obj.stop().animate({left:"-"+i},1)}else{if(d.axis=="y"){obj.stop().animate({top:"-"+f},1)}}}a("input, textarea").focus(function(){var p=a(this).prev("label");var n=p.width();var l=p.height();var k=n+5+"px";var o=l+"px";var m=a(this).val();if(m==""){if(d.axis=="x"){p.stop().animate({left:"-"+k},d.speed)}else{if(d.axis=="y"){p.stop().animate({top:"-"+o},d.speed)}}}else{if(d.axis=="x"){p.css({left:"-"+k})}else{if(d.axis=="y"){p.css({top:"-"+o})}}}}).blur(function(){var l=a(this).prev("label");var k=a(this).val();if(k==""){if(d.axis=="x"){l.stop().animate({left:d.leftPosition},d.speed)}else{if(d.axis=="y"){l.stop().animate({top:d.leftPosition},d.speed)}}}})})}})(jQuery);jQuery.extend({doxGet:function(a,c,b){if(b===undefined){b="html"}return jQuery.ajax({type:"GET",url:a,cache:false,dataType:b,timeout:15000,success:function(d){if(jQuery.isFunction(c)){c(d)}},error:function(f,e,d){$.jGrowl(e+" "+a,{sticky:true,header:"Ajax Error"})},complete:function(){}})},doxPost:function(a,b,c){return jQuery.ajax({type:"POST",url:a,cache:false,data:b,dataType:"html",timeout:15000,success:function(d){if(jQuery.isFunction(c)){c(d)}},error:function(f,e,d){$.jGrowl(e+" "+a,{sticky:true,header:"Ajax Error"})},complete:function(){}})},doxScript:function(a,b,c){return jQuery.ajax({type:"GET",url:a,cache:true,data:b,dataType:"script",timeout:15000,success:function(d){if(jQuery.isFunction(c)){c(d)}},error:function(f,e,d){$.jGrowl(e+" "+a,{sticky:true,header:"script load error"})},complete:function(){}})}});var Dox={};Dox._construct=function(){function c(){}function h(){}function a(){}function f(){}function g(){}function e(){}function d(){}function b(){}this.Vars=c;this.Resource=h;this.Dialog=a;this.Session=f;this.UserParameter=g;this.Model=e;this.ViewModel=d;this.View=b;Dox.Vars.SessionId=$.cookie("DOXSESSIONID51X");Dox.Vars.UserId=$.cookie("DOXUSERID51X");Dox.Vars.Language=$.cookie("LANGUAGE51X");Dox.Vars.null_guid="{00000000-0000-0000-0000-000000000000}";Dox.Vars.Skin=$.cookie("SKIN");Dox.Vars.PlValue=$.cookie("PLVALUE51X");Dox.Vars.IsDragging=false;Dox.Vars.IsCtrl=false;Dox.Vars.IsShift=false;Dox.Vars.FileIndex=-1;Dox.Vars.FileCount=0;Dox.Vars.SelectedFilesCount=0};Dox._construct();Dox.Model.SelectFile=function(b,a){$.doxGet("/api/doxfile/select/"+b+".html/"+Dox.Vars.SessionId,a)};Dox.Model.SelectFiles=function(b,a){$.doxPost("/api/doxfile/selectfiles/none.html/"+Dox.Vars.SessionId,b,a)};Dox.Model.ToggleSelectFile=function(b,a){$.doxGet("/api/doxfile/toggleselectfile/"+b+".html/"+Dox.Vars.SessionId,a)};Dox.Model.DeselectFile=function(b,a){$.doxGet("/api/doxfile/deselect/"+b+".html/"+Dox.Vars.SessionId,a)};Dox.Model.SelectFilesRecursive=function(b,a){$.doxPost("/api/doxfile/selectfilesrecursive/none.html/"+Dox.Vars.SessionId,b,a)};Dox.Model.DeselectFilesRecursive=function(b,a){$.doxPost("/api/doxfile/deselectfilesrecursive/none.html/"+Dox.Vars.SessionId,b,a)};Dox.Model.DeselectAllFiles=function(a){$.doxGet("/api/doxfile/deselectallfiles/none.html/"+Dox.Vars.SessionId,a)};Dox.Model.SelectedFilesCount=function(a){if(Dox.Vars.SessionId!==null){$.doxGet("/api/doxfile/selectedfilescount/none.html/"+Dox.Vars.SessionId,a)}};Dox.Model.DeleteFile=function(b,a){$.doxGet("/api/doxfile/delete/"+b+".html/"+Dox.Vars.SessionId,a)};Dox.Model.SelectedFilesMove=function(b,a){$.doxPost("/api/doxfile/selectedfilesmove/none.html",b,a)};Dox.Model.SelectedFilesCopy=function(b,a){$.doxPost("/api/doxfile/selectedfilescopy/none.html",b,a)};Dox.Model.SelectedFilesShortcut=function(b,a){$.doxPost("/api/doxfile/selectedfilesshortcut/none.html",b,a)};Dox.Model.Shortcut=function(a,b,c){$.doxPost("/api/doxfile/shortcut/"+a+".html/"+Dox.Vars.SessionId,b,c)};Dox.Model.SelectedFilesDelete=function(b,a){$.doxPost("/api/doxfile/selectedfilesdelete/none.html",b,a)};Dox.Model.SelectedFilesUndelete=function(b,a){$.doxPost("/api/doxfile/selectedfilesundelete/none.html",b,a)};Dox.Model.GetFileDetails=function(b,a){$.doxGet("/api/doxfile/filedetails/"+b+".html/"+Dox.Vars.SessionId,a)};Dox.Model.GetFileInfo=function(b,a){$.doxGet("/api/doxfile/fileinfo/"+b+".html/"+Dox.Vars.SessionId,a)};Dox.Model.GetFileRow=function(b,a){$.doxGet("/api/doxfile/filerow/"+b+".html/"+Dox.Vars.SessionId,a)};Dox.Model.GetFileRows=function(b,a){$.doxGet("/api/doxfile/filerows/"+b+".html/"+Dox.Vars.SessionId,a)};Dox.Model.GetFiles=function(b,a){if(b==undefined||b==null||b==""){b="none"}$.doxGet("/api/doxfile/filelist/"+b+".html/"+Dox.Vars.SessionId,a)};Dox.Model.FileListSort=function(b,a){$.doxPost("/api/doxfile/filelistsort/none.html/"+Dox.Vars.SessionId,b,a)};Dox.Model.FilePage=function(a){$.doxGet("/api/doxfile/filepage/none.html/"+Dox.Vars.SessionId,a)};Dox.Model.GetErasedFiles=function(a){$.doxGet("/api/doxfile/erasedfilelist/none.html/"+Dox.Vars.SessionId,a)};Dox.Model.GetSelectedFiles=function(a){$.doxGet("/api/doxfile/selectedfilelist/none.html/"+Dox.Vars.SessionId,a)};Dox.Model.GetFoundFiles=function(a){$.doxGet("/api/doxfile/foundfilelist/none.html/"+Dox.Vars.SessionId,a)};Dox.Model.GetLastClickedButton=function(a){$.doxGet("/api/doxuser/getlastclickedbutton/"+Dox.Vars.UserId+".html/"+Dox.Vars.SessionId,a)};Dox.Model.SelectInNewSession=function(b,a){$.doxPost("/api/doxfile/selectinnewsession/none.html/"+Dox.Vars.SessionId,b,a)};Dox.Model.GetFolderInfo=function(a,b){$.doxGet("/api/doxfolder/folderinfo/"+a+".html/"+Dox.Vars.SessionId,b)};Dox.Model.GetSubfolders=function(b,a){$.doxGet("/api/doxfolder/getsubfolders/"+b+".html/"+Dox.Vars.SessionId,a)};Dox.Model.GetBreadcrumb=function(b,a){$.doxGet("/api/doxfolder/breadcrumb/"+b+".html/"+Dox.Vars.SessionId,a)};Dox.Model.FolderSet=function(d,c,a,b){$.doxPost("/api/doxfolder/current/"+d+".html/"+c,a,b)};Dox.Model.FolderSetBid=function(d,c,a,b){$.doxPost("/api/doxfolder/currentbid/"+d+".html/"+c,a,b)};Dox.Model.FolderExpand=function(c,b,a){$.doxGet("/api/doxfolder/expand/"+c+".html/"+b,a)};Dox.Model.FolderCollapse=function(c,b,a){$.doxGet("/api/doxfolder/collapse/"+c+".html/"+b,a)};Dox.Model.FolderExpandBid=function(c,b,a){$.doxGet("/api/doxfolder/expandbid/"+c+".html/"+b,a)};Dox.Model.FolderCollapseBid=function(c,b,a){$.doxGet("/api/doxfolder/collapsebid/"+c+".html/"+b,a)};Dox.Model.GetFolderCreate=function(b,a){$.doxGet("/api/doxfolder/foldercreate/"+b+".html/"+Dox.Vars.SessionId,a)};Dox.Model.GetFolderUpdate=function(b,a){$.doxGet("/api/doxfolder/folderupdate/"+b+".html/"+Dox.Vars.SessionId,a)};Dox.Model.GetFolderDelete=function(b,a){$.doxGet("/api/doxfolder/folderdelete/"+b+".html/"+Dox.Vars.SessionId,a)};Dox.Model.FolderMove=function(d,a,b){var c={sourceFolderId:d,newSessionId:a};$.doxPost("/api/doxfolder/foldermove/"+d+".html/"+Dox.Vars.SessionId,c,b)};Dox.Model.FolderCopyStructure=function(b,a){$.doxPost("/api/doxfolder/foldercopystructure/none.html/"+Dox.Vars.SessionId,b,a)};Dox.Model.GroupRights=function(a,b){$.doxGet("/api/doxfolder/grouprights/"+a+".html/"+Dox.Vars.SessionId,b)};Dox.Model.GroupNonRights=function(a,b){$.doxGet("/api/doxfolder/groupnonrights/"+a+".html/"+Dox.Vars.SessionId,b)};Dox.Model.GroupNotify=function(a,b){$.doxGet("/api/doxfolder/groupnotify/"+a+".html/"+Dox.Vars.SessionId,b)};Dox.Model.GroupNonNotify=function(a,b){$.doxGet("/api/doxfolder/groupnonnotify/"+a+".html/"+Dox.Vars.SessionId,b)};Dox.Model.GetSelectOptions=function(a,b){$.doxGet("/api/doxfolder/selectoptions/"+a+".html/"+Dox.Vars.SessionId,b)};Dox.Model.GetObjectsWithFolderRights=function(b,a){$.doxGet("/api/doxuser/objectswithfolderrights/"+b+".html",a)};Dox.Resource.Get=function(a,b){var c="";return jQuery.ajax({type:"GET",url:"/api/resource/get/"+a+"/"+Dox.Vars.Language,cache:false,async:false,dataType:"html",timeout:7500,global:false,success:function(d){c=d},error:function(e,f,d){c=f},complete:function(){if(c!=""){c=b}}}).responseText};Dox.Session.Close=function(a){$.get("/api/doxsession/close/none.html/"+a)};Dox.Session.Set=function(d,b,c,e){var a={sessionId:c,value:b};$.doxPost("/api/doxsession/value/"+d+".html",a,e)};Dox.Session.Get=function(a,b,c){$.doxGet("/api/doxsession/value/"+a+".html/"+b,c)};Dox.UserParameter.Set=function(d,a,b){var c={sessionId:Dox.Vars.SessionId,value:a};$.doxPost("/api/doxuser/parameter/"+d+".html",c,b)};Dox.UserParameter.Get=function(b,a){$.doxGet("/api/doxuser/parameter/"+b+".html/"+Dox.Vars.SessionId,a)};Dox.Session.SaveTemp=function(d,a,b){var c={sessionId:Dox.Vars.SessionId,value:a};$.doxPost("/api/doxuser/mailsavetemp/"+d+".html",c,b)};Dox.Session.GetMailTemp=function(b,a){$.doxGet("/api/doxuser/mailgettemp/"+b+".html/"+Dox.Vars.SessionId,a)};Dox.Dialog.FileDrop=function(b,a){$.doxPost("/html/askfiledrop/"+Dox.Vars.SessionId,b,a)};Dox.Dialog.FileDelete=function(b,a){$.doxPost("/html/askfiledelete/"+Dox.Vars.SessionId,b,a)};Dox.Dialog.SelectFolderMove=function(a){$.doxGet("/html/selectfoldermove/"+Dox.Vars.SessionId,a)};Dox.Dialog.FolderMove=function(a){$.doxGet("/html/foldermove/"+Dox.Vars.SessionId,a)};Dox.Dialog.FolderCopy=function(a){$.doxGet("/html/foldercopy/"+Dox.Vars.SessionId,a)};Dox.Dialog.FolderDrop=function(b,a){$.doxPost("/html/askfolderdrop/"+Dox.Vars.SessionId,b,a)};Dox.Dialog.InviteUserByEmail=function(a){$.doxGet("/html/inviteuserbyemail/"+Dox.Vars.SessionId,a)};Dox.Model.FolderMultiButton=function(a){$.doxGet("/html/foldermultibutton/"+Dox.Vars.SessionId,a)};Dox.Dialog.SelectFolderCopy=function(a){$.doxGet("/html/selectfoldercopy/"+Dox.Vars.SessionId,a)};Dox.Dialog.SelectFolderShortcut=function(a){$.doxGet("/html/selectfoldershortcut/"+Dox.Vars.SessionId,a)};Dox.Model.GetMyProjects=function(a,b){$.doxGet("/html/myprojects/"+Dox.Vars.SessionId,b)};Dox.Model.GetUserBreadcrumb=function(a,b){$.doxGet("/api/doxuser/breadcrumb/"+a+".html/"+Dox.Vars.SessionId,b)};Dox.Model.AddPersonToGroup=function(b,a){$.doxPost("/api/doxuser/addpersontogroup/none.html",b,a)};Dox.Model.AddPersonToGroupUserDetails=function(b,a){$.doxPost("/api/doxuser/addtogroupuserdetails/none.html",b,a)};Dox.Model.GroupAddMembership=function(b,a){$.doxPost("/api/doxuser/groupaddmembership/none.html",b,a)};Dox.Model.GroupRemoveMembership=function(b,a){$.doxPost("/api/doxuser/groupremovemembership/none.html",b,a)};Dox.Model.GroupRemoveMembershipUserDetails=function(b,a){$.doxPost("/api/doxuser/removefromgroupuserdetails/none.html",b,a)};Dox.Model.GetUserRows=function(a,b){$.doxGet("/api/doxuser/userlist/"+a+".html/"+Dox.Vars.SessionId,b)};Dox.Model.GetUserNotMemberRows=function(a,b){$.doxGet("/api/doxuser/userlistnotincontainer/"+a+".html/"+Dox.Vars.SessionId,b)};Dox.Model.GetUserRow=function(b,a){$.doxGet("/api/doxuser/userrow/"+b+".html/"+Dox.Vars.SessionId,a)};Dox.Model.GetContainerId=function(){$.doxGet("/api/doxuser/currentcontainer/none.html/"+Dox.Vars.SessionId,null)};Dox.Model.GetContainertype=function(a){$.doxGet("/api/doxuser/currentcontainertype/none.html/"+Dox.Vars.SessionId,a)};Dox.Model.SetContainerId=function(c,a,b,d){$.doxPost("/api/doxuser/currentcontainer/"+c+"."+a+"/"+Dox.Vars.SessionId,b,d)};Dox.Model.GetUserDetails=function(a,b){$.doxGet("/api/doxuser/userdetails/"+a+".html/"+Dox.Vars.SessionId,b)};Dox.Model.ToggleSelectUser=function(a,b){$.doxGet("/api/doxuser/SelectUserToggle/"+a+".html/"+Dox.Vars.SessionId,b)};Dox.Model.GetUserInfo=function(a,b){$.doxGet("/api/doxuser/userinfo/"+a+".html/"+Dox.Vars.SessionId,b)};Dox.Model.FolderStyle=function(a,b){$.doxGet("/api/gazeti/folderstyle/"+a+".html/"+Dox.Vars.SessionId,b)};Dox.Model.SendUserPassword=function(b,a){$.doxGet("/api/doxuser/senduserpassword/"+b+".html/"+Dox.Vars.SessionId,a)};Dox.Model.GetLinkedFiles=function(b,a){$.doxGet("/api/gazeti/linkedfiles/"+b+".html/"+Dox.Vars.SessionId,a)};Dox.Model.LinkFile=function(a,b,c){$.doxPost("/api/gazeti/link/"+a+".html/"+Dox.Vars.SessionId,b,c)};Dox.Model.UnlinkFile=function(a,b,c){$.doxPost("/api/gazeti/unlink/"+a+".html/"+Dox.Vars.SessionId,b,c)};Dox.Model.TagList=function(b,a){$.doxPost("/api/doxusertag/taglist/none.html/"+Dox.Vars.SessionId,b,a)};Dox.Model.DeleteTag=function(b,a){$.doxPost("/api/doxusertag/delete/none.html/"+Dox.Vars.SessionId,b,a)};Dox.Model.AttachTag=function(b,a){$.doxPost("/api/doxusertag/attach/none.html/"+Dox.Vars.SessionId,b,a)};Dox.Model.DetachTag=function(b,a){$.doxPost("/api/doxusertag/detach/none.html/"+Dox.Vars.SessionId,b,a)};Dox.Model.AttachGroup=function(b,a){$.doxPost("/api/doxusertag/attachgroup/none.html/"+Dox.Vars.SessionId,b,a)};Dox.Model.DetachGroup=function(b,a){$.doxPost("/api/doxusertag/detachgroup/none.html/"+Dox.Vars.SessionId,b,a)};Dox.Model.ApplyTags=function(b,a){$.doxPost("/api/doxusertag/applytags/none.html/"+Dox.Vars.SessionId,b,a)};Dox.ViewModel.GetGrowlMessage=function(c){c=c.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b="[\\?&]"+c+"=([^&#]*)";var a=new RegExp(b);var d=a.exec(window.location.href);if(d==null){return""}else{$.jGrowl(Dox.Resource.Get(d[1],"Not set"),{life:10000,header:Dox.Resource.Get("INFORMATION","Dox information")})}};Dox.ViewModel.HideWorker=function(){$("#workingOuter").remove();$(".sort").hide().removeClass("menu-open")};Dox.ViewModel.TabsClear=function(){$("#itemsContent").tabs("remove",1);$("#itemsContent").tabs("remove",1);$("#itemsContent").tabs("remove",1);$("#itemsContent").tabs("remove",1);$("#itemsContent").tabs("remove",1);$("#itemsContent").tabs("remove",1)};Dox.ViewModel.TabsLoad=function(d,e,a,c,b){$("#itemsContent").tabs({tabTemplate:'<li><a class="tempcls" href="#{href}">&nbsp;</a></li>',add:function(g,f){}});if(d){if($("#itemsContent").tabs("length")>1){Dox.ViewModel.TabsClear()}$("#itemsContent").tabs("add","/api/doxuser/userlistnotincontainer/"+b+".html/"+Dox.Vars.SessionId,"&nbsp;",1);$("#itemsContent a.tempcls").removeClass().addClass("ico-isnotmember").attr("title",Dox.Resource.Get("TITLENOTMEMBER","Not members"));$("#itemsContent").tabs("add","/api/doxfolder/grouprights/"+b+".html/"+Dox.Vars.SessionId,"&nbsp;",2);$("#itemsContent a.tempcls").removeClass().addClass("ico-folderrights").attr("title",Dox.Resource.Get("ADMINFOLDERRIGHTS","Folders with rights"));$("#itemsContent").tabs("add","/api/doxfolder/groupnonrights/"+b+".html/"+Dox.Vars.SessionId,"&nbsp;",3);$("#itemsContent a.tempcls").removeClass().addClass("ico-foldernorights").attr("title",Dox.Resource.Get("ADMINFOLDERNORIGHTS","Folders with no rights"));$("#itemsContent").tabs("add","/api/doxfolder/groupnotify/"+b+".html/"+Dox.Vars.SessionId,"&nbsp;",4);$("#itemsContent a.tempcls").removeClass().addClass("ico-withnotify").attr("title",Dox.Resource.Get("ADMINFOLDERNOTIFICATIONS","Folders with notifications"));$("#itemsContent").tabs("add","/api/doxfolder/groupnonnotify/"+b+".html/"+Dox.Vars.SessionId,"&nbsp;",5);$("#itemsContent a.tempcls").removeClass().addClass("ico-withnonotify").attr("title",Dox.Resource.Get("ADMINFOLDERNONOTIFICATIONS","Folders with no notifications"));$("#itemsContent").tabs("add","/api/doxuser/containerinfo/"+b+".html/"+Dox.Vars.SessionId,"&nbsp;",6);$("#itemsContent a.tempcls").removeClass().addClass("ico-edit").attr("title",Dox.Resource.Get("GROUPEDIT","Edit group"))}else{Dox.ViewModel.TabsClear()}if(e){if($("#itemsContent").tabs("length")>1){$("#itemsContent").tabs("remove",2)}$("#itemsContent").tabs("add","/api/doxuser/userlistnotincontainer/"+b+".html/"+Dox.Vars.SessionId,"&nbsp;",1);$("#itemsContent a.tempcls").removeClass().addClass("ico-isnotmember").attr("title",Dox.Resource.Get("TITLENOTMEMBER","Not members"));$("#itemsContent").tabs("add","/api/doxuser/containerinfo/"+b+".html/"+Dox.Vars.SessionId,"&nbsp;",2);$("#itemsContent a.tempcls").removeClass().addClass("ico-edit").attr("title",Dox.Resource.Get("GROUPEDIT","Edit group"))}if(a){if($("#itemsContent").tabs("length")>1){$("#itemsContent").tabs("remove",2)}$("#itemsContent").tabs("add","/api/doxuser/userlistnotincontainer/"+b+".html/"+Dox.Vars.SessionId,"&nbsp;",1);$("#itemsContent a.tempcls").removeClass().addClass("ico-isnotmember").attr("title",Dox.Resource.Get("TITLENOTMEMBER","Not members"));$("#itemsContent").tabs("add","/api/doxuser/containerinfo/"+b+".html/"+Dox.Vars.SessionId,"&nbsp;",2);$("#itemsContent a.tempcls").removeClass().addClass("ico-edit").attr("title",Dox.Resource.Get("GROUPEDIT","Edit group"))}if(c){if(b!=""&&b!=undefined){if($("#itemsContent").tabs("length")>1){$("#itemsContent").tabs("remove",2)}$("#itemsContent").tabs("add","/api/doxuser/userlistnotincontainer/"+b+".html/"+Dox.Vars.SessionId,"&nbsp;",1);$("#itemsContent a.tempcls").removeClass().addClass("ico-isnotmember").attr("title",Dox.Resource.Get("TITLENOTMEMBER","Not members"));$("#itemsContent").tabs("add","/api/doxuser/containerinfo/"+b+".html/"+Dox.Vars.SessionId,"&nbsp;",2);$("#itemsContent a.tempcls").removeClass().addClass("ico-edit").attr("title",Dox.Resource.Get("EDITCOMPANY","Edit company"))}}if(!d&&!e&&!a&&!c&&Dox.Vars.PlValue=="True"){$("#itemsContent").tabs("add","/api/doxuser/userlistdisabled/undefined.html/"+Dox.Vars.SessionId,"&nbsp;",1);$("#itemsContent a.tempcls").removeClass().addClass("ico-waste").attr("title",Dox.Resource.Get("DISABLEDGROUPTITLE","Not members"))}Dox.View.PersonsDraggable();Dox.View.PersonsSelectable();Dox.ViewModel.RenderTooltips()};Dox.ViewModel.RefreshUserRows=function(a){if(a==""){a=Dox.Vars.null_guid}var b=function(c){if(null!=c){$("#Persons").replaceWith(c)}};Dox.Model.GetUserRows(a,b);Dox.ViewModel.HideWorker()};Dox.ViewModel.RefreshUserNotMemberRows=function(a){if(a==""){a=Dox.Vars.null_guid}var b=function(c){if(null!=c){$("#PersonsNotMembers").replaceWith(c)}};Dox.Model.GetUserNotMemberRows(a,b);Dox.ViewModel.HideWorker()};Dox.ViewModel.AddPersonToGroup=function(d,a,b){var e=function(){Dox.ViewModel.RefreshUserRows(d);Dox.Session.Close(a);$("#askDialog").dialog("close")};var c={containerId:d,sessionId:a,groupType:b};Dox.Model.AddPersonToGroup(c,e);Dox.ViewModel.HideWorker()};Dox.ViewModel.GroupAddMembership=function(a){var c=function(d){$("#PersonsNotMembers tbody tr[data-userid="+a+"]").each(function(){$(this).remove()});if(null!=d){Dox.ViewModel.RefreshUserRows(d)}};var b={id:a,sessionId:Dox.Vars.SessionId,userId:Dox.Vars.UserId};Dox.Model.GroupAddMembership(b,c);Dox.ViewModel.HideWorker()};Dox.ViewModel.GroupRemoveMembership=function(a){var c=function(d){$("#Persons tbody tr[data-userid="+a+"]").each(function(){$(this).remove()});if(null!=d){Dox.ViewModel.RefreshUserNotMemberRows(d)}};var b={id:a,sessionId:Dox.Vars.SessionId,userId:Dox.Vars.UserId};Dox.Model.GroupRemoveMembership(b,c);Dox.ViewModel.HideWorker()};Dox.ViewModel.AddToGroupUserDetails=function(a,c,b){var e=function(){switch(b){case"admingroup":$("#itemDetailTabs").tabs("load",1);break;case"usergroup":$("#itemDetailTabs").tabs("load",2);break;case"persongroup":$("#itemDetailTabs").tabs("load",3);break}};var d={userId:a,groupId:c,groupType:b,sessionId:Dox.Vars.SessionId};Dox.Model.AddPersonToGroupUserDetails(d,e);Dox.ViewModel.HideWorker()};Dox.ViewModel.RemoveFromGroupUserDetails=function(a,c,b){var e=function(){switch(b){case"admingroup":$("#itemDetailTabs").tabs("load",1);break;case"usergroup":$("#itemDetailTabs").tabs("load",2);break;case"persongroup":$("#itemDetailTabs").tabs("load",3);break}};var d={userId:a,groupId:c,groupType:b,sessionId:Dox.Vars.SessionId};Dox.Model.GroupRemoveMembershipUserDetails(d,e);Dox.ViewModel.HideWorker()};Dox.ViewModel.GetUserDetails=function(a,b){Dox.ViewModel.CloseUserDetails();var c=function(d){a.replaceWith(d);$("#itemDetailTabs").tabs({cache:false,spinner:"",ajaxOptions:{cache:false}})};Dox.Model.GetUserDetails(b,c);Dox.ViewModel.HideWorker()};Dox.ViewModel.CloseUserDetails=function(){Dox.Session.Set("SELECTEDUSERID","",Dox.Vars.SessionId,null);var c=$("table.personList tr.itemDetails");if(c.length<1){return}var b=c.data("userid");var a=function(d){$("table.personList tr.itemDetails").replaceWith(d);Dox.Session.Set("userId",b,Dox.Vars.SessionId,null)};Dox.Model.GetUserRow(b,a);Dox.ViewModel.HideWorker()};Dox.ViewModel.RenderUserBreadcrumb=function(a){var b=function(c){$("#breadCrumb").html(c)};if(a==""){a="none"}Dox.Model.GetUserBreadcrumb(a,b);Dox.ViewModel.HideWorker()};Dox.ViewModel.SetContainerIdToEdit=function(b,a){var c=function(d){$("#breadCrumb").html(d)};Dox.Model.GetUserBreadcrumb(b,c);Dox.ViewModel.HideWorker()};Dox.ViewModel.SetContainerId=function(c,a){var b={sessionId:Dox.Vars.SessionId,containerId:c};Dox.Model.SetContainerId(c,a,b,null);Dox.ViewModel.RenderUserBreadcrumb(c);$.publish("containerchanged",[c]);Dox.ViewModel.HideWorker()};Dox.ViewModel.GetContainerType=function(){var a=function(b){var c=0;var d=$("table.personList").data("containerid");switch(b){case"createag":case"admingroup":c=1;Dox.ViewModel.TabsLoad(true,false,false,false,d);break;case"createug":case"usergroup":c=2;Dox.ViewModel.TabsLoad(false,true,false,false,d);break;case"createpug":case"persongroup":c=3;Dox.ViewModel.TabsLoad(false,false,true,false,d);break;default:c=0;Dox.ViewModel.TabsLoad(false,false,false,true,d)}$("#groupContent").tabs("select",c);Dox.ViewModel.RenderUserBreadcrumb(d)};if(Dox.Vars.SessionId!==Dox.Vars.null_guid&&Dox.Vars.SessionId!=null){Dox.Model.GetContainertype(a)}};Dox.ViewModel.RenderTooltips=function(){$("table.personList th.iteminfo a").colorTip({color:Dox.Vars.Skin,content:Dox.Resource.Get("SHOWUSERINFO","Show userinfo")});$("table.personList th.itemDetails-ico a").colorTip({color:Dox.Vars.Skin,content:Dox.Resource.Get("FILEPROP","Properties")})};Dox.ViewModel.SelectUserInDom=function(b){var a=$("table.personList tr[data-userid="+b+"] a.ico-check-False");if(a.length){a.removeClass("ico-check-False").addClass("ico-check-True");a.parents("tr").addClass("selected")}};Dox.ViewModel.DeselectUserInDom=function(a){$("#SelectedItems tr[data-userid="+a+"]").remove();sf=$("table.personList tr[data-userid="+a+"] a.ico-check-True");if(sf.length){sf.removeClass("ico-check-True").addClass("ico-check-False");sf.parents("tr").removeClass("selected")}};Dox.ViewModel.ToggleSelectUser=function(b){var a=function(c){if(c.indexOf(b)>0){$("#SelectedItems tbody tr[data-userid="+b+"]").remove();$("#SelectedItems tbody").append(c);Dox.ViewModel.SelectUserInDom(b)}else{$("#SelectedItems tbody tr[data-userid="+b+"]").remove();Dox.ViewModel.DeselectUserInDom(b)}};Dox.Model.ToggleSelectUser(b,a);Dox.ViewModel.HideWorker()};Dox.ViewModel.UserInfo=function(b){var a=function(c){if(c.indexOf("data-userid")<0){$("#itemPopupContent").html("<span>Page "+b+" did not return a valid result </span>")}if(c.indexOf(b)>0){$("#itemPopupContent").html(c)}};Dox.Model.GetUserInfo(b,a);Dox.ViewModel.HideWorker()};Dox.ViewModel.RenderRights=function(a){var b=function(c){$("div.rightscontent").replaceWith(c);Dox.ViewModel.InitRightsTab()};Dox.Model.GroupRights(a,b);Dox.ViewModel.HideWorker()};Dox.ViewModel.RenderNonRights=function(a){var b=function(c){$("div.nonrightscontent").empty();$("div.nonrightscontent").replaceWith(c);Dox.ViewModel.InitNonRightsTab()};Dox.Model.GroupNonRights(a,b);Dox.ViewModel.HideWorker()};Dox.ViewModel.RightsIndexChange=function(b,a){if(b!==""){var c=function(d){Dox.ViewModel.RenderRights(b)}}Dox.Session.Set("pageIndexRights",a,Dox.Vars.SessionId,c);Dox.ViewModel.HideWorker()};Dox.ViewModel.NonRightsIndexChange=function(b,a){if(b!==""){var c=function(d){Dox.ViewModel.RenderNonRights(b)}}Dox.Session.Set("pageIndexNonRights",a,Dox.Vars.SessionId,c);Dox.ViewModel.HideWorker()};Dox.ViewModel.InitRightsTab=function(){$("div.rightscontent a.dox-pg-page[data-pi]").live("click",function(f){f.preventDefault();var c=$(this).data("pi");var d=$("div.rightscontent").data("containerid");Dox.ViewModel.RightsIndexChange(d,c)});var a={success:function(){var c=$("div.rightscontent").data("containerid");Dox.ViewModel.RenderRights(c)}};$("form.rights").ajaxForm(a);var b={success:function(){var c=function(){var d=$("div.rightscontent").data("containerid");Dox.ViewModel.RenderRights(d)};Dox.Session.Set("pageIndexRights",1,Dox.Vars.SessionId,c)}};$("form.filter").ajaxForm(b);$("div.rightscontent ul li:odd").addClass("odd");Dox.ViewModel.RightsCheckBoxes()};Dox.ViewModel.InitNonRightsTab=function(){$("div.nonrightscontent a.dox-pg-page[pi]").live("click",function(f){f.preventDefault();var c=$(this).data("pi");var d=$("div.nonrightscontent").data("containerid");Dox.ViewModel.NonRightsIndexChange(d,c)});var a={success:function(){var c=$("div.nonrightscontent").data("containerid");Dox.ViewModel.RenderNonRights(c)}};$("form.rights").ajaxForm(a);var b={success:function(){var c=function(){var d=$("div.nonrightscontent").data("containerid");Dox.ViewModel.RenderNonRights(d)};Dox.Session.Set("pageIndexNonRights",1,Dox.Vars.SessionId,c)}};$("div.nonrightscontent ul li:odd").addClass("odd");$("form.filter").ajaxForm(b);Dox.ViewModel.RightsCheckBoxes()};Dox.ViewModel.RightsCheckBoxes=function(){$("a.allread").live("click",function(){$("input[name=read]").attr("checked",true)});$("a.allwrite").live("click",function(){$("input[name=write]").attr("checked",true)});$("a.alldelete").live("click",function(){$("input[name=delete]").attr("checked",true)});$("a.alladmin").live("click",function(){$("input[name=admin]").attr("checked",true)});$("a.allapprove").live("click",function(){$("input[name=approve]").attr("checked",true)});$("a.noread").live("click",function(){$("input[name=read]").attr("checked",false)});$("a.nowrite").live("click",function(){$("input[name=write]").attr("checked",false)});$("a.nodelete").live("click",function(){$("input[name=delete]").attr("checked",false)});$("a.noadmin").live("click",function(){$("input[name=admin]").attr("checked",false)});$("a.noapprove").live("click",function(){$("input[name=approve]").attr("checked",false)})};Dox.ViewModel.RenderNotify=function(a){var b=function(c){$("div.rightscontent").replaceWith(c);Dox.ViewModel.InitNotifyTab()};Dox.Model.GroupNotify(a,b);Dox.ViewModel.HideWorker()};Dox.ViewModel.RenderNonNotify=function(a){var b=function(c){$("div.nonrightscontent").empty();$("div.nonrightscontent").replaceWith(c);Dox.ViewModel.InitNonNotifyTab()};Dox.Model.GroupNonNotify(a,b);Dox.ViewModel.HideWorker()};Dox.ViewModel.NotifyIndexChange=function(b,a){if(b!==""){var c=function(d){Dox.ViewModel.RenderNotify(b)}}Dox.Session.Set("pageIndexNotify",a,Dox.Vars.SessionId,c);Dox.ViewModel.HideWorker()};Dox.ViewModel.NonNotifyIndexChange=function(b,a){if(b!==""){var c=function(d){Dox.ViewModel.RenderNonNotify(b)}}Dox.Session.Set("pageIndexNonNotify",a,Dox.Vars.SessionId,c);Dox.ViewModel.HideWorker()};Dox.ViewModel.InitNotifyTab=function(){$("div.rightscontent a.dox-pg-page[pi]").live("click",function(f){f.preventDefault();var c=$(this).data("pi");var d=$("div.rightscontent").data("containerid");Dox.ViewModel.NotifyIndexChange(d,c)});var b={success:function(){var c=$("div.rightscontent").data("containerid");Dox.ViewModel.RenderNotify(c)}};$("form.notify").ajaxForm(b);var a={success:function(){var c=function(){var d=$("div.rightscontent").data("containerid");Dox.ViewModel.RenderNotify(d)};Dox.Session.Set("pageIndexNotify",1,Dox.Vars.SessionId,c)}};$("form.filter").ajaxForm(a);$("div.rightscontent ul li:odd").addClass("odd");Dox.ViewModel.NotifyCheckBoxes()};Dox.ViewModel.InitNonNotifyTab=function(){$("div.nonrightscontent a.dox-pg-page[pi]").live("click",function(f){f.preventDefault();var c=$(this).data("pi");var d=$("div.nonrightscontent").data("containerid");Dox.ViewModel.NonNotifyIndexChange(d,c)});var b={success:function(){var c=$("div.nonrightscontent").data("containerid");Dox.ViewModel.RenderNonNotify(c)}};$("form.notify").ajaxForm(b);var a={success:function(){var c=function(){var d=$("div.nonrightscontent").data("containerid");Dox.ViewModel.RenderNonNotify(d)};Dox.Session.Set("pageIndexNonNotify",1,Dox.Vars.SessionId,c)}};$("div.nonrightscontent ul li:odd").addClass("odd");$("form.filter").ajaxForm(a);Dox.ViewModel.NotifyCheckBoxes()};Dox.ViewModel.NotifyCheckBoxes=function(){$("a.allnotify").live("click",function(){$("input[name=notify]").attr("checked",true)});$("a.nonotify").live("click",function(){$("input[name=notify]").attr("checked",false)})};Dox.ViewModel.SendUserPassword=function(b){var a=function(c){$.jGrowl(c,{life:10000,header:Dox.Resource.Get("INFORMATION","Dox information")});Dox.ViewModel.HideWorker()};Dox.Model.SendUserPassword(b,a);Dox.ViewModel.HideWorker()};jQuery(document).ready(function(){$("body").subscribe("tabsload",function(){Dox.View.TabsLoaded()});Dox.ViewModel.GetGrowlMessage("msg");$("#groupContent").tabs({cache:false,ajaxOptions:{cache:false}});$("#selectedItemsContent").tabs({cache:false,ajaxOptions:{cache:false}});$("#mailContent").tabs({cache:false,ajaxOptions:{cache:false}});$("#itemsContent").tabs({cache:false,spinner:"",ajaxOptions:{cache:false}});$("#itemShow").tabs({cache:false,spinner:"",ajaxOptions:{cache:false}});$("button").button();Dox.ViewModel.GetContainerType();$("body").ajaxStart(function(){if($("#workingOuter").length<1){$("body").append('<div id="workingOuter"><div id="workingInner"><img src="http://cdn.concode.se/doxcentral.com/img/ajax-loader.gif" /></div></div>')}});$("#itemDetailTabs").live("tabsload",function(i,h){Dox.ViewModel.HideWorker()});$("#itemShow").live("tabsload",function(i,h){$("#itemDetailTabs").tabs();Dox.ViewModel.HideWorker()});$("#itemsContent").live("tabsload",function(i,h){if(h.index==0||h.index==1){Dox.ViewModel.RenderTooltips();Dox.View.PersonsDraggable();Dox.View.PersonsSelectable()}if(h.index==2){Dox.ViewModel.InitRightsTab()}if(h.index==3){Dox.ViewModel.InitNonRightsTab()}if(h.index==4){Dox.ViewModel.InitNotifyTab()}if(h.index==5){Dox.ViewModel.InitNonNotifyTab()}Dox.ViewModel.HideWorker()});$("div.companyview li[containerid != "+Dox.Vars.null_guid+"]").droppable({greedy:true,tolerance:"pointer",activeClass:"ui-state-highlight",hoverClass:"ui-state-hover",drop:function(i,h){var j=$("div.companyview li.ui-state-hover").data("containerid");if(j===undefined){j=$(this).data("containerid")}f(h.helper,j,"company")}});$("div.adminview li[containerid != "+Dox.Vars.null_guid+"]").droppable({greedy:true,tolerance:"pointer",activeClass:"ui-state-highlight",hoverClass:"ui-state-hover",drop:function(i,h){var j=$("div.adminview li.ui-state-hover").data("containerid");if(j===undefined){j=$(this).data("containerid")}f(h.helper,j,"admingroup")}});$("div.userview li[containerid != "+Dox.Vars.null_guid+"]").droppable({greedy:true,tolerance:"pointer",activeClass:"ui-state-highlight",hoverClass:"ui-state-hover",drop:function(i,h){var j=$("div.userview li.ui-state-hover").data("containerid");if(j===undefined){j=$(this).data("containerid")}f(h.helper,j,"usergroup")}});$("div.personview li[containerid != "+Dox.Vars.null_guid+"]").droppable({greedy:true,tolerance:"pointer",activeClass:"ui-state-highlight",hoverClass:"ui-state-hover",drop:function(i,h){var j=$("div.personview li.ui-state-hover").data("containerid");if(j===undefined){j=$(this).data("containerid")}f(h.helper,j,"persongroup")}});$("#selectedItemsContent").droppable({greedy:true,tolerance:"pointer",activeClass:"ui-state-highlight",hoverClass:"ui-state-hover",drop:function(i,h){$("tr.ui-draggable-dragging ul li").each(function(){Dox.ViewModel.ToggleSelectUser($(this).data("userid"))})}});$("#SelectedItems tbody").draggable({cursor:"pointer",cursorAt:{left:0,top:0},delay:250,helper:"clone",start:function(i,h){Dox.Vars.IsDragging=true},stop:function(i,h){Dox.Vars.IsDragging=false}});Dox.View.PersonsDraggable=function(){$("table.personList tbody tr.ui-drag").draggable({addClasses:false,cursor:"move",cursorAt:{left:2,top:2},handle:"th.itemDrag",helper:function(i,h){$(this).addClass("ui-selected");var j=[];$("table.personList tbody tr.ui-selected").each(function(k){j.push('<li data-userid="'+$(this).data("userid")+'">');j.push($(this).children(".fullname").text());j.push("</li>")});return"<tr><ul>"+j.join("")+"</ul></tr>"},start:function(i,h){Dox.Vars.IsDragging=true;$("#companiesContainer").addClass("bigTree");$("#adminGroupContainer").addClass("bigTree");$("#userGroupContainer").addClass("bigTree");$("#personalGroupContainer").addClass("bigTree");$("a.title").hide();$("span.fdt").show()},stop:function(i,h){Dox.Vars.IsDragging=false;$("a.title").show();$("span.fdt").hide();$("li.ui-droppable").each(function(j){$(this).removeClass("ui-state-hover")});$("#companiesContainer").removeClass("bigTree");$("#adminGroupContainer").removeClass("bigTree");$("#userGroupContainer").removeClass("bigTree");$("#personalGroupContainer").removeClass("bigTree");Dox.ViewModel.HideWorker()}})};Dox.View.PersonsSelectable=function(){$("table.personList tbody").selectable({cancel:"tr.ui-drag, :input, option",delay:20,filter:"tr.person",distance:0,selected:function(i,h){},unselected:function(i,h){$(this).removeClass("ui-drag")},start:function(i,h){},stop:function(i,h){Dox.View.InitDrag("table.personList tr.ui-selected")}})};function g(i){var h=0;$("#Persons tr.person").each(function(){if($(this).data("userid")===i){return h}h++});return h}$("table.personList tr.person > td").live("click",function(i){var h=$(this).parent();if(h.hasClass("ui-drag")){Dox.View.RemoveDrag(h)}else{Dox.View.InitDrag(h);Dox.Vars.FileIndex=g(h.data("userid"))}});Dox.View.InitDrag=function(h){if(!Dox.Vars.IsShift&&!Dox.Vars.IsCtrl){Dox.View.ClearDrag()}$(h).each(function(){$(this).addClass("ui-drag ui-selected")});Dox.View.PersonsDraggable()};Dox.View.RemoveDrag=function(h){$(h).each(function(i){$(this).removeClass("ui-drag ui-selected").draggable("destroy")})};Dox.View.ClearDrag=function(){$("table.personList tr.ui-drag").each(function(h){$(this).removeClass("ui-drag ui-selected").draggable("destroy")})};function f(j,i,h){var k=[];$("tr.ui-draggable-dragging ul li").each(function(){k.push($(this).data("userid"))});$.post("/html/askpersondrop/"+Dox.Vars.SessionId,{persons:k,containerId:i,groupType:h},function(l){$("body").append(l);var m=$("#askDialog").data("sessionId");$("#buttonAdd").click(function(){Dox.ViewModel.AddPersonToGroup(i,m,h)});$("#buttonCancel").click(function(){$("#askDialog").dialog("close")});$("#askDialog").dialog({close:function(o,n){Dox.Session.Close(m);$("#askDialog").remove();$("#workingOuter").remove()},autoOpen:true,width:550,height:340})})}$("#companiesContainer a").live("click",function(i){i.preventDefault();var h=$(this).parents("li").data("containerid");if(h=="all"){Dox.ViewModel.RefreshUserRows("");Dox.ViewModel.TabsLoad(false,false,false,false,"")}else{Dox.ViewModel.SetContainerId(h,"company");Dox.ViewModel.TabsLoad(false,false,false,true,h)}$("#groupContent li.highlightbold").removeClass("highlightbold");$(this).parents("li").addClass("highlightbold")});$("#adminGroupContainer a").live("click",function(i){i.preventDefault();var h=$(this).parents("li").data("containerid");Dox.ViewModel.SetContainerId(h,"admingroup");Dox.ViewModel.TabsLoad(true,false,false,false,h);$("#groupContent li.highlightbold").removeClass("highlightbold");$(this).parents("li").addClass("highlightbold")});$("#userGroupContainer a").live("click",function(i){i.preventDefault();var h=$(this).parents("li").data("containerid");Dox.ViewModel.SetContainerId(h,"usergroup");Dox.ViewModel.TabsLoad(false,true,false,false,h);$("#groupContent li.highlightbold").removeClass("highlightbold");$(this).parents("li").addClass("highlightbold")});$("#personalGroupContainer a").live("click",function(i){i.preventDefault();var h=$(this).parents("li").data("containerid");Dox.ViewModel.SetContainerId(h,"persongroup");Dox.ViewModel.TabsLoad(false,false,true,false,h);$("#groupContent li.highlightbold").removeClass("highlightbold");$(this).parents("li").addClass("highlightbold")});$("body").subscribe("containerchanged",function(h){Dox.View.ContainerChanged(h)});Dox.View.ContainerChanged=function(h){Dox.ViewModel.RefreshUserRows(h);Dox.ViewModel.RefreshUserNotMemberRows(h)};$("table.personList th.itemDetails-ico").live("click",function(j){j.preventDefault();var h=$(this).parents("tr");var i=h.data("userid");Dox.ViewModel.GetUserDetails(h,i)});$("#Agmember a.ico-minus").live("click",function(j){j.preventDefault();var h=$(this).parents("tr").data("userid");var i=$(this).parents("tr").data("groupid");Dox.ViewModel.RemoveFromGroupUserDetails(h,i,"admingroup")});$("#Agnotmember a.ico-plus").live("click",function(j){j.preventDefault();var h=$(this).parents("tr").data("userid");var i=$(this).parents("tr").data("groupid");Dox.ViewModel.AddToGroupUserDetails(h,i,"admingroup")});$("#Ugmember a.ico-minus").live("click",function(j){j.preventDefault();var h=$(this).parents("tr").data("userid");var i=$(this).parents("tr").data("groupid");Dox.ViewModel.RemoveFromGroupUserDetails(h,i,"usergroup")});$("#Ugnotmember a.ico-plus").live("click",function(j){j.preventDefault();var h=$(this).parents("tr").data("userid");var i=$(this).parents("tr").data("groupid");Dox.ViewModel.AddToGroupUserDetails(h,i,"usergroup")});$("#Pugmember a.ico-minus").live("click",function(j){j.preventDefault();var h=$(this).parents("tr").data("userid");var i=$(this).parents("tr").data("groupid");Dox.ViewModel.RemoveFromGroupUserDetails(h,i,"persongroup")});$("#Pugnotmember a.ico-plus").live("click",function(j){j.preventDefault();var h=$(this).parents("tr").data("userid");var i=$(this).parents("tr").data("groupid");Dox.ViewModel.AddToGroupUserDetails(h,i,"persongroup")});$("table.personList a.ico-check-True").live("click",function(i){i.preventDefault();var h=$(this).parents("tr").data("userid");Dox.ViewModel.ToggleSelectUser(h)});$("table.selectedpersonList a.ico-check-True").live("click",function(i){i.preventDefault();var h=$(this).parents("tr").data("userid");Dox.ViewModel.ToggleSelectUser(h)});$("table.personList a.ico-check-False").live("click",function(i){i.preventDefault();var h=$(this).parents("tr").data("userid");Dox.ViewModel.ToggleSelectUser(h)});$("table.personList a.closeButton").live("click",function(h){h.preventDefault();Dox.ViewModel.CloseUserDetails();Dox.View.PersonsSelectable()});$("table.personList th.ico-minus").live("click",function(h){h.preventDefault();var i=$(this).parents("tr").data("userid");Dox.ViewModel.GroupRemoveMembership(i)});$("table.personList th.ico-plus").live("click",function(h){h.preventDefault();var i=$(this).parents("tr").data("userid");Dox.ViewModel.GroupAddMembership(i)});function b(){$("#sftab-1").load("/api/doxfile/selecteduserlist/<%= Model.FolderId %>.html/"+sessionId)}$("#userdetails").live("click",function(i){i.preventDefault();var h=$(this).offset();$("div.userpanel").css({position:"absolute",left:h.left-39+"px",top:h.top+20+"px"}).toggle()});function d(j,k){if(k==""){return}var i=$("#"+j+" tbody tr[data-userid="+k+"]");var l=$("#"+j+" tbody tr[data-userid="+k+"] td.name").text();var h=i.offset();h.left=h.left+60;$("#itemPopup").dialog("option","title",l);$("#itemPopup").dialog("option","position",h);$("#itemPopupContent").html('<img src="http://cdn.concode.se/intercopy.net/img/loading.gif" />');$("#itemPopup").dialog("open");Dox.ViewModel.UserInfo(k)}$("table.personList th.iteminfo").live("click",function(){var i=$(this).parents("tr").data("userid");var h=$(this).parents("table").attr("id");d(h,i)});$("#itemPopup").dialog({autoOpen:false});$("#companydialog").dialog({bgiframe:true,autoOpen:false,height:410,width:500,modal:true});$("#usercompanyCreate").click(function(){if(!$("#dialogs").is(":visible")){$("#dialogs").show("fast")}$("#companydialog").dialog("open")});$("#btnCreateCompanydg").click(function(){var h={success:c,type:"post",beforeSubmit:e};var i=$(this).parents("form:first");i.ketchup();$(i).ajaxSubmit(h)});function e(l,k,h,i){var j=$("#CompanyName").val();if(j!=""){return true}return false}function c(k,j,h,i){document.UserCreateForm.submit();$("#companydialog").dialog("close");Dox.ViewModel.HideWorker()}var a=Dox.Session.Get("containerId",Dox.Vars.SessionId);if(a=="undefined"){a=""}Dox.ViewModel.TabsLoad(false,false,false,false,a);$("#multiBtnMailTo").button().click(function(){window.location.replace("/"+Dox.Vars.Language+"/dox/mail")}).next().button({text:false,icons:{primary:"ui-icon-triangle-1-s"}}).click(function(){if($("#buttons").is(":visible")){$("#buttons").hide()}else{$("#buttons").show()}}).parent().buttonset()});
