var s1=0;var s2=0;$(document).ready(function(){var h="min-height";if($.browser.version=="6.0"){h="height";}
var w=160;$(".sina-eg-nav").append("<div id='div_menu_child' style='position: absolute;z-index: 42;width: "+w+"px;background-color: red;'></div>");$("#div_menu_child").hide();$(".a_menu").each(function(i){$(this).parent(".a_menu_pare").attr("id","a_menu_"+i).css("cursor","pointer");});$(".a_menu").parent(".a_menu_pare").hover(function(){var str="";var aSrc=$(this).children(".a_menu").attr("src");if(aSrc&&aSrc.length>0){var urls=aSrc.split(";");if(urls&&urls.length>0){str+="<ul class='ul_menu' style='width: "+w+"px;list-style-type:none;margin:0px;padding: 0px;'>";for(var i=0;i<urls.length;i++){var urls2=urls[i].split("|");if(urls2&&urls2.length==2){str+="<li style='margin:0;padding:0;'><a href='"
+urls2[1]
+"'><div style='padding:5px 15px 0px 15px;'>"
+urls2[0]
+"</div></a></li>"}}
str+="</ul>";}}
if(str.length>0){var x=getAbsoluteLeft2($(this).attr("id"));var y=getAbsoluteTop2($(this).attr("id"));$("#div_menu_child").html(str).css("top",(y-0+28)+"px").css("left",x+"px");$(".ul_menu li").css("float","left").css("width",w+"px").css(h,"28px").css("border-style","solid").css("border-width","0px 0px 1px 0px").css("border-color","#5c86d8").css("margin","0px").css("background-color","#3570a1").css("cursor","pointer").css("vertical-align","middle").css("text-align","left").click(function(){window.location.href=$(this).children("a").attr("href");});$(".ul_menu li a").css("font-size","12px").css("text-decoration","none").css("font-family","Arial, Helvetica, sans-serif").css("text-align","left").css("color","#ffffff");$(".ul_menu li").hover(function(){$(this).css("background-color","#5c86d8");$(this).children("a").css("color","#ffff00");},function(){$(this).css("background-color","#3570a1");$(this).children("a").css("color","#ffffff");});s1=1;showMenu();}},function(){s1=0;$("#div_menu_child").hover(function(){s2=1;},function(){s2=0;setTimeout("showMenu()",100);});setTimeout("showMenu()",100);});});function showMenu(){if((s1==0)&&(s2==0)){$("#div_menu_child").hide();}else{$("#div_menu_child").show();}}
function getAbsoluteTop2(objectId){o=document.getElementById(objectId)
oTop=o.offsetTop
while(o.offsetParent!=null){oParent=o.offsetParent
oTop+=oParent.offsetTop
o=oParent}
return oTop}
function getAbsoluteLeft2(objectId){o=document.getElementById(objectId)
oLeft=o.offsetLeft
while(o.offsetParent!=null){oParent=o.offsetParent
oLeft+=oParent.offsetLeft
o=oParent}
return oLeft}
