		//==============================================================================================	// void: getFlickr	//==============================================================================================		/*	Parameters:	id               : Group id for Flickr account	tagmode          : Optional but can be used to restrict the data to a specific tagline	limit            : Limit of photos to disploay	imageCapsule  	 : classname for the element that wraps the image displayed images	imageDiv         : the name of the div or html element that will contain the images	*/		function getFlickr(id,tagmode,limit,imageCapsule,imageDiv) //tagmode can be all or any 	{		// group id: id=1057413@N23 Ripleys redtrain		$.getJSON("http://api.flickr.com/services/feeds/groups_pool.gne?id="+id+"&tagmode="+tagmode+"&lang=en-us&format=json&jsoncallback=?", function(data)		{			$.each(data.items, function(i,item)			{ 						if(limit == null || limit == undefined || limit < 1)			{				limit = RipleyFlickrPhotoLimit;			}			if( i < limit)			{								var imageCap = document.createElement("li");												if( ((i + 1)%3 == 0) && i > 0)				{									imageCap.className = "last";				}				else				{					//imageCap.className = imageCapsule;				}									var image = document.createElement("img");								var squareSrc = item.media.m.replace("_m.jpg","_s.jpg"); // _s.jpg is the square image 75 X75				var bigSrc = item.media.m.replace("_m.jpg",".jpg");// _b.jpg is the big image 1024 longest side usually width				image.src = squareSrc; 				image.title = item.title;				image.width = "82";				image.height = "82";				imageCap.appendChild(image);				var anchor = document.createElement('a');				anchor.href = bigSrc;//item.link;				anchor.appendChild(image);				imageCap.appendChild(anchor);								document.getElementById(imageDiv).appendChild(imageCap);							 				 }			}); 					});	}	