
//=============================================
// rollover
//=============================================

function initRollovers() {
	if (!document.getElementById) return
	
	var aPreLoad = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName('img');

	for (var i = 0; i < aImages.length; i++) {		
		if (aImages[i].className == 'over') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_on'+ftype);

			aImages[i].setAttribute('hsrc', hsrc);
			
			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;
			
			aImages[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}	
			
			aImages[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_on'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}

window.onload = initRollovers;

//=============================================
// PopUpWindow
//=============================================

function openWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//=============================================
// FlashPopUp for TopPage
//=============================================
function flashOpen(){
	window.open("/game.html", "", "width=934,height=651");
}

//=============================================
// WindowPopUp for Unit Price Help
//=============================================
function helpOpen(){
	window.open("/products_services/help.html", "", "width=690,height=650,scrollbars=yes,resizable=yes");
}

//=============================================
// WindowPopUp for E-Book Help
//=============================================
function helpOpen2(){
	window.open("/products_services/ebook_help.html", "", "width=690,height=650,scrollbars=yes,resizable=yes");
}

//=============================================
// WindowPopUp for Unit Price Attention
//=============================================
function openWindow(){
	window.open("/products_services/ope_data/important_notice.html", "", "width=680,height=550,scrollbars=yes,resizable=yes");
}

//=============================================
// WindowPopUp for CVF Rate Attention
//=============================================
function openWindow2(){
	window.open("/products_services/important_notice_2.html", "", "width=680,height=550,scrollbars=yes,resizable=yes");
}

//=============================================
// WindowPopUp for CVF Rate Attention (ActiveVisionII)
//=============================================
function openWindow5(){
	window.open("/products_services/important_notice_3.html", "", "width=680,height=550,scrollbars=yes,resizable=yes");
}


//=============================================
// WindowPopUp for Change Rate Attention
//=============================================
function openWindow3(){
	window.open("/products_services/ope_data/fx_notice.html", "", "width=680,height=550,scrollbars=yes,resizable=yes");
}

//=============================================
// WindowPopUp for Read Speaker
//=============================================
function openWindow4(){
	window.open("read_speaker.html", "", "width=690,height=650,scrollbars=yes,resizable=yes");
}