<!--


function LocationNN4x( url )
{
	with( navigator )
	{
		if( ( appName == "Netscape" ) && ( parseInt( appVersion ) == 4 ) )
		{
			document.location = url;
		}
	}
}

LocationNN4x( 'http://design.it-work.jp/nn/' );


	function LocationNN6x( url )
	{
		with( navigator )
		{
			if( userAgent.match( /netscape6/i ) )
			{
				document.location = url;
			}
		}
	}

	LocationNN6x( 'http://design.it-work.jp/nn/' );

/*------------------*/

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_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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 includeFlash( url, width, height, title, quality )
{
	document.write( '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + width + '" height="' + height + '" title="' + title + '">' );
	document.write( '<param name="movie" value="' + url + '" />' );
	document.write( '<param name="quality" value="' + quality + '" />' );
	document.write( '<embed src="' + url + '" quality="' + quality + '" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>' );
	document.write( '</object>' );
}

/*------------------*/

var font_values  = new Array( '8px', '10px', '12px', '14px', '16px', '18px', '20px', '24px', '28px', '32px', '36px' );
var font_default = 2
var font_index   = font_default;

var	cookie_days = 30 * 24;

var use_cookie = false;

function initFontSize()
{
	var index = readCookie( 'font_index' );

	if( index != null )
	{
		font_index = parseInt( index );

		setFontSize( font_values[ font_index ] );
	}

	use_cookie = true;
}

function setFontIndex( index )
{
	font_index = index;

	if( use_cookie )
	{
		writeCookie( 'font_index', font_index, cookie_days );
	}
}

function setDefaultFontSize()
{
	if( font_index != font_default )
	{
		setFontIndex( font_default );

		setFontSize( font_values[ font_index ] );
	}
}

function changeFontSize( n )
{
	var new_font_index = font_index;

	new_font_index += parseInt( n );

	if( new_font_index >= font_values.length )
	{
		new_font_index = font_values.length - 1;
	}

	if( new_font_index < 0 )
	{
		new_font_index = 0;
	}

	if( new_font_index != font_index )
	{
		setFontIndex( new_font_index );

		setFontSize( font_values[ font_index ] );
	}
}

function setFontSize( size )
{
	document.body.style.fontSize = size;

	setRecursiveFontSize( document.body, size );
}

function setRecursiveFontSize( element, size )
{
	var i;

	for( i = 0; i < element.childNodes.length; i ++ )
	{
		var child_element = element.childNodes[ i ];

//		if( child_element.tagName == 'th' || child_element.tagName == 'td' )
		{
			if( child_element.style )
			{
				child_element.style.fontSize = size;
			}
		}

		if( child_element.hasChildNodes() )
		{
			setRecursiveFontSize( child_element, size );
		}
	}
}

function writeCookie( name, value, hours )
{
	var expire = "";

	if( hours != null )
	{
		expire = new Date( ( new Date() ).getTime() + hours * 3600000 );
		expire = "; expires=" + expire.toGMTString();
	}

	document.cookie = name + "=" + escape( value ) + expire + ";path=/";
}

function readCookie( name )
{
	var cookieValue = "";
	var search      = name + "=";

	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;

			cookieValue = unescape( document.cookie.substring( offset, end ) );
		}
	}

	return cookieValue;
}

//-->

