/* ========================================================================	NaviBarLite lite	Author	:	KAPPA	E-Mail	:	kappa@air.linkclub.or.jp	Homepage:	http://www.linkclub.or.jp/~kappa/	Create 1.0.0	:	2000/02/18	Copyright(c) 2000 KAPPA All rights reserved.======================================================================== */var	naviBarLiteArray =  new Array();function	naviBarLiteInfo( keyword, width, height, url, alt ){	this.keyword	= keyword;	this.width		= width;	this.height		= height;	this.url		= url;	this.alt		= alt;}function	revertHex( src ){	s = '0xff'+src.substring(1,7);	s = ~s;	dst = '000000' + s.toString(16);	dst = '#'+dst.substring( dst.length-6, dst.length );	return( dst );}function	splitColor( col ){	this.r = '0x'+col.substring( 1,3 );	this.g = '0x'+col.substring( 3,5 );	this.b = '0x'+col.substring( 5,7 );}function	makeHexRGB( r, g, b ){	var	colstr='';	rs = '0' + r.toString(16);	rs = rs.substring( rs.length-2, rs.length + 1 );	gs = '0' + g.toString(16);	gs = gs.substring( gs.length-2, gs.length + 1 );	bs = '0' + b.toString(16);	bs = bs.substring( bs.length-2, bs.length + 1 );	colstr = '#' + rs + gs + bs;	return(colstr);}var	naviBarLiteWidth=500;var	naviBarLiteColor='';var	naviTextColor='';var	naviHereColor='';var	naviALinkColor='';var	naviAVisitedColor='';var	naviAActiveColor='';var	naviAHoverColor='';function	defaultHereColor(){	bsColor = new splitColor( naviBarLiteColor );	r = Math.round( bsColor.r * 80 / 100 );	g = Math.round( bsColor.g * 80 / 100 );	b = Math.round( bsColor.b * 80 / 100 );	naviHereColor = makeHexRGB( r, g, b );}function	defaultALinkColor(){	bsColor = new splitColor( naviBarLiteColor );	r = Math.round( bsColor.r * 120 / 100 );	if( r > 255 )	r = 255;	g = Math.round( bsColor.g * 120 / 100 );	if( g > 255 )	g = 255;	b = Math.round( bsColor.b * 120 / 100 );	if( b > 255 )	b = 255;	naviALinkColor = makeHexRGB( r, g, b );}function	initNaviBarLite( width, barColor, textColor ){	if( initNaviBarLite.arguments.length > 0 )	naviBarLiteWidth	= width;	if( initNaviBarLite.arguments.length > 1 )	naviBarLiteColor	= barColor;	if( initNaviBarLite.arguments.length > 2 )	naviTextColor		= textColor;	tempColor = document.alinkColor;	document.alinkColor = naviBarLiteColor;	naviBarLiteColor = document.alinkColor;	document.alinkColor = tempColor;		defaultHereColor();	defaultALinkColor();}function	setNaviBarLiteHereColor( col ){	naviHereColor = col;}function	setNaviBarLiteALinkColor( col ){	naviALinkColor = col;}function	setNaviBarLiteItems( keyword, width, height, url, alt ){	if( keyword == 'blank' ){		if( setNaviBarLiteItems.arguments.length > 1 )			naviBarLiteArray[naviBarLiteArray.length] = new naviBarLiteInfo( keyword, width, 0, '', '' );		else			naviBarLiteArray[naviBarLiteArray.length] = new naviBarLiteInfo( keyword, 0, 0, '', '' );	}	else{		naviBarLiteArray[keyword] = new naviBarLiteInfo( keyword, width, height, url, alt );	}	naviBarLiteArray.length++;}var	sameColor = false;function	drawNaviBarLite( here ){	var	i,j;	var	aw = naviBarLiteWidth;		if( naviBarLiteColor == '' ){	naviBarLiteColor = document.bgColor;	sameColor = true; }	if( naviHereColor == '' )	defaultHereColor();	if( naviALinkColor == '' )	defaultALinkColor();	if( naviTextColor == '' )	naviTextColor = document.fgColor;		document.write('<TABLE border=1 bordercolor=', naviBarLiteColor, ' cellpadding=0 cellspacing=0 vspace=0 hspace=0>');	document.write('<TR bgcolor=', naviBarLiteColor, '><TD>');	if( sameColor ){		document.write('<TABLE align=center border=1 cellpadding=2 cellspacing=1 vspace=0 hspace=0>');	}	else{		document.write('<TABLE align=center border=0 cellpadding=2 cellspacing=1 vspace=0 hspace=0>');	}	document.write('<TR>');	for( i in naviBarLiteArray ){		if( naviBarLiteArray[i].keyword == 'blank' ){			if( naviBarLiteArray[i].width == 0 ){				for( j in naviBarLiteArray )	aw -= naviBarLiteArray[j].width;				if( aw < 0 )	aw = 0;				naviBarLiteArray[i].width = aw;			}			document.write('<TD width=', naviBarLiteArray[i].width, '>&nbsp;</TD>');			continue;		}		if( i == here ){			document.write('<TD nowrap align=center bgcolor=', naviHereColor, '><FONT color=', naviTextColor, '>', naviBarLiteArray[i].alt, '</FONT></TD>' );		}		else{			document.write('<TD nowrap align=center bgcolor=', naviALinkColor, '><A href="', naviBarLiteArray[i].url, '">', naviBarLiteArray[i].alt, '<','/A><','/TD>' );		}	}	document.write('</TR>');	document.write('</TABLE>');	document.write('</TD></TR>');	document.write('</TABLE>');}