function agent(url){
	document.write('<iframe src="http://www.sonymusic.co.jp');
	document.write(url);
	document.write('" name="iframe" id="iframe" width="680" height="100%" frameborder="0" scrolling="auto" allowtransparency="true">この部分はインラインフレームを使用しています。</iframe>');
	setTimeout("frame_check()",5);
}
function frame_check(){
    f=document.body.clientHeight - 110;
	if(f>423) {
    document.getElementById("iframe").height=f;
    setTimeout("frame_check()",5);
	}else{
    document.getElementById("iframe").height=423;
    setTimeout("frame_check()",5);
}
}

function banner(){
	document.write('<iframe src="../banner.html" name="banner" width="202" height="379" frameborder="0" scrolling="auto">この部分はインラインフレームを使用しています。</iframe>');
}

function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");

		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}

if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}