SITE_URL = "http://www.roselip-fetish.com";

function random(array, num) {
    var a = array;
    var t = {};
    var r = [];
    var l = a.length;
    var n = num < l ? num : l;
    while (n-- > 0) {
        var i = Math.random() * l | 0;
        r[n] = t[i] || a[i];
        --l;
        t[i] = t[l] || a[l];
    }
    return r;
}

////////// header ///////////////////////////
function div_id(id){ //div open id
	document.write('<div id=',id,'>');
	}

function div_cls(cls){ //div open class
	document.write('<div class=',cls,'>');
	}

function div_close(){ //div close
	document.write('</div>');
	}

function btn_head(cls,ahref){
	document.write('<p class="btn_',cls,'">');
	document.write('<a href="',ahref,'">');
	document.write('<img src="',SITE_URL,'/img/head/btn_',cls,'.png" id="btn_',cls,'" ');
	document.write('onmouseover="MM_swapImage(\'btn_',cls,'\',\'\',\'',SITE_URL,'/img/head/btn_',cls,'_on.png\',1)" ');
	document.write('onmouseout="MM_swapImgRestore()" />');
	document.write('</a></p>');
	}

function navi(){
	naviList = new Array("top","movie","digest","vippic","vippro","lists","fq","dummy","login");
	naviLink = new Array(SITE_URL+"/",SITE_URL+"/tour/?cate=complist&page=1",SITE_URL+"/bsc/?cate=complist&page=1",SITE_URL+"/sp_pic/",SITE_URL+"/vip_pro/",SITE_URL+"/chijo/?cate=chijolist&page=1","http://www.roselip-fetish.com/details/?menu=faq","http://www.roselip-fetish.tv/auth.php","http://www.roselip-fetish.tv/auth.php");
	nListEnd = naviList.pop();//最後尾取得
	nLinkEnd = naviLink.pop();
	naviList.push(nListEnd);//削除した要素を追加
	naviLink.push(nLinkEnd);
	
	document.write('<p>');
	for(i=0;i<8;i++){
		document.write('<a href="',naviLink[i],'" class="navi_menu">');
		document.write('<img src="',SITE_URL,'/img/head/navi_',naviList[i],'.gif" id="navi_',naviList[i],'" ');
		document.write('onmouseover="MM_swapImage(\'navi_',naviList[i],'\',\'\',\'',SITE_URL,'/img/head/navi_',naviList[i],'_on.gif\',1)" ');
		document.write('onmouseout="MM_swapImgRestore()" /></a>');
		}
	document.write('<a href="',nLinkEnd,'" class="navi_end">');
	document.write('<img src="',SITE_URL,'/img/head/navi_',nListEnd,'.gif" id="navi_',nListEnd,'" ');
	document.write('onmouseover="MM_swapImage(\'navi_',nListEnd,'\',\'\',\'',SITE_URL,'/img/head/navi_',nListEnd,'_on.gif\',1)" ');
	document.write('onmouseout="MM_swapImgRestore()" /></a>');
	document.write("</p>");
	}

function menuCate(){
	mcListLen = menuCateList.length;
	mcListEnd = menuCateList.pop();
	mcLinkEnd = menuCateLink.pop();
	menuCateList.push(mcListEnd);
	menuCateLink.push(mcLinkEnd);

	document.write('<p>');
	for(i=0;i<mcListLen;i++){
		if(i == 17){
			document.write('<a href="',menuCateLink[i],'" class="menucate_end">');
		}else{
			document.write('<a href="',menuCateLink[i],'" class="menucate_a">');
			}
		
		if(i == 17){
			document.write(menuCateList[i],'</a><br />');
		}else{
			document.write(menuCateList[i],'</a>');
			}
		}
	document.write('</p>');
	}

function sub_navi(){
	subnaviList = new Array("01","02","03");
	subnaviLink = new Array(SITE_URL+"1",SITE_URL+"2",SITE_URL+"3");
	subnListEnd = subnaviList.pop();//最後尾取得
	subnLinkEnd = subnaviLink.pop();
	subnaviList.push(subnListEnd);//削除した要素を追加
	subnaviLink.push(subnLinkEnd);

	document.write('<p>');
	for(i=0;i<2;i++){
		document.write('<a href="',subnaviLink[i],'" class="sub_navi_menu">');
		document.write('<img src="',SITE_URL,'/img/sub_navi/sub_navi_',subnaviList[i],'.gif" id="sub_navi_',subnaviList[i],'" ');
		document.write('onmouseover="MM_swapImage(\'sub_navi_',subnaviList[i],'\',\'\',\'',SITE_URL,'/img/sub_navi/sub_navi_',subnaviList[i],'_on.gif\',1)" ');
		document.write('onmouseout="MM_swapImgRestore()" /></a>');
		}
	document.write('<a href="',subnLinkEnd,'" class="sub_navi_end">');
	document.write('<img src="',SITE_URL,'/img/sub_navi/sub_navi_',subnListEnd,'.gif" id="sub_navi_',subnListEnd,'" ');
	document.write('onmouseover="MM_swapImage(\'sub_navi_',subnListEnd,'\',\'\',\'',SITE_URL,'/img/sub_navi/sub_navi_',subnListEnd,'_on.gif\',1)" ');
	document.write('onmouseout="MM_swapImgRestore()" /></a>');
	document.write("</p>");
	}

//ヘッダー下フラッシュ 無、+ ヘッダー下キャンペーンバナー
function header(){
	document.write('<p id="logo-head"><a href="http://www.roselip-fetish.com/"></a></p>');
	document.write('<a id="top" style="display:none">&nbsp;</a>');
	div_id("logo");
		document.write('<div style="width:534px;height:90px;margin-left:0px;margin-right:0px;padding-left:0px;padding-right:0px;"><a href="',SITE_URL,'/"><img src="',SITE_URL,'/img/head/logo_02.jpg" width="534" height="90" /></a></div>');
		div_cls("btn_head");
			btn_head("join",SITE_URL+"/join/");
			//btn_head("login","http://www.roselip-fetish.tv/auth.php");
			div_close();//btn_head
		div_close();//logo
	div_id("navi");
		navi();
		div_close();//navi
	div_cls("menu_cate");
		menuCate();
		div_close();//menu_cate
	div_cls("banner");
//document.write('<div style="border:0px #999 solid;height:80px;"><a href="http://www.roselip-fetish.com/camp_120113/"><img src="http://www.roselip-fetish.com/camp_120113/img/header.jpg" /></a></div>');
		div_close();//banner
	}

//ヘッダー下フラッシュ 有、+ ヘッダー下キャンペーンバナー
function header2(){
	document.write('<p id="logo-head"><a href="http://www.roselip-fetish.com/"></a></p>');
	document.write('<a id="top" style="display:none">&nbsp;</a>');
	div_id("logo");
		document.write('<div style="width:534px;height:90px;margin-left:0px;margin-right:0px;padding-left:0px;padding-right:0px;"><a href="',SITE_URL,'/"><img src="',SITE_URL,'/img/head/logo_02.jpg" width="534" height="90" /></a></div>');
		div_cls("btn_head");
			btn_head("join",SITE_URL+"/join/");
			div_close();//btn_head
		div_close();//logo

	div_id("navi");
		navi();
		div_close();//navi
	div_cls("menu_cate");
		menuCate();
		div_close();//menu_cate
	div_cls("banner");
	//countdownHeader();
//document.write('<div style="border:0px #999 solid;height:80px;"><a href="http://www.roselip-fetish.com/camp_120113/"><img src="http://www.roselip-fetish.com/camp_120113/img/header.jpg" /></a></div>');
		div_close();//banner
	}

//ヘッダー下フラッシュ無し ヘッダー下バナー無し
function header3(){
	document.write('<p id="logo-head"><a href="http://www.roselip-fetish.com/"></a></p>');
	document.write('<a id="top" style="display:none">&nbsp;</a>');
	div_id("logo");
		document.write('<div style="width:534px;height:90px;margin-left:0px;margin-right:0px;padding-left:0px;padding-right:0px;"><a href="',SITE_URL,'/"><img src="',SITE_URL,'/img/head/logo_02.jpg" width="534" height="90" /></a></div>');
		div_cls("btn_head");
			btn_head("join",SITE_URL+"/join/");
			div_close();//btn_head
		div_close();//logo

	div_id("navi");
		navi();
		div_close();//navi
	div_cls("menu_cate");
		menuCate();
		div_close();//menu_cate
	}

//ヘッダー下フラッシュ無し ヘッダー下バナー無し
function header4(){
	document.write('<p id="logo-head"><a href="http://www.roselip-fetish.com/"></a></p>');
	document.write('<a id="top" style="display:none">&nbsp;</a>');
	div_id("logo");
		document.write('<div style="width:534px;height:90px;margin-left:0px;margin-right:0px;padding-left:0px;padding-right:0px;"><a href="',SITE_URL,'/"><img src="',SITE_URL,'/img/head/logo_02.jpg" width="534" height="90" /></a></div>');
		div_cls("btn_head");
			btn_head("join",SITE_URL+"/join/");
			div_close();//btn_head
		div_close();//logo
	div_id("navi");
		navi();
		div_close();//navi
	div_cls("menu_cate");
		menuCate();
		div_close();//menu_cate

	}

///// local ////////////////////////////////////////////////////////////////////////

function news(){
	wnLen = wnDate.length;
	div_cls("whatsnew");
		document.write('<p class="bar_local">最新更新情報</p>');
		div_cls("news");
		for(i=0;i<wnLen;i++){

			div_cls("wn_name");
			if(wnStatus[i]){
				if(wnStatus[i] == "1"){icon = "reg";}
				else if(wnStatus[i] == "2"){icon = "sps";}
				else if(wnStatus[i] == "3"){icon = "vip";}
				else if(wnStatus[i] == "4"){icon = "spe";}
				else{icon = "non";}
				document.write('<p class="wn_date"><img src="/img/icon_',icon,'.gif" />&nbsp;',wnDate[i],'</p>');
				document.write('<p class="wn_title">');
				document.write('<a href="',wnNum[i],'" style="margin-left:0px;">',wnTitle[i],'</a></p>');
			}else{
				document.write('<p class="wn_date">',wnDate[i],'</p>');
				document.write('<p class="wn_title">');
				document.write('<a href="',wnNum[i],'">',wnTitle[i],'</a></p>');
			}
			div_close();
			}
			div_close();
		div_close();
	}

