//preload image
count = 0;
data = new Array('../common/img/nav_01_over.gif','../common/img/nav_02_over.gif','../common/img/nav_03_over.gif','../common/img/nav_04_over.gif','../common/img/nav_05_over.gif','../common/img/nav_06_over.gif','../common/img/nav_07_over.gif','../common/img/nav_s_01_over.gif','../common/img/nav_s_02_over.gif','../common/img/nav_s_03_over.gif','../common/img/nav_personal2_over.jpg','../common/img/discover2_s_over.jpg','../common/img/nav_01_1_over.gif','../common/img/nav_01_2_over.gif','../common/img/nav_01_3_over.gif','../common/img/nav_02_1_over.gif','../common/img/nav_02_2_over.gif','../common/img/nav_04_1_over.gif','../common/img/nav_04_2_over.gif','../common/img/nav_04_3_over.gif','../common/img/nav_04_4_over.gif','../person/img/person2_06_over.gif','../person/img/person2_11_over.gif','../person/img/person2_16_over.gif','../person/img/person2_18_over.gif','../person/img/person2_20_over.gif','../person/img/person2_29_over.gif','../person/img/thumb_bt_g01_over.gif','../person/img/thumb_bt_g02_over.gif','../person/img/thumb_bt_g03_over.gif','../person/img/thumb_bt_g04_over.gif','../person/img/thumb_bt_g05_over.gif','../person/img/thumb_bt_g06_over.gif','../person/img/person_menu1_3_over.gif','../person/img/person_menu2_3_over.gif','../person/img/person_menu3_3_over.gif','../person/img/thumb_bt_over.gif','../person/img/thumb_bt_company_over.gif','../person/img/thumb_bt_kanri1_over.gif','../common/img/nav_01_1.gif','../common/img/nav_01_2.gif','../common/img/nav_01_3.gif','../common/img/nav_02_1.gif','../common/img/nav_02_2.gif','../common/img/nav_04_1.gif','../common/img/nav_04_2.gif','../common/img/nav_04_3.gif','../common/img/nav_04_4.gif','../common/img/nav_03_01.gif','../common/img/nav_03_02.gif','../common/img/nav_03_03.gif','../common/img/nav_03_04.gif','../common/img/nav_03_05.gif','../common/img/nav_03_06.gif','../common/img/nav_03_07.gif','../common/img/nav_03_01_over.gif','../common/img/nav_03_02_over.gif','../common/img/nav_03_03_over.gif','../common/img/nav_03_04_over.gif','../common/img/nav_03_05_over.gif','../common/img/nav_03_06_over.gif','../common/img/nav_03_07_over.gif','../technology/img/vision_index_bt_over.gif','../technology/img/techn_arw_red.gif','../common/img/nav_05_1.gif','../common/img/nav_05_1_over.gif','../common/img/nav_05_2.gif','../common/img/nav_05_2_over.gif','../common/img/nav_05_3.gif','../common/img/nav_05_3_over.gif','../common/img/nav_05_4.gif','../common/img/nav_05_4_over.gif','img/ng02_nav_1_over.gif','img/ng02_nav_2_over.gif','img/ng02_nav_3_over.gif','img/ng02_nav_4_over.gif','img/ng02_nav_5_over.gif','img/ng02_nav_msg5.gif','img/ng02_nav_msg4.gif','img/ng02_nav_msg3.gif','img/ng02_nav_msg2.gif','img/ng02_nav_msg1.gif','img/ng02_nav2_1_over.gif','img/ng02_nav2_2_over.gif','img/ng02_nav2_3_over.gif','img/ng02_nav2_4_over.gif','img/ng02_nav2_5_over.gif','img/ng02_nav2_6_over.gif');
prImg= new Array();
for (i=0; i<data.length; i++)
{prImg[i] = new Image();
prImg[i].src = data[i];}


function tech_wopen(url){
	s_win=window.open("","techwin","width=370,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
	s_win.location.href=url;
		if(s_win.opener==null)s_win.opener=window;
	s_win.focus();
}



function closeMenu1(){
var objID=document.getElementById('sc1');
objID.style.display='none'
}

function closeMenu2(){
var objID=document.getElementById('sc2');
objID.style.display='none'
}

function closeMenu3(){
var objID=document.getElementById('sc3');
objID.style.display='none'
}

function closeMenu4(){
var objID=document.getElementById('sc4');
objID.style.display='none'
}

function closeMenu5(){
var objID=document.getElementById('sc5');
objID.style.display='none'
}


//Dreamweaver Behavior

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


//Contractible Headers script

var enablepersist="off" //Enable saving state of content structure using session cookies? (on/off)
var collapseprevious="yes" //Collapse previously open content when opening present? (yes/no)

if (document.getElementById){
document.write('<style type="text/css">')
document.write('.switchcontent{display:none;}')
document.write('</style>')
}

function getElementbyClass(classname){
ccollect=new Array()
var inc=0
var alltags=document.all? document.all : document.getElementsByTagName("*")
for (i=0; i<alltags.length; i++){
if (alltags[i].className==classname)
ccollect[inc++]=alltags[i]
}
}

function contractcontent(omit){
var inc=0
while (ccollect[inc]){
if (ccollect[inc].id!=omit)
ccollect[inc].style.display="none"
inc++
}
}

function expandcontent(cid){
if (typeof ccollect!="undefined"){
if (collapseprevious=="yes")
contractcontent(cid)
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "block"
}
}

function revivecontent(){
contractcontent("omitnothing")
selectedItem=getselectedItem()
selectedComponents=selectedItem.split("|")
for (i=0; i<selectedComponents.length-1; i++)
document.getElementById(selectedComponents[i]).style.display="block"
}

function get_cookie(Name) { 
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function getselectedItem(){
if (get_cookie(window.location.pathname) != ""){
selectedItem=get_cookie(window.location.pathname)
return selectedItem
}
else
return ""
}

function saveswitchstate(){
var inc=0, selectedItem=""
while (ccollect[inc]){
if (ccollect[inc].style.display=="block")
selectedItem+=ccollect[inc].id+"|"
inc++
}

document.cookie=window.location.pathname+"="+selectedItem
}

function do_onload(){
getElementbyClass("switchcontent")
if (enablepersist=="on" && typeof ccollect!="undefined")
revivecontent()
}


if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload

if (enablepersist=="on" && document.getElementById)
window.onunload=saveswitchstate