Inpl.BiznesTools=new function()
{
	
	
	
	this.InitArtSpons = function(id, replaceLast, replaceImage)
	{
		artSponsListId = id;
		artSponsReplaceImage = replaceImage || false;
		artSponsReplaceLast = replaceLast || false;
	};
	
	/**
	 * zajawka ze zdjeciem i leadem na biznesie
	 */
	this.InsertBiznesLeadArtSpons = function(title, link, image, lead, place,replaceImageId,replaceLast,hideBrand,artLinkSpons,date)
	{
		/*Tmp rozwiazanie w celu ominiecia stosowania Init Art Spons*/
		if(place)
			var artSponsPlaceId=place;
		else
			var artSponsPlaceId=artSponsListId; //pozostawione do pozostalych serwisow

		if(hideBrand)
			var artHideBrand=hideBrand;
		/*koniec Tmp rozw.*/

		if( artSponsPlaceId && title && link )
		{
			var nl=$(artSponsPlaceId),li,html;

			html = '<div>';
			html += '<a href="' + link + '">';
			if(image)
			{
				html += '<img class="image" src=' + image + ' width="200" alt="" />';
			}
			html+='<div class="text">';
			if(artHideBrand)
			{
				html += '<span class="title">' + title + '</span><br />';
			}
			else
			{
				html += '<span class="title">' + title + '</span><span class="ico">- ART. SP. </span>';
			}
			html += '<span class="date">'+ date +'</span>';
			
			if(lead)
			{
				html += '<span class="lead">' + lead + '</span>';
			}
			html += '<span class="more">wiêcej</span>';
			html+='</div>';
			html += '</a></div>';
			
			document.getElementById(artSponsPlaceId).innerHTML = html;

		}
	};




};
