<\/div>').appendTo($("body"));$("
").attr("id","divBottomSetColor").addClass("bottomWebparts").html('
Menu Color<\/span><\/div>- No Color<\/li><\/ul><\/li><\/ul><\/div>').appendTo($("body"));$("ul.colors li","#divBottomSetColorDisplay").click(function(){if(userid=="0"||userid!="")return alert("Please Login First and you can only edit under your own page!"),!1;if(confirm("Are you sure to reset all your web part bar colors?")){var n=$(this).attr("class"),t=/\bcolor[\w]{1,}\b/;$(".column").each(function(){$(".widget",this).each(function(){var i=$(this).find(".widget-head").attr("class"),f=i.match(t),u,r;f?(r=i.replace(f,n),$(this).find(".widget-head").attr("class",r)):(u=$(this).find(".widget-head"),i=u.attr("class"),u.css("background-color",""),r=i+" "+n,u.attr("class",r))})});dragpageobj.savePreferences()}return!1})}function resetWebparts(){var n="",t,i;return userid!=""&&userid!="0"&&userid==""&&n!=""?(t="/..%2Fapi%2FSystemAPI/ToResetWebparts",i={param1:userid,param2:n},$.ajax({url:t,type:"POST",data:JSON.stringify(i,jasonReplacer),dataType:"json",contentType:"application/json; charset=utf-8",success:function(n){n&&(window.location=window.location)}})):alert("Please Login First and you can only edit under your own page!"),!1}function displayWebparts(){return $("#divBottomWebparts").css("display")?$("#divBottomWebparts").css("display")=="none"?($("#divBottomWebparts").css("display","block"),$("#divBottomSetColor").css("display","none"),$("#divBottomBackground").hide()):$("#divBottomWebparts").css("display","none"):($("#divBottomWebparts").css("zIndex",10),$("#divBottomBackground").css("zIndex",0),$("#divBottomSetColor").css("zIndex",0),$("#divBottomWebparts").show()),!1}function displaySetColor(){return $("#divBottomSetColor").css("display")?$("#divBottomSetColor").css("display")=="none"?($("#divBottomSetColor").css("display","block"),$("#divBottomWebparts").css("display","none"),$("#divBottomBackground").hide()):$("#divBottomSetColor").css("display","none"):($("#divBottomWebparts").css("zIndex",0),$("#divBottomBackground").css("zIndex",0),$("#divBottomSetColor").css("zIndex",10),$("#divBottomSetColor").show()),!1}function displayBackground(){return $("#divBottomBackground").css("display")?$("#divBottomBackground").css("display")=="none"?($("#divBottomBackground").show(),$("#divBottomSetColor").hide(),$("#divBottomWebparts").hide()):$("#divBottomBackground").hide():($("#divBottomWebparts").css("zIndex",0),$("#divBottomSetColor").css("zIndex",0),$("#divBottomBackground").css("zIndex",10),$("#divBottomBackground").show()),!1}function loadUserPhotosForBackground(n,t){if(userid==""||userid=="0"){alert("Please Login First");return}$("#btnAddPhotoSubmit").attr("onclick","addBackgroundPhotos();");getFilesForBackground("1",itemsAddMax16);PopupArea(n,t)}function getFilesForBackground(n,t){$.popGetFilesLoad({start:n,max:t,photoItems:backgroundPhotoItems,selectPhotos:"selectBackgroundPhotos",url:"/api/SystemAPI/RetrieveFilesNotInAlbumAll",AlbumID:"0",prePage:"Prev",nexPage:"Next",fileType:"1",pageCallback:pageselectCallback15})}function pageselectCallback15(n){return getFilesForBackground(n,itemsAddMax16),!1}function selectBackgroundPhotos(n){$(n).prop("checked")?backgroundPhotoItems.push($(n).val()):backgroundPhotoItems=jQuery.grep(backgroundPhotoItems,function(t){return t!=$(n).val()})}function addBackgroundPhotos(){var n="",t,i;return userid!=""&&userid!="0"&&userid==""&&n!=""&&backgroundPhotoItems.length>0?(t="/..%2Fapi%2FSystemAPI/TOAddUserBackgroundPhotos",i={param1:userid,param2:backgroundPhotoItems.join(","),param3:n},$.ajax({url:t,type:"POST",data:JSON.stringify(i,jasonReplacer),dataType:"json",contentType:"application/json; charset=utf-8",success:function(n){n&&(window.location=window.location)}})):alert("Please Login First and you can only edit under your own page!"),!1}function deleteUserBackgroundImg(n){var t="",i,r;return userid==""&&t!=""&&confirm("Are you sure to delete the item(s)?")?(i="/..%2Fapi%2FSystemAPI/ToDeleteUserBackgroundPhoto",r={param1:userid,param2:n,param3:t},$.ajax({url:i,type:"POST",data:JSON.stringify(r,jasonReplacer),dataType:"json",contentType:"application/json; charset=utf-8",success:function(n){n&&(window.location=window.location)}})):alert("Please Login First and you can only edit under your own page!"),!1}function addEditorImage(n,t){currentEditor.insertContent('')}var itemsAddMax16=16,backgroundPhotoItems=[],windowFocus=!0,userid="0",initialDocTitle="",blinkingNum=0,lastChatId=0,chatUserFocused=[],newChatsBox=[],newChatsUser=[],socialUsers=[],pulluserstime=new Date,playTimesClosed=0,uploadEditorLink='Manage My Files<\/a>',dragpageobj,timeoutObj,currentEditor;$(document).ready(function(){var n,t;SetBottomBar();n=0;$(".linkedpart").each(function(){var u=$(this).attr("linktype"),f=simpleTextCrypt($(this).attr("link"),!0),t="/api/SystemAPI/RetrieveRemotePage?uri="+escape(f),e=this,i,r;u=="3"?(i=$(this).attr("items"),r=$(this).attr("max"),$(this).rssfeeder({targeturl:t,items:i,SubjectLen:r,UniqueID:n})):$.get(t,function(n){$(n).appendTo(e)});n++});initialDocTitle=document.title;$([window,document]).blur(function(){windowFocus=!1}).focus(function(){windowFocus=!0;document.title=initialDocTitle});$(window).on("load",function(){dragpageobj=DragDropFn.init("","0","")});t=$(".popupWindowAddress, .popupCal").draggabilly({handle:".bar"})})