
function copiedRollover() {

	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		for(var i=0; i < images.length; i++) {
			var imgURI = images[i].getAttribute("src");
			if(imgURI.match("btn_fnc_"))
			{
				var tmp = imgURI.split('/');
				var imgName = tmp[tmp.length-1];
				imgName = imgName.replace('_o.','.');
				imgName = imgName.substring(0,imgName.length - 4);

				images[i].setAttribute("id",imgName);
				images[i].onmouseover = function() {
					if(this == window.goFontBtnObj[giFontSize]) return;  
					var imgURI = this.getAttribute("src");
					var str = imgURI.substring(0,imgURI.length - 4);
					var ext = imgURI.slice(imgURI.length - 3);
					str = str + '_o';
					str = str.replace('_o_o','_o');
					var onImgName = str + '.' + ext;
					this.setAttribute("src", onImgName);
				}
				images[i].onmouseout = function() {
					if(this == window.goFontBtnObj[giFontSize]) return;  
					this.setAttribute("src", this.getAttribute("src").replace("_o.", "."));
				}
				images[i].onclick = function() {                                 
					if(this == window.goFontBtnObj[giFontSize]){ return; }
					var i = -1;
					if(0 < this.id.indexOf('small')) { i = 0; };
					if(0 < this.id.indexOf('middle')){ i = 1; };
					if(0 < this.id.indexOf('large')) { i = 2; };
					if(!!setFontSize && i >= 0 ){ setFontSize(i); }

				}
			}else if(!!images[i].style.filter){ 
				var imgFilter = images[i].style.filter;
				if(imgFilter.match(/btn_fnc_/i)){
					var tmp = imgFilter.split('"');
					var imgName = tmp[1];
					tmp = imgName.split('/');
					var imgName = tmp[tmp.length-1];
					imgName = imgName.replace('_o.','.');
					imgName = imgName.substring(0,imgName.length - 4);

					images[i].setAttribute("id",imgName);

					images[i].onmouseover = function() {
						if(this == window.goFontBtnObj[giFontSize]) return;		
						var str2 = this.style.filter;
						str2 = str2.replace(/.png/i,'_o.png');
						str2 = str2.replace(/_o_o.png/i,'_o.png');
						this.style.filter = str2;
					}
					images[i].onmouseout = function() {
						if(this == window.goFontBtnObj[giFontSize]) return;		
						var str2 = this.style.filter;
						str2 = str2.replace(/_o.png/i,'.png');
						this.style.filter = str2;
					}

					images[i].onclick = function() {								
						if(this.id == window.goFontBtnObj[giFontSize].id){ return; }
						var i = -1;
						if(0 < this.id.indexOf('small')) { i = 0; };
						if(0 < this.id.indexOf('middle')){ i = 1; };
						if(0 < this.id.indexOf('large')) { i = 2; };
						if(!!setFontSize && i >= 0 ){ setFontSize(i); }

					}
				}
			}
		}
	}
}

/* moved for fontsize.js at 0116 
if(window.addEventListener) {
	window.addEventListener("load", copiedRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", copiedRollover);
}
*/


