﻿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_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_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 winopen(URL){
window.open(URL,"_blank","width=700,height=570");
return false;
}


function subWinClose()
{
	window.opener.focus();
	window.opener.location.href = "../point.html"; //　親ウィンドウに表示するURL
	self.window.close();
}




function Submit(formName){
    document.forms[formName].submit();
}


function writeFlash(movieLocation,width,height){
  document.write('<object id="flashmast" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+width+'" height="'+height+'"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+movieLocation+'" /><param name="quality" value="high" /><embed id="flashembed" src="'+movieLocation+'" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="'+width+'" height="'+height+'"></embed></object>');
}


var ownserver ='http://www.chatfun.tv';


function setCookie(form) {
if(form.elements[0].checked) {
setViewerMode(form.elements[0].value);
} else if(form.elements[1].checked) {
setViewerMode(form.elements[1].value);
} else {
alert('モードを選択して下さい');
}
}

function writeGoodsFormInput(points) {
var user = get_user();
document.write('<input type=hidden size="4" value="');
if(user.site_id == 1020753) { // ←サイトＩＤ
if(points == 25) {
if(user.user_type == 208) { document.write("1054793"); } // F　// ←Auto Charge $50 ID 
else { document.write("1054683"); } // R　// ←$50追加ポイント用グッズID
}
if(points == 50) {
if(user.user_type == 208) { document.write("1054803"); }// F　// ←Auto Charge $100 ID 
else { document.write("1054703"); } // R　// ←$100追加ポイント用グッズID
}
if(points == 110) {
if(user.user_type == 208) { document.write("1054813"); } //F　// ←Auto Charge $200 ID 
else { document.write("1054723"); } // R　// ←$200追加ポイント用グッズID
}
if(points == 170) {
if(user.user_type == 208) { document.write("1054823"); }//F　// ←Auto Charge $300 ID 
else { document.write("1054743"); } //R　// ←$300追加ポイント用グッズID
}
if(points == 285) {
if(user.user_type == 208) { document.write("1042541"); }//F　// ← *AutoCharge$500ID
else { document.write("1042531"); } //R　// ← *$500追加ポイント用GoodsID
}
}
document.write('" name="goods_id">');
}


function openViewersChatFS (performer) {
var winconfig = "left=0, Top=0, width=" + 800 + ", height=" + 700 + ", menubar=0, resizable=yes, toolbar=0, scrollbars=1, status=0";
openAppWindow('/viewers/vc_frameset.shtml?'+performer, performer, 0, 0, winconfig);
}




var all_categories = new Categories;
var online_categories = new Categories;
all_categories.fill(performers);
online_categories.fill(online_performers);





ranimg = new Array();
ranimg[0]="images/topbanner01.jpg";
ranimg[1]="images/topbanner02.jpg";
ranimg[2]="images/topbanner03.jpg";
ranimg[3]="images/topbanner04.jpg";
ranimg[4]="images/topbanner05.jpg";
ranimg[5]="images/topbanner06.jpg";
ranimg[6]="images/topbanner07.jpg";
ranimg[7]="images/topbanner08.jpg";
ranimg[8]="images/topbanner09.jpg";
ranimg[9]="images/topbanner10.jpg";
xx = Math.floor(ranimg.length*Math.random());
ranimg = ranimg[Math.floor(xx)];
document.write ('<style type="text/css"><!--#header {background-image: url("'+ ranimg +'");background-position: center;}--></style>'); 





ranimg2 = new Array();
ranimg2[0]="../images/topbanner01.jpg";
ranimg2[1]="../images/topbanner02.jpg";
ranimg2[2]="../images/topbanner03.jpg";
ranimg2[3]="../images/topbanner04.jpg";
ranimg2[4]="../images/topbanner05.jpg";
ranimg2[5]="../images/topbanner06.jpg";
ranimg2[6]="../images/topbanner07.jpg";
ranimg2[7]="../images/topbanner08.jpg";
ranimg2[8]="../images/topbanner09.jpg";
ranimg2[9]="../images/topbanner10.jpg";
xx = Math.floor(ranimg2.length*Math.random());
ranimg2 = ranimg2[Math.floor(xx)];
document.write ('<style type="text/css"><!--#memberheader {background-image: url("'+ ranimg2 +'");background-position: center;}--></style>'); 





function pulldown_lang() {
document.write('<SELECT name="menu" onChange="location.href=value;">');
document.write('<option value="#">外人さん</option>');
document.write('<OPTION value="eng.html">英語</option>');
document.write('<OPTION value="kor.html">韓国語</option>');
document.write('<OPTION value="chn.html">中国語</option>');
document.write('<OPTION value="fra.html">フランス語</option>');
document.write('<OPTION value="spa.html">スペイン語</option>');
document.write('<OPTION value="ita.html">イタリア語</option>');
document.write('</SELECT>');
　　}


function pulldown_age() {
document.write('<SELECT name="menu" onChange="location.href=value;">');
document.write('<option value="#">年齢</option>');
document.write('<OPTION value="age18.html">18～20歳</option>');
document.write('<OPTION value="age20.html">20～25歳</option>');
document.write('<OPTION value="age26.html">26～30歳</option>');
document.write('<OPTION value="age2.html">20代</option>');
document.write('<OPTION value="age3.html">30代</option>');
document.write('<OPTION value="age4.html">40代</option>');
document.write('<OPTION value="age5.html">50代～</option>');
document.write('</SELECT>');
　　}


function pulldown_job() {
document.write('<SELECT name="menu" onChange="location.href=value;">');
document.write('<option value="#">職業</option>');
document.write('<OPTION value="model.html">モデル・キャンギャル</option>');
document.write('<OPTION value="ol.html">ＯＬ</option>');
document.write('<OPTION value="student.html">学生</option>');
document.write('<OPTION value="neat.html">フリーター</option>');
document.write('<OPTION value="wife.html">人妻</option>');
document.write('<OPTION value="nojob.html">その他</option>');
document.write('<OPTION value="secretjob.html">ひみつ</option>');
document.write('</SELECT>');
　　}


function pulldown_area() {
document.write('<SELECT name="menu" onChange="location.href=value;">');
document.write('<option value="#">ご近所さん</option>');
document.write('<OPTION value="hokkaido.html">北海道</option>');
document.write('<OPTION value="tohoku.html">東北</option>');
document.write('<OPTION value="kanto.html">関東</option>');
document.write('<OPTION value="chubu.html">中部</option>');
document.write('<OPTION value="kansai.html">関西</option>');
document.write('<OPTION value="shikoku.html">四国</option>');
document.write('<OPTION value="kyushu.html">九州/沖縄</option>');
document.write('<OPTION value="oversea.html">海外</option>');
document.write('<OPTION value="secretarea.html">ひみつ</option>');
document.write('</SELECT>');
　　}


function pulldown_category() {
document.write('<SELECT name="menu" onChange="location.href=value;">');
document.write('<option value="#">エッチの趣味</option>');
document.write('<OPTION value="hfav1.html">チャットでエッチ…一緒にいきたい</option>');
document.write('<OPTION value="hfav2.html">見せるのが好きなの</option>');
document.write('<OPTION value="hfav3.html">私 人妻、濡れてるの…</option>');
document.write('<OPTION value="hfav4.html">巨乳ですっ</option>');
document.write('<OPTION value="hfav5.html">イメージプレイ・コスプレ好き集合！</option>');
document.write('<OPTION value="hfav6.html">透き通る肌の私</option>');
document.write('<OPTION value="hfav7.html">チャットで調教して</option>');
document.write('<OPTION value="hfav8.html">ルックス・スタイル自信あります</option>');
document.write('<OPTION value="hfav9.html">奴隷クン募集 Ψ</option>');
document.write('<OPTION value="hfav10.html">私、実は××なんです</option>');
document.write('</SELECT>');
　　}





function pulldown_lang_s() {
document.write('<SELECT name="menu" onChange="location.href=value;">');
document.write('<option value="#">外人さん</option>');
document.write('<OPTION value="eng.shtml">英語</option>');
document.write('<OPTION value="kor.shtml">韓国語</option>');
document.write('<OPTION value="chn.shtml">中国語</option>');
document.write('<OPTION value="fra.shtml">フランス語</option>');
document.write('<OPTION value="spa.shtml">スペイン語</option>');
document.write('<OPTION value="ita.shtml">イタリア語</option>');
document.write('</SELECT>');
　　}


function pulldown_age_s() {
document.write('<SELECT name="menu" onChange="location.href=value;">');
document.write('<option value="#">年齢</option>');
document.write('<OPTION value="age18.shtml">18～20歳</option>');
document.write('<OPTION value="age20.shtml">20～25歳</option>');
document.write('<OPTION value="age26.shtml">26～30歳</option>');
document.write('<OPTION value="age2.shtml">20代</option>');
document.write('<OPTION value="age3.shtml">30代</option>');
document.write('<OPTION value="age4.shtml">40代</option>');
document.write('<OPTION value="age5.shtml">50代～</option>');
document.write('</SELECT>');
　　}


function pulldown_job_s() {
document.write('<SELECT name="menu" onChange="location.href=value;">');
document.write('<option value="#">職業</option>');
document.write('<OPTION value="model.shtml">モデル・キャンギャル</option>');
document.write('<OPTION value="ol.shtml">ＯＬ</option>');
document.write('<OPTION value="student.shtml">学生</option>');
document.write('<OPTION value="neat.shtml">フリーター</option>');
document.write('<OPTION value="wife.shtml">人妻</option>');
document.write('<OPTION value="nojob.shtml">その他</option>');
document.write('<OPTION value="secretjob.shtml">ひみつ</option>');
document.write('</SELECT>');
　　}


function pulldown_area_s() {
document.write('<SELECT name="menu" onChange="location.href=value;">');
document.write('<option value="#">ご近所さん</option>');
document.write('<OPTION value="hokkaido.shtml">北海道</option>');
document.write('<OPTION value="tohoku.shtml">東北</option>');
document.write('<OPTION value="kanto.shtml">関東</option>');
document.write('<OPTION value="chubu.shtml">中部</option>');
document.write('<OPTION value="kansai.shtml">関西</option>');
document.write('<OPTION value="shikoku.shtml">四国</option>');
document.write('<OPTION value="kyushu.shtml">九州/沖縄</option>');
document.write('<OPTION value="oversea.shtml">海外</option>');
document.write('<OPTION value="secretarea.shtml">ひみつ</option>');
document.write('</SELECT>');
　　}


function pulldown_category_s() {
document.write('<SELECT name="menu" onChange="location.href=value;">');
document.write('<option value="#">エッチの趣味</option>');
document.write('<OPTION value="hfav1.shtml">チャットでエッチ…一緒にいきたい</option>');
document.write('<OPTION value="hfav2.shtml">見せるのが好きなの</option>');
document.write('<OPTION value="hfav3.shtml">私 人妻、濡れてるの…</option>');
document.write('<OPTION value="hfav4.shtml">巨乳ですっ</option>');
document.write('<OPTION value="hfav5.shtml">イメージプレイ・コスプレ好き集合！</option>');
document.write('<OPTION value="hfav6.shtml">透き通る肌の私</option>');
document.write('<OPTION value="hfav7.shtml">チャットで調教して</option>');
document.write('<OPTION value="hfav8.shtml">ルックス・スタイル自信あります</option>');
document.write('<OPTION value="hfav9.shtml">奴隷クン募集 Ψ</option>');
document.write('<OPTION value="hfav10.shtml">私、実は××なんです</option>');
document.write('</SELECT>');
　　}