function close(){
	cnLen = cnDate.length;
	div_cls("whatsnew");
		document.write('<p class="bar_local">公開終了間近作品</p>');
		div_cls("close");
		for(i=0;i<cnLen;i++){
			div_cls("wn_name");
			if(cnStatus[i]){
				if(cnStatus[i] == "1"){icon = "reg";}
				else if(cnStatus[i] == "2"){icon = "sps";}
				else if(cnStatus[i]){icon = "vip";}
				else{icon = "non";}
				document.write('<p class="wn_date"><img src="/img/icon_',icon,'.gif" />&nbsp;',cnDate[i],'</p>');
				document.write('<p class="wn_title">');
				document.write('<a href="',cnNum[i],'" style="margin-left:0px;">',cnTitle[i],'</a></p>');
			}else{
				document.write('<p class="wn_date">',cnDate[i],'</p>');
				document.write('<p class="wn_title">');
				document.write('<a href="',cnNum[i],'">',cnTitle[i],'</a></p>');
			}
			div_close();
			}
			div_close();
		div_close();
	}

function newsold(){
	wnLen = wnDate.length;
	div_cls("whatsnew");
		document.write('<p class="bar_local">更新情報</p>');
		div_cls("news");
		document.write('<p class="local-news-gif"><img src="/img/news.gif" alt="最新情報"></p>');
		for(i=0;i<wnLen;i++){
			document.write('<p class="wn_date"> ',wnDate[i],'</p>');
			document.write('<p class="wn_name"><a href="',SITE_URL,'/movie/?num=',wnNum[i],'">',wnTitle[i],'</a></p>');
			}
			div_close();
		div_close();
	}

function situation(){
	wnLen = msText.length;
	div_cls("local_ms");
		document.write('<p class="bar_local">Ｍシチュエーション</p>');
		div_cls("imgtxt_local");
			document.write('<p class="imgtxt_local_img">');
			document.write('<img src="',SITE_URL,'/ms/local_title.jpg" /></p>');
			div_close();
		div_cls("situation");
		for(i=0;i<wnLen;i++){
			document.write('<p class="ms_gif"><img src="',SITE_URL,'/img/ms_icon.gif" /></p>');
			document.write('<p class="ms_new">',msIcon[i],'</p>');
			document.write('<div class="ms_f01"><p class="ms_situation"><a href="',SITE_URL,'/movie/?num=',msNum[i],'">',msText[i],'</a>');
			document.write('<img src="',SITE_URL,'/movie/',msNum[i],'/m2bp.jpg" /></p></div>');
			}
			div_close();
		div_close();
	}

function topic(){
	div_cls("registration");
		document.write('<p class="bar_local">☆RoseLip年間ランキング☆</p>');
		div_cls("imgtxt_local");
			document.write('<td><a href="http://www.roselip-fetish.com/rank2008/"><img src="http://www.roselip-fetish.com/rank2008/img/local.jpg" /></a></td>');
			div_close();
		div_close();
	}

function best(){
	div_cls("attention");
		document.write('<p class="bar_local">☆本日のイチオシ☆</p>');
		div_cls("imgtxt_local");
document.write('<p><a href="',SITE_URL,'/movie/?num=',ichiNum,'"><img src="',SITE_URL,'/movie/',ichiNum,'/f01.jpg" /></a></p>');
		div_close();
		div_close();
	}

function vip_latest(){
	vipLen = vipDate.length;
	div_cls("attention");
		document.write('<p class="bar_local">VIP限定動画</p>');
		div_cls("imgtxt_local");
                        document.write('<p><a href="http://www.roselip-fetish.com/vip_pro/"><img src="',SITE_URL,'/movie/',vipNum,'/f01.jpg" /></a></p>');
		for(i=0;i<vipLen;i++){
			document.write('<p class="vip_date"> ',vipDate[i],'</p>');
			}
			div_close();
			document.write('<div class="local_vip_tag"><img src="http://www.roselip-fetish.com/img/vip/vip_tag_s.png" />');
			document.write('</div>');
		div_close();
	}

function vip_photo(){
	vip_picLen = vip_picDate.length;
	div_cls("registration");
		document.write('<p class="bar_local">SP限定写真</p>');
		div_cls("imgtxt_local");
                        document.write('<p><a href="http://www.roselip-fetish.com/sp_pic/"><img src="http://www.roselip-fetish.com/img/vip/local_vip_photo.jpg" /></a></p>');
		for(i=0;i<vip_picLen;i++){
			document.write('<p class="vip_date"> ',vip_picDate[i],'</p>');
			}
			div_close();
		div_close();
	}

function latest(){
	latestLen = latestDate.length;
	div_cls("attention");
		document.write('<p class="bar_local">☆更新動画☆</p>');
		div_cls("imgtxt_local");
document.write('<p><a href="',SITE_URL,'/movie/?num=',latestNum,'"><img src="',SITE_URL,'/movie/',latestNum,'/f01.jpg" /></a></p>');
		for(i=0;i<latestLen;i++){
			document.write('<p class="vip_date"> ',latestDate[i],'</p>');
			}
			div_close();
		div_close();
	}

function rl_contents(){
	vipLen = vipDate.length;
	vip_picLen = vip_picDate.length;
	latestLen = latestDate.length;
	div_cls("registration");
		document.write('<p class="bar_local">ROSE LiPコンテンツ</p>');
		div_cls("imgtxt_local");
		document.write('<p class="bar_contents">VIP限定動画</p>');
                        document.write('<p><a href="http://www.roselip-fetish.com/vip_pro/"><img src="',SITE_URL,'/movie/',vipNum,'/f01.jpg" /></a></p>');
		for(i=0;i<vipLen;i++){
			document.write('<p class="vip_date"> ',vipDate[i],'</p>');
			}

		document.write('<div class="local_vip_tag"><img src="http://www.roselip-fetish.com/img/vip/vip_tag_s.png" />');
		document.write('</div>');

		document.write('<p class="bar_contents">SP限定写真</p>');
                        document.write('<p><a href="http://www.roselip-fetish.com/sp_pic/"><img src="http://www.roselip-fetish.com/img/vip/local_vip_photo.jpg" /></a></p>');
		for(i=0;i<vip_picLen;i++){
			document.write('<p class="vip_date"> ',vip_picDate[i],'</p>');
			}

		document.write('<p class="bar_contents">☆更新動画☆</p>');
		document.write('<p><a href="',SITE_URL,'/movie/?num=',latestNum,'"><img src="',SITE_URL,'/movie/',latestNum,'/f01.jpg" /></a></p>');
		for(i=0;i<latestLen;i++){
			document.write('<p class="vip_date"> ',latestDate[i],'</p>');
			}
			div_close();

	div_close();
	}


function sp_photo(){
	vip_picLen = vip_picDate.length;
	div_cls("registration");
		document.write('<p class="bar_local">SP限定写真</p>');
		div_cls("imgtxt_local");
	document.write("<object data='top/swf/sp_local.swf' type='application/x-shockwave-flash' width='181' height='320'>");
	document.write("ROSE-LiP");
	document.write("<param name='movie' value='top/swf/sp_local.swf' />");
	document.write("<param name='quality' value='high' />");
	document.write("<embed src='top/swf/sp_local.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='181' height='320'></embed>");
	document.write("</object>");
		for(i=0;i<vip_picLen;i++){
			document.write('<p class="vip_date"> ',vip_picDate[i],'</p>');
			}
			div_close();
		div_close();
	}

function sp_latest(){
	spLen = spDate.length;
	div_cls("attention");
		document.write('<p class="bar_local">SP限定動画</p>');
		div_cls("imgtxt_local");
                        document.write('<p><a href="http://www.roselip-fetish.com/sp/"><img src="',SITE_URL,'/movie/',spNum,'/f01.jpg" /></a></p>');
		for(i=0;i<spLen;i++){
			document.write('<p class="vip_date"> ',spDate[i],'</p>');
			}
			div_close();
		div_close();
	}

function l_mnavi(){
	div_cls("attention");
		document.write('<p class="bar_local">Ｍなびランキング</p>');
		div_cls("imgtxt_local");
                        document.write('<p><a href="http://www.roselip-fetish.com/mrank/"><img src="',SITE_URL,'/mrank/img/local_mnavi.gif" /></a></p>');
			document.write('<p class="vip_date" style="font-size:10px;">',SK,'</p>');
			div_close();
		div_close();
	}


function localRandom(){

randomList = random(rList,1);
	div_cls("attention");
		document.write('<p class="bar_local">☆本日の動画☆</p>');
for(i=0;i<1;i++){
	document.write('<div class="imgtxt_local">');
		document.write('<a href="http://www.roselip-fetish.com/movie/?num=',randomList[i],'"><img src="http://www.roselip-fetish.com/movie/',randomList[i],'/f01.jpg"></a>');
	document.write("</div>");
	}
	div_close();
	}

function attention(){
	div_cls("attention");
		document.write('<p class="bar_local">Attention</p>');
		div_cls("imgtxt_local");
			document.write('<p class="imgtxt_local_txt">Japanese Girl Roped follows the law.  All models appear in the movie are over the age of eighteen years.<br />');
			document.write('<a href="',SITE_URL,'/details/?menu=18us">&gt;&gt;18 U.S.C.2257 Record-keeping Requirements Compliance statement</a></p>');
			div_close();
		div_close();
	}

function localTele(){
	div_cls("attention");
		document.write('<p class="bar_local">安心RoseLipサポート</p>');
		div_cls("imgtxt_local");
			document.write('<p class="imgtxt_local_img2"><a href="',SITE_URL,'/faq/"><img src="',SITE_URL,'/img/local_telephone.jpg" /></a></p>');
			div_close();
		div_close();
	}

function toNeo(){
	div_cls("registration");
		document.write('<p class="bar_local">お勧め優良サイト紹介</p>');
		div_cls("imgtxt_local");
			document.write('<p class="imgtxt_local_img"><a href="http://script2.natuko-miracle.com/access/index.php?id=0002" target="_blank"><img src="',SITE_URL,'/img/neo_local.jpg" /></a></p>');
			div_close();
		div_close();
	}

function camp(){
	div_cls("registration");
		document.write('<p class="bar_local">キャンペーン</p>');
		div_cls("imgtxt_local");
		//countdownLocal();
			document.write('<p class="imgtxt_local_img"><a href="http://www.roselip-fetish.com/camp_120113/"><img src="',SITE_URL,'/camp_120113/img/local.jpg" /></a></p>');
			div_close();
		div_close();
	}

function camp2(){
	div_cls("registration");
		document.write('<p class="bar_local">ROSE LiP大賞2011</p>');
		div_cls("imgtxt_local");
			document.write('<p class="imgtxt_local_img"><a href="http://www.roselip-fetish.com/camp_111230/"><img src="',SITE_URL,'/camp_111230/img/local.jpg" /></a></p>');
			div_close();
		div_close();
	}

