
// img over method (08-31 yb)
function initImgEffect(ImgEls,SelImg) {
 
 MenuImg = document.getElementById(ImgEls).getElementsByTagName("img");
 MenuImgLen = MenuImg.length;

 for (i=0; i<MenuImgLen; i++) {
  MenuImg.item(i).onmouseover = menuOver;
  MenuImg.item(i).onmouseout = menuOut;
  MenuImg.item(i).src=MenuImg.item(i).src.replace("_on.gif", ".gif");
  if (i == SelImg) {
   MenuImg.item(i).onmouseover();
   MenuImg.item(i).onmouseover = null;
   MenuImg.item(i).onmouseout = null;
  }
 }
}

function initImgEffectOut(ImgEls,SelImg) {
	
	MenuImg = document.getElementById(ImgEls).getElementsByTagName("img");
	MenuImgLen = MenuImg.length;

	for (i=0; i<MenuImgLen; i++) {
		MenuImg.item(i).onmouseout = menuOut;
		if (i == SelImg) {
			MenuImg.item(i).onmouseover();
			MenuImg.item(i).onmouseover = null;
			MenuImg.item(i).onmouseout = null;
		}
	}
}

function divImgOn2(start, end, select, id){
	for( i = start ; i <= end ; i++ ){
		img = document.getElementById( id + i );
		img.src = img.src.replace("_on.gif", ".gif");
	}
	img = document.getElementById( id + select );
	img.src = img.src.replace(".gif", "_on.gif");
}

