var blogTitleCache=new Array();var blogDescCache=new Array();var blogDescTitleCache=new Array();var blogColumnIndex=0;var blogRowIndex=0;var blogTitle="";var blogWidgetId=0;var blogTimer=null;var totalBlogRecords=0;function launchBlogPanel(A){totalBlogRecords=0;if(document.getElementById("blogTitlePanel")){document.getElementById("blogTitlePanel").style.visibility="hidden"}blogActive=true;blogWidgetId=A;getBlogInfo(A,blogRowIndex)}function updateBlogPanel(){var C="";document.getElementById("blogTitlePanel").style.visibility="visible";document.getElementById("blogCat0").innerHTML=blogTitle;var A=0;for(var B=0;B<blogDescCache.length;B++){C+=(B==0?"":"<BR/>")+"<div style='color:MediumAquaMarine;overflow:hidden;padding-left:15px;padding-right:15px;' onclick='return false;'>"+blogDescTitleCache[B]+"</div>";C+="<div style='color:grey;overflow:hidden;padding-left:15px;font-weight:normal;padding-right:15px;' onclick='return false;'>"+blogDescCache[B]+"</div>"}document.getElementById("blogsData").innerHTML='<div id="mycustomscroll" class="flexcroll" style="width:800px;height:450px;" >'+C+"</div>";fleXenv.globalInit();fleXenv.initialized=false;document.getElementById("mycustomscroll").focus();window.document.getElementById("mycustomscroll").focus()}function showBlog(B){var A="";A=(B==1?"#fcf3b8":"none");document.getElementById("blogHome").style.background=A}function escapeBlogPanel(){keyActionHandler(rcMENU)}function disableBlogInfo(){}function getBlogInfo(C,A){if(document.getElementById("blogsData")){document.getElementById("blogsData").innerHTML="Loading..."}var D="method=getBlogsInfo&widgetId="+C+"&currIndex="+A;var B={success:function(I){try{if(I.responseText=="recall"){getBlogInfo(C,A)}else{var F=I.responseText;if(F.length>0){try{var H=F.split("-?#-");blogTitle=H[0];blogDescCache=H[1].split("-@#-");blogDescTitleCache=H[2].split("-@#-");totalBlogRecords=H[3];totalBlogRecords=(totalBlogRecords<=0?0:totalBlogRecords);updateBlogPanel()}catch(E){failedCondition();if(blogTimer){window.clearTimeout(blogTimer);blogTimer=null}blogTimer=window.setTimeout('getBlogInfo("'+C+'", "'+blogRowIndex+'");',10*1000)}}else{failedCondition();if(blogTimer){window.clearTimeout(blogTimer);blogTimer=null}blogTimer=window.setTimeout('getBlogInfo("'+C+'", "'+blogRowIndex+'");',10*1000)}}}catch(G){failureInfoMsg("Network Failure!")}},failure:function(E){failureInfoMsg("Network Failure!")}};YAHOO.util.Connect.asyncRequest("POST","/OnlineAdmin",B,D);return false}function leftSideBlog(){var A=0;if(document.getElementById("totalBLog")){A=document.getElementById("totalBLog").value-1}A=(A<=0?0:A);--blogRowIndex;blogRowIndex=(blogRowIndex<0?A:blogRowIndex);getBlogInfo(blogWidgetId,blogRowIndex)}function rightSideBlog(){var A=0;if(document.getElementById("totalBLog")){A=document.getElementById("totalBLog").value-1}A=(A<=0?0:A);++blogRowIndex;blogRowIndex=(blogRowIndex>A?0:blogRowIndex);getBlogInfo(blogWidgetId,blogRowIndex)}function blogKeyHandler(B){var A=0;if(document.getElementById("totalBLog")){A=document.getElementById("totalBLog").value-1}A=(A<=0?0:A);switch(B){case rcLEFT:--blogRowIndex;blogRowIndex=(blogRowIndex<0?A:blogRowIndex);getBlogInfo(blogWidgetId,blogRowIndex);break;case rcRIGHT:++blogRowIndex;blogRowIndex=(blogRowIndex>A?0:blogRowIndex);getBlogInfo(blogWidgetId,blogRowIndex);break}}function resetBlogPanel(){document.getElementById("blogsData").innerHTML="";document.getElementById("blogCat0").innerHTML="";blogTitleCache=new Array();blogDescCache=new Array();blogDescTitleCache=new Array();blogColumnIndex=0;blogRowIndex=0}function failedCondition(){}function mouseLeftBlog(){}function mouseRightBlog(){}function mouseOutLBlog(){}function mouseOutRBlog(){}function failedCondition(){}