function agent(url){
	document.write('<iframe src="');
	document.write(url);
	document.write('" name="frame" id="frame" width="800" height="380" frameborder="0" scrolling="auto">この部分はインラインフレームを使用しています。</iframe>');
}

function img() {
	var selectnum = Math.floor((Math.random() * 100)) % 5;
	document.write('<img src="../img/photo/' + selectnum + '.jpg" width="226" height="569" border="0" alt="" class="photo">');
}

function home1(){document.home.src = "../img/menu/home_over.jpg";}
function home2(){document.home.src = "../img/menu/home.jpg";}
function news1(){document.news.src = "../img/menu/news_over.jpg";}
function news2(){document.news.src = "../img/menu/news.jpg";}
function profile1(){document.profile.src = "../img/menu/profile_over.jpg";}
function profile2(){document.profile.src = "../img/menu/profile.jpg";}
function message1(){document.message.src = "../img/menu/message_over.jpg";}
function message2(){document.message.src = "../img/menu/message.jpg";}
function bbs1(){document.bbs.src = "../img/menu/bbs_over.jpg";}
function bbs2(){document.bbs.src = "../img/menu/bbs.jpg";}

function popphoto(url){
wo=window.open(url,"popup","width=600,height=450,left=0,top=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,favorites=no,resizable=no");
wo.focus();
}