//DTI 流用関数　ここからif(typeof(ownserver) == "undefined") {	ownserver = "http://aff-jp.dxlive.com";}var random_keys;Performers.prototype.sort2 = function() {	this.performers.sort(randomizeOrder);}Performers.prototype.list2= function(perLine, popUrl, popName, popWidth, popHeight, howMany, keepOrder, imgType, type, firstIndex) {	var popWidth = 550;	var popHeight = 618;	if(!popUrl) {		var popUrl = "launch_free.html";		var popName = 'FreeView';		var popWidth = 550;		var popHeight = 618;		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( (typeof(imgType) == "undefined") || (imgType == "") ) {		imgType = "live_thumbnail";	}	var thumbwid = 80;	var thumbheig= 60;	if(imgType == "vctp_thumbnail") {		thumbwid = 120;		thumbheig= 90;	}	if(imgType == "snapshot") {		thumbwid = 160;		thumbheig= 120;	}	var url = popUrl;	var wname = popName;	with (this) {		if (length) {			document.writeln('<TR>');			if(!keepOrder) {				var count = 1;				var keys = new Array();				var i = 0;				for (var perf in performers) {					if(type == "NEW"){						with(performers[perf]){							if( (new Date() - reg_date)/(1000*60*60*24) < 31 )								keys[i++] = perf;						}					}					else if(type == "HQ"){						with(performers[perf]){							var arr = getAttributeValueId(113);							if( getAttValueByAttName('has_hires') == 'Yes' && arr[0] == 1)								keys[i++] = perf;						}					}					else if(type == "REC"){						with(performers[perf]){							if( getAttValueByAttName('recommended') == 'Yes' )								keys[i++] = perf;						}					}					else						keys[i++] = perf;				}				keys.sort(randomizeOrder);				random_keys = keys;			}			else {				keys = random_keys;			}			if( (typeof(firstIndex) == "undefined") || (firstIndex == "") ) {				firstIndex = 0;			}			for(i = firstIndex; i < keys.length; i++) {				if( (howMany + firstIndex) && i >= (howMany + firstIndex) ) break;				var k = keys[i];				with (performers[k]) {					if(popUrl.indexOf('?') == -1) {						url = popUrl + "?"+username;					}					if(popName == '') {						wname = username;					}					var cam = (getAtt('has_hires') == '1');					var mic = (getAtt('has_mic') == '1');					var flower = (getAtt('new') == '1');					document.writeln('<TD WIDTH=120>');					document.writeln('<TABLE WIDTH=120 CELLPADDING=1 CELLSPACING=1 BORDER=0 BGCOLOR=#C2A73A><TR>');					document.writeln('<TD CLASS=f8pt BGCOLOR=#FFD515 align=center colspan=2><FONT FACE=MS Pゴシック,Osaka><A href="#" onClick="openAppWindow(\''+url+'\',\''+wname+'\','+popWidth+','+popHeight+')">' + username + '</a></FONT></TD>');					document.writeln('</TR><TR>');					document.writeln('<TD BGCOLOR=#FFF6B1 ALIGN=center colspan=2><A href="#" onClick="openAppWindow(\''+url+'\',\''+wname+'\','+popWidth+','+popHeight+')"><IMG src="http://aff-images.dxlive.com'+getAttValueByAttName(''+imgType+'')+'" alt="'+username+'" border="0" width="'+thumbwid+'" height="'+thumbheig+'"></a></TD>');					document.writeln('</TR><TR><TD WIDTH=61 BGCOLOR=#FFE54D>');					if(public_performers.getPerformer(username))						document.writeln('<IMG SRC="/e/bjk_01.gif" WIDTH=61 HEIGHT=28 BORDER=0  TITLE="パーティ中 Come here!">');					else if(private_performers.getPerformer(username))						document.writeln('<IMG SRC="/e/bjk_02.gif" WIDTH=61 HEIGHT=28 BORDER=0  TITLE="2SHOT中 Sorry...">');					else						document.writeln('<IMG SRC="/e/bjk_00.gif" WIDTH=61 HEIGHT=28 BORDER=0  TITLE="オンライン待機中">');					document.writeln('</TD><TD WIDTH=59 BGCOLOR=#FFE54D>');					document.writeln('	<TABLE WIDTH=54 CELLPADDING=0 CELLSPACING=0 BORDER=0><TR>');					var attrtext = "	<TD align=center>";					if(flower)						attrtext = attrtext + '<IMG SRC=/e/icn_01.gif WIDTH=16 HEIGHT=14 BORDER=0 TITLE="初心者">';					if(cam)						attrtext = attrtext + '<IMG SRC=/e/icn_02.gif WIDTH=16 HEIGHT=14 BORDER=0 TITLE="高画質">';					if(mic)						attrtext = attrtext + '<IMG SRC=/e/icn_03.gif WIDTH=16 HEIGHT=14 BORDER=0 TITLE="音声付き">';					attrtext = attrtext + '<IMG SRC=/e/blank.gif WIDTH=1 HEIGHT=14 BORDER=0>';					attrtext = attrtext + '</TD></TR>';					document.writeln(attrtext);					document.writeln('	<TR><TD align=center><A HREF="javascript:subwindow(\'/profile.html?' + username + '\',\'prev_profwin\',\'WIDTH=550,HEIGHT=618\')"><IMG SRC="/e/prof_b.gif" WIDTH=54 HEIGHT=12 BORDER=0 TITLE="プロフィール"></a></TD></TR>');					document.writeln('	</TABLE>');					document.writeln('</TD>');					document.writeln('</TR></TABLE>');					document.writeln('</TD>');				}			}		}	}}function writeFreeChat2(document, performer, configuration) {	var bst = "";	if(checkBan(performer.username)) bst = "&ban_arg=true";	if(busy_performers.getPerformer(performer.username)) bst += "&busy_arg=true";	document.writeln('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="480" height="360" id="video_chat_free" align="">');	document.writeln('<PARAM name="movie" value="' + vctp_url + '/flash/vctp_live.swf?performer_arg=' + performer + '&vctp_url=' + vctp_url + '&ip_arg=' + configuration.Ip + '&copyright_arg=' + configuration.Copyright + '&server_arg=' + configuration.Server + '&langId_arg=' + configuration.Language + '&photo_arg=http://aff-images.dxlive.com' + performer.getAttValueByAttName('picture') + bst + '">');	document.writeln('<PARAM name="loop" value="false">');	document.writeln('<PARAM name="menu" value="false">');	document.writeln('<PARAM name="quality" value="high">');	document.writeln('<PARAM name="bgcolor" value="#000000">');	document.writeln('<EMBED src="' + vctp_url + '/flash/vctp_live.swf?performer_arg='+performer+'&photo_arg=http://aff-images.dxlive.com'+performer.getAttValueByAttName('picture')+ '&vctp_url=' + vctp_url + '&ip_arg='+configuration.Ip+'&copyright_arg='+configuration.Copyright+'&server_arg='+configuration.Server+'&langId_arg='+configuration.Language+bst+'" quality="high" bgcolor="#000000" width="480" height="360" name="video_chat" align="" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer"></EMBED>');	document.writeln('</OBJECT>');}//DTI 流用関数　ここまで
