function map_refresh(targetId, attr, url) {
	var obj = document.getElementById(targetId);
	if (obj) {
		str = 'obj.' + attr + ' = "' + url + '"';
		eval(str);
	}

	return;
}

	function resizeDivBy(div,width,height){
	  if(document.layers) { // NN4
	   div.resizeBy(width,height);
	  }
	  // IE5+, Mozilla, Opera 7
	  else if(typeof div.style.width!="undefined"&& typeof div.style.width=="string"){
	    div.style.width =(div.offsetWidth +Math.round(width))+'px';
	    div.style.height=(div.offsetHeight+Math.round(height))+'px';
	  }
	  else if(typeof div.style.pixelWidth!="undefined"){ // IE4, Opera 6
	    div.style.pixelWidth +=Math.round(width);
	    div.style.pixelHeight+=Math.round(height);
	  }
	}

	function resizeDivTo(div,width,height){
	  if(document.layers) { // NN4
	   div.resizeTo(width,height);
	  }
	  // IE5+, Mozilla, Opera 7     
	  else if(typeof div.style.width!="undefined"&& typeof div.style.width=="string"){
	   div.style.width =width +'px';
	   div.style.height=height+'px';
	  }
	  else if(typeof div.style.pixelWidth!="undefined"){ // IE4, Opera 6
	   div.style.pixelWidth  = width;
	   div.style.pixelHeight = height;
	  }  
	}


/////////////////////////////////////////////////////
// レイヤの位置（X軸方向）の取得 
/////////////////////////////////////////////////////
function getDivLeft(div){
  if(typeof window.crypto!="undefined" &&
     typeof window.getComputedStyle!="undefined"){ // Mozilla
    return parseInt(div.style.left);
  }
  else // IE, (Mozilla), Opera, NN4
   return document.layers?div.left:(div.offsetLeft||div.style.pixelLeft||0);
}


/////////////////////////////////////////////////////
// レイヤの位置（Y軸方向）の取得 
/////////////////////////////////////////////////////
function getDivTop(div){
  if(typeof window.crypto!="undefined" &&
     typeof window.getComputedStyle!="undefined"){ // Mozilla
    return parseInt(div.style.top);
  }
  else // IE, (Mozilla), Opera, NN4
   return document.layers?div.top:(div.offsetTop||div.style.pixelTop||0);
}

/////////////////////////////////////////////////////
// レイヤのサイズ（幅）の取得 
/////////////////////////////////////////////////////
function getDivWidth (div){ 
  return document.layers?
         div.clip.width:(div.offsetWidth||div.style.pixelWidth||0);
}

/////////////////////////////////////////////////////
// レイヤのサイズ（高さ）の取得 
/////////////////////////////////////////////////////
function getDivHeight(div){
  return document.layers?
         div.clip.height:(div.offsetHeight||div.style.pixelHeight||0);
}

/////////////////////////////////////////////////////
// 指定されるIDのエレメントの位置（left, top）を取得
/////////////////////////////////////////////////////
function getElementPosition(element) {
	var offsetTrail = (typeof element == 'string') ? document.getElementById(element) : element;
	var offsetLeft = 0;
	var offsetTop = 0;

	while (offsetTrail) {
		offsetLeft += offsetTrail.offsetLeft;
		offsetTop += offsetTrail.offsetTop;
		offsetTrail = offsetTrail.offsetParent;
	}

	if (navigator.userAgent.indexOf('Mac') != -1 && typeof document.body.leftMargin != "undefined") {
		offsetLeft += document.body.leftMargin;
		offsetTop += document.body.topMargin;
	}

	return ({left: offsetLeft, top: offsetTop});
}

/////////////////////////////////////////////////////
// ブラウザ バージョンの取得
/////////////////////////////////////////////////////
function getBrowserVersion() { // @return Number:
  return window.opera ? (opera.version().replace(/\d$/, "") - 0) // Opera10 shock
                      : parseFloat((/(?:IE |fox\/|ome\/|ion\/)(\d+\.\d)/.
                                   exec(navigator.userAgent) || [,0])[1]);
}
