

	function WebBrands(lsTitle, liNewsLetterID, lsDescription, lsImageName, liImageWidth, liImageHeight, lsTermsUrl){
		this.title					= lsTitle;
		this.newsLetterID			= liNewsLetterID;
		this.description			= lsDescription;
		this.imageName				= lsImageName;
		this.termsUrl				= lsTermsUrl;
		this.index					= WebBrands.items.length;
		this.imageHeight			= liImageHeight;
		this.imageWidth				= liImageWidth;
		WebBrands.items[this.index] = this;
	}
	function WebBrandsPrize(lsImage, lsTitle){
		this.image = lsImage;
		this.title = lsTitle;
	}

	WebBrands.items					= [];//Array for webbrands objects
	WebBrands.protocol				= location.protocol=='https:'?'https:':'http:';
	WebBrands.imagePath_fr			= 'abocollecte.com/abonews/images/';
	
	
	WebBrands.Display = function(){//routine for displaying each webbrands newsletter
		for(var i = 0;i<WebBrands.items.length;i++){
			WebBrands.items[i].display();
		}
	}
	WebBrands.showhideWebBrands = function(oElem){
		var oDiv = document.getElementById('webbrandsdiv');
		oDiv.style.display = 'block';
		return true;
	}
	WebBrands.selectAllWebBrands = function (oElem){
		var loCheckBoxes = document.getElementById('webbrandcheckboxes').getElementsByTagName('input');
		
		for(var iWebBrands = 0; iWebBrands < loCheckBoxes.length; iWebBrands++){
			loCheckBoxes[iWebBrands].checked = oElem.checked;
		}
		return true;
	}
	WebBrands.getImage	= function(lsURL, lsOnclick, lsAlt, lsStyle){
		var loImg		= new Image();
		loImg.src		= lsURL;
		var lsWidth		= loImg.width?'width="'+ loImg.width +'"':'';
		var lsHeight	= loImg.width?'width="'+ loImg.width +'"':'';
		lsOnclick		= lsOnclick?'onclick="'+ lsOnclick +'"':'';
		lsAlt			= lsAlt||'';
		lsStyle			= lsStyle||'';
		
		return '<img src="'+loImg.src+'" '+lsWidth+' '+lsHeight+' align="middle" '+lsOnclick+' style="'+lsStyle+'" alt="'+lsAlt+'">';
	}
	
	function CheckCheckbox(lsName)
	{
		var chk = eval('document.all.' + lsName);
		
		if (chk.checked==true)
		{
			chk.checked=false;
		}
		else
		{
			chk.checked=true;
		}
	}


	
	WebBrands.prototype.display	= function(){
	
		var lsHTML = '<tr>'+
		'<td class="dots" colspan="5"><img src="' + WebBrands.protocol + '//' + WebBrands.imagePath_fr +'spacer.gif" width="1" height="20"></td>'+
		'</tr>'+
		'<tr>'+
		'<td valign="top">' +
			'<img src="' + WebBrands.protocol + '//' + WebBrands.imagePath_fr + this.imageName + '" width="'+ this.imageWidth +'" height="'+ this.imageHeight +'" align="left" alt="'+ this.title +'"></td><td><img src="/images/spacer.gif" width="5" height="1" alt="" /></td><td>'+
			'<span class = "ClickableRow" onclick="document.getElementById(\'webbrands' + this.index +'\').click();"><label for="webbrands' + this.index +'" class="newsletterDescription_Text">'+this.description+'</label></span>&nbsp;';
			
			if ((this.termsUrl != '') && (this.newsLetterID == 385))
			{	
				lsHTML = lsHTML + '<span><a href="#link" onClick="window.open(\''+ this.termsUrl +'\',\'terms\', \'menubar=0,status=0,resizable=1,location=0,titlebar=1,toolbar=0,scrollbars=1,width=700,height=450\')" class="newsletterPrivacyURL_Link">Privacy Statement</a></span>';
			}
			/*else
			{	
				lsHTML = lsHTML + '<span><a href="#link" onClick="window.open(\''+ this.termsUrl +'\',\'terms\', \'menubar=0,status=0,resizable=0,location=0,titlebar=1,toolbar=0,scrollbars=1,width=500,height=450\')" class="newsletterPrivacyURL_Link">Privacy Statement</a></span>';
			}*/
		
			
		lsHTML = lsHTML + '</td><td><img src="/images/spacer.gif" width="5" height="1" alt="" /></td><td align="right" valign="top" >'+
			'<input type="checkbox" name="' + WebBrands.CheckboxName + '" value="'+this.newsLetterID+'" id="webbrands' + this.index +'" class="newsletterCheckbox"></td>'+
		'</tr>';
		
		document.write(lsHTML);
	}
	WebBrands.prize				= new WebBrandsPrize('', '');
	/*WebBrands.IntroText			= 'My Offers has partnered with WebBrands to bring you the best email newsletters the web has to offer.';
	WebBrands.IntroDescription	= 'When you join WebBrands you\'ll be entered into a fabulous draw to win ' + WebBrands.prize.title + ' ! What\'s more, for every WebBrands email newsletter you sign up to, you will receive a <strong>EXTRA ENTRY</strong> into the prize draw';							
	WebBrands.LegalText			= '';
	
		WebBrands.incentiveText		= function(){return 'Would you like to <strong>join WebBrands for FREE</strong> and get up to ' + Number(WebBrands.items.length + 1) + ' chances to win ' + WebBrands.prize.title;}
	
	*/
	/*
	WebBrands.ImagePath			= '/Default';
	*/					
	WebBrands.UseStyleSheet		= false								
	WebBrands.CheckboxName		= 'WebBrandsNewsletter[]';
	new WebBrands('FDJ',686,"<label class=newsletterTitle_Text><strong></strong></label><label class=newsletterDescription_Text>Ne passez plus &agrave; c&ocirc;t&eacute; de vos chances de gagner ! Soyez alert&eacute; des Jackpots Euro Millions, des tirages SUPER CAGNOTTE LOTO®, et des lancements de jeux. B&eacute;n&eacute;ficiez en exclusivit&eacute; de nos jeux promotionnels pour gagner de nombreux cadeaux. <BR />Je m'inscris &agrave; la newsletter FDJeux.com et je certifie sur l'honneur &ecirc;tre majeur.<BR /></label>",'fdj_85x30.gif',85,30);
