﻿var MenuStarImages=new Array(4);MenuStarImages[0]="http://img.blog-orbit.com/widgetFly/img/MenuStar.gif";MenuStarImages[1]="http://img.blog-orbit.com/widgetFly/img/MenuStar_in_black.gif";MenuStarImages[2]="http://img.blog-orbit.com/widgetFly/img/MenuStar_act.gif";MenuStarImages[3]="http://img.blog-orbit.com/widgetFly/img/MenuStar_act_in_black.gif";for(i=0;i<MenuStarImages.length;i++){var preload=new Image();preload.src=MenuStarImages[i]}function StrReplace(obj,str){document.getElementById(obj).innerHTML=str.replace('_newline','<br>')}function StrReplaceByObjVal(spanobj,obj){document.getElementById(spanobj).innerHTML=document.getElementById(obj).value}function StrReplaceBySpan(spanobj,spanobj2){document.getElementById(spanobj).innerHTML=document.getElementById(spanobj2).innerHTML}function HideObject(id){document.getElementById(id).style.display="none"}function ShowObject(id){var isIe=(window.ActiveXObject)?true:false;if(isIe)document.getElementById(id).style.filter='alpha(opacity=100)';else document.getElementById(id).style.opacity=100;document.getElementById(id).style.display="block"}function ShowObjectInline(id){var isIe=(window.ActiveXObject)?true:false;if(isIe)document.getElementById(id).style.filter='alpha(opacity=100)';else document.getElementById(id).style.opacity=100;document.getElementById(id).style.display="inline"}function HidePrevious(option){if(option==1){if(currentActive!=null){HideObject(currentActive);currentActive=null}}else if(option==2){if(currentActive2!=null){HideObject(currentActive2);currentActive2=null}}}function FadeIn(obj,opacity_start,opacity_end,level,timeslot){var isIe=(window.ActiveXObject)?true:false;var myobj2=document.getElementById(obj);if(isIe)myobj2.style.filter='alpha(opacity='+opacity_start+')';else{myobj2.style.opacity=(eval(opacity_start)/100)}if(opacity_start!=opacity_end)setTimeout("FadeIn('"+obj+"', '"+(eval(opacity_start)+(100/eval(level)))+"', '"+eval(opacity_end)+"', '"+level+"', '"+timeslot+"');",eval(timeslot));else if(opacity_start==0)myobj2.style.display="none"}var currentActive='DIV_Null';var currentActive2='DIV_Null';function FadeInObj(obj,opacity_start,opacity_end,level,timeslot){HidePrevious(1);currentActive=obj;document.getElementById(obj).style.display='block';FadeIn(obj,opacity_start,opacity_end,level,timeslot)}function FadeInObj2(obj,opacity_start,opacity_end,level,timeslot){HidePrevious(2);currentActive2=obj;document.getElementById(obj).style.display='block';FadeIn(obj,opacity_start,opacity_end,level,timeslot)}var StrStatus=0;function ToggleFlyStar(){if(StrStatus==0){StrStatus=1;FadeInObj('DIV_LeaveMsg','0','100','10','15')}else{StrStatus=0;HideObject('DIV_LeaveMsg')}}function FocusMsgBox(index){if(index==0)document.vipMass_req.vip_req_word.focus();else if(index==1)document.vip_req.vip_req_word.focus();else if(index==2)document.vip_login.loginID.focus()}function PromoteVIP(id,dummyLink){answer=confirm("獲得祝福的使用者將取得３天的御守資格(一次為限)\n請注意！務必在對方同意之下再進行祝福喔！\n\n是否確定對此BO動客進行祝福？");if(answer)window.location="promoteVIP_processPro.php?id="+id+dummyLink}var FocusShortCut='';function FocusLaunchObj(obj,address,target){if(FocusShortCut!=obj){if(FocusShortCut!='')document.getElementById(FocusShortCut).style.backgroundImage='';document.getElementById(obj).style.backgroundImage="url(http://img.blog-orbit.com/touchBO/img/selectedSquare.gif)";FocusShortCut=obj}else window.open(address,target)}function scEdit(par){var idx=FocusShortCut.split('_');window.open('../scFlyFrame.php?'+par+'&edit=1&idx='+idx[1]+'&cb=sclist','WallFrame')}function SetNavPanel(target_obj,type){if(type==1)document.getElementById(target_obj).style.backgroundColor='#FF9900';else document.getElementById(target_obj).style.backgroundColor=''}function SetNavLink(target_obj,type){if(type==1)document.getElementById(target_obj).style.color='#FFFFFF';else document.getElementById(target_obj).style.color='#FF6600'}var lastFocus=null;var lastStyle=null;var lastContext=null;var fb_link=null;function TriggerFocus(obj,style,context,newlink){document.getElementById(obj).className='prompt';if(lastFocus!=null)document.getElementById(lastFocus).className=style;if(obj==lastFocus){lastFocus=null;lastStyle=null;lastContext=null;fb_link=null}else{lastFocus=obj;lastStyle=style;lastContext=context;fb_link=newlink}}function wOpen(url,target){if(lastContext==null)alert('請先點擊想要發佈的內容');else window.open(url+lastContext,target)}function fbOpen(url,target){if(lastContext==null)alert('請先點擊想要發佈的內容');else window.open(url+'u='+fb_link+'&t='+lastContext,target)}function toggleDisplay(obj){if(document.getElementById(obj).style.display=='none')FadeInObj(obj,'0','100','10','15');else HideObject(obj)}function toggleDisplay2(obj){if(document.getElementById(obj).style.display=='none')ShowObject(obj);else HideObject(obj)}function TextAreaCheckDefault(DefaultText,CurrentText,SpanObjToClear){alert(DefaultText==CurrentText);if(DefaultText==CurrentText)document.getElementById(SpanObjToClear).innerHTML=''}function disableButton(countID,buttonID){if(document.getElementById(countID).innerHTML=='超過儲存限制')document.getElementById(buttonID).disabled=true;else document.getElementById(buttonID).disabled=false}