<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}


//------------------------------------------------------------------------------------------------------
//ディスコのアーティスト一覧用
//------------------------------------------------------------------------------------------------------
function setArtistList(){
	if(document.getElementsByTagName) {
		//sublist非表示
		var submenu = document.getElementsByTagName("ul");
		for(var i=0; i < submenu.length; i++){
			if(submenu[i].getAttribute('id')){
				if(submenu[i].getAttribute('id').match("artist-list-sub")){
					submenu[i].style.display = "none";
				}
			}
		}
		
		//画像onclick
		var images = document.getElementsByTagName("img");
		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_clickoff."))
			{
				images[i].style.cursor = "pointer";
				images[i].onclick = function() {
					var listId = "artist-list-sub-" + this.getAttribute("name");
					if(this.getAttribute("src").match("_clickoff."))
					{
						this.setAttribute("src", this.getAttribute("src").replace("_clickoff.", "_clickon."));
						document.getElementById(listId).style.display = "block";
					} else {
						this.setAttribute("src", this.getAttribute("src").replace("_clickon.", "_clickoff."));
						document.getElementById(listId).style.display = "none";
					}
					
				}
			}
		}
	}
}


//------------------------------------------------------------------------------------------------------
//メニューの画像切り替え
//------------------------------------------------------------------------------------------------------
function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		for(var i=0; i < images.length; i++) {

			if(images[i].getAttribute("src").match("_smartoff."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_smartoff.", "_smarton."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_smarton.", "_smartoff."));
				}
			}
		}
	}
}


//------------------------------------------------------------------------------------------------------
//検索ボックスの表示
//------------------------------------------------------------------------------------------------------
function writeSearchBox(){
	document.write('<form action="/search.php" method="get">');
	document.write('<p><input type="text" name="q" id="search-word" /></p>');
	document.write('<p id="search-category">');
	document.write('<select name="c" id="c">');
	document.write('<option value="0">全文検索</option>');
	document.write('<option value="1">ニュース検索</option>');
	document.write('<option value="2">メディア検索</option>');
	document.write('<option value="3">イベント検索</option>');
	document.write('<option value="4">ディスコグラフィー検索</option>');
	document.write('<option value="5">ブック検索</option>');
	document.write('<option value="6">グッズ検索</option> ');
	document.write('</select></p>');
	document.write('<p id="submit"><input type="image" src="/images/common/head_search_btn.jpg" alt="検索する" /></p>');
	document.write('</form>');
}

//------------------------------------------------------------------------------------------------------
//ニュースのバックナンバー切り替え
//------------------------------------------------------------------------------------------------------
function update_frame(myoptions){
	destination = myoptions[myoptions.selectedIndex].value;
	if (destination == "null"){
		return true;
	} else {
		location.href = destination;
	}
}

//------------------------------------------------------------------------------------------------------
//mac用のcssを読み込む
//------------------------------------------------------------------------------------------------------
if (navigator.userAgent.indexOf("Mac") > -1) {
document.write('<link rel="stylesheet" type="text/css" href="/css/for_mac.css" />');
}


//------------------------------------------------------------------------------------------------------
//メニューの書き出し
//------------------------------------------------------------------------------------------------------
function writeGlobalNav(id){
	document.write('<ul class="clearfix">');

	document.write('<li><a href="/news/index.html"><img src="/images/menu/menu_01_smart'); if(id==1){document.write('on');}else{document.write('off');} document.write('.jpg" border="0" width="86" height="30" alt="ニュース" /></a></li>');
	document.write('<li><a href="/member/index.html"><img src="/images/menu/menu_02_smart'); if(id==2){document.write('on');}else{document.write('off');} document.write('.jpg" border="0" width="86" height="30" alt="アーティスト" /></a></li>');
	document.write('<li><a href="/discography/index.html"><img src="/images/menu/menu_03_smart'); if(id==3){document.write('on');}else{document.write('off');} document.write('.jpg" border="0" width="86" height="30" alt="ディスコグラフィー" /></a></li>');
	document.write('<li><a href="/media/index.html"><img src="/images/menu/menu_04_smart'); if(id==4){document.write('on');}else{document.write('off');} document.write('.jpg" border="0" width="86" height="30" alt="メディア" /></a></li>');
	document.write('<li><a href="/event/index.html"><img src="/images/menu/menu_05_smart'); if(id==5){document.write('on');}else{document.write('off');} document.write('.jpg" border="0" width="86" height="30" alt="イベント" /></a></li>');
	document.write('<li><a href="/book/index.html"><img src="/images/menu/menu_06_smart'); if(id==6){document.write('on');}else{document.write('off');} document.write('.jpg" border="0" width="86" height="30" alt="ブック" /></a></li>');
	document.write('<li><a href="/goods/index.html"><img src="/images/menu/menu_07_smart'); if(id==7){document.write('on');}else{document.write('off');} document.write('.jpg" border="0" width="86" height="30" alt="グッズ＆ショップ" /></a></li>');
	document.write('<li><a href="/mobile/index.html"><img src="/images/menu/menu_08_smart'); if(id==8){document.write('on');}else{document.write('off');} document.write('.jpg" border="0" width="86" height="30" alt="モバイル" /></a></li>');
	document.write('<li><a href="/link/index.html"><img src="/images/menu/menu_09_smart'); if(id==9){document.write('on');}else{document.write('off');} document.write('.jpg" border="0" width="86" height="30" alt="リンク" /></a></li>');
	document.write('<li><a href="http://morningmusume.helloproject.com/" target="_blank"><img src="/images/menu/menu_10_smart'); if(id==10){document.write('on');}else{document.write('off');} document.write('.jpg" border="0" width="86" height="30" alt="有料サイト" /></a></li>');
	//document.write('<li><img src="/images/menu/menu_10_smart'); if(id==10){document.write('on');}else{document.write('off');} document.write('.jpg" border="0" width="86" height="30" alt="有料サイト" /></li>');

	document.write('</ul>');
}


