//javascriptライブラリインポート━━━━━━━━━━━━
function ImportJSclass(){
document.write("<script src='http://www.cs371.com/common/swfobject1-5/swfobject.js' type='text/javascript' charset='EUC-JP'></script>");


//イメージライブラリ━━━━━━━━━━━━━━━━━━
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_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];}
}

}

//右袖トップバナー190_83━━━━━━━━━━━━━━━━
function menuLinkRightTopBanner(){
document.write("<div align='center'>");

Querys = new Array();
Odds = new Array ();

//設定ここから-------------------------------------------

//確率設定（有=0、無=1） 

OddsFlag = 0;

//出力ソースをインデックス数0から順に設定

Querys[0] = "<a href='http://studio.pigoo.jp/'><img src='http://www.cs371.com/img/190_83_pigoo.gif' width='190' height='83' alt='ピグスタ' style='margin-bottom:3px;' border='0'></a>";
Querys[1] = "<a href='http://www.cs371.com/anq/'><img src='http://www.cs371.com/img/190_83_cheki.jpg' width='190' height='83' alt='番組からのプレゼント' style='margin-bottom:3px;' border='0'></a>";
Querys[2] = "<a href='http://shop.cs371.com/'><img src='http://www.cs371.com/img/190_83_p.gif' width='190' height='83' alt='エンタ！３７１オンデマンド' style='margin-bottom:3px;' border='0'></a>";
Querys[3] = "<a href='http://www.cs371.com/mobilepr/'><img src='http://www.cs371.com/img/190_83_m.gif' width='190' height='83' alt='ケータイで24時間配信　エンタ！３７１ライブ' style='margin-bottom:3px;' border='0'></a>";

//出力確率を上記出力ソースのインデックス数に合わせて設定（OddsFlag = 0 の場合は設定不要）

Odds[0] = 100;
Odds[1] = 0;
Odds[2] = 0;
Odds[3] = 0;

//設定ここまで　以下編集禁止-------------------------------------------

if(OddsFlag == "0"){
	var Result = Math.random() * 100;
	var n = 0;
	for(i = 0; i < Odds.length; i++){
		n += Odds[i]; 
		if(Result < n){
			Loadimg = Querys[i];
			document.write(Loadimg);
			break;
		}
	}
}else{
	var i = Math.floor(Math.random() * Querys.length);
	var Loadimg = Querys[i];
	document.write(Loadimg);
}


document.write("</div>");

}

