﻿function HideAllMenu(event){if(event!=null){var e=event;var EsrcElement=event.target?event.target:event.srcElement;if(EsrcElement.id!="StartButton")BlueTaskBar.HideStartmenu()}else BlueTaskBar.HideStartmenu();DeskIconRightMenu.Hide();TaskIconRightMenu.Hide();DeskBodyRightMenu.Hide()}function PswKeyDown(event){if(event.keyCode==13)Login()}function SetBackGround(ImgUrl,Type){if(Type==2){document.body.style.backgroundImage="url('"+ImgUrl+"')";document.body.style.backgroundRepeat="repeat"}else if(Type==1){document.body.style.backgroundImage="url('"+ImgUrl+"')";document.body.style.backgroundRepeat="no-repeat";document.body.style.backgroundPosition="center top"}}function SetBackGroundColor(Color){document.body.style.backgroundColor=Color}function SetFitBackGround(ImgID,ImgType,ScreenWidth,ScreenHeight){var Ajax=new BlueAjax();var ImageUrl="";function Init(){Ajax.URL="../AjaxServer/Fairy.aspx";Ajax.Method="POST";Ajax.AddData("Method","GetBackGround");Ajax.AddData("ImgID",ImgID);Ajax.AddData("ScreenWidth",ScreenWidth);Ajax.AddData("ScreenHeight",ScreenHeight);Ajax.AddData("ImgType",ImgType);Ajax.onLoaded=Loaded;Ajax.Execute()}function Loaded(){if(Ajax.ResponseText!="error"){ImageUrl=Ajax.ResponseText;document.body.style.backgroundImage="url('"+ImageUrl+"')"}}Init()}function SideBarMouseOver(){var SideBarContainer=document.getElementById("SideBarContainer");BlueEffects.AlphaShow({Obj:SideBarContainer,StartAlpha:20,EndAlpha:100,ChangeTime:500,ChangeTimes:5})}function SideBarMouseOut(){var SideBarContainer=document.getElementById("SideBarContainer");BlueEffects.AlphaShow({Obj:SideBarContainer,StartAlpha:100,EndAlpha:20,ChangeTime:500,ChangeTimes:5})}function OpenFairyPanel(FairyID,FairyName){var X=(document.body.clientWidth-550)/2;var Y=(document.body.clientHeight-360)/2;var Icon=new parent.parent.BlueIcon({Src:"FriendInfo.png",Width:25,Height:25});var MyOpt={width:550,height:360,title:"精灵信息 - "+FairyName,x:X,y:Y,icon:Icon,url:"/Friendship/FairyPanel.aspx?FairyID="+FairyID,openmodal:true,showstatus:false,haseffect:false,id:"FairyPanel_"+FairyID,maxsizeable:false,minsizeable:false};var Win=new BlueWindow(MyOpt);Win.open()}function RefreshFeeling(){var Ajax=new BlueAjax();var ImageUrl="";function Init(){Ajax.URL="/Feeling/AjaxServer/Feeling.aspx";Ajax.Method="POST";Ajax.AddData("Method","ReFreshNowFeeling");Ajax.AddData("HostFairyID",FairyID);Ajax.onLoaded=Loaded;Ajax.Execute()}function Loaded(){if(Ajax.ResponseText!="error"){try{var ResultData=eval("("+Ajax.ResponseText+")");var FeelingTitle=document.getElementById("FeelingTitle");var FeelingIcon=document.getElementById("FeelingIcon");if(ResultData.IsNew==1){FeelingTitle.innerHTML="美丽心情<span>(New)</span>"}else FeelingTitle.innerHTML="美丽心情";FeelingIcon.src="/Feeling/"+ResultData.Src}catch(err){}}}Init()}function OpenFeeling(){var X=(document.body.clientWidth-500)/2;var Y=(document.body.clientHeight-710)/2;var Icon=new parent.parent.BlueIcon({Src:"Feeling.png",Width:25,Height:25});var MyOpt={width:500,height:710,title:"美丽心情",minwidth:490,icon:Icon,minheight:700,x:X,y:Y,resizeable:false,minsizeable:false,maxsizeable:false,openmodal:true,url:"/Feeling/Default.aspx?FairyID="+HostFairyID,status:"美丽心情",id:"MyFeeling",haseffect:false,showstatus:false};var Win=new BlueWindow(MyOpt);Win.open()}function OpenMusicList(){var Icon=new parent.parent.BlueIcon({Src:"Music.png",Width:25,Height:25});var MyOpt={width:402,height:600,title:"背景音乐",minwidth:390,icon:Icon,minheight:580,resizeable:false,minsizeable:false,maxsizeable:false,openmodal:true,opencenter:true,url:"/MusicList/Default.aspx?FairyID="+HostFairyID,status:"背景音乐",id:"MyMusicList",haseffect:false,showstatus:false};var Win=new BlueWindow(MyOpt);Win.open()}function Loaded(){HideCover();RefreshFeeling()}
