/**
 * Assortment page functions. 
 */
function plantflowSelect(type, id, mainPic) {
	
	// change main pic
	$('mainpic_element').src = mainPic;
	
	// update content_right div with matching items
	new Ajax.Updater({success: 'content_right'}, '/plantfinder.web', {
		parameters: {action: 'matchingContent', id: id, type: type},
		onComplete: function(transport) {
			Cufon.refresh();
			if (pngfix) {
				correctPNG();
			}
		}
	});
	
	// update main picture
	new Ajax.Updater({success: 'photo_content'}, '/plantfinder.web', {
		parameters: {action: 'mainPic', mainPicUrl: mainPic, id: id, type: type},
		onComplete: function(transport) {
			Cufon.refresh();
			if (pngfix) {
				correctPNG();
			}
		}
	});
	
}