function camp3(){
	div_cls("registration");
		document.write('<p class="bar_local">特集リクエスト</p>');
		div_cls("imgtxt_local");
			document.write('<p class="imgtxt_local_img"><a href="http://www.roselip-fetish.com/camp_110114/"><img src="',SITE_URL,'/camp_110114/img/local.jpg" /></a></p>');
			div_close();
		div_close();
	}

function camp5(){
	div_cls("registration");
		document.write('<p class="bar_local">期間限定下着プレゼント</p>');
		div_cls("imgtxt_local");
			document.write('<p class="imgtxt_local_img"><a href="http://www.roselip-fetish.com/camp_101217/"><img src="',SITE_URL,'/camp_101217/img/local.jpg" /></a></p>');
			div_close();
		div_close();
	}

function vipP(){
	div_cls("registration");
		document.write('<p class="bar_local">VIP</p>');
		div_cls("imgtxt_local");
		document.write('<p class="imgtxt_local_img"><a href="http://www.roselip-fetish.tv/contents/vip.php"><img src="',SITE_URL,'/img/local_vip.jpg" /></a></p>');
			div_close();
		div_close();
	}

function patment(){
	div_cls("patment");
		document.write('<p class="bar_local">お支払方法</p>');
		div_cls("imgtxt_local");
			document.write('<p class="imgtxt_local_img"><img src="',SITE_URL,'/img/icon_payment.gif" /></p>');
			document.write('<p class="imgtxt_local_img"><img src="',SITE_URL,'/img/icon_verisign.gif" /></p>');
			document.write('<p class="imgtxt_local_txt">当サイトは継続課金制です。退会を希望しない限り、毎月自動で更新できます。<br><br>ローズリップでお取り扱いしている個人情報、クレジットカード情報は、米国ベリサイン社が開発した政府機関・銀行等で利用されている世界標準の暗号化技術（SSL※）を用いて安全に送信されております。 </p>');
			div_close();
		div_close();
	}

function privacy(){
	div_cls("privacy");
		document.write('<p class="bar_local">セキュリティに関して</p>');
		div_cls("imgtxt_local");
			document.write('<p class="imgtxt_local_img"><img src="',SITE_URL,'/img/icon_verisign.gif" /></p>');
			document.write('<p class="imgtxt_local_txt">クレジットカード決済等の情報は、全世界58万件以上で採用されているベリサイン社の暗号化技術を用いるため、第三者への情報漏れの恐れはございません。</p>');
			div_close();
		div_close();
	}

function mailMag(){
	div_cls("registration");
		document.write('<p class="bar_local">ローズリップ無料メルマガ</p>');
		div_cls("imgtxt_local");
			document.write('<p class="imgtxt_local_img">');
			document.write('<a href="',SITE_URL,'/mailmag/">');
			document.write('<img src="',SITE_URL,'/img/local_mailmag.jpg" /></a></p>');
			div_close();
		div_close();
	}

function blog(){
	div_cls("registration");
		document.write('<p class="bar_local">公式ブログ</p>');
		div_cls("imgtxt_local");
			document.write('<p class="imgtxt_local_img">');
			document.write('<a href="http://roselipinfo.blog99.fc2.com/" target="_blank">');
			document.write('<img src="',SITE_URL,'/img/local_blog.jpg" /></a></p>');
			div_close();
		div_close();
	}

function inquiry(){
	div_cls("registration");
		document.write('<p class="bar_local">ご要望</p>');
		div_cls("imgtxt_local");
			document.write('<p class="imgtxt_local_img">');
			document.write('<a href="',SITE_URL,'/req/">');
			document.write('<img src="',SITE_URL,'/img/inquiry_btn.gif" /></a></p>');
			div_close();
		div_close();
	}


function registration(){
	div_cls("registration");
		document.write('<p class="bar_local">ご入会はこちら</p>');
		div_cls("imgtxt_local");
			document.write('<p class="localbtn_join">');
			document.write('<a href="',SITE_URL,'/join/">');
			document.write('<img src="',SITE_URL,'/img/navi/localbtn_join.gif" id="localbtn_join" ');
			document.write('onmouseover="MM_swapImage(\'localbtn_join\',\'\',\'',SITE_URL,'/img/navi/localbtn_join_on.gif\',1)" ');
			document.write('onmouseout="MM_swapImgRestore()" /></a></p>');
			document.write('<p class="localbtn_login">');
			document.write('<a href="http://www.roselip-fetish.tv/auth.php">');
			document.write('<img src="',SITE_URL,'/img/localbtn_login.gif" id="localbtn_login" ');
			document.write('onmouseover="MM_swapImage(\'localbtn_login\',\'\',\'',SITE_URL,'/img/localbtn_login_on.gif\',1)" ');
			document.write('onmouseout="MM_swapImgRestore()" /></a></p>');
			div_close();
		div_close();
	}

function signup(){
	div_cls("registration");
		document.write('<p class="bar_local">ご入会はこちら</p>');
		div_cls("imgtxt_local");
			document.write('<p class="localbtn_join">');
			document.write('<a href="',SITE_URL,'/join/">');
			document.write('<img src="',SITE_URL,'/img/navi/local_join.gif" id="local_join" ');
			document.write('onmouseover="MM_swapImage(\'local_join\',\'\',\'',SITE_URL,'/img/navi/local_join_on.gif\',1)" ');
			document.write('onmouseout="MM_swapImgRestore()" /></a></p>');
			div_close();
		div_close();
	}

function login(){
	div_cls("registration");
		document.write('<p class="bar_local">会員様はこちらから</p>');
		div_cls("imgtxt_local");
			document.write('<p class="localbtn_join">');
			document.write('<a href="http://www.roselip-fetish.tv/auth.php">');
			document.write('<img src="',SITE_URL,'/img/navi/local_login.gif" id="local_login" ');
			document.write('onmouseover="MM_swapImage(\'local_login\',\'\',\'',SITE_URL,'/img/navi/local_login_on.gif\',1)" ');
			document.write('onmouseout="MM_swapImgRestore()" /></a></p>');
			div_close();
		div_close();
	}


function entryChange1(){
		radio = document.getElementsByName('entryPlan')
		if(radio[0].checked) {
			//フォーム
			document.getElementById('firstBox').style.display = "";
			document.getElementById('secondBox').style.display = "none";
		}else if(radio[1].checked) {
			//フォーム
			document.getElementById('firstBox').style.display = "none";
			document.getElementById('secondBox').style.display = "";
		}
	}

//オンロードさせ、リロード時に選択を保持
window.onload = entryChange1;
function ranking(){
	div_cls("ranking");
		document.write('<p class="bar_local">RoseLip 総合ランキング</p>');
			div_cls("rank_bar");
			document.write('<form><label><input type="radio" name="entryPlan" value="動画別" onclick="entryChange1();" checked="checked" /> 動画別</label>　　<label><input type="radio" name="entryPlan" value="痴女別" onclick="entryChange1();" /> 痴女別</label></form>');
			div_close();
			document.write('<div id="firstBox">');
				movRanking();
			document.write('</div>');
			document.write('<div id="secondBox" style="display:none;">');
				modRanking();
			document.write('</div>');
			
		div_close();
	}

function movRanking(){
	rankArr = new Array("","1st","2nd","3rd","4th","5th","6th","7th","8th","9th","10th");
		for(i=1;i<11;i++){
			document.write('<div class="rank_m',i,'">');
			div_cls("rank_img");
				document.write('<p class="rank_num">',rankArr[i],'</p>');
				document.write('<p class="rank_m_jpg"><a href="',SITE_URL,'/movie/?num=',rankNum[i],'"><img src="',SITE_URL,'/movie/',rankNum[i],'/members.jpg" width="80" /></a></p>');
				div_close();
			div_cls("rank_title");
				document.write('<div class="rank_side_img"><p><a href="',SITE_URL,'/movie/?num=',rankNum[i],'">',mData[rankNum[i]]["title"],'&nbsp;&nbsp;',mData[rankNum[i]]["model"],'</a>');
			        document.write('<img src="',SITE_URL,'/movie/',rankNum[i],'/top_s.jpg" /></p></div>');
				div_close();
			if(i == 11){
				document.write('<p class="clr_end">&nbsp;</p>');
			}else{
				document.write('<p class="clr">&nbsp;</p>');
				}
			document.write('</div>');
			}
	}

function modRanking(){
	rankArr = new Array("","1st","2nd","3rd","4th","5th","6th","7th","8th","9th","10th");

		for(i=1;i<11;i++){
			document.write('<div class="rank',i,'">');
			div_cls("rank_img");
				document.write('<p class="rank_num">',rankArr[i],'</p>');
				document.write('<p class="rank_jpg"><a href="',SITE_URL,'/movie/?num=',modNum[i],'"><img src="',SITE_URL,'/movie/',modNum[i],'/rltd.jpg" /></a></p>');
				div_close();
			div_cls("rank_title");
				document.write('<div class="rank_side_img"><p><a href="',SITE_URL,'/movie/?num=',modNum[i],'">',mData[modNum[i]]["model"],'<br>',mData[modNum[i]]["title"],'</a>');
			        document.write('<img src="',SITE_URL,'/movie/',rankNum[i],'/top_s.jpg" /></p></div>');
				div_close();
			if(i == 11){
				document.write('<p class="clr_end">&nbsp;</p>');
			}else{
				document.write('<p class="clr">&nbsp;</p>');
				}
	document.write('</div>');
			}
	}

function localCategory(){
	div_cls("local_category");
		document.write('<p class="bar_local">RoseLip 責めジャンル</p>');
		div_cls("local_category_menu");
			document.write('<p><a href="',SITE_URL,'/tour/?cate=complist&page=1" class="lcm1">■ＡＬＬ動画一覧</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=faceride&page=1" class="lcm1">■顔面騎乗</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=hollywater&page=1" class="lcm1">■聖水</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=handjob&page=1" class="lcm1">■手コキ</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=footjob&page=1" class="lcm1">■足責め</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=anal&page=1" class="lcm1">■アナル責め</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=sex&page=1" class="lcm1">■痴女セックス</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=blowjob&page=1" class="lcm1">■フェラ</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=armpit&page=1" class="lcm1">■わき・唾液</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=ol&page=1" class="lcm1">■ＯＬ</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=schoolgirl&page=1" class="lcm1">■女子校生</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=queen&page=1" class="lcm1">■女王様</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=wife&page=1" class="lcm1">■人妻</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=feticos&page=1" class="lcm1">■コスチューム</a></p>');
			div_close();
		div_close();

	}

