<!--
function ChangeImage(img,i) {

	switch (img) {
		case "top":
			thismouseover="images/menu_home_on.gif";
			thismouseout="images/menu_home.gif";
			break;
		case "album":
			thismouseover="images/menu_album_on.gif";
			thismouseout="images/menu_album.gif";
			break;
		case 1:
		break; 
	}
	
	switch (i) {
		case 1:		top.document.all[img].src = thismouseover;break;
		case 2:		top.document.all[img].src = thismouseout;break;
		default:	top.document.all[img].src = thismouseover;break;
	}

}

function AlbumListImageResize()
{
	var i = 0;
	while(true)
	{
		var img = document.images['abumListImage' + i];
		if( img == undefined)
		{
			break;
		}
		loadImage(img.src, img.name, 90);
		++i;
	}
}
function DispProfile()
{
	if( document.all.tbProfile.style.display == 'none'){
		document.all.tbProfile.style.display = 'inline';
	}else{
		document.all.tbProfile.style.display = 'none';		
	}
}
function resizeImage(_name, size)
{
	var cnt = 0;
	while( true )
	{
		var image = eval( _name + cnt);
		if( image == undefined || cnt > 1000)  // 無限ループに陥らないように
		{
			break;
		}
		if( image.width > size || image.height > size)
		{
			resize(image, size);
			image.style.visibility = 'visible';
		}
		++cnt;
	}	
}

function resize(img, size)
{

	// 画像を引数のサイズに収める
	var _width = img.width;
	var _height = img.height;

	if( _width <= size && _height <= size)
	{
		return;
	}

	var rate = 1;

	if( _width >= _height )
	{
		rate = size/_width;
	}
	else
	{
		rate = size/_height;
	}
	
	img.style.zoom = rate;
	img.style.visibility = 'visible';
	
	//img.style.visibility = 'visible';
	//img.style.width = _width * rate;
	//img.style.height = _height * rate;
	//img.style.visibility = 'visible';
}

// 画面のトップに移動する
function backToTop() {
  var x1 = x2 = x3 = 0;
  var y1 = y2 = y3 = 0;
  if (document.documentElement) {
      x1 = document.documentElement.scrollLeft || 0;
      y1 = document.documentElement.scrollTop || 0;
  }
  if (document.body) {
      x2 = document.body.scrollLeft || 0;
      y2 = document.body.scrollTop || 0;
  }
  x3 = window.scrollX || 0;
  y3 = window.scrollY || 0;
  var x = Math.max(x1, Math.max(x2, x3));
  var y = Math.max(y1, Math.max(y2, y3));
  window.scrollTo(Math.floor(x / 2), Math.floor(y / 2));
  if (x > 0 || y > 0) {
      window.setTimeout("backToTop()", 25);
  }
}

	function confirmMsg(msg) {
	  if (typeof(Page_ClientValidate) != 'function' ||  Page_ClientValidate()) {
		return confirm(msg);		
	  } 
	  else {
		return false;
	  }
	}
//-->