function inArray2(needle, haystack) {
	var found=false;
	for (var i=0; i<haystack.length; i++) {
		if (haystack[i]==needle) found=true;
	}
	return found;
}

function getRand2(min,max,except) {
	if (typeof except=="undefined") except=new Array();
	var rand_num=Math.round(Math.random()*max);
	do {
		rand_num=Math.round(Math.random()*max);
	} while (rand_num<min || inArray2(rand_num,except));
	return rand_num;
}

var randNum=getRand2(0,23);
if (randNum<10) randNum='0'+randNum;

	temp2 = {"J":"asiat","B":"black","BU":"arab"};
	if(typeof(temp2[content_niche]) != "undefined") content_niche = temp2[content_niche];

imgSize = '100x100';
if (typeof popYesSize == "undefined") var popYesSize = '300x150';
if (popYesSize=='300x150') imgSize = '100x100';
if (popYesSize=='300x300') imgSize = '120x160';
if (popYesSize=='200x300') imgSize = '150x150';
if (popYesSize=='216x107' || popYesSize=='218x134') imgSize = '60x60';

//http://media.yesmessenger.com/js/00/models-normal-soft-150x150-no-girl.js
if (typeof content_niche=="undefined") var content_niche='';
if (!content_niche || content_niche=="") content_niche='normal';
var js_url='http://media.yesmessenger.com/js/'+randNum+'/models-'+content_niche+'-'+picType+'-'+imgSize+'-no-girl.js';

var js_url='http://www.yesmessenger.com/generateThumbs.php?size='+imgSize+'&count='+10+'&synergie=hetero&type='+picType+'&niche='+content_niche+'&animated=0&merge=0&shuffle=1';

document.write('<scr'+'ipt src="'+js_url+'"></scr'+'ipt>');
document.write('<scr'+'ipt src="http://outils.yesmessenger.com/jstools/chat_banner.js"></scr'+'ipt>');
//document.write('<scr'+'ipt src="http://outils.yesmessenger.com/pdvs/pdv65/DD_belatedPNG_0.0.8a-min.js"></scr'+'ipt>');
//document.write('<scr'+'ipt src="http://svn.carpediem.fr/devs/jan-dev/yesmessenger/outils/jstools/chat_banner.js"></scr'+'ipt>');
//document.write('<scr'+'ipt src="http://outils.yesmessenger.com/jstools/chat_banner.js?v2"></scr'+'ipt>');