function localCategory2(){
	div_cls("local_girl");
		document.write('<p class="bar_local">RoseLip 責めジャンル</p>');
		div_cls("local_genre_menu");
			document.write('<p><a href="',SITE_URL,'/tour/?cate=complist&page=1" class="lcm1">■ＡＬＬ動画一覧</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=faceride&page=1" class="lcm1">■顔面騎乗</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=hollywater&page=1" class="lcm1">■聖水</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=ph&page=1" class="lcm1">■パンスト</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=chijo&page=1" class="lcm1">■ど痴女</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=handjob&page=1" class="lcm1">■手コキ</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=footjob&page=1" class="lcm1">■足責め</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=anal&page=1" class="lcm1">■アナル責め</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=sex&page=1" class="lcm1">■痴女セックス</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=blowjob&page=1" class="lcm1">■フェラ</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=armpit&page=1" class="lcm1">■わき・唾液</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=sougo&page=1" class="lcm1">■相互愛撫</a></p>');
			//document.write('<p><a href="',SITE_URL,'/tour/?cate=ingo&page=1" class="lcm1">■淫語</a></p>');
			//document.write('<p><a href="',SITE_URL,'/tour/?cate=cfnm&page=1" class="lcm1">■ＣＦＮＭ</a></p>');
			//document.write('<p><a href="',SITE_URL,'/tour/?cate=chikubi&page=1" class="lcm1">■乳首･おっぱい</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=ol&page=1" class="lcm1">■ＯＬ</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=schoolgirl&page=1" class="lcm1">■女子校生</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=queen&page=1" class="lcm1">■女王様</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=wife&page=1" class="lcm1">■人妻</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=feticos&page=1" class="lcm1">■コスチューム</a></p>');
			div_close();
		div_close();

	}

function localCategory3(){
	div_cls("local_girl");
		document.write('<p class="bar_local">Ｍシチュエーション</p>');
		div_cls("local_situ_menu");
			document.write('<p><a href="',SITE_URL,'/tour/?cate=02public&page=1" class="lcm1">■公共の場所で・・・</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=02shiriai&page=1" class="lcm1">■知り合いの家で・・・</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=02sensei&page=1" class="lcm1">■先生と・・・</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=02event&page=1" class="lcm1">■イベント会場で・・・</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=02work&page=1" class="lcm1">■仕事中に・・・</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=02shiiku&page=1" class="lcm1">■飼われる・・・</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=02kousha&page=1" class="lcm1">■校舎の片隅で・・・</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=02hospital&page=1" class="lcm1">■病院で・・・</a></p>');
			document.write('<p><a href="',SITE_URL,'/tour/?cate=02totsuzen&page=1" class="lcm1">■突然に・・・</a></p>');
			div_close();
		div_close();

	}

function localGirlCate(){
	div_cls("local_girl");
		document.write('<p class="bar_local">タイプ別痴女ジャンル</p>');
		div_cls("local_girl_menu");
			document.write('<p><a href="',SITE_URL,'/chijo/?cate=giroke&page=1" class="lcm1">■お色気痴女</a></p>');
			document.write('<p><a href="',SITE_URL,'/chijo/?cate=ghentai&page=1" class="lcm1">■変態痴女</a></p>');
			document.write('<p><a href="',SITE_URL,'/chijo/?cate=gkoakuma&page=1" class="lcm1">■小悪魔痴女</a></p>');
			document.write('<p><a href="',SITE_URL,'/chijo/?cate=gmikudashi&page=1" class="lcm1">■見下し痴女</a></p>');
			document.write('<p><a href="',SITE_URL,'/chijo/?cate=goikomi&page=1" class="lcm1">■追い込み痴女</a></p>');
			document.write('<p><a href="',SITE_URL,'/chijo/?cate=gmoteasobi&page=1" class="lcm1">■弄び痴女</a></p>');
			div_close();
		div_close();
	}

function acRank(){
	document.write('<div id="acrank">');
	document.write('<p style="padding:5px 0 3px;background-image:url(',SITE_URL,'/img/bar_acrank.gif);background-repeat:no-repeat;color:#fff;font-weight:bold;text-align:center;">Access Ranking</p>');
	document.write('<p style="margin-bottom:8px;"><iframe src="http://rankc1.apserver.net/u/roselip/main.html" width=183 height=2000 frameborder=0 marginwidth=0 marginheight=0 border=0 scrolling=no></iframe></p>');
	document.write('<p style="margin-bottom:8px;"><iframe src="http://rankc1.apserver.net/u/roselip/sec.html" width=183 height=100 frameborder=0 marginwidth=0 marginheight=0></iframe></p>');
	document.write('<p style="margin-bottom:8px;"><a href="http://ranksm.apserver.net/share/regist.php?u=roselip">相互リンクの登録</a></p>');
	document.write('<p style="margin-bottom:8px;"><a href="http://ranksm.apserver.net/share/mod.php?u=roselip">相互リンクの編集</a></p>');
	document.write('</div>');
	}

function review(){
	div_cls("attention");
		document.write('<p class="bar_local">クチコミ掲示板</p>');
		div_cls("imgtxt_local");
			div_close();
		div_close();
	}

function recruit(){
	div_cls("attention");
		document.write('<p class="bar_local">モデル大募集！</p>');
		div_cls("imgtxt_local");
			document.write('<p class="imgtxt_local_img"><a href="',SITE_URL,'/bosyu/"><img src="',SITE_URL,'/img/wanted.jpg" /></a></p>');
			div_close();
		div_close();
	}

function sokuVip(){
	div_cls("attention");
		document.write('<p class="bar_local">90日まとめ買いパック</p>');
		div_cls("imgtxt_local");
			document.write('<p class="imgtxt_local_img"><a href="',SITE_URL,'/90vip/"><img src="',SITE_URL,'/img/local_90vip.jpg" /></a></p>');
			div_close();
		div_close();
	}

function NewMem(){
	div_cls("registration");
		document.write('<p class="bar_local">公開中作品をまとめて確認</p>');
		div_cls("imgtxt_local");
		document.write('<p class="imgtxt_local_img"><a href="http://www.roselip-fetish.com/digest/?cate=digestlist&page=1"><img src="http://www.roselip-fetish.com/digest/img/local.jpg" /></a></p>');
			div_close();
		div_close();
	}

function Original(){
	div_cls("registration");
		document.write('<p class="bar_local">お知らせ</p>');
		div_cls("imgtxt_local");
		document.write('<p class="imgtxt_local_img"><a href="http://www.roselip-fetish.com/original/"><img src="http://www.roselip-fetish.com/original/img/local.jpg" /></a></p>');
			div_close();
		div_close();
	}

function localRank(){
	div_cls("registration");
		document.write('<p class="bar_local">動画ランキング</p>');
		div_cls("imgtxt_local");
                        document.write('<div style="font-size: 0px; line-height: 0px; margin: 0px;"><img src="',SITE_URL,'/img/rank/local_head.gif"></div>');
			document.write('<p class="localrank">');
			document.write('<a href="/rank/?cate=faceride&page=1">');
			document.write('<img src="/img/rank/local_rank01.gif" id="localrank01" ');
			document.write('onmouseover="MM_swapImage(\'localrank01\',\'\',\'',SITE_URL,'/img/rank/local_rank01_on.gif\',1)" ');
			document.write('onmouseout="MM_swapImgRestore()" /></a></p>');
			document.write('<p class="localrank">');
			document.write('<a href="/rank/?cate=holywater&page=1">');
			document.write('<img src="/img/rank/local_rank02.gif" id="localrank02" ');
			document.write('onmouseover="MM_swapImage(\'localrank02\',\'\',\'',SITE_URL,'/img/rank/local_rank02_on.gif\',1)" ');
			document.write('onmouseout="MM_swapImgRestore()" /></a></p>');
			document.write('<p class="localrank">');
			document.write('<a href="/rank/?cate=handjob&page=1">');
			document.write('<img src="/img/rank/local_rank03.gif" id="localrank03" ');
			document.write('onmouseover="MM_swapImage(\'localrank03\',\'\',\'',SITE_URL,'/img/rank/local_rank03_on.gif\',1)" ');
			document.write('onmouseout="MM_swapImgRestore()" /></a></p>');
			document.write('<p class="localrank">');
			document.write('<a href="/rank/?cate=footjob&page=1">');
			document.write('<img src="/img/rank/local_rank04.gif" id="localrank04" ');
			document.write('onmouseover="MM_swapImage(\'localrank04\',\'\',\'',SITE_URL,'/img/rank/local_rank04_on.gif\',1)" ');
			document.write('onmouseout="MM_swapImgRestore()" /></a></p>');
			document.write('<p class="localrank">');
			document.write('<a href="/rank/?cate=ol&page=1">');
			document.write('<img src="/img/rank/local_rank05.gif" id="localrank05" ');
			document.write('onmouseover="MM_swapImage(\'localrank05\',\'\',\'',SITE_URL,'/img/rank/local_rank05_on.gif\',1)" ');
			document.write('onmouseout="MM_swapImgRestore()" /></a></p>');
			document.write('<p class="localrank">');
			document.write('<a href="/rank/?cate=schoolgirl&page=1">');
			document.write('<img src="/img/rank/local_rank06.gif" id="localrank06" ');
			document.write('onmouseover="MM_swapImage(\'localrank06\',\'\',\'',SITE_URL,'/img/rank/local_rank06_on.gif\',1)" ');
			document.write('onmouseout="MM_swapImgRestore()" /></a></p>');
			document.write('<p class="localrank">');
			document.write('<a href="/rank/?cate=steplick&page=1">');
			document.write('<img src="/img/rank/local_rank07.gif" id="localrank07" ');
			document.write('onmouseover="MM_swapImage(\'localrank07\',\'\',\'',SITE_URL,'/img/rank/local_rank07_on.gif\',1)" ');
			document.write('onmouseout="MM_swapImgRestore()" /></a></p>');
			document.write('<p class="localrank">');
			document.write('<a href="/rank/?cate=anal&page=1">');
			document.write('<img src="/img/rank/local_rank08.gif" id="localrank08" ');
			document.write('onmouseover="MM_swapImage(\'localrank08\',\'\',\'',SITE_URL,'/img/rank/local_rank08_on.gif\',1)" ');
			document.write('onmouseout="MM_swapImgRestore()" /></a></p>');
			div_close();
		div_close();
	}

function localGozonji(){
	div_cls("attention");
		document.write('<p class="bar_local">ローズリップの使い方。</p>');
		div_cls("imgtxt_local");
			document.write('<td><p><a href="http://www.roselip-fetish.com/gozonji/"><img src="http://www.roselip-fetish.com/img/local_gozonji.jpg" /></a></p></td>');
			div_close();
		div_close();
	}