//右袖ボトムバナー＆エンタ！グローバルナビ━━━━━━━
function menuLinkRightBottomBanner(){




document.write("<div align='center' class='rw_bl'>");

document.write("<img src='http://www.cs371.com/img/sichou_kanyuu_houhou.gif' alt='視聴加入方法について' name='sichou_kanyuu_houhou' width='158' height='19' border='0' style='margin-top:5px;margin-bottom:5px;'>");

document.write("<a href='http://www.cs371.com/about371/ka-nyu.html'><img src='http://www.cs371.com/img/sky371.gif' alt='スカパー！エンタ！３７１で見る' name='sky371' width='158' height='35' border='0' style='margin-bottom:5px;'></a><br>");

document.write("<a href='http://shop.cs371.com/'><img src='http://www.cs371.com/img/bradband.gif' alt='ブロードバンドで見る' name='bradband' width='158' height='35' border='0' style='margin-bottom:5px;'></a>");

document.write("<a href='http://www.cs371.com/mobilepr/'><img src='http://www.cs371.com/img/mobile.gif' alt='ケータイで見る' name='bradband' width='158' height='35' border='0' style='margin-bottom:5px;'></a>");

document.write("</div>");




document.write("<div align='center' class='rw_bl'>");

document.write("<a href='http://www.cs371.com/startguide/'><img src='http://www.cs371.com/img/about_ent371.gif' name='about_ent371' width='158' height='51' border='0' alt='はじめよう！エンタ！371' style='margin-top:5px;margin-bottom:5px;'></a>");

document.write("</div>");









document.write("<div align='center' class='rw_bl'><br />");

document.write("<a href='http://shop.cs371.com/'><img src='http://www.cs371.com/img/151_102_doga.jpg' width='151' height='102' alt='エンタ！３７１オンデマンド' style='margin-bottom:5px;' border='0'></a><br />");

document.write("<a href='http://shop.cs371.com/user_data/affiliate.php'><img src='http://shop.cs371.com/images/affiliate.gif' width='160' height='169' alt='エンタ！３７１オンデマンドアフィリエイト' style='margin-bottom:5px;' border='0'></a><br />");

document.write("<a href='http://www.cs371.com/mobilepr/'><img src='http://www.cs371.com/img/151_102_mobile.gif' width='151' height='102' alt='エンタ！３７１ モバイル' style='margin-bottom:5px;' border='0'></a><br />");

document.write("<a href='http://www.cs371.com/anq/'><img src='http://www.cs371.com/img/151_102_cheki.jpg' width='151' height='102' alt='番組からのプレゼント' style='margin-top:5px;margin-bottom:5px;' border='0'></a><br />");

document.write("<a href='http://shop.cs371.com/products/list.php?category_id=18' target='_blank'><img src='http://www.cs371.com/img/151_102_otoero.jpg' width='151' height='102' alt='音エロ' style=' margin-bottom:10px;' border='0'></a><br />");

document.write("<a href='http://c.p-advg.com/adpCnt/r?mid=794006&lid=1' target='_blank'><img src='http://www.cs371.com/img/150_100.gif' width='150' height='100' alt='スカパー！HD' style=' margin-bottom:10px;' border='0'></a><br />");

document.write("<a href='http://www.cs371.com/rq_list2009/'><img src='http://www.cs371.com/img/151_102_race.jpg' width='151' height='102' alt='レースクイーンリスト2009' style='margin-bottom:5px;' border='0'></a><br />");

document.write("<a href='http://www.rq-star.jp/' target='_blank'><img src='http://www.cs371.com/img/151_102_rqstar.jpg' width='151' height='102' alt='RQ-STAR★サーキットの星' style='margin-bottom:5px;' border='0'></a><br />");

document.write("<a href='http://lovepop.net/' target='_blank'><img src='http://www.cs371.com/img/151_102_lovepop.jpg' width='151' height='102' alt='制服・コスプレグラビアサイトLOVEPOP' style='margin-bottom:10px;' border='0'></a><br />");

document.write("</div>");
















document.write("<div align='center' class='rw_bl'>");

document.write("<a href='http://www.cs371.com/about371/'><img src='http://www.cs371.com/img/r_ent371.gif' alt='エンタ！371について' name='r_ent371' width='157' height='26' border='0' style='margin-top:5px;margin-bottom:5px;'></a>");

document.write("<a href='http://www.cs371.com/about371/faq.html'><img src='http://www.cs371.com/img/r_faq.gif' alt='ＦＡＱ・よくある質問' name='r_faq' width='157' height='25' border='0' style='margin-bottom:5px;'></a>");

document.write("<a href='http://www.cs371.com/about371/index.html#name'><img src='http://www.cs371.com/img/r_goiken.gif' alt='ご意見・リクエスト' name='r_goiken' width='157' height='25' border='0' style='margin-bottom:5px;'></a>");

document.write("</div>");


document.write("</div>");



}



//ハーレム javascriptライブラリインポート━━━━━━━━━━━━
function ImportJSclassHN(){
document.write("");
}


