function list_online2(performers, pop, perLine){
 var perLine=perLine;
 performers.list_smpl(perLine, pop);
}

Performers.prototype.list_smpl = function(perLine, pop, popUrl, popName, popWidth, popHeight, noImg, online_only) { 
	
	if(!popUrl) {
		var popUrl = "affil_pop"+pop+".html"; //"preview.html";
		//var popUrl = "preview.html";
		var popName	= "exFreeView";
		if(typeof(popWidth) == "undefined") {
		  var popWidth	= 650;
		}
		if(typeof(popHeight) == "undefined") {
		  var popHeight	= 510;
		}
		var winconfig	= false;

		if(document.location.href.indexOf('/viewers/') != -1 ) {
		//	popUrl = "preview.html";
			popName = '';
			winconfig = "left=0, Top=0, width=" + screen.width + ", height=" + screen.height + ", menubar=0, resizable=yes, toolbar=0, scrollbars=0, status=0"; 
		}
		var url = popUrl;
		var wname = popName;
		with(this) {
			if(length) {
				document.writeln('<tr>');
 
				var count;// = 1;
				var keys = new Array();
				var i = 0;
				for(var perf in performers) {
					keys[i++] = perf;
				} 
				keys.sort(randomizeOrder);
				
				// GO THROUGH ALL PERFORMERS
				var fls_cnt = 0;
				var lst_tot = perLine - 3;
				if(lst_tot <= 0) { lst_tot = 0; }
				var diff = keys.length - perLine;
				if(diff <= 0) { lst_tot = -1; }
				if(typeof(online_only) != 'undefined' || online_only == '') { count = 1; }
				for(i=0; i < keys.length; i++) {
					var linebreak =((count%perLine) == 0);
					var flsbreak = (fls_cnt == lst_tot);
					var k = keys[i];
					
					with(performers[k]) {
						if(popUrl.indexOf('?') == -1) url = popUrl + "?" + username;
						if(popName == '') wname = username;

						if(typeof(online_only)  == 'undefined' || online_only == ''){
							if(i == 0) {
								document.writeln('<td colspan="2">');
								document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="262" height="159">');
								document.writeln('<param name="movie" value="/test/flash/movie.swf">');
								document.writeln('<param name="quality" value="high">');
								document.writeln('<embed src="/test/flash/movie.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="262" height="159"></embed>');
								document.writeln('</object>');
								document.writeln('</td>');
							}
						}

						document.writeln('<td width="25%" align="center" valign="middle">');
						document.writeln('<table width="126" border="0" cellpadding="0" cellspacing="0" align="center">');
						document.writeln('<tr align="center">');
						document.writeln('<td width="25%" height="127" align="center" valign="top" nowrap background="images/online_girls/online_girls_bg1_01.jpg">');
						document.writeln('<table width="118" border="0" align="center" cellpadding="0" cellspacing="0">');


// USERNAME and AGE
						document.writeln('<tr>');
						document.writeln('<td width="97" height="20" align="center" valign="bottom">');
						document.writeln(username);
						document.writeln('</td>');
						if(getAtt('age_x')) {
							document.writeln('<td width="11" height="20" align="right" valign="bottom" class="girlslist">');
							document.writeln(getAtt('age_x'));
							document.writeln('</td><td width="12" rowspan="3" align="right" valign="bottom" class="girlslist"><img src="images/blank.gif" width="10" height="1"></td>');
  						}
						document.writeln('</tr>');

// IMAGE
						document.writeln('<tr>');
						document.writeln('<td colspan="3" align="center" valign="bottom">');
						document.writeln('<div align="center">');
     						document.writeln('<A href="javascript:;" onClick="javascript:openAppWindow(\''+url+'\',\''+wname+'\','+popWidth+','+popHeight+')">');

						document.writeln('<img src="http://imageup.exshot.com' + getAttValueByAttName('live_thumbnail') + '" width="108" height=81 class="girlBox"></a>');
						document.writeln('</div></td>');
						document.writeln('</tr>');

// LINK TO PREVIEW

						document.writeln('<tr valign="top">');
	// CHANGED
						document.writeln('<td height="17" colspan="3" valign="center">');
						document.writeln('<a href="javascript:;" onClick="javascript:openAppWindow(\''+url+'\',\''+wname+'\','+popWidth+','+popHeight+')">');
						document.writeln('<img src="images/icons/b_freeview.gif" width="69" height="11" border="0"></a>');
						if(private_performers.getPerformer(username))
						  document.writeln('<img src="images/icons/2shot_icon.gif" width=35 height=11 border=0></a>');
						else if(busy_performers.getPerformer(username))
						  document.writeln('<img src="images/icons/in_session.gif" width=30 height=11 border=0></a>');
						
						document.writeln('</td></tr></table>');
						document.writeln('</td></tr>');
						document.writeln('</table></td>');
					} 
					if(linebreak) {
						document.writeln('<tr>');
					}
					if(typeof(online_only)  == 'undefined' || online_only == ''){
						if(flsbreak && !linebreak) {
							document.writeln('<tr>');
							count = 0;
						}
					}
					count++;
					fls_cnt++;
				}

			} else {
				if(noImg) {
					document.writeln('<tr><td valign=top><img src="images/icons/'+ noImg + '"></td></tr>');
				} else {
					document.writeln('<tr><td valign=top><img src="images/icons/no_online_girls.jpg"></td></tr>');
				}
			}
		}
	}
}
