<!--

//**********************************************************************
// OPEN TEXT-ixos：Header Navigation
//
// 2005.06.01 Renewal
//**********************************************************************
// 変数：gHdxxx (先頭[gHd])
// 関数：head_xxx
//**********************************************************************


//--------------------------------------------------
// SET [ Server ]
//--------------------------------------------------

var gHdSv = 0;
var gHdRootPath;

if( gHdSv == 0 )     { gHdRootPath = "http://" + document.domain + "/"; }
else if( gHdSv == 1 ){ gHdRootPath = "http://" + document.domain + ":8080/www.opentext.co.jp/"; }


var gHdImgPath = gHdRootPath + 'img/';    //Image Path

var gHdLocation = location.href;             //URL


//---------------------------------------------
// ACTIVE DIRECTORY
//---------------------------------------------

var gHdActDir = new Array("","solution/","consulting/","training/","partner/","case/","company/");

var gHdActName = '';

var gHdImgState = new Array();

for( var i = 1; i<gHdActDir.length; i++ ){
	if( gHdLocation.indexOf(gHdRootPath + gHdActDir[i]) >= 0 ){
		gHdImgState[i] = '_on';
		gHdActName = 'head_gl'+i;
	}
	else{
	gHdImgState[i] = '';
	}
}


//---------------------------------------------
// DATA
//---------------------------------------------

gHdData = new Array();
gHdData[0] = '';
gHdData[1] = '<a href="' + gHdRootPath + 'solution/index.html" onMouseOver="head_over(\'head_gl1\');" onMouseOut="head_out(\'head_gl1\');"><img name="head_gl1" src="' + gHdImgPath + 'head_gl1' + gHdImgState[1] + '.gif" width="110" height="23" border="0" alt="ソリューション"></a>';
gHdData[2] = '<a href="' + gHdRootPath + 'consulting/index.html" onMouseOver="head_over(\'head_gl2\');" onMouseOut="head_out(\'head_gl2\');"><img name="head_gl2" src="' + gHdImgPath + 'head_gl2' + gHdImgState[2] + '.gif" width="110" height="23" border="0" alt="コンサルティング"></a>';
gHdData[3] = '<a href="' + gHdRootPath + 'training/index.html" onMouseOver="head_over(\'head_gl3\');" onMouseOut="head_out(\'head_gl3\');"><img name="head_gl3" src="' + gHdImgPath + 'head_gl3' + gHdImgState[3] + '.gif" width="110" height="23" border="0" alt="トレーニング"></a>';
gHdData[4] = '<a href="' + gHdRootPath + 'partner/index.html" onMouseOver="head_over(\'head_gl4\');" onMouseOut="head_out(\'head_gl4\');"><img name="head_gl4" src="' + gHdImgPath + 'head_gl4' + gHdImgState[4] + '.gif" width="110" height="23" border="0" alt="パートナー"></a>';
gHdData[5] = '<a href="' + gHdRootPath + 'case/index.html" onMouseOver="head_over(\'head_gl5\');" onMouseOut="head_out(\'head_gl5\');"><img name="head_gl5" src="' + gHdImgPath + 'head_gl5' + gHdImgState[5] + '.gif" width="110" height="23" border="0" alt="導入事例"></a>';
gHdData[6] = '<a href="' + gHdRootPath + 'company/index.html" onMouseOver="head_over(\'head_gl6\');" onMouseOut="head_out(\'head_gl6\');"><img name="head_gl6" src="' + gHdImgPath + 'head_gl6' + gHdImgState[6] + '.gif" width="110" height="23" border="0" alt="会社概要"></a>';


//---------------------------------------------
// Document Write
//---------------------------------------------

with( document ){
	write('<div><img src="' + gHdImgPath + 'sp.gif" width="768" height="11" alt=""></div>');
	write('<table border="0" width="768" cellpadding="0" cellspacing="0">');
	write('<tr>');
	write('<td valign="top"><a href="http://www.opentext.jp"><img src="' + gHdImgPath + 'head_logo01.gif" width="170" height="40" border="0" alt="OPEN TEXT The Content Experts&trade;"></a></td>');
	write('<td><img src="' + gHdImgPath + 'sp.gif" width="542" height="1" alt=""></td>');
	write('<td><a href="' + gHdRootPath + 'index.html" onclick="javascript:window.close();"><img name="head_sl4" src="' + gHdImgPath + 'btn_close02.gif" width="51" height="13" border="0" alt="閉じる"></a></td>');
	write('</tr>');
	write('</table>');
	write('</td>');
	write('</tr>');
	write('</table>');
	write('</td>');
	write('</tr>');
	write('</table>');
	write('<div><img src="' + gHdImgPath + 'sp.gif" width="1" height="11" alt=""></div>');
	write('<div><img src="' + gHdImgPath + 'head_line.gif" width="768" height="31" alt=""></div>');
}


//---------------------------------------------
// Image Loading
//---------------------------------------------

gHdImgArys = new Array(
"head_sl1.gif","head_sl1_on.gif",
"head_sl2.gif","head_sl2_on.gif",
"head_sl3.gif","head_sl3_on.gif",
"head_sl4.gif","head_sl4_on.gif",

"head_gl1.gif","head_gl1_on.gif",
"head_gl2.gif","head_gl2_on.gif",
"head_gl3.gif","head_gl3_on.gif",
"head_gl4.gif","head_gl4_on.gif",
"head_gl5.gif","head_gl5_on.gif",
"head_gl6.gif","head_gl6_on.gif"
);

gHdImgLoad = new Array();
for( var i = 0; i < gHdImgArys.length; i++ ){
	gHdImgLoad[i] = new Image();   gHdImgLoad[i].src = gHdImgPath + gHdImgArys[i];
	//document.write("<img src='" + gHdImgLoad[i].src + "'><br>");
}

//=============================================
// FUNCTION[ON/OFF]
//=============================================
function head_over(wk){
	if( wk == gHdActName){
		return;
	}
	else{
		document.images[wk].src = gHdImgPath + wk + "_on.gif";
	}
}

function head_out(wk){

	if( wk == gHdActName ){
		return;
	}
	else{
		document.images[wk].src = gHdImgPath + wk + ".gif";
	}
}


//-->