//------------------------------------------------------------------------------------------------------
//アーティストサブメニューの書き出し
//------------------------------------------------------------------------------------------------------
function writeArtistSubMenu(artist, id){
	artist2 = artist;
	if(artist == 'musume') artist2 = 'morningmusume';
	if(artist == 'berryz') artist2 = 'berryzkobo';
	if(artist == 'cute') artist2 = 'c-ute';
	if(artist == 'mano') artist2 = 'manoerina';
	if(artist == 'buono') artist2 = 'buono';
	if(artist == 'guardians4') artist2 = 'guardians4';
	if(artist == 'tsukishima') artist2 = 'tsukishima_kirari';
	if(artist == 'milkyway') artist2 = 'milkyway';
	if(artist == 'sina') artist2 = 'sina';
	if(artist == 'syugo') artist2 = 'syugocharaegg';
	if(artist == 'ice') artist2 = 'icecreamusume';
	if(artist == 'fandi') artist2 = 'francis_and_aiko';

	document.write('<ul id="'+artist+'">');

	document.write('<li id="artist-submenu-news"><a href="/'+artist2+'/news.html"><img src="/images/artist/submenu_01_smart'); if(id==1){document.write('on');}else{document.write('off');} document.write('.jpg" border="0" width="71" height="18" alt="ニュース" /></a></li>');
	document.write('<li id="artist-submenu-profile"><a href="/'+artist2+'/profile.html"><img src="/images/artist/submenu_02_smart'); if(id==2){document.write('on');}else{document.write('off');} document.write('.jpg" border="0" width="93" height="18" alt="プロフィール" /></a></li>');
	document.write('<li id="artist-submenu-media"><a href="/'+artist2+'/media.html"><img src="/images/artist/submenu_03_smart'); if(id==3){document.write('on');}else{document.write('off');} document.write('.jpg" border="0" width="71" height="18" alt="メディア" /></a></li>');
	document.write('<li id="artist-submenu-live"><a href="/'+artist2+'/live.html"><img src="/images/artist/submenu_04_smart'); if(id==4){document.write('on');}else{document.write('off');} document.write('.jpg" border="0" width="71" height="18" alt="イベント" /></a></li>');
	document.write('<li id="artist-submenu-disco"><a href="/discography/'+artist+'/index.html"><img src="/images/artist/submenu_05_smart'); if(id==5){document.write('on');}else{document.write('off');} document.write('.jpg" border="0" width="118" height="18" alt="ディスコグラフィー" /></a></li>');
	document.write('<li id="artist-submenu-book"><a href="/book/photo_'+artist+'.html"><img src="/images/artist/submenu_06_smart'); if(id==6){document.write('on');}else{document.write('off');} document.write('.jpg" border="0" width="71" height="18" alt="ブック" /></a></li>');
	//ファンクラブメニュー
	if(artist == 'musume') document.write('<li id="artist-submenu-fanclub"><a href="http://www.up-fc.jp/helloproject/member/morning/" target="_blank"><img src="/images/artist/submenu_07_smartoff.jpg" border="0" alt="ファンクラブ" /></a></li>');
	if(artist == 'berryz') document.write('<li id="artist-submenu-fanclub"><a href="http://www.up-fc.jp/helloproject/member/berryz/" target="_blank"><img src="/images/artist/submenu_07_smartoff.jpg" border="0" alt="ファンクラブ" /></a></li>');
	if(artist == 'cute') document.write('<li id="artist-submenu-fanclub"><a href="http://www.up-fc.jp/helloproject/member/cute/" target="_blank"><img src="/images/artist/submenu_07_smartoff.jpg" border="0" alt="ファンクラブ" /></a></li>');
	if(artist == 'mano') document.write('<li id="artist-submenu-fanclub"><a href="http://www.up-fc.jp/helloproject/member/mano_erina/" target="_blank"><img src="/images/artist/submenu_07_smartoff.jpg" border="0" alt="ファンクラブ" /></a></li>');
	document.write('</ul>');
}


