//Script For Change Image

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 == 'imgover') {

			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);

			}

		}

	}

}



//onload Script
window.onload = function() {

	initRollovers();

}

//AdSense for text
google_ad_client='ca-nifty_js';
google_ad_output='js';
google_max_num_ads=5;
google_language='ja';
google_encoding='sjis';
google_safe='high';
google_adtest='off';
google_ad_channel='tv';

function google_ad_request_done(){
	if(google_ads.length>0){
		var str="";
		str+='<h3 class="adsTtl"><img src="/img/heading_ads.gif" alt="Ads by Google" /></h3>';
		str+='<dl class="ads">';
		for(i=0;i<google_ads.length;i++){
			str+='<dt><a href="'+google_ads[i].url+' "  target="_blank">'+google_ads[i].line1+'</a>'+google_ads[i].visible_url+'</dt><dd>'+google_ads[i].line2+"&nbsp;"+google_ads[i].line3+'<dd>';
		}
		str+='</dl>';
		document.write(str);
	}
}
