﻿var UserInfoArr=null;var LoginIconBar={TaskIcons:[],LeftIcons:0,ShowIconNum:0,FocusedIcon:null,menuHeight:110,Timer:null,options:{DefaultSrc:"home.png",DefaultPath:"",DefaultWidth:30,DefaultHeight:30,MaxWidth:50,MaxHeight:50,DefaultMargin:0,FirstIconLeft:120,IconBottom:4,DefaultTitle:"蓝花园"},IconMouseOver:function(id,event){var Obj=document.getElementById(id);if(event!=null){var x=event.clientX-LoginIconBar.options.DefaultWidth;BlueEffects.SizeShow({Obj:Obj,EndWidth:LoginIconBar.options.MaxWidth,EndHeight:LoginIconBar.options.MaxHeight,ChangeTime:10,ChangeTimes:5,Stop:function(){LoginIconBar.ShowBleb(x,id)}})}else{BlueEffects.SizeShow({Obj:Obj,EndWidth:LoginIconBar.options.MaxWidth,EndHeight:LoginIconBar.options.MaxHeight,ChangeTime:10,ChangeTimes:5})}var LoginClew=document.getElementById("LoginClew");LoginClew.innerHTML=Obj.title},IconMouseOut:function(id,event){var Obj=document.getElementById(id);if(LoginIconBar.FocusedIcon!=null){if(event!=null&&id!=LoginIconBar.FocusedIcon.id){BlueEffects.SizeShow({Obj:Obj,EndWidth:LoginIconBar.options.DefaultWidth,EndHeight:LoginIconBar.options.DefaultHeight,ChangeTime:10,ChangeTimes:5})}else if(event!=null&&id==LoginIconBar.FocusedIcon.id){}else if(event==null&&id==LoginIconBar.FocusedIcon.id){BlueEffects.SizeShow({Obj:Obj,EndWidth:LoginIconBar.options.DefaultWidth,EndHeight:LoginIconBar.options.DefaultHeight,ChangeTime:10,ChangeTimes:5})}}else{BlueEffects.SizeShow({Obj:Obj,EndWidth:LoginIconBar.options.DefaultWidth,EndHeight:LoginIconBar.options.DefaultHeight,ChangeTime:10,ChangeTimes:5})}var LoginClew=document.getElementById("LoginClew");LoginClew.innerHTML="&nbsp"},IconClick:function(i){var FairyName=document.getElementById("FairyName");var UserIconArea=document.getElementById("UserIconArea");var FairyUserID=document.getElementById("FairyUserID");var LoginClew=document.getElementById("LoginClew");var Width=70;var Height=70;var Margin=0;LoginClew.innerHTML="&nbsp";if(UserInfoArr!=null&&UserInfoArr.length!=0){var UserObj=UserInfoArr[i];FairyUserID.value=UserObj.NestUserID;FairyName.innerHTML=UserObj.NestUserName;var HTML="";if(document.all){var Style="width:"+Width+"; height:"+Height+"; margin-right:"+Margin+"; margin-left:"+Margin+"; float:left;clear:right;position:relative ;bottom:4px;"+"filter : progid:DXImageTransform.Microsoft.AlphaImageLoader (enabled=true, src='"+LoginIconBar.options.DefaultPath+UserObj.IconUrl+"', sizingMethod='scale');";HTML="<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"height:\""+Height+"; width:\""+Width+"\">             <tr><td  style=\""+Style+"\" >             </td></tr></table>"}else{var Style="width:"+Width+"; height:"+Height+"; margin-right:"+Margin+"; margin-left:"+Margin+";";HTML="<img style=\""+Style+"\" src=\""+LoginIconBar.options.DefaultPath+UserObj.IconUrl+"\"             />"}UserIconArea.innerHTML=HTML;Login()}}};function ShowNestUserInfo(UserInfoArr){if(UserInfoArr!=null){var NestUserBox=document.getElementById("NestUserBox");var Width=LoginIconBar.options.DefaultWidth;var Height=LoginIconBar.options.DefaultHeight;var Margin=LoginIconBar.options.DefaultMargin;var MyHTML="<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"margin:0 auto; margin-right: auto; margin-left: auto;\"><tr><td>";for(var i=0;i<UserInfoArr.length;i++){var tempstr=Math.random();tempstr=tempstr+"0";var id="nestusericon_"+new Date().getTime()+tempstr.substring(2);var HTML="";if(document.all){var Style="width:"+Width+"; height:"+Height+"; margin-right:"+Margin+"; margin-left:"+Margin+"; float:left;clear:right;position:relative ;bottom:4px;"+"filter : progid:DXImageTransform.Microsoft.AlphaImageLoader (enabled=true, src='"+LoginIconBar.options.DefaultPath+UserInfoArr[i].IconUrl+"', sizingMethod='scale');";HTML="<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"height:\""+Height+"; width:\""+Width+"\">             <tr><td  style=\""+Style+"\" id=\""+id+"\"             onmouseover=\"LoginIconBar.IconMouseOver('"+id+"',event)\"             onmouseout=\"LoginIconBar.IconMouseOut('"+id+"',event)\"             onclick=\"LoginIconBar.IconClick('"+i+"')\"  title=\""+UserInfoArr[i].NestUserName+"\">            </td></tr></table>"}else{var Style="width:"+Width+"; height:"+Height+"; margin-right:"+Margin+"; margin-left:"+Margin+";";HTML="<img style=\""+Style+"\" id=\""+id+"\" src=\""+LoginIconBar.options.DefaultPath+UserInfoArr[i].IconUrl+"\"             onmouseover=\"LoginIconBar.IconMouseOver('"+id+"',event)\"             onmouseout=\"LoginIconBar.IconMouseOut('"+id+"',event)\"             onclick=\"LoginIconBar.IconClick('"+i+"')\"             title=\""+UserInfoArr[i].NestUserName+"\"/>"}var InfoHTML=HTML+"</td><td>";MyHTML+=InfoHTML}MyHTML+="</td></tr></table>";NestUserBox.innerHTML=MyHTML;LoginIconBar.IconClick(0)}else alert("初始化参数不能为空")};