//------------------------------------------------------------------------------------------------------
//ニュース一覧のバックナンバーメニューの書き出し
//------------------------------------------------------------------------------------------------------
function writeNewsBackNumberMenu(){
	document.write('<select name="nav" onchange="update_frame(this.options);">');
	document.write('<option value="null">バックナンバー</option>');
	document.write('<option value="index.html">最新情報</option>');
	document.write('<option value="news201007.html">2010年07月</option>');
	document.write('<option value="news201006.html">2010年06月</option>');
	document.write('<option value="news201005.html">2010年05月</option>');
	document.write('<option value="news201004.html">2010年04月</option>');
	document.write('<option value="news201003.html">2010年03月</option>');
	document.write('<option value="news201002.html">2010年02月</option>');
	document.write('<option value="news201001.html">2010年01月</option>');
	document.write('<option value="news200912.html">2009年12月</option>');
	document.write('<option value="news200911.html">2009年11月</option>');
	document.write('<option value="news200910.html">2009年10月</option>');
	document.write('<option value="news200909.html">2009年09月</option>');
	document.write('<option value="news200908.html">2009年08月</option>');
	document.write('<option value="news200907.html">2009年07月</option>');
	document.write('<option value="news200906.html">2009年06月</option>');
	document.write('<option value="news200905.html">2009年05月</option>');
	document.write('<option value="news200904.html">2009年04月</option>');		
	document.write('<option value="news200903.html">2009年03月</option>');	
	document.write('<option value="news200902.html">2009年02月</option>');
	document.write('<option value="news200901.html">2009年01月</option>');
	document.write('<option value="news200812.html">2008年12月</option>');
	document.write('<option value="news200811.html">2008年11月</option>');
	document.write('<option value="news200810.html">2008年10月</option>');
	document.write('<option value="news200809.html">2008年09月</option>');
	document.write('<option value="news200808.html">2008年08月</option>');
	document.write('<option value="news200807.html">2008年07月</option>');
	document.write('<option value="news200806.html">2008年06月</option>');
	document.write('<option value="news200805.html">2008年05月</option>');
	document.write('<option value="news200804.html">2008年04月</option>');
	document.write('<option value="news200803.html">2008年03月</option>');
	document.write('<option value="news200802.html">2008年02月</option>');
	document.write('<option value="news200801.html">2008年01月</option>');
	document.write('<option value="news200712.html">2007年12月</option>');
	document.write('<option value="news200711.html">2007年11月</option>');
	document.write('<option value="news200710.html">2007年10月</option>');
	document.write('<option value="news200709.html">2007年09月</option>');
	document.write('<option value="news200708.html">2007年08月</option>');
	document.write('<option value="news200707.html">2007年07月</option>');
	document.write('<option value="news200706.html">2007年06月</option>');
	document.write('<option value="news200705.html">2007年05月</option>');
	document.write('<option value="news200704.html">2007年04月</option>');
	document.write('<option value="news200703.html">2007年03月</option>');
	document.write('<option value="news200702.html">2007年02月</option>');
	document.write('<option value="news200701.html">2007年01月</option>');
	document.write('<option value="news200612.html">2006年12月</option>');
	document.write('<option value="news200611.html">2006年11月</option>');
	document.write('<option value="news200610.html">2006年10月</option>');
	document.write('<option value="news200609.html">2006年09月</option>');
	document.write('<option value="news200608.html">2006年08月</option>');
	document.write('<option value="news200607.html">2006年07月</option>');
	document.write('<option value="news200606.html">2006年06月</option>');
	document.write('<option value="news200605.html">2006年05月</option>');
	document.write('<option value="news200604.html">2006年04月</option>');
	document.write('<option value="news200603.html">2006年03月</option>');
	document.write('<option value="news200602.html">2006年02月</option>');
	document.write('<option value="news200601.html">2006年01月</option>');
	document.write('<option value="news200512.html">2005年12月</option>');
	document.write('<option value="news200511.html">2005年11月</option>');
	document.write('<option value="news200510.html">2005年10月</option>');
	document.write('<option value="news200509.html">2005年09月</option>');
	document.write('<option value="news200508.html">2005年08月</option>');
	document.write('<option value="news200507.html">2005年07月</option>');
	document.write('<option value="news200506.html">2005年06月</option>');
	document.write('<option value="news200505.html">2005年05月</option>');
	document.write('<option value="news200504.html">2005年04月</option>');
	document.write('<option value="news200503.html">2005年03月</option>');
	document.write('<option value="news200502.html">2005年02月</option>');
	document.write('<option value="news200501.html">2005年01月</option>');
	document.write('<option value="news200412.html">2004年12月</option>');
	document.write('<option value="news200411.html">2004年11月</option>');
	document.write('</select>');
}


