function agent(url){
	document.write('<iframe src="http://www.sonymusic.co.jp');
	document.write(url);
	document.write('" name="iframe" id="iframe" width="643" height="100%" frameborder="0" scrolling="auto" allowtransparency="true">この部分はインラインフレームを使用しています。</iframe>');
setTimeout("frame_check()",5);
}

function frame_check(){
    f=document.body.clientHeight - 122;
	if(f>435) {
    document.getElementById("iframe").height=f;
    setTimeout("frame_check()",10);
	}else{
    document.getElementById("iframe").height=435;
    setTimeout("frame_check()",10);
}
}

function frame_check2(){
    f=document.body.clientHeight - 122;
	if(f>435) {
    document.getElementById("main_right").height=f;
    setTimeout("frame_check2()",10);
	}else{
    document.getElementById("main_right").height=435;
    setTimeout("frame_check2()",10);
}
}

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);
}