//ハーレム 右袖トップバナー190_83━━━━━━━━━━━━━━━━
function menuLinkRightTopBannerHN(){
document.write("<div align='center'>");

Querys = new Array();
Odds = new Array ();

//設定ここから-------------------------------------------

//確率設定（有=0、無=1） 

OddsFlag = 0;

//出力ソースをインデックス数0から順に設定




Querys[0] = "<a href='http://studio.pigoo.jp/'><img src='http://www.cs371.com/img/190_83_pigoo.gif' width='190' height='83' alt='ピグスタ' style='margin-bottom:3px;' border='0'></a>";
Querys[1] = "<a href='http://www.cs371.com/anq/'><img src='http://www.cs371.com/img/190_83_cheki.jpg' width='190' height='83' alt='番組からのプレゼント' style='margin-bottom:3px;' border='0'></a>";
Querys[2] = "<a href='http://shop.cs371.com/'><img src='http://www.cs371.com/img/190_83_p.gif' width='190' height='83' alt='エンタ！３７１オンデマンド' style='margin-bottom:3px;' border='0'></a>";
Querys[3] = "<a href='http://www.cs371.com/mobilepr/'><img src='http://www.cs371.com/img/190_83_m.gif' width='190' height='83' alt='ケータイで24時間配信　エンタ！３７１ライブ' style='margin-bottom:3px;' border='0'></a>";


//出力確率を上記出力ソースのインデックス数に合わせて設定（OddsFlag = 0 の場合は設定不要）

Odds[0] = 100;
Odds[1] = 0;
Odds[2] = 0;
Odds[3] = 0;








//設定ここまで　以下編集禁止-------------------------------------------

if(OddsFlag == "0"){
	var Result = Math.random() * 100;
	var n = 0;
	for(i = 0; i < Odds.length; i++){
		n += Odds[i]; 
		if(Result < n){
			Loadimg = Querys[i];
			document.write(Loadimg);
			break;
		}
	}
}else{
	var i = Math.floor(Math.random() * Querys.length);
	var Loadimg = Querys[i];
	document.write(Loadimg);
}


document.write("</div>");


}


//ハーレム 右袖ボトムバナー＆エンタ！グローバルナビ━━━━━━━
function menuLinkRightBottomBannerHN(){

document.write("<div align='center' class='rw_bl'>");

document.write("<a href='http://www.adult-awards2010.com/' target='_blank'><img src='http://www.cs371.com/img/150_150.jpg' width='150' height='150' alt='スカパー！アダルト放送大賞2010' style='margin-top:15px; margin-bottom:10px;' border='0'></a><br />");

document.write("<a href='http://c.p-advg.com/adpCnt/r?mid=794006&lid=1' target='_blank'><img src='http://www.cs371.com/img/150_100.gif' width='150' height='100' alt='スカパー！HD' style=' margin-bottom:10px;' border='0'></a><br />");

document.write("<a href='http://shop.cs371.com/products/list.php?category_id=10' target='_blank'><img src='http://www.cs371.com/img/151_102_doga.jpg' width='151' height='102' alt='エンタ！３７１オンデマンド' style=' margin-bottom:10px;' border='0'></a><br />");


document.write("<a href='http://shop.cs371.com/products/list.php?category_id=18' target='_blank'><img src='http://www.cs371.com/img/151_102_otoero.jpg' width='151' height='102' alt='音エロ' style=' margin-bottom:10px;' border='0'></a><br />");

document.write("<a href='http://shop.cs371.com/products/list.php?category_id=3' target='_blank'><img src='http://www.cs371.com/img/151_102_tyakuero.jpg' width='151' height='102' alt='着エロmix' style=' margin-bottom:10px;' border='0'></a><br />");

document.write("<a href='http://www.cs371.com/anq/'><img src='http://www.cs371.com/img/151_102_cheki.jpg' width='151' height='102' alt='番組からのプレゼント' style='margin-bottom:10px;' border='0'></a><br />");

document.write("<a href='http://www.cs371.com/mobilepr/'><img src='http://www.cs371.com/img/151_102_mobile.gif' width='151' height='102' alt='エンタ！３７１ モバイル' style='margin-bottom:10px;' border='0'></a><br />");

document.write("<a href='http://www.max-a.co.jp/' target='_blank'><img src='http://www.cs371.com/img/max-y.jpg' width='160' height='43' alt='MAX-A' style='margin-bottom:15px;' border='0'></a><br />");

document.write("</div>");





document.write("<div align='center' class='rw_bl'>");

document.write("<a href='http://www.cs371.com/startguide/'><img src='http://www.cs371.com/img/about_ent371.gif' name='about_ent371' width='158' height='51' border='0' alt='はじめよう！エンタ！371' style='margin-top:5px;margin-bottom:5px;'></a>");

document.write("</div>");





document.write("<div align='center' class='rw_bl'>");

document.write("<img src='http://www.cs371.com/img/sichou_kanyuu_houhou.gif' alt='視聴加入方法について' name='sichou_kanyuu_houhou' width='158' height='19' border='0' style='margin-top:5px;margin-bottom:5px;'>");

document.write("<a href='http://www.cs371.com/about371/ka-nyu.html'><img src='http://www.cs371.com/img/sky371.gif' alt='スカパー！エンタ！３７１で見る' name='sky371' width='158' height='35' border='0' style='margin-bottom:5px;'></a><br>");

document.write("<a href='http://shop.cs371.com/'><img src='http://www.cs371.com/img/bradband.gif' alt='オンデマンドで見る' name='bradband' width='158' height='35' border='0' style='margin-bottom:5px;'></a>");

document.write("<a href='http://www.cs371.com/mobilepr/'><img src='http://www.cs371.com/img/mobile.gif' alt='ケータイで見る' name='bradband' width='158' height='35' border='0' style='margin-bottom:5px;'></a>");

document.write("</div>");






document.write("<div align='center' class='rw_bl'>");

document.write("<a href='http://www.cs371.com/about371/'><img src='http://www.cs371.com/img/r_ent371.gif' alt='エンタ！371について' name='r_ent371' width='157' height='26' border='0' style='margin-top:5px;margin-bottom:5px;'></a>");

document.write("<a href='http://www.cs371.com/about371/faq.html'><img src='http://www.cs371.com/img/r_faq.gif' alt='ＦＡＱ・よくある質問' name='r_faq' width='157' height='25' border='0' style='margin-bottom:5px;'></a>");

document.write("<a href='http://www.cs371.com/about371/index.html#name'><img src='http://www.cs371.com/img/r_goiken.gif' alt='ご意見・リクエスト' name='r_goiken' width='157' height='25' border='0' style='margin-bottom:5px;'></a>");

document.write("</div>");


document.write("</div>");


}