//------------------------------------------------------------------------------------------------------
//メディアサブメニュー書き出し
//------------------------------------------------------------------------------------------------------
function writeMediaSubMenu(id){
	document.write('<ul id="media-sub-menu" class="clearfix">');

	document.write('<li><a href="/media/tv.html"><img src="/images/media/media_subm01_smart');
	if(id==1){document.write('on');}else{document.write('off');}
	document.write('.jpg" border="0" alt="テレビ" /></a></li>');
	document.write('<li><a href="/media/radio.html"><img src="/images/media/media_subm02_smart');
	if(id==2){document.write('on');}else{document.write('off');}
	document.write('.jpg" border="0" alt="ラジオ" /></a></li>');
	document.write('<li><a href="/media/web.html"><img src="/images/media/media_subm03_smart');
	if(id==3){document.write('on');}else{document.write('off');}
	document.write('.jpg" border="0" alt="ウェブ" /></a></li>');
	document.write('<li><a href="/media/magazine.html"><img src="/images/media/media_subm04_smart');
	if(id==4){document.write('on');}else{document.write('off');}
	document.write('.jpg" border="0" alt="雑誌" /></a></li>');
	document.write('<li><a href="/media/movie.html"><img src="/images/media/media_subm06_smart');
	if(id==6){document.write('on');}else{document.write('off');}
	document.write('.jpg" border="0" alt="映画" /></a></li>');
	document.write('<li><a href="/media/onair.html"><img src="/images/media/media_subm05_smart');
	if(id==5){document.write('on');}else{document.write('off');}
	document.write('.jpg" border="0" alt="公開収録" /></a></li>');

	document.write('</ul>');
}


//------------------------------------------------------------------------------------------------------
//イベントサブメニュー書き出し
//------------------------------------------------------------------------------------------------------
function writeHeadFlash(){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="120" height="98" id="head_mark" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="wmode" value="transparent">');
	document.write('<param name="movie" value="/common/head_mark.swf" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<embed src="/common/head_mark.swf" quality="high" bgcolor="#ffffff" width="120" height="98" name="head_mark" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" />');
	document.write('</object>');
}


//------------------------------------------------------------------------------------------------------
//ヘッダー左上flash書き出し
//------------------------------------------------------------------------------------------------------
function writeEventSubMenu(id){
	document.write('<ul id="event-submenu-list">');

	document.write('<li><a href="/event/index.html"><img src="/images/event/event_subm01_smart');
	if(id==1){document.write('on');}else{document.write('off');}
	document.write('.jpg" border="0" width="106" height="29" alt="コンサート" /></a></li>');
	document.write('<li><a href="/event/event.html"><img src="/images/event/event_subm02_smart');
	if(id==2){document.write('on');}else{document.write('off');}
	document.write('.jpg" border="0" width="106" height="29" alt="イベント" /></a></li>');
	document.write('<li><a href="/event/butai.html"><img src="/images/event/event_subm03_smart');
	if(id==3){document.write('on');}else{document.write('off');}
	document.write('.jpg" border="0" width="106" height="29" alt="舞台情報" /></a></li>');

	document.write('</ul>');
}


//------------------------------------------------------------------------------------------------------
//ヘッダー左上flash書き出し
//------------------------------------------------------------------------------------------------------
function writeMailtoMap(){
	document.write('<map name="Map" id="Map"><area shape="rect" coords="640,-2,749,21" href="&#109;a&#105;&#108;&#116;&#111;&#58;m&#97;&#105;l&#64;&#104;e&#108;loproje&#99;&#116;.&#99;&#111;m" /></map>');
}



//-->



