
//下拉菜单相关代码
 var h;
 var w;
 var l;
 var t;
 var topMar = 1;
 var leftMar = -2;
 var space = 1;
 var isvisible;
 var MENU_SHADOW_COLOR='#F1f1f1';//定义下拉菜单阴影色
 var global = window.document
 global.fo_currentMenu = null
 global.fo_shadows = new Array

function HideMenu() 
{
 var mX;
 var mY;
 var vDiv;
 var mDiv;
 if (isvisible == true)
{
  vDiv = document.all("menuDiv");
  mX = window.event.clientX + document.body.scrollLeft;
  mY = window.event.clientY + document.body.scrollTop;
  if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)){
   vDiv.style.visibility = "hidden";
   isvisible = false;
  }
}
}

function ShowMenu(vMnuCode,tWidth) {
 vSrc = window.event.srcElement;
 vMnuCode = "<table id='submenu' cellspacing=1 cellpadding=3 style='width:"+tWidth+"' class=tableborder1 onmouseout='HideMenu()'><tr height=23><td nowrap align=left class=tablebody1>" + vMnuCode + "</td></tr></table>";

 h = vSrc.offsetHeight;
 w = vSrc.offsetWidth;
 l = vSrc.offsetLeft + leftMar+4;
 t = vSrc.offsetTop + topMar + h + space-2;
 vParent = vSrc.offsetParent;
 while (vParent.tagName.toUpperCase() != "BODY")
 {
  l += vParent.offsetLeft;
  t += vParent.offsetTop;
  vParent = vParent.offsetParent;
 }

 menuDiv.innerHTML = vMnuCode;
 menuDiv.style.top = t;
 menuDiv.style.left = l;
 menuDiv.style.visibility = "visible";
 isvisible = true;
    makeRectangularDropShadow(submenu, MENU_SHADOW_COLOR, 4)
}

function makeRectangularDropShadow(el, color, size)
{
 var i;
 for (i=size; i>0; i--)
 {
  var rect = document.createElement('div');
  var rs = rect.style
  rs.position = 'absolute';
  rs.left = (el.style.posLeft + i) + 'px';
  rs.top = (el.style.posTop + i) + 'px';
  rs.width = el.offsetWidth + 'px';
  rs.height = el.offsetHeight + 'px';
  rs.zIndex = el.style.zIndex - i;
  rs.backgroundColor = color;
  var opacity = 1 - i / (i + 1);
  rs.filter = 'alpha(opacity=' + (100 * opacity) + ')';
  el.insertAdjacentElement('afterEnd', rect);
  global.fo_shadows[global.fo_shadows.length] = rect;
 }
}

//星儿的天空论坛
var s1= '<a style=font-size:9pt;line-height:14pt; href=\"forum_list.asp?forum_id=3\">～星儿的天空～<br>孤独症家长论坛</a><br><a style=font-size:9pt;line-height:14pt; href=\"forum_action.asp?action=new\">论坛新贴</a><br><a style=font-size:9pt;line-height:14pt; href=\"forum_action.asp?action=tim\">回复新贴</a><br><a style=font-size:9pt;line-height:14pt; href=\"forum_action.asp?action=tim\">论坛焦点</a><br><a style=font-size:9pt;line-height:14pt; href=\"forum_action.asp?action=hot\">好文推荐</a><br><a style=font-size:9pt;line-height:14pt; href=\"forum_list.asp?forum_id=8\">教育与训练</a><br><a style=font-size:9pt;line-height:14pt; href=\"forum_list.asp?forum_id=9\">食物药物 </a><br><a style=font-size:9pt;line-height:14pt; href=\"forum_list.asp?forum_id=10\">专题文章</a><br><a style=font-size:9pt;line-height:14pt; href=\"forum_list.asp?forum_id=11\">病因探讨</a><br><a style=font-size:9pt;line-height:14pt; href=\"forum_list.asp?forum_id=12\">中药及中药</a>'

//孤独症资料大全  
var s2= '<a style=font-size:9pt;line-height:14pt; href=\"article_list.asp?c_id=2&s_id=1\">就诊须知 </a><br><a style=font-size:9pt;line-height:14pt; href=\"article_list.asp?c_id=2&s_id=22\">病因与诊断</a><br><a style=font-size:9pt;line-height:14pt; href=\"article_list.asp?c_id=2&s_id=18\">专著文廊 </a><br><a style=font-size:9pt;line-height:14pt; href=\"article_list.asp?c_id=2&s_id=17\">语言训练</a><br><a style=font-size:9pt;line-height:14pt; href=\"article_list.asp?c_id=2&s_id=15\"> 技能培养</a><br><a style=font-size:9pt;line-height:14pt; href=\"article_list.asp?c_id=2&s_id=16\">行为矫治 </a><br><a style=font-size:9pt;line-height:14pt; href=\"article_list.asp?c_id=2&s_id=19\">食物药物</a><br><a style=font-size:9pt;line-height:14pt; href=\"article_list.asp?c_id=2&s_id=20\">教育训练</a><br><a style=font-size:9pt;line-height:14pt; href=\"article_list.asp?c_id=2&s_id=21\">运动音乐</a><br><a style=font-size:9pt;line-height:14pt; href=\"article_list.asp?c_id=2&s_id=5\">治疗个案</a><br><a style=font-size:9pt;line-height:14pt; href=\"article_list.asp?c_id=2&s_id=23\">家有星儿</a><br><a style=font-size:9pt;line-height:14pt; href=\"article_list.asp?c_id=2&s_id=4">其他相关</a>'
