﻿// JScript 文件
$(document).ready(function(){
  
  /* 页面导航 */
  $(".NavT .L").eq(0).text(CalConv());                                                                      //页面导航日期
  $(".NavT .R a:eq(0)").click(function(){ OpenWindow("CEIAConta.aspx");});                                  //页面导航联系我们
  $(".NavT .R a:eq(1)").click(function(){ SetHome(this, "http://www.ceia.org.cn/");});                      //页面导航设置首页
  $(".NavT .R a:eq(2)").click(function(){ AddFavorite("http://www.ceia.org.cn/", "中国电子仪器行业协会");});//页面导航添加收藏夹
  if($(".NavB .NavS a").text() != "联系我们"){ $(".NavB li:last").css("background-image", "none");}         //页面导航移除当前菜单项背景
  //$(".NavB .NavS a").removeAttr("href");                                                                  //页面导航移除当前菜单项链接
  /* 主体高度 */
  $(".Middle").each(function(i){var H = 370;for(var k = 0; k < $(this).children().length; k++){ if($(this).children().eq(k).html()!=""){ H = Math.max(H, $(this).children().eq(k).height());}} $(this).height(H);});//页面分栏高度设置
});
//function ReinitIframe() { window.setInterval("ReinitIframeF()", 200);};
//window.setInterval("reinitIframe()", 200);
/* CEIA菜单 */
function MenuTiOver(A){ if($(A).children(".Menu_Ct").length == 0){ }else { $(A).addClass("Menu_Ti_H");    $(A).children(".Menu_Ct").show(); if($(A).children(".Menu_Ct").css("position") != "relative"){ $(A).children(".Menu_Ct").offset({ top:MenuCtTop(A), left:MenuCtLeft(A)});}}};
function MenuTiOut(A) { if($(A).children(".Menu_Ct").length == 0){ }else { $(A).removeClass("Menu_Ti_H"); $(A).children(".Menu_Ct").hide();}};
function MenuCtTop(A) { return $(A).offset().top  - $(A).children(".Menu_Ct").height() + $(A).height();};
function MenuCtLeft(A){ return $(A).offset().left + $(A).width()/2;};

/* 信息搜索 */
function SearchGo(){if($("#Search_Word").attr("value")==""){}else{OpenWindow("CEIASearch.aspx?Kind="+$("#Search_Kind")[0].selectedIndex+"&Word="+$("#Search_Word").attr("value"));}};



