function dhlBanner6945(){
	this.intNbX = 1;
	this.intNbY = 1;
	this.strModelFile = "58_6_17_";
	this.intModelFile = 0;
	this.strJsModelFile = '';
	this.merchantId = 7207;
	this.pageId = 4;
	this.blnDisplayed = false;
	this.intNbMaxModel = 100;
	this.strSiteUrl = 'www.livelatina.com/_live/';
	this.strSiteDomain = 'www.livelatina.com';
	this.strSiteMainDir = '_live';
	this.strPageTarget = '_self';
	this.intProgram = '';
	this.intCampain = '';
	this.strExternalUserKey = (typeof(strInoExternalUserKey) != 'undefined'?strInoExternalUserKey:'');
	
	dhlBanner6945.prototype.dhlGetMoreModel = function(){
		document.write('<scr' + 'ipt src="http://' + this.strSiteDomain + '/shared/dynamicbanner/model/model_' + this.strModelFile + this.intModelFile + '.js?rnd=' + Math.random() + '"></scr' + 'ipt>');
		this.intModelFile++;
	}

	dhlBanner6945.prototype.GetDisplayed = function(){
		return this.blnDisplayed;
	}

	dhlBanner6945.prototype.SetDisplayed = function(attblnValue){
		this.blnDisplayed = attblnValue;
	}
	
	dhlBanner6945.prototype.dhlStartBanner = function ()
	{
		document.write('<style type="text/css">' + 
			'	#page6945 #ll-banner {' +
			'		background:#fff;' +
			'		width:120px;' +
			'		text-align:left;' +
			'	}' +
			'	#page6945 #ll-banner * {' +
			'		margin:0;' +
			'		padding:0;' +
			'		font-family: Arial, Helvetica, sans-serif;font-size: 9px;' +
			'		color: #A30D0D;' +
			'		font-weight: bold;' +
			'	}' +
			'	#page6945 #ll-banner a {' +
			'		font-size: 10px;' +
			'		color: #006847;' +
			'	}' +
			'	#page6945 #ll-banner #top-120 {' +
			'		display:block;' +
			'		width:120px;' +
			'		height:179px;' +
			'		background:url(http://' + this.strSiteDomain + '/shared/dynamicbanner/images/2008-04-24/120_vert_top.gif) no-repeat;' +
			'	}' +
			'	#page6945 #ll-banner #bot-120 {' +
			'		display:block;' +
			'		width:120px;' +
			'		height:32px;' +
			'		background:url(http://' + this.strSiteDomain + '/shared/dynamicbanner/images/2008-04-24/120_vert_bot.gif);' +
			'	}' +
			'	#page6945 #ll-banner .modelBox {' +
			'		width:120px;' +
			'		text-align:center;' +
			'		background:#f9ca49;' +
			'		padding-bottom:10px;' +
			'	}' +
			'	#page6945 #ll-banner a img {' +
			'		border:0;' +
			'	}' +
			'	#page6945 #ll-banner a.modelInfo {' +
			'		color: #a30d0d;' +
			'	}' +
			'	#page6945 #ll-banner #top-120 a#top-link {' +
			'		display:block;' +
			'		width:120px;' +
			'		height:179px;' +
			'		position:absolute;' +
			'	}' +
			'	#page6945 #ll-banner #bot-120 a#bottom-link {' +
			'		display:block;' +
			'		width:120px;' +
			'		height:32px;' +
			'		position:absolute;' +
			'	}' +
			'</style>');
			
		var strSiteUrl = 'http://www.livelatina.com/_live/' + '?id=' + this.merchantId;
		if(this.intProgram != '')
			strSiteUrl = strSiteUrl + '&pid=' + this.intProgram;
		if(this.intCampain != '')
			strSiteUrl = strSiteUrl + '&sub=' + this.intCampain;
		if(this.strExternalUserKey != '')
			strSiteUrl = strSiteUrl + '&externaluserkey=' + this.strExternalUserKey;
		document.write('<div id="page6945">' +
								'<div id="ll-banner">' +
									'<div id="top-120"><a href="' + strSiteUrl + '" id="top-link" title=""></a></div>');
	}
	
	dhlBanner6945.prototype.dhlEndBanner = function ()
	{
		var strSiteUrl = 'http://www.livelatina.com/_live/' + '?id=' + this.merchantId;
		if(this.intProgram != '')
			strSiteUrl = strSiteUrl + '&pid=' + this.intProgram;
		if(this.intCampain != '')
			strSiteUrl = strSiteUrl + '&sub=' + this.intCampain;
		if(this.strExternalUserKey != '')
			strSiteUrl = strSiteUrl + '&externaluserkey=' + this.strExternalUserKey;
		document.write('<div id="bot-120"><a href="' + strSiteUrl + '" id="bottom-link" title=""></a></div>' +
						'</div>' +
					'</div>');
	}
	
	dhlBanner6945.prototype.dhlOutputBanner = function(arrObjModel)
	{
		if(arrObjModel)
		{
			if(arrObjModel.length < this.intNbX * this.intNbY) {
				this.dhlGetMoreModel();
			} else {
				this.dhlStartBanner();
				var intNbModel = 0;
				var first = 0
				for(var intY = 0; intY < 1; intY++)
				{
					for(var intX = 0; intX < 1; intX++)
					{
						var strModelUrl = 'http://' + this.strSiteUrl + '?p=' + this.pageId + '&m=' + arrObjModel[intNbModel].getId() + '&id=' + this.merchantId;
						if(this.intProgram != '') {
							strModelUrl = strModelUrl + '&pid=' + this.intProgram;
						}
						if(this.intCampain != '') {
							strModelUrl = strModelUrl + '&sub=' + this.intCampain;
						}
						if(this.strExternalUserKey != '')
							strModelUrl = strModelUrl + '&externaluserkey=' + this.strExternalUserKey;
						document.write('<div class="modelBox">' +
								'<a href="' + strModelUrl + '" target="' + this.strPageTarget + '"><img src="' + arrObjModel[intNbModel].getImage() + '" alt=""></a><br />' +
								'<a href="' + strModelUrl + '" target="' + this.strPageTarget + '" class="modelInfo">' + arrObjModel[intNbModel].getNickname() + ', ' + arrObjModel[intNbModel].getAge() + 'yo</a><br />' +
								'<a href="' + strModelUrl + '" target="' + this.strPageTarget + '" class="liveFreeChat">Chat with her</a>' +
							'</div>');
						first = 1;
			 			intNbModel++;
					}
				}
				this.SetDisplayed(true);
				this.dhlEndBanner();
			}
		}
	}
}

function dhlLoadModelList(){
	document.write('<scr' + 'ipt src="http://www.livelatina.com/shared/dynamicbanner/model.js?rnd=' + Math.random() + '"></scr' + 'ipt>');
	objDHLCallBack.dhlAdd(objDHLBanner6945);
}


if(typeof objDHLCallBack == 'undefined')
{
	function dhlBannerCallBack(){
		var arrCallBack = null;
		dhlBannerCallBack.prototype.dhlAdd = function(attobjCallBack){
			if(!this.arrCallBack)
				this.arrCallBack = new Array(attobjCallBack);
			else
				this.arrCallBack.push(attobjCallBack);
		}

		dhlBannerCallBack.prototype.callBack = function(arrModel){
			for(var intI=0; intI < this.arrCallBack.length; intI++)
				if(!this.arrCallBack[intI].GetDisplayed())
					this.arrCallBack[intI].dhlOutputBanner(arrModel);
		}
	}
	var objDHLCallBack = new dhlBannerCallBack();
}

var objDHLBanner6945 = new dhlBanner6945();
dhlLoadModelList();