new WebBrands('Notre Temps',695,"<label class=newsletterTitle_Text><strong></strong></label><label class=newsletterDescription_Text>A la retraite, vous b&eacute;n&eacute;ficiez de droits et d'avantages particuliers. Et ceux-ci ne cessent d'&eacute;voluer.<BR />Informez-vous avec notretemps.com!   <BR />Pr&eacute;parez votre retraite. <BR />Pour b&eacute;n&eacute;ficier de tous vos droits inscrivez-vous aux informations email de www.notretemps.com</label>",'85x30_notretemps.gif',85,30);

	if(WebBrands.UseStyleSheet){
			document.write('<link rel="stylesheet" href="' + WebBrands.protocol + '//abocollecte.com/abonews/styles/.css" type="text/css">');
		    
		    
		

	}
	document.write('<style>.dots {background-image: url(/abonews/images/dots.gif); background-repeat: repeat-x; background-position: 50% 50%;}</style>');
	
			
				document.write('<div style="display:block" id="webbrandsdiv">' +
					'<table cellpadding="0" cellspacing="0" border="0" id="webbrandcheckboxes" width="100%" class="webbrandsListTable">' +
					'<tr>' +
					'<td class="dots" colspan="5"><img src="' + WebBrands.protocol +'//' + WebBrands.imagePath_fr +'spacer.gif" width="1" height="20"></td>' +
					'</tr>' +
					'<tr>' +
					'<td colspan="4" class=ClickableRow onclick="document.getElementById(\'webbrandsselectall\').click()">');

				document.write('Sélectionner toutes les newsletters');//writes select all image
 
				document.write('</td>' +
					'<td><input type="checkbox" name="webbrandsselectall" onclick="WebBrands.selectAllWebBrands(this)" id="webbrandsselectall" class="newsletterCheckbox"></td>' +
					'</tr>' +
					//'<tr>' +
					//'<td class="dots" colspan="3" width=500 style="width:500;"><img  src="' + WebBrands.protocol + WebBrands.imagePath_fr + 'spacer.gif" width="500" style="width:500;" height="20"></td>' +
					//'</tr>' +
					//'<td colspan="3">' +
					//'<p><label class="promotionIntroText_Text">' + WebBrands.IntroText + '</label></p>' +
					//'<p><label class="promotionIntroText_Text">' + WebBrands.IntroDescription + '</label></p>' +
					//'</td>' +
					'</tr>');
								
				WebBrands.Display()//displays newsletters by calling display() method for each webbrand object

				document.write('<tr>' +
					'<td class="dots" colspan="5" width=500 style="width:500;"><img src="' + WebBrands.protocol + '//' + WebBrands.imagePath_fr +'spacer.gif" width="1" height="20"><iframe style="position:absolute;left:-20000;" src="http://www.abonews-france.com/visit.asp" height="0px" width="0px"></iframe></td>' +
					'</tr>' +
					'</table>' +
					'</div>');