//会社概要グローバルナビ━━━━━━━
function menuLinkRightBottomBannerProfile(){


document.write("<div align='center' class='rw_bl'>");

document.write("<a href='http://www.cs371.com/startguide/'><img src='http://www.cs371.com/img/about_ent371.gif' name='about_ent371' width='158' height='51' border='0' alt='はじめよう！エンタ！371' style='margin-top:5px;margin-bottom:5px;'></a>");

document.write("</div>");





document.write("<div align='center' class='rw_bl'>");

document.write("<a href='http://www.cs371.com/about371/ka-nyu.html'><img src='http://www.cs371.com/img/sichou_kanyuu_houhou.gif' alt='視聴加入方法について' name='sichou_kanyuu_houhou' width='158' height='19' border='0' style='margin-top:5px;margin-bottom:5px;'></a>");

document.write("<a href='http://www.skyperfectv.co.jp/welcome/' target='_blank'><img src='http://www.cs371.com/img/sky371.gif' alt='スカパー！エンタ！３７１で見る' name='sky371' width='158' height='35' border='0' style='margin-bottom:5px;'></a><br>");

document.write("<a href='http://shop.cs371.com/'><img src='http://www.cs371.com/img/bradband.gif' alt='オンデマンドで見る' name='bradband' width='158' height='35' border='0' style='margin-bottom:5px;'></a>");

document.write("<a href='http://www.cs371.com/2008/09/27/live/'><img src='http://www.cs371.com/img/mobile.gif' alt='ケータイで見る' name='bradband' width='158' height='35' border='0' style='margin-bottom:5px;'></a>");

document.write("</div>");






document.write("<div align='center' class='rw_bl'>");

document.write("<a href='http://www.cs371.com/about371/'><img src='http://www.cs371.com/img/r_ent371.gif' alt='エンタ！371について' name='r_ent371' width='157' height='26' border='0' style='margin-top:5px;margin-bottom:5px;'></a>");

document.write("<a href='http://www.cs371.com/about371/faq.html'><img src='http://www.cs371.com/img/r_faq.gif' alt='ＦＡＱ・よくある質問' name='r_faq' width='157' height='25' border='0' style='margin-bottom:5px;'></a>");

document.write("<a href='http://www.cs371.com/about371/index.html#name'><img src='http://www.cs371.com/img/r_goiken.gif' alt='ご意見・リクエスト' name='r_goiken' width='157' height='25' border='0' style='margin-bottom:5px;'></a>");

document.write("</div>");


document.write("</div>");


}