function localAnniversary(){
	//document.write('<div style="margin-bottom:5px;height:40px;"><a href="http://www.roselip-fetish.com/pray4japan.html"><img src="http://www.roselip-fetish.com/img/anniversary.gif" /></a></div>');
	document.write('<div style="margin-bottom:5px;height:85px;"><a href="http://www.roselip-fetish.com/spec/"><img src="http://www.roselip-fetish.com/img/lcl_5x.jpg" /></a></div>');
	}

function toMrDvd(){
	div_cls("attention");
		document.write('<p class="bar_local">姉妹サイトのご紹介</p>');
		div_cls("imgtxt_local");
			document.write('<td><p><a href="http://dvd.natuko-miracle.com/index.php" target="_blank"><img src="http://www.roselip-fetish.com/img/toMrDvd.jpg" /></a></p></td>');
			div_close();
		div_close();
	}

function textMatome(){
	document.write('<div style="margin:3px 0 8px 0;text-align:center;"><a href="http://www.roselip-fetish.com/digest/?cate=digestlist&page=1">更新作品をまとめてチェック</a></div>');
	}

function spotspecial(){
	document.write('<p style="margin:3px 0px 3px 0px"><a href="',SITE_URL,'/camp_101007/"><img src="',SITE_URL,'/camp_101007/img/local.jpg" /></a></p>');
	}

function vweekend(){
	div_cls("registration");
		document.write('<p class="bar_local">VIP 週末限定</p>');
		div_cls("imgtxt_local");
			document.write('<p class="imgtxt_local_img"><a href="http://www.roselip-fetish.com/movie/?num=0030"><img src="http://www.roselip-fetish.com/movie/0030/f01_v.jpg" /></a></p>');
			div_close();
		div_close();
	}

function local(page){
	//localAnniversary();
	news();
	//textMatome();
	//close();
	//registration();
	signup();
	login();
	//sokuVip();
        //localRandom();
	patment();
	//camp2();
	//camp3();
	localCategory2();
	localCategory3();
　　　　//sp_latest();
        //vip_photo();
        //sp_photo();
　　　　//vip_latest();
        //vip_photo();
        //latest();
	rl_contents();
//camp();
	//NewMem();
	//Original();
	ranking();
//vweekend();
	//l_mnavi();
	//countdownLocal();
	//camp5();
	//camp3();
	//camp4();
        //spotspecial();
	//localTele();
	//localRank();
	//localGirlCate();
	//localCategory();
	privacy();
	//situation();
	mailMag();
        //localGozonji();
	//blog();
        inquiry();
	//best();
	//recruit();
	//toNeo();
	//topic();
	//modRanking();
	//camp();
	//review();
	//vipP();
	if(page == "top"){
		//acRank();
		}
	}

////// 3階層 専用のLOCAL構成　///////////////////////

function local3(page){
	//localAnniversary();
	news();
	//textMatome();
	//close();
	//registration();
	signup();
	login();
	//sokuVip();
        //localRandom();
	patment();
	localCategory2();
	localCategory3();
　　　　//sp_latest();
        //vip_photo();
        //sp_photo();
　　　　//vip_latest();
        //latest();
//camp();
	rl_contents();
	//NewMem();
	//Original();
	ranking();
//vweekend();
	//l_mnavi();
	//countdownLocal();
	//camp5();
	//camp2();
	//camp3();
	//camp4();
        //spotspecial();
	//localTele();
	//localRank();
	//localGirlCate();
	//localCategory();
	privacy();
	//situation();
	//mailMag();
        //localGozonji();
	//blog();
        //inquiry();
	//best();
	//recruit();
	//toNeo();
	//topic();
	//modRanking();
	//review();
	//vipP();
	if(page == "top"){
		//acRank();
		}
	}

////// TOP PAGE 専用のLOCAL構成　///////////////////////

function localTop(page){
	localAnniversary();
//camp2();
	news();
	//textMatome();
	//close();
	//registration();
	signup();
	login();
	//sokuVip();
        //localRandom();
	patment();
	//countdownLocal();
	//camp5();
	//camp3();
	//camp4();
	localCategory2();
	localCategory3();
	ranking();
//camp();
//vweekend();
	//l_mnavi();
        //spotspecial();
　　　　//sp_latest();
        //vip_photo();
　　　　//vip_latest();
	//latest();
	rl_contents();
        //sp_photo();
	//camp();
	//NewMem();
	//Original();
	//localGirlCate();
	//situation();
	privacy();
	//localTele();
	//localRank();
	//localCategory();
	mailMag();
        //localGozonji();
	//blog();
        inquiry();
	//best();
	//recruit();
	//toNeo();
	toMrDvd();
	//topic();
	//modRanking();
	//review();
	//vipP();
	if(page == "top"){
		//acRank();
		}
	}

////// お問い合わせページのLOCAL構成　///////////////////////

function localDetails(page){
	//registration();
	signup();
	login();
	patment();
	news();
	localCategory2();
	localCategory3();
	ranking();
//camp();
　　　　//sp_latest();
        vip_photo();
        //sp_photo();
　　　　vip_latest();
	if(page == "top"){
		}
	}

////////////////////  footer  ////////////////////////////////////////////////////

function footer(){
	document.write('<p class="menu_foot">');
	document.write('<address>Copyright (c) 2005-2012 ROSE LiP All rights reserved.</address>');
	document.write('</p>');
	}



/////////////////// COMPLETE LIST ////////////////////////////

function boxCompList(cate){
	if(!cate){
		cate = "complist";
		}
	div_cls("box_complist");
		document.write('<p class="bar_complist"><img src="',SITE_URL,'/img/structural/bar_',cate,'.jpg" />');
		if(cate == "complist"){
			document.write('');
		}else{
			document.write();
			}
		div_close();
	}

/////////////////// CHIJO LIST ////////////////////////////

function boxChijoList(cate){
	if(!cate){
		cate = "chijolist";
		}
	div_cls("box_complist");
		document.write('<p class="bar_complist"><img src="',SITE_URL,'/img/structural/chijo_',cate,'.gif" />');
		if(cate == "chijolist"){
			document.write('');
		}else{
			document.write();
			}
		div_close();
	}

/////////////////// COMPLETE LIST BOTTOM////////////////////////////

function boxCompList_bm(cate){
	if(!cate){
		cate = "complist";
		}
	div_cls("box_complist");
		document.write('<p class="bar_complist"><img src="',SITE_URL,'/img/structural/bar_',cate,'_bm.gif" />');
		if(cate == "complist"){
			document.write('');
		}else{
			document.write();
			}
		div_close();
	}

/////////////////// CHIJO LIST BOTTOM////////////////////////////

function boxChijoList_bm(cate){
	if(!cate){
		cate = "chijolist";
		}
	div_cls("box_complist");
		document.write('<p class="bar_complist"><img src="',SITE_URL,'/img/structural/chijo_',cate,'_bm.gif" />');
		if(cate == "chijolist"){
			document.write('');
		}else{
			document.write();
			}
		div_close();
	}


////////////////// LIST TABLE ////////////////////////////

function boxListTbl(cate,page){
	if(!cate){
		cate = "complist";
		}
	listPage = mList.length / 5;
	Math.round(listPage);
	
	div_cls("box_listtbl");
		document.write('<table>');
		document.write('<tr>');
		
		for(i=1;i<listPage+1;i++){
			n = i / 15;
			if(i == page){
				document.write('<td><span>',i,'</span></td>');
			}else{
				document.write('<td><a href="',SITE_URL,'/tour/?cate=',cate,'&page=',i,'">',i,'</a></td>');
				}
			if ((""+n).indexOf(".") > -1){
				void(0);
			}else{
				document.write('</tr><tr>');
				}
			}
		document.write('</tr></table>');
		div_close();
	}

////////////////// M2LIST ///////////////////////////

function boxM2List(num){
	div_cls("box_m2list");
		div_cls("bar_m2title");
			document.write('<p class="m2title"><a href="',SITE_URL,'/movie/?num=',num,'">',mData[num]["title"],'&nbsp;&nbsp;',mData[num]["model"],'</a></p>');
			document.write('<p class="m2minute">動画　',mData[num]["minute"],'分</p>');
			div_close();
		
		div_cls("box_m2desc");
				document.write('<p class="top_title" style="margin:0px 0px 8px 0px"><a href="',SITE_URL,'/movie/?num=',num,'"><img src="',SITE_URL,'/movie/',num,'/top.jpg" /></a></p>');
			div_cls("m2desc_new");
				document.write('<p class="txt_m2desc_new">',mData[num]["info"],'',mData[num]["description"],'</p>');
				document.write('<p class="for_m2desc"><img src="',SITE_URL,'/img/moreinfo.gif"><a href="',SITE_URL,'/movie/?num=',num,'">');
				document.write('<img src="',SITE_URL,'/img/btn_click.gif" id="btn_click_tod_',num,'" ');
				document.write('onmouseover="MM_swapImage(\'btn_click_tod_',num,'\',\'\',\'',SITE_URL,'/img/btn_click_on.gif\',1)" ');
				document.write('onmouseout="MM_swapImgRestore()" /></a></p>');
				div_close();
			document.write('<p class="m2clr">&nbsp;</p>');
			div_close();

		div_close();
	}


///////////////////// TO NEO ///////////////////////////////////

function toNeomain(){
	div_cls("bnr_joinnow");
		document.write('<p align="center"><img src="',SITE_URL,'/img/to_neo.jpg" /></p>');
		document.write('<p align="center"><a href="http://script2.natuko-miracle.com/access/index.php?id=0272"><img src="',SITE_URL,'/img/598_300.jpg" /></a></p>');
		div_close();
	}

///////////////////// CAMPAIGN ///////////////////////////////////

function campmain(){
	div_cls("bnr_joinnow");
		document.write('<td><a href="http://www.roselip-fetish.com/camp_090123/"><img src="http://www.roselip-fetish.com/camp_090123/img/top.jpg" /></a></td>');
		div_close();
	}

///////////////////// BAR JOIN NOW ///////////////////////////////////

function bnrJoinNow(){
	div_cls("bnr_joinnow");
		document.write('<p align="center"><a href="',SITE_URL,'/join/"><img src="',SITE_URL,'/img/bnr_joinnow_camp.gif" /></a></p>');
		div_close();
	}

////////////////// JK BAR ///////////////////////////

function JoinJoin(){
			document.write('<div style="margin:10px 0px 0px 0px;" class="joinjoin"><a href="http://www.roselip-fetish.com/join/"><span>join</span></a></div>');
			document.write('<div style="margin:0px 0px 0px 0px;text-align:center;"><img src="http://www.roselip-fetish.com/img/join/join_ref.jpg"></div>');
	}

//////////////////// BOX MOVIE CATEGORIES //////////////////////////

