// EXtended Vars

	if (typeof(ownserver) == "undefined") {
		ownserver = "http://aff-jp.dxlive.com";
	}

	function openAppWindow(url, name, width, height, wincfg) {
		if (!wincfg) wincfg = 'resizable=yes, toolbar=no, scrollbars=auto, personalbar=no, menubar=no, width='+width+', height='+height;
		var w = window.open(url,name,wincfg);
		w.focus();
	}


Performers.prototype.list= function(perLine, popUrl, popName, popWidth, popHeight, howMany, keepOrder, imgType, type, listType ,memArea) {

		if (!popUrl) {
			var popUrl = "launch_free.html";
			var popName = 'FreeView';
			var popWidth = 760;
			var popHeight = 600;
			var winconfig = false;

			if (document.location.href.indexOf('/viewers/') != -1 || document.location.href.indexOf('/video_chat/') != -1 ) {
				popUrl = "vc_frameset.shtml";
				popName = '';
				winconfig = "left=0, Top=0, width=" + screen.width + ", height=" + screen.height + ", menubar=0, resizable=yes, toolbar=0, scrollbars=0, status=0";
			}
		}

		if (imgType == "live_thumbnail") {
			thumbwid = 80;
			thumbheig= 60;
		}
		if (imgType == "vctp_thumbnail") {
			thumbwid = 100;
			thumbheig= 75;
		}
		if (imgType == "snapshot") {
			thumbwid = 160;
			thumbheig= 120;
		}

		var url = popUrl;
		var wname = popName;

	with (this) {
		if (length) {
			var count=1;
			var keys = new Array();
			var i = 0;

			for (var perf in performers) {
				if (type == "NEW") {
					with(performers[perf]) {
						if (getAtt('new') == '1')
						keys[i++] = perf;
					}

				} else if (type == "HQ") {
					with(performers[perf]) {
						//var arr = getAttributeValueId(113);
						if ( getAtt('has_hires') == '1' && getAtt('has_mic') == '1')
						keys[i++] = perf;
					}

				} else if (type == "EN") {
					with(performers[perf]) {
						if ( getAtt('language') == '2')
						keys[i++] = perf;
					}

				} else if ( type == "REC" ) {
					with(performers[perf]) {
						if ( getAtt('recommended') == '1' || getAtt('recommended') > 0)
						keys[i++] = perf;
					}

				} else {
					keys[i++] = perf;
				}
			}

			if (!keepOrder) { keys.sort(randomizeOrder); }

			for(i = 0; i < keys.length; i++) {
				if (howMany && i >= howMany) {
					break;
				}else{
					var linebreak=((count%perLine)==0);
					var k = keys[i];
					with (performers[k]) {
						if (popUrl.indexOf('?') == -1) { url = popUrl + "?"+username; }
						if (popName == '') { wname = username; }

						if ( viewers >= 3 && viewers <= 5 ) {
							document.write('<div class="pfEachBox level1 '+listType+' clear">');

						} else if (viewers >=6 && viewers <= 9) {
							document.write('<div class="pfEachBox level2 '+listType+' clear">');

						} else if (viewers >=10 && viewers <= 15) {
							document.write('<div class="pfEachBox level3 '+listType+' clear">');

						} else if (viewers > 16 ) {
							document.write('<div class="pfEachBox level4 '+listType+' clear">');

						} else {
							document.write('<div class="pfEachBox level0 '+listType+' clear">');
						}

						if (this.icons) {
					        var cam = (getAtt('has_hires') == '1');
							var flower = (getAtt('new') == '1');
							var rec = (getAtt('recommended') == '1');
							var rec2 = (getAtt('recommended') == '2');
							var rec3 = (getAtt('recommended') == '3');

							if (cam) {
								document.write('<span class="pfHD" title="高画質カメラあり">高画質HD</span>');
							}
							if (flower) {
								document.write('<span class="pfNew" title="新人の女の子です">新人</span>');
							}
/*
							if (rec) {
								document.write('<span class="pfRec"><img src="' + ownserver + '/ncimg/icon_flower.gif" title="お薦め"></span>');
							}
*/
							if (rec2) {
								document.write('<span class="pfRec2" title="会員様のお勧めの女の子です">オススメ！</span>');
							}
							if (rec3) {
								document.write('<span class="pfRec3" title="オススメの中の超オススメの女の子！">超オススメ！</span>');
							}
							if (!cam && !flower && !rec && !rec2 && !rec3) {
								//document.write('');
							}
						}


						document.write('<div class="imgWrap">');
							document.write('<div class="pfImg">');
							document.write('<a href="' + popUrl + '?'+username+'"><img src="http://imageup.dxlive.com'+getAttValueByAttName(''+imgType+'')+'" title="'+username+'ちゃんのプロフページへ"></a>');
							document.write('<span class="transM"><a href="' + popUrl + '?'+username+'">'+username+'</a></span>');
							document.write('</div>');// ------pfImg
						document.write('</div>');// ------imgWrap


						document.write('<div class="pfFunc">');
							document.write('<a href="gallery.shtml?' + username + '" title="' + username + '写真集" class="gallBtn">'+ username +'ちゃんの写真集</a>');
							document.write('<a href="' + popUrl + '?'+username+'" class="profBtn">'+ username +'ちゃんのプロフィール</a>');
						document.write('</div>');// ------pfFunc


						document.write('<div class="pfIcon icoPF">');
							if (this.icons) {
								var toy = getAttributeValueId(537);
								var toy2 = getAtt('has_remote_toy2');
								var mic = (getAtt('has_mic') == '1');
								if ( mic ) {
									document.write('<img src="' + ownserver + '/ncimg/icoSound.gif" title="音声あり" />');
								}

								if (toy == 1) {
									document.write('<img src="/ncimg/icoToy.gif" title="バイブ有り未使用" />');
								} else if (toy == 2) {
									document.write('<img src="/ncimg/icoToy-blink.gif" title="バイブ有り使用中" />');
								} else if (toy2 == 1) {
									document.write('<img src="/ncimg/icon_double_toy_shake.gif" >');
								} else if (toy2 == 2) {
									document.write('<img src="/ncimg/icon_double_toy_blink.gif" >');
								}

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


						if ( public_performers.getPerformer(username) ) { //Party
							document.write('<div class="pfStat stat2" title="'+username+'パーティチャット中：入室人数'+ viewers +'">');
						} else if ( private_performers.getPerformer(username) ) { //2shot
							document.write('<div class="pfStat stat3" title="'+username+'ちゃん2ショット中！">');
						} else if ( !public_performers.getPerformer(username) && !private_performers.getPerformer(username) ) { //Online
							document.write('<div class="pfStat stat1" title="'+username+'ちゃん待機中！">');
						}
							if ( viewers > 0 && this.view_count ) {
								document.write(viewers);
							} else {
								document.write('0');
							}
						document.write('</div>');// ------pfStat


						document.write('<div class="pfIcon icoFlg">');
							var flag_files = new Array('flag-jp.gif','flag-en.gif','flag-kr.gif','flag-ch.gif','flag-fr.gif','flag-sp.gif','flag-it.gif');
							if (this.lang != "") {
								var vl = getAtt('language');
						    	var vc = 0;
						    	var vl_arr = vl.split(',');
						    	for(vid in vl_arr) {
						            if (flag_files[vl_arr[vid]-1]) {
						        		vc += 1;
										if (vc < 4) {
											//document.write("<img src='" + vctp_url + "/images/icons/"+ flag_files[vl_arr[vid]-1] +"' alt='' align=absmiddle>");
											document.write('<img src="/ncimg/' + flag_files[vl_arr[vid]-1] + '" />');
										}
						    		}
								}
							}
						document.write('</div>');// ------pfIcon icoFlg




						document.write('<div class="menFunc">');
							if ( memArea == "logon" ) {
								document.write('<a href="http://www.alivechat.tv/addfav.shtml?' + username + '" title="' + username + 'ちゃんをお気に入りに追加"><img src="/ncimg/profile/icoUserFav-on.gif" /></a>');
								document.write('<a href="http://aff-jp.dxlive.com/mailbox/compose/?toidlist=' + username + '" target="_blank" title="' + username + 'にメールする"><img src="/ncimg/profile/icoUserMailSend-on.gif" /></a>');
								document.write('<a href="http://aff-jp.dxlive.com/video/vlist/search?keyword=' + username + '&search_type=6" target="_blank" title="' + username + '無料PRビデオ"><img src="/ncimg/profile/icoUserVideo-on.gif" /></a>');
								document.write('<a href="http://jp.dxlive.com/fanclub/search?user_name=' + username + '" target="_blank" title="' + username + 'ファンクラブ"><img src="/ncimg/profile/icoUserFunclub-on.gif" /></a>');
							} else {
								document.write('<img src="/ncimg/profile/icoUserFav.gif" title="お気に入り追加[ログイン後利用可能です]" />');
								document.write('<img src="/ncimg/profile/icoUserMailSend.gif" title="メールを送る[ログイン後利用可能です]" />');
								document.write('<img src="/ncimg/profile/icoUserVideo.gif" title="無料PRビデオ[ログイン後利用可能です]" />');
								document.write('<img src="/ncimg/profile/icoUserFunclub.gif" title="ファンクラブ[ログイン後利用可能です]" />');
							}
						document.write('</div>');// ------menFunc


						document.write('</div>');// ------pfEachBox
					} // ------Line88 with
				}// ------Line86 if

				if (linebreak) { count++; }
			}// ------Line85 for

		} else {
 			document.write('現在出演中の女の子はいません。');
		}// ------Line47 if

	}// ------Line46 with

}// ------Line14 function




