/* ------------------------------------------------------------ */
/* トップページスワップイメージ*/
/* ------------------------------------------------------------ */
a1=new Image(311,261)
a1.src="/eda/image/topsolution.gif"
a2=new Image(311,261)
a2.src="/eda/image/topsolution_01.gif"
a3=new Image(311,261)
a3.src="/eda/image/topsolution_02.gif"
a4=new Image(311,261)
a4.src="/eda/image/topsolution_03.gif"
a5=new Image(311,261)
a5.src="/eda/image/topsolution_04.gif"
a6=new Image(311,261)
a6.src="/eda/image/topsolution_05.gif"

function filter(imagename,objectsrc){
if (document.images)
document.images[imagename].src=eval(objectsrc+".src")
}

/* ------------------------------------------------------------ */
/* キーワードメニュー：ポップアップメニュー用 */
/* ------------------------------------------------------------ */

var defaultMenuWidth="300px" //set default menu width.
var linkset=new Array()

// システム設計
linkset[0]='<a href="/orcad/product/slps/">電気回路設計者向け</a>'

// 回路設計
linkset[1]='<a href="/orcad/product/">電気回路設計者向け</a>'
linkset[1]+='<a href="/allegro/product/pcbdesign/">プリント基板設計者向け</a>'

// プリント設計
linkset[2]='<a href="/orcad/product/pcb_editor/">電気回路設計者向け</a>'
linkset[2]+='<a href="/allegro/product/">プリント基板設計者向け</a>'
linkset[2]+='<a href="/ibis/product/index.html">IBISモデル検証・作成</a>'

// システム設計
linkset[3]='<a href="/orcad/product/slps/">電気回路設計者向け</a>'

// EDA_CAD
linkset[4]='<a href="/orcad/product/">電気回路設計者向け</a>'
linkset[4]+='<a href="/allegro/product/pcbdesign/">プリント基板設計者向け</a>'
linkset[4]+='<a href="/ibis/product/index.html">IBISモデル検証・作成</a>'

// アナログ回路
linkset[5]='<a href="/orcad/product/">電気回路設計者向け</a>'
linkset[5]+='<a href="/allegro/product/pcbdesign/">プリント基板設計者向け</a>'

// プリント基板
linkset[6]='<a href="/orcad/product/pcb_editor/">電気回路設計者向け</a>'
linkset[6]+='<a href="/allegro/product/">プリント基板設計者向け</a>'
linkset[6]+='<a href="/ibis/product/index.html">IBISモデル検証・作成</a>'
linkset[6]+='<a href="/pcbdesign/outline/index.html">コンサルティング・アウトソース</a>'

// オートルータ
linkset[7]='<a href="/orcad/product/specctra/">電気回路設計者向け</a>'
linkset[7]+='<a href="/allegro/product/pcbdesign/">プリント基板設計者向け</a>'

// パッケージ設計
linkset[8]='<a href="/allegro/product/packagedesign/">プリント基板設計者向け</a>'
linkset[8]+='<a href="/pcbdesign/outline/index.html">コンサルティング・アウトソース</a>'

// ネットリスト
linkset[9]='<a href="/orcad/product/capture/">電気回路設計者向け</a>'
linkset[9]+='<a href="/allegro/product/pcbdesign/">プリント基板設計者向け</a>'

// シグナルインテグリティ
linkset[10]='<a href="/orcad/product/signalexplorer/">電気回路設計者向け</a>'
linkset[10]+='<a href="/allegro/product/pcbsipi/">プリント基板設計者向け</a>'
linkset[10]+='<a href="/ibis/product/index.html">IBISモデル検証・作成</a>'
linkset[10]+='<a href="/pcbdesign/outline/index.html">コンサルティング・アウトソース</a>'

// 高速信号
linkset[11]='<a href="/allegro/product/pcbsipi/">プリント基板設計者向け</a>'
linkset[11]+='<a href="/pcbdesign/outline/index.html">コンサルティング・アウトソース</a>'

// 高密度
linkset[12]='<a href="/allegro/product/pcbsipi/">プリント基板設計者向け</a>'
linkset[12]+='<a href="/pcbdesign/outline/index.html">コンサルティング・アウトソース</a>'

// デバイスモデリング
linkset[13]='<a href="/beetech/">電気回路設計者向け</a>'
linkset[13]+='<a href="/ibis/product/index.html">IBISモデル検証・作成</a>'
linkset[13]+='<a href="/pcbdesign/outline/index.html">コンサルティング・アウトソース</a>'

// IBISモデル
linkset[14]='<a href="/ibis/product/ibisindicator.html">検証・可視化・補正</a>'
linkset[14]+='<a href="/ibis/product/ibisbuilder.html">作成・編集・検索</a>'

// 電磁界解析
linkset[15]='<a href="/poynting/">フル3D</a>'

var ie5=document.all && !window.opera
var ns6=document.getElementById

if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')

function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}

function showmenu(e, which, optWidth){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width

menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+"px" : window.pageYOffset+eventY-menuobj.contentheight+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px"
menuobj.style.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}

function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

if (ie5||ns6)
document.onclick=hidemenu