function boxMovieCategories(){
	mcListLen = menuCateList.length;
	div_cls("box_moviecategories");
		document.write('<p class="bar_moviecategories"><img src="',SITE_URL,'/img/bar_moviecategories.gif" /></p>');
		div_cls('moviecategories');
			document.write('<p>');
			for(i=0;i<mcListLen;i++){
				document.write('<a href="',menuCateLink[i],'">',menuCateList[i],'</a>');
				}
			document.write('</p>');
			div_close();
		div_close();
	}

function boxMovieCategories2(){
	mcListLen = menuCateList.length;
	div_cls("box_moviecategories");
		document.write('<p class="bar_moviecategories"><img src="',SITE_URL,'/img/bar_moviecategories2.gif" /></p>');
		div_cls('moviecategories');
			document.write('<p>');
			for(i=0;i<mcListLen;i++){
				document.write('<a href="',menuCateLink[i],'">',menuCateList[i],'</a>');
				}
			document.write('</p>');
			div_close();
		div_close();
	}

//////////////////// BOX Chijo CATEGORIES //////////////////////////

function boxChijoCategories(){
	mcListLen = chijoCateList.length;
	div_cls("box_moviecategories");
		document.write('<p class="bar_moviecategories"><img src="',SITE_URL,'/img/bar_chijocategories.gif" /></p>');
		div_cls('chijocategories');
			document.write('<p>');
			for(i=0;i<mcListLen;i++){
				document.write('<a href="',chijoCateLink[i],'">',chijoCateList[i],'</a>');
				}
			document.write('</p>');
			div_close();
		div_close();
	}

////////////////////// TO TOP ////////////////////////////////

function toTop(){
	document.write('<p class="totop"><a href="#">>> このページのＴＯＰに戻る</a></p>');
	}


///////////////////// Telephone ///////////////////////////////////

function telePhone(){
	div_cls("togo");
		document.write('<p align="center" style="margin:10px 0px 5px 0px"><a href="http://www.roselip-fetish.com//faq/"><img src="',SITE_URL,'/img/telephone.jpg" /></a></p>');
		div_close();
	}

///////////////////// SPECIAL ///////////////////////////////////

function special2(){
	div_cls("top_catch");
		document.write('<p style="margin:5px 0 5px 0;border:1px solid #999999;"><a href="http://www.roselip-fetish.com/campaign/"><img src="',SITE_URL,'/campaign/img/3nights.jpg" /><a href="http://www.roselip-fetish.com/movie/?num=0044"><img src="',SITE_URL,'/campaign/img/0044.jpg" /></a><br><a href="http://www.roselip-fetish.com/movie/?num=0048"><img src="',SITE_URL,'/campaign/img/0048.jpg" /></a><br><a href="http://www.roselip-fetish.com/movie/?num=0092"><img src="',SITE_URL,'/campaign/img/0092.jpg" /></a></p>');
		div_close();
	}

///////////////////// Topic_main ///////////////////////////////////

function topicMain(){
	div_cls("togo");
		document.write('<p align="center" style="margin:10px 0px 5px 0px"><a href="http://www.roselip-fetish.com/tour/?cate=hollywater&page=1"><img src="',SITE_URL,'/img/RL_HollyWater2.jpg" /></a></p>');
		div_close();
	}

///////////////////// Tour_main ///////////////////////////////////

function tourMain(){
	document.write('<table width="600" border="0" cellspacing="1" cellpadding="1">');
	document.write('<tr align="center">');
	document.write('<td align="center">');
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="600" height="170">');
	document.write('<param name="movie" value="../swf/holly.swf" />');
	document.write('<param name="quality" value="high" />');
	document.write('<embed src="../swf/holly.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="170"></embed>');
	document.write('</object>');
	document.write('</td>');
	document.write('</tr>');
	document.write('</table>');
	}

///////////////////// EN DAKA //////////////////////////////////

function enup(){
	document.write('<p align="center" style="margin-top:5px;"><a href="http://www.roselip-fetish.com/join/"><img src="http://www.roselip-fetish.com/img/enup.gif" /></a></p>');
	}

	

///////////////////// RECOMMEND MOVIES ///////////////////////////////////

function boxRecommend(){

recomList = random(mList,6);

document.write('<p class="bar_reco"><img src="http://www.roselip-fetish.com/img/bar_reco.gif"></p>');
document.write('<div class="reco_main">');

for(i=0;i<6;i++){
	document.write('<div class="reco_box">');
		document.write('<div class="reco_pic">');
			document.write('<a href="http://www.roselip-fetish.com/movie/?num=',recomList[i],'"><img src="http://www.roselip-fetish.com/movie/',recomList[i],'/f01.jpg"></a>');
		document.write("</div>");
	document.write("</div>");
	}
document.write('<p class="all_enter"><a href="http://www.roselip-fetish.com/digest/?cate=digestlist&page=1">全動画をまとめて見る</a></p>');

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

}

///////////////////// RECO MOVIES 6 ///////////////////////////////////

function boxReco6(){

recomList = random(mList,6);

document.write('<p class="bar_reco"><img src="http://www.roselip-fetish.com/img/bar_reco.gif"></p>');
document.write('<div class="reco6_main">');

for(i=0;i<6;i++){
	document.write('<div class="reco6_box">');
		document.write('<div class="reco6_pic">');
			document.write('<a href="http://www.roselip-fetish.com/movie/?num=',recomList[i],'"><img src="http://www.roselip-fetish.com/movie/',recomList[i],'/members.jpg"></a>');
		document.write('</div>');

		document.write('<div class="reco6_txt_box">');
			document.write('<div class="reco6_title">');

			if(mData[recomList[i]]["vip"]){
				if(mData[recomList[i]]["vip"] == "0"){icon = "reg";}
				else if(mData[recomList[i]]["vip"] == "1"){icon = "vip";}
				else{icon = "non";}
				document.write('<img src="/img/icon_',icon,'.gif" />');
			}

			document.write('&nbsp;<a href="http://www.roselip-fetish.com/movie/?num=',recomList[i],'">',mData[recomList[i]]["title"],'</a></div>');
			document.write('<p class="reco6_name"><span style="font-weight:bold">痴女名：</span>&nbsp; ',mData[recomList[i]]["model"],'</p>');
			document.write('<p class="reco6_name"><span style="font-weight:bold">作品紹介：</span>&nbsp; ',mData[recomList[i]]["description"].substr(0,180),'...</p>');
		document.write('</div>');

		document.write('<div class="reco6_entbtn">');
			document.write('<p class="reco6_enter"><a href="http://www.roselip-fetish.com/movie/?num=',recomList[i],'">もっと詳しく見る＞＞</a></p>');
		document.write('</div>');
	document.write('</div>');
	}
//document.write('<p class="all_enter"><a href="http://www.roselip-fetish.com/digest/?cate=digestlist&page=1">全動画をまとめて見る</a></p>');
document.write('</div>');
}


///////////////////// RECOMMEND MOVIES 2///////////////////////////////////

function boxRecommend2(){

recomList = random(mList,8);

document.write('<p class="bar_reco"><img src="http://www.roselip-fetish.com/img/bar_8.jpg"></p>');
document.write('<div class="reco_main2">');

for(i=0;i<8;i++){
	document.write('<div class="reco_box">');
		document.write('<div class="reco_pic">');
			document.write('<a href="http://www.roselip-fetish.com/movie/?num=',recomList[i],'"><img src="http://www.roselip-fetish.com/movie/',recomList[i],'/f01.jpg"></a>');
		document.write("</div>");
	document.write("</div>");
	}

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

}

///////////////////// RECOMMEND MOVIES 2 ENGLISH///////////////////////////////////

function boxRecommend2_en(){

recomList = random(mList,8);

document.write('<p class="bar_reco"><img src="http://www.roselip-fetish.com/img/bar_8_en.jpg"></p>');
document.write('<div class="reco_main2">');

for(i=0;i<8;i++){
	document.write('<div class="reco_box">');
		document.write('<div class="reco_pic">');
			document.write('<a href="http://www.roselip-fetish.com/movie/?num=',recomList[i],'"><img src="http://www.roselip-fetish.com/movie/',recomList[i],'/f01.jpg"></a>');
		document.write("</div>");
	document.write("</div>");
	}
document.write('</div>');
}

///////////////////// CHIJO BOX ///////////////////////////////////

function boxChijo(){

recomList = random(mList,12);

document.write('<p class="bar_reco"><img src="http://www.roselip-fetish.com/img/bar_chijo.gif"></p>');
document.write('<div class="chijo_main">');

for(i=0;i<12;i++){
	document.write('<div class="chijo_box">');
		document.write('<div class="chijo_pic">');
			document.write('<a href="http://www.roselip-fetish.com/movie/?num=',recomList[i],'"><img src="http://www.roselip-fetish.com/movie/',recomList[i],'/models.jpg"></a>');
		document.write("</div>");
	document.write("</div>");
	}

document.write('</div>');
}


///////////////////// SUGGESTED MOVIES ///////////////////////////////////

function recoWeek(){

recomList = new Array(sugNum["1"],sugNum["2"],sugNum["3"],sugNum["4"],sugNum["5"],sugNum["6"]);

document.write('<p class="bar_reco"><img src="http://www.roselip-fetish.com/img/bar_sug.gif"></p>');

document.write('<div class="rec6word_box">');
document.write('<p class="text_vrec3">',rec6word,'</p>');
document.write('</div>');

document.write('<div class="reco_main">');

for(i=0;i<6;i++){
	document.write('<div class="reco_box">');
		document.write('<div class="reco_pic">');
			document.write('<a href="http://www.roselip-fetish.com/movie/?num=',recomList[i],'"><img src="http://www.roselip-fetish.com/movie/',recomList[i],'/f01.jpg"></a>');
		document.write("</div>");
	document.write("</div>");
	}
document.write('<p class="all_enter"><a href="http://www.roselip-fetish.com/digest/?cate=digestlist&page=1">全動画をまとめて見る</a></p>');
document.write('</div>');

}


///////////////////// VIP RECOMMEND 3 MOVIES ///////////////////////////////////

function vrec3Week(){

vrecList = new Array(vrecNum["1"],vrecNum["2"],vrecNum["3"]);

document.write('<p class="bar_reco"><img src="http://www.roselip-fetish.com/img/bar_vip.gif"></p>');
//document.write('<div class="vrec3word_box">');
//document.write('<p class="text_vrec3">',vrec3word,'</p>');
//document.write('</div>');
document.write('<div class="vrec_main">');

for(i=0;i<3;i++){
	document.write('<div class="reco_box">');
		document.write('<div class="reco_pic">');
			document.write('<a href="http://www.roselip-fetish.com/movie/?num=',vrecList[i],'"><img src="http://www.roselip-fetish.com/movie/',vrecList[i],'/f01.jpg"></a>');
		document.write("</div>");
	document.write("</div>");
	}
//document.write('<p class="all_enter"><a href="http://www.roselip-fetish.com/digest_vip/">全VIP動画をまとめて見る</a></p>');
document.write('</div>');

}

