﻿var exclude=1; var agt=navigator.userAgent.toLowerCase(); var win=0;var mac=0;var lin=1; if(agt.indexOf('win')!=-1){win=1;lin=0;}
if(agt.indexOf('mac')!=-1){mac=1;lin=0;}
var lnx=0;if(lin){lnx=1;}
var ice=0; var ie=0;var ie4=0;var ie5=0;var ie6=0;var com=0;var dcm; var op5=0;var op6=0;var op7=0; var ns4=0;var ns6=0;var ns7=0;var mz7=0;var kde=0;var saf=0; if(typeof navigator.vendor!="undefined" && navigator.vendor=="KDE"){ var thisKDE=agt; var splitKDE=thisKDE.split("konqueror/index.html"); var aKDE=splitKDE[1].split("; "); var KDEn=parseFloat(aKDE[0]); if(KDEn>=2.2){ kde=1; ns6=1; exclude=0;}
}
else if(agt.indexOf('webtv')!=-1){exclude=1;}
else if(typeof window.opera!="undefined"){ exclude=0; if(/opera[\/ ][5]/.test(agt)){op5=1;}
if(/opera[\/ ][6]/.test(agt)){op6=1;}
if(/opera[\/ ][7-9]/.test(agt)){op7=1;}
}
else if(typeof document.all!="undefined"&&!kde){ exclude=0; ie=1; if(typeof document.getElementById!="undefined"){ ie5=1; if(agt.indexOf("msie 6")!=-1){ ie6=1; dcm=document.compatMode; if(dcm!="BackCompat"){com=1;}
}
}
else{ie4=1;}
}
else if(typeof document.getElementById!="undefined"){ exclude=0; if(agt.indexOf("netscape/6")!=-1||agt.indexOf("netscape6")!=-1){ns6=1;}
else if(agt.indexOf("netscape/7")!=-1||agt.indexOf("netscape7")!=-1){ns6=1;ns7=1;}
else if(agt.indexOf("gecko")!=-1){ns6=1;mz7=1;}
if(agt.indexOf("safari")!=-1 || (typeof document.childNodes!="undefined" && typeof document.all=="undefined" && typeof navigator.taintEnabled=="undefined")){mz7=0;ns6=1;saf=1;}
}
else if((agt.indexOf('mozilla')!=-1)&&(parseInt(navigator.appVersion)>=4)){ exclude=0; ns4=1; if(typeof navigator.mimeTypes['*']=="undefined"){ exclude=1; ns4=0;}
}
if(agt.indexOf('escape')!=-1){exclude=1;ns4=0;}
if(typeof navigator.__ice_version!="undefined"){exclude=1;ie4=0;}
var menu2=new Array()
menu2[0]='<a href="http://www.whaleimaging.com/about-en.asp" target=_top>Company Profile</a>'
menu2[1]='<a href="http://www.whaleimaging.com/about-en.asp" target=_top>Company Course</a>'
menu2[2]='<a href="http://www.whaleimaging.com/about-en.asp" target=_top>Company Culture</a>'
menu2[3]='<a href="http://www.whaleimaging.com/zizhie.asp" target=_top>Company Certificate</a>'
menu2[4]='<a href="http://www.whaleimaging.com/about-en.asp" target=_top>Configuration</a>'
menu2[5]='<a href="http://www.whaleimaging.com/about-en.asp" target=_top>Company Snapshot</a>'
var menu4=new Array()
menu4[0]='<a href="http://www.whaleimaging.com/comnews-en.asp" target=_top>Company News</a>'; 
menu4[1]='<a href="http://www.whaleimaging.com/news-en.asp" target=_top>Industry News</a>'; 

var menu5=new Array()
menu5[0]='<a href="http://www.whaleimaging.com/cp-en.asp?id=10" target=_top>Whale DigiView IDC1600 Series DR</a>'
menu5[1]='<a href="http://www.whaleimaging.com/cp-en.asp?id=9" target=_top>Whale DigiArc C-Arm System</a>'
menu5[2]='<a href="http://www.whaleimaging.com/cp-en.asp?id=17" target=_top>Whale DigiArc G-Arm System</a>'
menu5[3]='<a href="http://www.whaleimaging.com/cp-en.asp?id=12" target=_top>Taison Color Ultrasound System</a>'

var menu7=new Array()
menu7[0]='<a href="http://www.whaleimaging.com/contact-en.asp" target=_top>Service Tenet</a>'
menu7[1]='<a href="http://www.whaleimaging.com/contact-en.asp" target=_top>Download</a>'
menu7[2]='<a href="http://www.whaleimaging.com/post-en.asp" target=_top>Message Board</a>'

var menu8=new Array()
menu8[0]='<a href="http://www.whaleimaging.com/hz-en.asp" target=_top>Internation Partners</a>'
menu8[1]='<a href="http://www.whaleimaging.com/customer-en.asp" target=_top>Inland Partners</a>'

var menuwidth='107px'
var menubgcolor='gray'
var disappeardelay=250
var hidemenu_onclick="yes"
var ie4doc=document.all
var ns6doc=document.getElementById&&!document.all
if ((ie4doc||ns6doc) && !(mac && ie5))
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
function getposOffset(what, offsettype){ var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop; var parentEl=what.offsetParent; while (parentEl!=null){ totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop; parentEl=parentEl.offsetParent;}
return totaloffset;}
function showhide(obj, e, visible, hidden, menuwidth){ if ((ie4doc||ns6doc) && !(mac && ie5))
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){ dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}
function iecompattest(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function clearbrowseredge(obj, whichedge){ var edgeoffset=0
if (whichedge=="rightedge"){ var windowedge=ie4doc && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{ var topedge=ie4doc && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4doc && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}
function populatemenu(what){ if ((ie4doc||ns6doc) && !(mac && ie5))
dropmenuobj.innerHTML=what.join("")
}
function dropdownmenu(obj, e, menucontents, menuwidth){ if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)
if ((ie4doc||ns6doc) && !(mac && ie5)){ showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+40+"px"
}
return clickreturnvalue()
}
function clickreturnvalue(){ if ((ie4doc||ns6doc) && !(mac && ie5)) return false
else return true
}
function contains_ns6doc(a, b) { while (b.parentNode)
if ((b = b.parentNode) == a)
return true; return false;}
function dynamichide(e){ if (ie4doc&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6doc&&e.currentTarget!= e.relatedTarget&& !contains_ns6doc(e.currentTarget, e.relatedTarget))
delayhidemenu()
}
function hidemenu(e){ if (typeof dropmenuobj!="undefined"){ if ((ie4doc||ns6doc) && !(mac && ie5))
dropmenuobj.style.visibility="hidden"
}
}
function delayhidemenu(){ if ((ie4doc||ns6doc) && !(mac && ie5))
delayhide=setTimeout("hidemenu()",disappeardelay)
}
function clearhidemenu(){ if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
if (hidemenu_onclick=="yes")
document.onclick=hidemenu