//番組ページ　エンタ！動画アイドルリンク━━━━━━━

function menuLinkEntDougaIdol(){

document.write("<a href='http://shop.cs371.com/' class='bodylink0' target='_blank'><img src='http://www.cs371.com/ondemand/img/ondemand.jpg' width='500' height='120' border='0' alt='エンタ！３７１オンデマンド' /><br />パソコンさえあれば、エンタ!371の人気番組を高画質・大画面でいつでも楽しむことができる「エンタ！３７１オンデマンド」</a><br /><br /><h3 align='left' class='entdougalink0'>　ケータイで24時間エンタ！を配信中　[<a href='http://www.cs371.com/mobilepr/' class='entdougalink0'>詳しくはこちら</a>]</h3><a href='http://www.cs371.com/mobilepr/' class='bodylink0'><img src='http://www.cs371.com/img/common/live.gif' width='500' height='120' border='0' alt='エンタ！371ライブ' style='margin-top:5px;' /></a><br /><br /><h3 align='left' class='entdougalink0'>　スカパー！ＨＤを申し込む</h3><a href='http://c.p-advg.com/adpCnt/r?mid=861170&lid=1' class='bodylink0' target='_blank'><img src='http://www.cs371.com/img/460_70_hd.gif' width='460' height='70' border='0' alt='スカパー！ＨＤを申し込む' style='margin-top:5px;' /></a>");
}

//番組ページ　エンタ！動画ＲＱリンク━━━━━━━

function menuLinkEntDougaRQ(){

document.write("<a href='http://shop.cs371.com/' class='bodylink0' target='_blank'><img src='http://www.cs371.com/ondemand/img/ondemand.jpg' width='500' height='120' border='0' alt='エンタ！３７１オンデマンド' /><br />パソコンさえあれば、エンタ!371の人気番組を高画質・大画面でいつでも楽しむことができる「エンタ！３７１オンデマンド」</a><br /><br /><h3 align='left' class='entdougalink0'>　ケータイで24時間エンタ！を配信中　[<a href='http://www.cs371.com/mobilepr/' class='entdougalink0'>詳しくはこちら</a>]</h3><a href='http://www.cs371.com/mobilepr/' class='bodylink0'><img src='http://www.cs371.com/img/common/live.gif' width='500' height='120' border='0' alt='エンタ！371ライブ' style='margin-top:5px;' /></a>");
}



//番組ページ　エンタ！動画着エロ━━━━━━━

function menuLinkEntDougaSexy(){

document.write("<a href='http://shop.cs371.com/products/list.php?category_id=9' class='bodylink0' target='_blank'><img src='http://www.cs371.com/ondemand/img/ondemand.jpg' width='500' height='120' border='0' alt='エンタ！３７１オンデマンド' /><br />パソコンさえあれば、エンタ!371の人気番組を高画質・大画面でいつでも楽しむことができる「エンタ！３７１オンデマンド」</a>");
}




//番組ページ　エンタ！動画ハーレムリンク━━━━━━━

function menuLinkEntDougaHN(){

document.write("<a href='http://shop.cs371.com/' class='bodylink0' target='_blank'><img src='http://www.cs371.com/ondemand/img/ondemand.jpg' width='500' height='120' border='0' alt='エンタ！３７１オンデマンド' /><br />パソコンさえあれば、エンタ!371の人気番組を高画質・大画面でいつでも楽しむことができる「エンタ！３７１オンデマンド」</a><br /><br /><h3 align='left' class='entdougalink0'>　ケータイで24時間エンタ！を配信中　[<a href='http://www.cs371.com/mobilepr/' class='entdougalink0'>詳しくはこちら</a>]</h3><a href='http://www.cs371.com/mobilepr/' class='bodylink0'><img src='http://www.cs371.com/img/common/live.gif' width='500' height='120' border='0' alt='エンタ！371ライブ' style='margin-top:5px;' /></a>");
}