/**********************************************************************
電子金券開発株式会社 : [ header.js ]

07.01.12
***********************************************************************/

var gHdPathFlg = 0;    // 0:本サーバ, 1:QODEAサーバ
if( gHdPathFlg == 0 )		{ gHdRootPath = 'http://' + document.domain + '/'; }
else if( gHdPathFlg == 1 ) { gHdRootPath = 'http://' + document.domain + '/denkin/html/'; }
else						{ gHdRootPath = ''; }

var gHdCssClass  = new Array(6); //Css Path
for (i=0; i < 6; i++){
	gHdCssClass[i] = '';
}

//---------------------------------------------
// Directory name + Image name
//---------------------------------------------
var gHdDefaultPath = gHdRootPath;

var gHdUrl      = location.href;
var gHdFilePath = gHdUrl.substring(gHdUrl.indexOf(gHdDefaultPath) + gHdDefaultPath.length , gHdUrl.length);
var gHdDirName  = gHdFilePath.substring(0 , gHdFilePath.indexOf('/'));
if(( gHdUrl == gHdDefaultPath ) || ( gHdUrl.indexOf(gHdDefaultPath + 'index.html') >= 0 )){ gHdDirName = 'index'; }
if((gHdUrl == gHdDefaultPath + 'isms.html') || (gHdUrl == gHdDefaultPath + 'privacy.html') || (gHdUrl == gHdDefaultPath + 'terms.html')){gHdDirName = '';}

//---------------------------------------------
// Image Path
//---------------------------------------------
var gHdImgPath = gHdDefaultPath + 'images/';

//---------------------------------------------
// Document Write
//---------------------------------------------

hd_active();

with( document ){
	write('<div class="bodytop"><img src="images/spacer.gif" width="1" height="8" alt=""></div>');
	write('<div id="HerderArea">');
	write('<div><img src="' + gHdImgPath + 'denkin_header02.jpg" width="664" height="75" alt="電子金券開発株式会社" border="0" usemap="#Map"></div>');
	write('<div><img src="' + gHdImgPath + 'menu_frame01.gif" width="705" height="4" alt=""></div>');
	write('<table border="0" cellspacing="0" cellpadding="0">');
	write('<tr align="center" bgcolor="#818ca1">');
	write('<td><img src="' + gHdImgPath + 'menu_frame02.gif" width="3" height="19" alt=""></td>');
	write('<td width="97"><a href="' + gHdRootPath + 'index.html" class="' + gHdCssClass[0] + '">HOME</a></td>');
	write('<td><img src="' + gHdImgPath + 'menu_line.gif" width="5" height="19" alt=""></td>');
	write('<td width="111"><a href="' + gHdRootPath + 'company/index.html" class="' + gHdCssClass[1] + '">会社情報</a></td>');
	write('<td><img src="' + gHdImgPath + 'menu_line.gif" width="5" height="19" alt=""></td>');
	write('<td width="110"><a href="' + gHdRootPath + 'business/index.html" class="' + gHdCssClass[2] + '">事業案内</a></td>');
	write('<td><img src="' + gHdImgPath + 'menu_line.gif" width="5" height="19" alt=""></td>');
	write('<td width="114"><a href="' + gHdRootPath + 'products/index.html" class="' + gHdCssClass[3] + '">商品情報</a></td>');
	write('<td><img src="' + gHdImgPath + 'menu_line.gif" width="5" height="19" alt=""></td>');
	write('<td width="128"><a href="' + gHdRootPath + 'release/index.html" class="' + gHdCssClass[4] + '">プレスリリース</a></td>');
	write('<td><img src="' + gHdImgPath + 'menu_line.gif" width="5" height="19" alt=""></td>');
	write('<td width="115"><a href="' + gHdRootPath + 'recruit/index.html" class="' + gHdCssClass[5] + '">採用情報</a></td>');
	write('<td><img src="' + gHdImgPath + 'menu_frame03.gif" width="3" height="19" alt=""></td>');
	write('</tr>');
	write('</table>');
	write('<div><img src="' + gHdImgPath + 'menu_frame04.gif" width="705" height="5" alt=""></div>');
	write('</div>');
}

//---------------------------------------------
// hd_active()
//---------------------------------------------
function hd_active(){
	if( gHdDirName == 'index' ){
		gHdCssClass[0] = 'top';
	}
	else if( gHdDirName == 'company' ){
		gHdCssClass[1] = 'top';
	}
	else if( gHdDirName == 'business' ){
		gHdCssClass[2] = 'top';
	}
	else if( gHdDirName == 'products' ){
		gHdCssClass[3] = 'top';
	}
	else if( gHdDirName == 'release' ){
		gHdCssClass[4] = 'top';
	}
	else if( gHdDirName == 'recruit' ){
		gHdCssClass[5] = 'top';
	}
}

/*********************************************************************/