/////////////////// mtmm LIST ////////////////////////////

function boxmtmmList(cate){
	if(!cate){
		cate = "mtmmlist";
		}
	div_cls("box_complist");
		document.write('<p class="bar_complist"><img src="',SITE_URL,'/img/structural/chijo_',cate,'.gif" />');
		if(cate == "mtmmlist"){
			document.write('');
		}else{
			document.write();
			}
		div_close();
	}

/////////////////// mtmm LIST BOTTOM////////////////////////////

function boxmtmmList_bm(cate){
	if(!cate){
		cate = "mtmmlist";
		}
	div_cls("box_complist");
		document.write('<p class="bar_complist"><img src="',SITE_URL,'/img/structural/chijo_',cate,'_bm.gif" />');
		if(cate == "mtmmlist"){
			document.write('');
		}else{
			document.write();
			}
		div_close();
	}

///////////////////////////////////////////////


//ヘッダー画像キャンペーンカウントダウン 

function countdownHeader() {
	var	i;
	var	month;
	var	day;
	var	today;

	var	maxFile = 7; //画像ファイル数の設定

	var	date = new Date();
	var	graphics_data = new Array(maxFile);
	var	graphics_path = new Array(maxFile);

	if ((month = (date.getMonth() + 1)) < 10) {
		month = "0" + month;
	}
	else {
		month += "";
	}

	if ((day = date.getDate()) < 10) {
		day = "0" + day;
	}
	else {
		day += "";
	}

	today = month + day;

	graphics_data[0] = "0630";
	graphics_path[0] = "http://www.roselip-fetish.com/camp_110613/img/header.jpg";
	graphics_data[1] = "0701";
	graphics_path[1] = "http://www.roselip-fetish.com/camp_110613/img/header05.jpg";
	graphics_data[2] = "0702";
	graphics_path[2] = "http://www.roselip-fetish.com/camp_110613/img/header04.jpg";
	graphics_data[3] = "0703";
	graphics_path[3] = "http://www.roselip-fetish.com/camp_110613/img/header03.jpg";
	graphics_data[4] = "0704";
	graphics_path[4] = "http://www.roselip-fetish.com/camp_110613/img/header02.jpg";
	graphics_data[5] = "0705";
	graphics_path[5] = "http://www.roselip-fetish.com/camp_110613/img/header01.jpg";
	graphics_data[6] = "0706";
	graphics_path[6] = "http://www.roselip-fetish.com/camp_110613/img/header00.jpg";

	for (i = 0; i < maxFile; i++) {
		if (graphics_data[i] > today) {
			if (i == 0) {
				i = maxFile;
			}
			break;
		}
	}
	i--;

	document.write('<a href="http://www.roselip-fetish.com/camp_110613/"><IMG SRC=\'' + graphics_path[i] + '\'></a>');

	}


//ローカル画像キャンペーンカウントダウン

function countdownLocal() {
	var	i;
	var	month;
	var	day;
	var	today;

	var	maxFile = 7; //画像ファイル数の設定

	var	date = new Date();
	var	graphics_data = new Array(maxFile);
	var	graphics_path = new Array(maxFile);

	if ((month = (date.getMonth() + 1)) < 10) {
		month = "0" + month;
	}
	else {
		month += "";
	}

	if ((day = date.getDate()) < 10) {
		day = "0" + day;
	}
	else {
		day += "";
	}

	today = month + day;

	graphics_data[0] = "0630";
	graphics_path[0] = "http://www.roselip-fetish.com/camp_110613/img/local.jpg";
	graphics_data[1] = "0701";
	graphics_path[1] = "http://www.roselip-fetish.com/camp_110613/img/local05.jpg";
	graphics_data[2] = "0702";
	graphics_path[2] = "http://www.roselip-fetish.com/camp_110613/img/local04.jpg";
	graphics_data[3] = "0703";
	graphics_path[3] = "http://www.roselip-fetish.com/camp_110613/img/local03.jpg";
	graphics_data[4] = "0704";
	graphics_path[4] = "http://www.roselip-fetish.com/camp_110613/img/local02.jpg";
	graphics_data[5] = "0705";
	graphics_path[5] = "http://www.roselip-fetish.com/camp_110613/img/local01.jpg";
	graphics_data[6] = "0706";
	graphics_path[6] = "http://www.roselip-fetish.com/camp_110613/img/local00.jpg";

	for (i = 0; i < maxFile; i++) {
		if (graphics_data[i] > today) {
			if (i == 0) {
				i = maxFile;
			}
			break;
		}
	}
	i--;

	document.write('<a href="http://www.roselip-fetish.com/camp_110613/"><IMG SRC=\'' + graphics_path[i] + '\'></a>');

	}


//メイン画像キャンペーンカウントダウン

function countdownTop() {
	var	i;
	var	month;
	var	day;
	var	today;

	var	maxFile = 7; //画像ファイル数の設定

	var	date = new Date();
	var	graphics_data = new Array(maxFile);
	var	graphics_path = new Array(maxFile);

	if ((month = (date.getMonth() + 1)) < 10) {
		month = "0" + month;
	}
	else {
		month += "";
	}

	if ((day = date.getDate()) < 10) {
		day = "0" + day;
	}
	else {
		day += "";
	}

	today = month + day;

	graphics_data[0] = "0630";
	graphics_path[0] = "http://www.roselip-fetish.com/camp_110613/img/top.jpg";
	graphics_data[1] = "0701";
	graphics_path[1] = "http://www.roselip-fetish.com/camp_110613/img/top05.jpg";
	graphics_data[2] = "0702";
	graphics_path[2] = "http://www.roselip-fetish.com/camp_110613/img/top04.jpg";
	graphics_data[3] = "0703";
	graphics_path[3] = "http://www.roselip-fetish.com/camp_110613/img/top03.jpg";
	graphics_data[4] = "0704";
	graphics_path[4] = "http://www.roselip-fetish.com/camp_110613/img/top02.jpg";
	graphics_data[5] = "0705";
	graphics_path[5] = "http://www.roselip-fetish.com/camp_110613/img/top01.jpg";
	graphics_data[6] = "0706";
	graphics_path[6] = "http://www.roselip-fetish.com/camp_110613/img/top00.jpg";

	for (i = 0; i < maxFile; i++) {
		if (graphics_data[i] > today) {
			if (i == 0) {
				i = maxFile;
			}
			break;
		}
	}
	i--;

	document.write('<div style="height:343px;"><a href="http://www.roselip-fetish.com/camp_110613/"><IMG SRC=\'' + graphics_path[i] + '\'></a></div>');
//	document.write('<div style="height:270px;"><a href="http://www.roselip-fetish.com/camp_100610/"><img src="http://www.roselip-fetish.com/camp_100610/img/new.gif" /></a></div>');

	}

//キャンペーンページ画像カウントダウン

function countdownMain() {
	var	i;
	var	month;
	var	day;
	var	today;
	var	maxFile = 7; //画像ファイル数の設定
	var	date = new Date();
	var	graphics_data = new Array(maxFile);
	var	graphics_path = new Array(maxFile);

	if ((month = (date.getMonth() + 1)) < 10) {
		month = "0" + month;
	}
	else {
		month += "";
	}

	if ((day = date.getDate()) < 10) {
		day = "0" + day;
	}
	else {
		day += "";
	}

	today = month + day;

	graphics_data[0] = "0630";
	graphics_path[0] = "http://www.roselip-fetish.com/camp_110613/img/main.jpg";
	graphics_data[1] = "0701";
	graphics_path[1] = "http://www.roselip-fetish.com/camp_110613/img/main05.jpg";
	graphics_data[2] = "0702";
	graphics_path[2] = "http://www.roselip-fetish.com/camp_110613/img/main04.jpg";
	graphics_data[3] = "0703";
	graphics_path[3] = "http://www.roselip-fetish.com/camp_110613/img/main03.jpg";
	graphics_data[4] = "0704";
	graphics_path[4] = "http://www.roselip-fetish.com/camp_110613/img/main02.jpg";
	graphics_data[5] = "0705";
	graphics_path[5] = "http://www.roselip-fetish.com/camp_110613/img/main01.jpg";
	graphics_data[6] = "0706";
	graphics_path[6] = "http://www.roselip-fetish.com/camp_110613/img/main00.jpg";

	for (i = 0; i < maxFile; i++) {
		if (graphics_data[i] > today) {
			if (i == 0) {
				i = maxFile;
			}
			break;
		}
	}
	i--;
	document.write('<IMG SRC=\'' + graphics_path[i] + '\'>');
	}

function limitedContents() {
	document.write('<p class="limited_title">',limitedBar,'</p>');
	document.write('<div class="limited_border">');
	document.write('<div class="limited_vippic"><a href="http://www.roselip-fetish.com/bsc/?cate=complist&page=1"><img src="http://www.roselip-fetish.com/img/vip/basic_top_enter.jpg" /></a><p class="limited_text">',BasicEnter,'<br><a href="http://www.roselip-fetish.com/bsc/?cate=complist&page=1">＞＞詳細はコチラから</a></p></div>');
	document.write('<div class="limited_vippic"><a href="http://www.roselip-fetish.com/sp_pic/"><img src="http://www.roselip-fetish.com/img/vip/vippic_top_enter.jpg" /></a><p class="limited_text">',limitedVippic,'<br><a href="http://www.roselip-fetish.com/sp_pic/">＞＞詳細はコチラから</a></p></div>');
	document.write('<div class="limited_vip"><a href="http://www.roselip-fetish.com/vip_pro/"><img src="http://www.roselip-fetish.com/img/vip/vip_top_enter.jpg" /></a><p class="limited_text">',limitedVip,'<br><a href="http://www.roselip-fetish.com/vip_pro/">＞＞詳細はコチラから</a></p></div>');
	document.write('<div style="clear:both;"></div>');
	document.write('</div>');
	}

