function dhlBanner7770(){
	this.intNbX = 6;
	this.intNbY = 1;
	this.strModelFile = "1_0_19_";
	this.intModelFile = 0;
	this.strJsModelFile = '';
	this.merchantId = 4897;
	this.pageId = 4;
	this.blnDisplayed = false;
	this.intNbMaxModel = 100;
	this.strSiteUrl = 'www.privatefeeds.com/_liveroom/';
	this.strSiteDomain = 'www.privatefeeds.com';
	this.strSiteMainDir = '_liveroom';
	this.strPageTarget = '_self';
	this.intProgram = '';
	this.intCampain = '';
	this.strExternalUserKey = (typeof(strInoExternalUserKey) != 'undefined'?strInoExternalUserKey:'');
	
	dhlBanner7770.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++;
	}

	dhlBanner7770.prototype.GetDisplayed = function(){
		return this.blnDisplayed;
	}

	dhlBanner7770.prototype.SetDisplayed = function(attblnValue){
		this.blnDisplayed = attblnValue;
	}

	dhlBanner7770.prototype.dhlStartBanner = function (){
		document.write('<st' +  'yle type="text/css"><!'+ '--'+
			'.dhlTablebg7770 {background-color: #990000;}' +
			'.dhlTdModel7770 {padding-bottom:3px; padding-left:3px; padding-right:3px; padding-top:3px;}' +
			'.notneeded_dhlNameText7770 {font-family: Arial, Helvetica, sans-serif; font-size: 12px;color: ;}' +
			'a.dhl7770:link {border-style: none;}' +
			'a.dhl7770:visited {border-style: none;}' +
			'a.dhl7770:hover {border-style: none;}' +
			'a.dhl7770:active {border-style: none;}' +
			'.dhlbodyborder7770 {border-width: thin; border-style: solid;	border-color: #EFEBEF; }' +
			'.dhlImg7770 { border-color: #AAAAAA; border-width: 1px;	border-style: solid; }' +
			'--></st' + 'yle>');
		document.write('<div name="previewDiv7770" id="previewDiv7770" style="width:520;height:170;overflow:auto;"><table border="0" cellspacing="0" cellpadding="0" class="dhlTablebg7770">');
	}

	dhlBanner7770.prototype.dhlEndBanner = function (){
		document.write('</table></div>');
	}

	dhlBanner7770.prototype.dhlOutputBanner = function(arrObjModel)
	{
		if(arrObjModel)
		{
			if(arrObjModel.length < this.intNbX * this.intNbY)
				this.dhlGetMoreModel();
			else
			{
				this.dhlStartBanner();
				var intNbModel = 0;
				for(var intY = 0; intY < this.intNbY && intNbModel < this.intNbMaxModel; intY++)
				{
					document.write('<tr>' +
										'<td>'+
											'<table border="0" class="dhlTablebg7770" cellspacing="0" cellpadding="0">'+
												'<tr> ');
					for(var intX = 0; intX < this.intNbX && intNbModel < this.intNbMaxModel; 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(
							'<td class="dhlTdModel7770"> ' +
									'<a href="' + strModelUrl + '" class="dhl7770" target="' + this.strPageTarget + '"><img src="http://' + this.strSiteDomain + arrObjModel[intNbModel].getImage() + '" alt="" class="dhlImg7770"/></a>'+
							 '</td>'
							 );
					  intNbModel++;
					}
					document.write('</tr> ' +
									'</table>' +
									'</td>' +
								'</tr>');
					this.SetDisplayed(true);
				}
				this.dhlEndBanner();
			}
		}
	}
}

function dhlLoadModelList(){
	document.write('<scr' + 'ipt src="http://www.privatefeeds.com/shared/dynamicbanner/model.js?rnd=' + Math.random() + '"></scr' + 'ipt>');
	objDHLCallBack.dhlAdd(objDHLBanner7770);
}

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 objDHLBanner7770 = new dhlBanner7770();
dhlLoadModelList();