function limitedContentsFull() {
	document.write('<div class="limited_border">');
	document.write('<div class="limited_vippic_full"><a href="http://www.roselip-fetish.com/bsc/?cate=complist&page=1"><img src="http://www.roselip-fetish.com/img/vip/basic_m3_enter.jpg" /></a><p class="limited_text">',BasicEnter,'<br><a href="http://www.roselip-fetish.com/bsc/?cate=complist&page=1">＞＞詳細はコチラから</a></p></div>');
	document.write('<div class="limited_vippic_full"><a href="http://www.roselip-fetish.com/sp_pic/"><img src="http://www.roselip-fetish.com/img/vip/vippic_m3_enter.jpg" /></a><p class="limited_text">',limitedVippic,'<br><a href="http://www.roselip-fetish.com/sp_pic/">＞＞詳細はコチラから</a></p></div>');
	document.write('<div class="limited_vip_full"><a href="http://www.roselip-fetish.com/vip_pro/"><img src="http://www.roselip-fetish.com/img/vip/vip_m3_enter.jpg" /></a><p class="limited_text">',limitedVip,'<br><a href="http://www.roselip-fetish.com/vip_pro/">＞＞詳細はコチラから</a></p></div>');
	document.write('<div style="clear:both;"></div>');
	document.write('</div>');
	}


function campBar() {
		document.write('<p class="camp_title">',campaignTitle,'</p>');
		//document.write('<div style="margin:0px;text-align:center;border:solid 5px #000;padding-top:1px;width:600px;height:auto;">');
		//countdownTop();
		//document.write('<div style="margin:0px 0px 0px 0px;padding:6px;background-color:#000;"><a href="http://www.roselip-fetish.com/camp_111001/"><img src="http://www.roselip-fetish.com/camp_111001/img/top.jpg" /></a></div>');
		document.write('<div style="margin:0px 0px 0px 0px;"><a href="http://www.roselip-fetish.com/camp_120113/"><img src="http://www.roselip-fetish.com/camp_120113/img/top.jpg" /></a></div>');
        //document.write('</div>');
	}

function campBar2() {
		document.write('<p class="camp_title2">',campaignTitle2,'</p>');
		document.write('<div style="margin:0px;text-align:center;border:solid 1px #FF0000;padding:0px;width:608px;">');
		document.write('<div style="margin:0px 0px 0px 0px;"><a href="http://www.roselip-fetish.com/camp_110114/"><img src="http://www.roselip-fetish.com/camp_110114/img/top.jpg" /></a></div>');
        document.write('</div>');
	}


////////////////// rank ///////////////////////////

function boxRankList(num){
		document.write('<p class="box_ranknumber"><img src="',SITE_URL,'/img/rank/label_0',[s+1],'.gif" /></p>');
	div_cls("box_ranklist");
		div_cls("bar_navititle");
			document.write('<p class="m2title"><a href="',SITE_URL,'/movie/?num=',num,'">',mData[num]["title"],'&nbsp;&nbsp;',mData[num]["model"],'</a></p>');
			//document.write('<p class="m2minute">動画　',mData[num]["minute"],'分</p>');
			div_close();
		
		div_cls("box_m2desc");
				document.write('<p class="top_title" style="margin:0px 0px 8px 0px;text-indent:-8px"><a href="',SITE_URL,'/movie/?num=',num,'"><img src="',SITE_URL,'/movie/',num,'/top.jpg" /></a></p>');
			div_cls("m2desc_new");
				//document.write('<p class="bar_m2desc">作品紹介</p>');
				document.write('<p class="txt_m2desc_new">',mData[num]["info"],'',mData[num]["description"],'</p>');
				document.write('<p class="for_m2desc"><img src="',SITE_URL,'/img/moreinfo.gif"><a href="',SITE_URL,'/movie/?num=',num,'">');
				document.write('<img src="',SITE_URL,'/img/btn_click.gif" id="btn_click_tod_',num,'" ');
				document.write('onmouseover="MM_swapImage(\'btn_click_tod_',num,'\',\'\',\'',SITE_URL,'/img/btn_click_on.gif\',1)" ');
				document.write('onmouseout="MM_swapImgRestore()" /></a></p>');
				div_close();
			//div_cls("m2bp");
				//document.write('<p class="m2bpimg"><a href="',SITE_URL,'/movie/?num=',num,'"><img src="',SITE_URL,'/movie/',num,'/m2bp.jpg" width="248" height="167" /></a></p>');
				//div_close();
			document.write('<p class="m2clr">&nbsp;</p>');
			div_close();

		div_close();
	}

function navirank(){
	document.write('<a href="http://www.roselip-fetish.com/mrank/"><div class="main_mnavi">',SK,'</div></a>');
}


function headRdm(){
	div_cls("camp_top");
		jumpURL = new Array(); imgURL = new Array();
		jumpURL[0] = "http://www.roselip-fetish.com/camp_100814/"; 
		jumpURL[1] = "http://www.roselip-fetish.com/camp_100814/"; 
		jumpURL[2] = "http://www.roselip-fetish.com/camp_100814/"; 
		jumpURL[3] = "http://www.roselip-fetish.com/camp_100814/"; 
		jumpURL[4] = "http://www.roselip-fetish.com/camp_100814/"; 
		imgURL[0] = "http://www.roselip-fetish.com/img/header_rdm/campaign.jpg"; 
		imgURL[1] = "http://www.roselip-fetish.com/img/header_rdm/campaign.jpg"; 
		imgURL[2] = "http://www.roselip-fetish.com/img/header_rdm/campaign.jpg"; 
		imgURL[3] = "http://www.roselip-fetish.com/img/header_rdm/campaign.jpg"; 
		imgURL[4] = "http://www.roselip-fetish.com/img/header_rdm/campaign.jpg"; 
		n = Math.floor(Math.random()*jumpURL.length); 
		document.write("<a href='"+jumpURL[n]+"'>"); 
		document.write("<img src='"+imgURL[n]+"' border='0'>"); 
		document.write("</a>");
		document.write("</p>");
		div_close();
	}

function headRdm2(){
	div_cls("camp_top");
		jumpURL = new Array(); imgURL = new Array();
		jumpURL[0] = "http://www.roselip-fetish.com/sp/"; 
		jumpURL[1] = "http://www.roselip-fetish.com/vip_pro/"; 
		jumpURL[2] = "http://www.roselip-fetish.com/vip_pic/"; 
		jumpURL[3] = "http://www.roselip-fetish.com/camp_100814/"; 
		jumpURL[4] = "http://www.roselip-fetish.com/mrank/"; 
		imgURL[0] = "http://www.roselip-fetish.com/img/header_rdm/sp.jpg"; 
		imgURL[1] = "http://www.roselip-fetish.com/img/header_rdm/vip.jpg"; 
		imgURL[2] = "http://www.roselip-fetish.com/img/header_rdm/vippic.jpg"; 
		imgURL[3] = "http://www.roselip-fetish.com/img/header_rdm/campaign.jpg"; 
		imgURL[4] = "http://www.roselip-fetish.com/img/header_rdm/mnavi.gif"; 
		n = Math.floor(Math.random()*jumpURL.length); 
		document.write("<a href='"+jumpURL[n]+"'>"); 
		document.write("<img src='"+imgURL[n]+"' border='0'>"); 
		document.write("</a>");
		document.write("</p>");
		div_close();
	}

///////////////////// RECO MOVIES 6 ///////////////////////////////////

function siTop(){

	siList = new Array(sTop["sTop1"],sTop["sTop2"],sTop["sTop3"],sTop["sTop4"],sTop["sTop5"],sTop["sTop6"],sTop["sTop7"],sTop["sTop8"]);

document.write('<p class="bar_reco"><img src="http://www.roselip-fetish.com/img/bar_reco.gif"></p>');
document.write('<div class="reco6_main">');

for(i=0;i<8;i++){
	document.write('<div class="reco6_box">');
		document.write('<div class="reco6_pic">');
			document.write('<a href="http://www.roselip-fetish.com/movie/?num=',siList[i],'"><img src="http://www.roselip-fetish.com/movie/',siList[i],'/members.jpg"></a>');
		document.write('</div>');

		document.write('<div class="reco6_txt_box">');
			document.write('<div class="reco6_title">');

			if(mData[siList[i]]["vip"]){
				if(mData[siList[i]]["vip"] == "0"){icon = "reg";}
				else if(mData[siList[i]]["vip"] == "1"){icon = "vip";}
				else{icon = "non";}
				document.write('<span class="reco6_icon"><img src="/img/icon_',icon,'.gif" /></span>');
			}

			document.write('&nbsp;<a href="http://www.roselip-fetish.com/movie/?num=',siList[i],'">',mData[siList[i]]["title"],'</a></div>');
			document.write('<p class="reco6_name"><span style="font-weight:bold">痴女名：</span>&nbsp; ',mData[siList[i]]["model"],'</p>');
			document.write('<p class="reco6_name"><span style="font-weight:bold">作品紹介：</span>&nbsp; ',mData[siList[i]]["description"].substr(0,180),'...</p>');
		document.write('</div>');

		document.write('<div class="reco6_entbtn">');
			document.write('<p class="reco6_enter"><a href="http://www.roselip-fetish.com/movie/?num=',siList[i],'">もっと詳しく見る＞＞</a></p>');
		document.write('</div>');
	document.write('</div>');
	}
//document.write('<p class="all_enter"><a href="http://www.roselip-fetish.com/digest/?cate=digestlist&page=1">全動画をまとめて見る</a></p>');
document.write('</div>');
}



function bottomNavi(){
	document.write('<ul>');
	document.write('<li><img src="http://www.roselip-fetish.com/img/b_navi/b_navi00.jpg" /></li>');
	document.write('<li><p class="b_tab"><a href="http://www.roselip-fetish.com/" style="background-image: url(http://www.roselip-fetish.com/img/b_navi/b_navi01.jpg)">navi01</a></p></li>');
	document.write('<li><p class="b_tab"><a href="http://www.roselip-fetish.com/tour/?cate=complist&page=1" style="background-image: url(http://www.roselip-fetish.com/img/b_navi/b_navi02.jpg)">navi02</a></p></li>');
	document.write('<li><p class="b_tab"><a href="http://www.roselip-fetish.com/bsc/?cate=complist&page=1" style="background-image: url(http://www.roselip-fetish.com/img/b_navi/b_navi03.jpg)">navi03</a></p></li>');
	document.write('<li><p class="b_tab"><a href="http://www.roselip-fetish.com/sp_pic/" style="background-image: url(http://www.roselip-fetish.com/img/b_navi/b_navi05.jpg)">navi05</a></p></li>');
	document.write('<li><p class="b_tab"><a href="http://www.roselip-fetish.com/vip_pro/" style="background-image: url(http://www.roselip-fetish.com/img/b_navi/b_navi06.jpg)">navi06</a></p></li>');
	document.write('<li><p class="b_tab"><a href="http://www.roselip-fetish.com/chijo/?cate=chijolist&page=1" style="background-image: url(http://www.roselip-fetish.com/img/b_navi/b_navi04.jpg)">navi04</a></p></li>');
	document.write('<li><p class="b_tab"><img src="http://www.roselip-fetish.com/img/b_navi/b_navi07.jpg" /></p></li>');
	document.write('</ul>');
}




