<odd>
<entity uuid="http://ride-report.com/riders/export/opendd/18/" class="object" subclass="image" published="Fri, 13 Nov 2009 05:45:13 +0000" />
<metadata uuid="http://ride-report.com/riders/export/opendd/18/attr/owner_uuid/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="owner_uuid" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[http://ride-report.com/riders/export/opendd/2/]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/attr/container_uuid/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="container_uuid" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[http://ride-report.com/riders/export/opendd/15/]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/attr/title/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="title" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[Screen shot 2009-11-02 at 3.17.25 PM]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/attr/description/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="description" published="Fri, 13 Nov 2009 05:45:13 +0000" />
<metadata uuid="http://ride-report.com/riders/export/opendd/18/volatile/renderedentity/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="renderedentity" type="volatile" ><![CDATA[<div class="contentWrapper">
	<div id="tidypics_wrapper">

		<div id="tidypics_breadcrumbs">
			<a href="http://ride-report.com/riders/pg/photos/owned/Eric">Eric's photo albums</a>
>>  <a href="http://ride-report.com/riders/pg/photos/album/15/matt-amp-tiernan">Matt &amp; Tiernan</a>
 <br />
			Views: 142		</div>

		<div id="tidypics_desc">
			<br />
		</div>
		<div id="tidypics_image_nav">
			<ul>
				<li></li>
				<li><a href="http://ride-report.com/riders/pg/photos/view/19">Next &raquo;</a></li>
			</ul>
		</div>
		<div id="tidypics_image_wrapper">
			<a href="http://ride-report.com/riders/action/tidypics/download?file_guid=18&amp;view=inline" title="Screen shot 2009-11-02 at 3.17.25 PM"><img id="tidypics_image"  src="http://ride-report.com/riders/mod/tidypics/thumbnail.php?file_guid=18&amp;size=large" alt="Screen shot 2009-11-02 at 3.17.25 PM" /></a>			<div class="clearfloat"></div>
		</div>
<div id="tidypics_controls"><ul><li id="download_image"><a href="http://ride-report.com/riders/action/tidypics/download?file_guid=18">Download image</a></li>
</ul></div><div id="tidypics_phototags_list">
	<h3>In this photo</h3>
	<ul>
<li><a class='tidypics_phototag_links' id='taglink328' href='http://ride-report.com/riders/pg/photos/tagged/25'>Matt</a></li>	</ul>
</div>
<div id='tidypics_tag_instructions'>
	<div id='tidypics_tag_instruct_text'>Select area that you want to tag</div>
	<div id='tidypics_tag_instruct_button_div'><button class='submit_button' id='tidypics_tag_instruct_button' onclick='stopTagging()'>Stop tagging</button></div>
</div>
<div id="tidypics_tag_menu" class="tidypics_popup">
	<div class='tidypics_popup_header'><h3>Tag this photo</h3></div>
<div class="clearfloat"></div>
</div>
<div id="tidypics_delete_tag_menu" class="tidypics_popup">
<div class='tidypics_popup_header'><h3>Select tags to delete</h3></div>
<form  name="phototag_deletetag_form"  action="http://ride-report.com/riders/action/tidypics/deletetag" method="post" >
<input type="hidden"  name="__elgg_token"  value="a7c8d3e1b1286e562dc738b8929f51f6" /> <input type="hidden"  name="__elgg_ts"  value="1284021384" /> <input type='hidden' name='image_guid' value='18' /><label><input type="checkbox" class="input-checkboxes" name="tags[328]" value="Matt" />Matt</label><br /><input type='submit' value='Delete' class='submit_button' /><input type='button' value='Cancel' class='cancel_button' onclick='hideDeleteMenu();' /></form></div><script type="text/javascript" src="http://ride-report.com/riders/mod/tidypics/vendors/jquery.imgareaselect-0.7.js"></script>
<script type="text/javascript" src="http://ride-report.com/riders/mod/tidypics/vendors/jquery.quicksearch.js"></script>
 
<script type="text/javascript">

	var coordinates = "";
	var user_id = 0;
	var tagging = 0;

	// add to DOM as soon as ready
	$(document).ready(function () {
			$('ul#tidypics_phototag_list li').quicksearch({
				position: 'before',
				attached: 'ul#tidypics_phototag_list',
				loaderText: '',
				inputClass: 'input-filter',
				delay: 100
			});

			$('#quicksearch').submit( function () { addTag() } );
		}
	);

	// images are loaded so process tags
	$(window).load(function () {
			$('#tidypics_image').setupTags();
		}
	);

	// get tags over image ready for mouseover
	// based on code by Tarique Sani tarique at sanisoft.com - MIT and GPL licenses
	$.fn.setupTags = function() 
	{

		image = this;

		imgOffset = $(image).offset();
		imgOffset.left = parseInt(imgOffset.left) + parseInt($(image).css("border-left-width")) + parseInt($(image).css("padding-left"));
		imgOffset.top = parseInt(imgOffset.top) + parseInt($(image).css("border-top-width")) + parseInt($(image).css("padding-top"));
		
		tags = [{"x1":"347","y1":"31","width":"112","height":"109","text":"Matt","id":"328"}]; 

		$(tags).each(function(){
			appendTag(imgOffset, this);
		});
		
		$(image).hover(
			function(){
				$('.tidypics_tag').show();
			},
			function(){
				$('.tidypics_tag').hide();
			}
		);

		addTagEvents();
		
		$('.tidypics_phototag_links').hover(
			function(){
				code = this.id.substr(7); // cut off taglink to get unique id
				$('#tag'+code).show();
			},
			function(){
				code = this.id.substr(7);
				$('#tag'+code).hide();
			}
		);

		// make sure we catch and handle when the browser is resized
		$(window).resize(function () {
			$('.tidypics_tag').remove();

			imgOffset = $(image).offset();

			$(tags).each(function(){
				appendTag(imgOffset, this);
			});

			addTagEvents();
		});
	} 

	function appendTag(offset, tag)
	{
		// catch for IE when no tags available
		if (tag.id == undefined)
			return;
		
		tag_top   = parseInt(imgOffset.top) + parseInt(tag.y1);
		tag_left  = parseInt(imgOffset.left) + parseInt(tag.x1);

		tag_div = $('<div class="tidypics_tag" id="tag'+tag.id+'"></div>').css({ left: tag_left + 'px', top: tag_top + 'px', width: tag.width + 'px', height: tag.height + 'px' });

		text_top = parseInt(tag_top) + parseInt(tag.height) + 5;

		tag_text_div = $('<div class="tidypics_tag_text">'+tag.text+'</div>').css({ left: tag_left + 'px', top: text_top + 'px', width: '120px'});

		$('body').append(tag_div);
		$('body').append(tag_text_div);
	}

	function addTagEvents() 
	{
		$('.tidypics_tag').hover(
			function(){
				$('.tidypics_tag').show();
				$(this).next('.tidypics_tag_text').show();
				$(this).next('.tidypics_tag_text').css("z-index", 10000);
			},
			function(){
				$('.tidypics_tag').show();
				$(this).next('.tidypics_tag_text').hide();
				$(this).next('.tidypics_tag_text').css("z-index", 0);
			}
		);
	}


	function selectUser(id, name) 
	{
		user_id = id;
		$("input.input-filter").val(name);
	}

	function startTagging() 
	{
		if (tagging != 0)
		{
			stopTagging();
			return;
		}
		
		tagging = 1;
		
		$('#tidypics_tag_control').text("Stop tagging");
		
		showTagInstruct();
		$('#tidypics_delete_tag_menu').hide();

		$('#tidypics_image').hover(
			function(){
				$('.tidypics_tag').hide();
			},
			function(){
				$('.tidypics_tag').hide();
			}
		);

		$('img#tidypics_image').imgAreaSelect( { 
			borderWidth: 2,
			borderColor1: 'white',
			borderColor2: 'white',
			disable: false,
			hide: false,
			onSelectEnd: showTagMenu,
			onSelectStart: hideTagMenu 
			}
		);

		$('img#tidypics_image').css({"cursor" : "crosshair"});
	}

	function stopTagging() 
	{
		tagging = 0;
		
		hideTagInstruct();
		hideTagMenu();

		$('img#tidypics_image').imgAreaSelect( {hide: true, disable: true} );

		$('#tidypics_tag_control').text("Tag this photo");

		// restart tag hovering
		$('#tidypics_image').hover(
			function(){
				$('.tidypics_tag').show();
			},
			function(){
				$('.tidypics_tag').hide();
			}
		);
		
		$('img#tidypics_image').css({"cursor" : "pointer"});
	}

	function showTagMenu(oObject, oCoordenates)
	{
		offsetX = 6;
		offsetY = 10;

		imgOffset = $('#tidypics_image').offset();

		// show the list of friends
		if (oCoordenates.width != 0 && oCoordenates.height != 0) {
			coordinates = oCoordenates;
			
			_top = imgOffset.top + oCoordenates.y2 + offsetY;
			_left = imgOffset.left + oCoordenates.x1 + offsetX;

			$('#tidypics_tag_menu').show().css({
				"top": _top + "px",
				"left": _left + "px"
			});

			$(".input-filter").focus();
		}
	}


	function hideTagMenu()
	{
		$('#tidypics_tag_menu').hide();
	}

	function showTagInstruct()
	{
		offsetY = -60;
		
		divWidth = $('#tidypics_tag_instructions').width();
		imgOffset = $('#tidypics_image').offset();
		imgWidth  = $('#tidypics_image').width();
		offsetX   = parseInt((imgWidth - divWidth)/2);
		
		_top = imgOffset.top + offsetY;
		_left = imgOffset.left + offsetX;

		$('#tidypics_tag_instructions').show().css({
			"top": _top + "px",
			"left": _left + "px"
		});
	}

	function hideTagInstruct()
	{
		$('#tidypics_tag_instructions').hide();
	}

	function addTag()
	{
		// do I need a catch for no tag?

		$("input#user_id").val(user_id);
		$("input#word").val( $("input.input-filter").val() );

		coord_string  = '"x1":"' + coordinates.x1 + '",';
		coord_string += '"y1":"' + coordinates.y1 + '",';
		coord_string += '"width":"' + coordinates.width + '",';
		coord_string += '"height":"' + coordinates.height + '"';

		$("input#coordinates").val(coord_string);

		//Show loading
		//$("#tag_menu").replaceWith('<div align="center" class="ajax_loader"></div>');
	}

	function deleteTags()
	{
		offsetY = 60;
		
		stopTagging();
		
		divWidth = $('#delete_tag_menu').width();
		imgOffset = $('#tidypics_image').offset();
		imgWidth  = $('#tidypics_image').width();
		offsetX   = parseInt((imgWidth - divWidth)/2);
		
		_top = imgOffset.top + offsetY;
		_left = imgOffset.left + offsetX;

		$('#tidypics_delete_tag_menu').show().css({
			"top": _top + "px",
			"left": _left + "px"
		});
		
		$('#tidypics_image').hover(
			function(){
				$('.tidypics_tag').hide();
			},
			function(){
				$('.tidypics_tag').hide();
			}
		);
	}
	
	function hideDeleteMenu()
	{
		$('#tidypics_delete_tag_menu').hide();
		
		// restart tag hovering
		$('#tidypics_image').hover(
			function(){
				$('.tidypics_tag').show();
			},
			function(){
				$('.tidypics_tag').hide();
			}
		);
	}
</script>		<div class="tidypics_info">
Image added by <b><a href="http://ride-report.com/riders/pg/profile/Eric">Eric</a></b>  300 days ago		</div>
	</div> <!-- tidypics wrapper-->
<div class="clearfloat"></div></div>

]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/10/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Fri, 20 Nov 2009 19:26:49 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/13/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Fri, 20 Nov 2009 20:34:30 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/40/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Wed, 25 Nov 2009 13:35:40 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/43/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Sun, 29 Nov 2009 10:34:36 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/45/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Mon, 30 Nov 2009 16:06:06 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/53/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Sat, 05 Dec 2009 09:31:48 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/55/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Sat, 05 Dec 2009 23:46:47 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/72/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Tue, 08 Dec 2009 20:07:06 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/76/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Fri, 11 Dec 2009 07:59:31 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/80/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Mon, 14 Dec 2009 04:28:19 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/277/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="filestore::filestore" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[ElggDiskFilestore]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/276/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="filestore::dir_root" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[/home/ride-report.com/elgg_uploads/]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/275/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="simpletype" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[image]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/274/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="originalfilename" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[Screen shot 2009-11-02 at 3.17.25 PM.JPG]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/273/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="mimetype" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[image/pjpeg]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/272/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="filename" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[image/15/1258091113screen shot 2009-11-02 at 3.17.25 pm.jpg]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/278/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_exif" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[a:13:{s:8:"FileName";s:50:"1258091113screen shot 2009-11-02 at 3.17.25 pm.jpg";s:12:"FileDateTime";i:1258091113;s:8:"FileSize";i:214265;s:8:"FileType";i:2;s:8:"MimeType";s:10:"image/jpeg";s:13:"SectionsFound";s:19:"ANY_TAG, IFD0, EXIF";s:8:"COMPUTED";a:5:{s:4:"html";s:25:"width="1389" height="625"";s:6:"Height";i:625;s:5:"Width";i:1389;s:7:"IsColor";i:1;s:17:"ByteOrderMotorola";i:1;}s:11:"XResolution";s:4:"72/1";s:11:"YResolution";s:4:"72/1";s:14:"ResolutionUnit";i:2;s:16:"Exif_IFD_Pointer";i:78;s:14:"ExifImageWidth";i:1389;s:15:"ExifImageLength";i:625;}]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/279/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="thumbnail" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[image/15/thumb1258091113screen shot 2009-11-02 at 3.17.25 pm.jpg]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/280/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="smallthumb" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[image/15/smallthumb1258091113screen shot 2009-11-02 at 3.17.25 pm.jpg]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/281/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="largethumb" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[image/15/largethumb1258091113screen shot 2009-11-02 at 3.17.25 pm.jpg]]></metadata>
<entity uuid="http://ride-report.com/riders/export/opendd/18/" class="object" subclass="image" published="Fri, 13 Nov 2009 05:45:13 +0000" />
<metadata uuid="http://ride-report.com/riders/export/opendd/18/attr/owner_uuid/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="owner_uuid" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[http://ride-report.com/riders/export/opendd/2/]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/attr/container_uuid/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="container_uuid" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[http://ride-report.com/riders/export/opendd/15/]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/attr/title/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="title" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[Screen shot 2009-11-02 at 3.17.25 PM]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/attr/description/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="description" published="Fri, 13 Nov 2009 05:45:13 +0000" />
<metadata uuid="http://ride-report.com/riders/export/opendd/18/volatile/renderedentity/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="renderedentity" type="volatile" ><![CDATA[<div class="contentWrapper">
	<div id="tidypics_wrapper">

		<div id="tidypics_breadcrumbs">
			<a href="http://ride-report.com/riders/pg/photos/owned/Eric">Eric's photo albums</a>
>>  <a href="http://ride-report.com/riders/pg/photos/album/15/matt-amp-tiernan">Matt &amp; Tiernan</a>
 <br />
			Views: 142		</div>

		<div id="tidypics_desc">
			<br />
		</div>
		<div id="tidypics_image_nav">
			<ul>
				<li></li>
				<li><a href="http://ride-report.com/riders/pg/photos/view/19">Next &raquo;</a></li>
			</ul>
		</div>
		<div id="tidypics_image_wrapper">
			<a href="http://ride-report.com/riders/action/tidypics/download?file_guid=18&amp;view=inline" title="Screen shot 2009-11-02 at 3.17.25 PM"><img id="tidypics_image"  src="http://ride-report.com/riders/mod/tidypics/thumbnail.php?file_guid=18&amp;size=large" alt="Screen shot 2009-11-02 at 3.17.25 PM" /></a>			<div class="clearfloat"></div>
		</div>
<div id="tidypics_controls"><ul><li id="download_image"><a href="http://ride-report.com/riders/action/tidypics/download?file_guid=18">Download image</a></li>
</ul></div><div id="tidypics_phototags_list">
	<h3>In this photo</h3>
	<ul>
<li><a class='tidypics_phototag_links' id='taglink328' href='http://ride-report.com/riders/pg/photos/tagged/25'>Matt</a></li>	</ul>
</div>
<div id='tidypics_tag_instructions'>
	<div id='tidypics_tag_instruct_text'>Select area that you want to tag</div>
	<div id='tidypics_tag_instruct_button_div'><button class='submit_button' id='tidypics_tag_instruct_button' onclick='stopTagging()'>Stop tagging</button></div>
</div>
<div id="tidypics_tag_menu" class="tidypics_popup">
	<div class='tidypics_popup_header'><h3>Tag this photo</h3></div>
<div class="clearfloat"></div>
</div>
<div id="tidypics_delete_tag_menu" class="tidypics_popup">
<div class='tidypics_popup_header'><h3>Select tags to delete</h3></div>
<form  name="phototag_deletetag_form"  action="http://ride-report.com/riders/action/tidypics/deletetag" method="post" >
<input type="hidden"  name="__elgg_token"  value="a7c8d3e1b1286e562dc738b8929f51f6" /> <input type="hidden"  name="__elgg_ts"  value="1284021384" /> <input type='hidden' name='image_guid' value='18' /><label><input type="checkbox" class="input-checkboxes" name="tags[328]" value="Matt" />Matt</label><br /><input type='submit' value='Delete' class='submit_button' /><input type='button' value='Cancel' class='cancel_button' onclick='hideDeleteMenu();' /></form></div><script type="text/javascript" src="http://ride-report.com/riders/mod/tidypics/vendors/jquery.imgareaselect-0.7.js"></script>
<script type="text/javascript" src="http://ride-report.com/riders/mod/tidypics/vendors/jquery.quicksearch.js"></script>
 
<script type="text/javascript">

	var coordinates = "";
	var user_id = 0;
	var tagging = 0;

	// add to DOM as soon as ready
	$(document).ready(function () {
			$('ul#tidypics_phototag_list li').quicksearch({
				position: 'before',
				attached: 'ul#tidypics_phototag_list',
				loaderText: '',
				inputClass: 'input-filter',
				delay: 100
			});

			$('#quicksearch').submit( function () { addTag() } );
		}
	);

	// images are loaded so process tags
	$(window).load(function () {
			$('#tidypics_image').setupTags();
		}
	);

	// get tags over image ready for mouseover
	// based on code by Tarique Sani tarique at sanisoft.com - MIT and GPL licenses
	$.fn.setupTags = function() 
	{

		image = this;

		imgOffset = $(image).offset();
		imgOffset.left = parseInt(imgOffset.left) + parseInt($(image).css("border-left-width")) + parseInt($(image).css("padding-left"));
		imgOffset.top = parseInt(imgOffset.top) + parseInt($(image).css("border-top-width")) + parseInt($(image).css("padding-top"));
		
		tags = [{"x1":"347","y1":"31","width":"112","height":"109","text":"Matt","id":"328"}]; 

		$(tags).each(function(){
			appendTag(imgOffset, this);
		});
		
		$(image).hover(
			function(){
				$('.tidypics_tag').show();
			},
			function(){
				$('.tidypics_tag').hide();
			}
		);

		addTagEvents();
		
		$('.tidypics_phototag_links').hover(
			function(){
				code = this.id.substr(7); // cut off taglink to get unique id
				$('#tag'+code).show();
			},
			function(){
				code = this.id.substr(7);
				$('#tag'+code).hide();
			}
		);

		// make sure we catch and handle when the browser is resized
		$(window).resize(function () {
			$('.tidypics_tag').remove();

			imgOffset = $(image).offset();

			$(tags).each(function(){
				appendTag(imgOffset, this);
			});

			addTagEvents();
		});
	} 

	function appendTag(offset, tag)
	{
		// catch for IE when no tags available
		if (tag.id == undefined)
			return;
		
		tag_top   = parseInt(imgOffset.top) + parseInt(tag.y1);
		tag_left  = parseInt(imgOffset.left) + parseInt(tag.x1);

		tag_div = $('<div class="tidypics_tag" id="tag'+tag.id+'"></div>').css({ left: tag_left + 'px', top: tag_top + 'px', width: tag.width + 'px', height: tag.height + 'px' });

		text_top = parseInt(tag_top) + parseInt(tag.height) + 5;

		tag_text_div = $('<div class="tidypics_tag_text">'+tag.text+'</div>').css({ left: tag_left + 'px', top: text_top + 'px', width: '120px'});

		$('body').append(tag_div);
		$('body').append(tag_text_div);
	}

	function addTagEvents() 
	{
		$('.tidypics_tag').hover(
			function(){
				$('.tidypics_tag').show();
				$(this).next('.tidypics_tag_text').show();
				$(this).next('.tidypics_tag_text').css("z-index", 10000);
			},
			function(){
				$('.tidypics_tag').show();
				$(this).next('.tidypics_tag_text').hide();
				$(this).next('.tidypics_tag_text').css("z-index", 0);
			}
		);
	}


	function selectUser(id, name) 
	{
		user_id = id;
		$("input.input-filter").val(name);
	}

	function startTagging() 
	{
		if (tagging != 0)
		{
			stopTagging();
			return;
		}
		
		tagging = 1;
		
		$('#tidypics_tag_control').text("Stop tagging");
		
		showTagInstruct();
		$('#tidypics_delete_tag_menu').hide();

		$('#tidypics_image').hover(
			function(){
				$('.tidypics_tag').hide();
			},
			function(){
				$('.tidypics_tag').hide();
			}
		);

		$('img#tidypics_image').imgAreaSelect( { 
			borderWidth: 2,
			borderColor1: 'white',
			borderColor2: 'white',
			disable: false,
			hide: false,
			onSelectEnd: showTagMenu,
			onSelectStart: hideTagMenu 
			}
		);

		$('img#tidypics_image').css({"cursor" : "crosshair"});
	}

	function stopTagging() 
	{
		tagging = 0;
		
		hideTagInstruct();
		hideTagMenu();

		$('img#tidypics_image').imgAreaSelect( {hide: true, disable: true} );

		$('#tidypics_tag_control').text("Tag this photo");

		// restart tag hovering
		$('#tidypics_image').hover(
			function(){
				$('.tidypics_tag').show();
			},
			function(){
				$('.tidypics_tag').hide();
			}
		);
		
		$('img#tidypics_image').css({"cursor" : "pointer"});
	}

	function showTagMenu(oObject, oCoordenates)
	{
		offsetX = 6;
		offsetY = 10;

		imgOffset = $('#tidypics_image').offset();

		// show the list of friends
		if (oCoordenates.width != 0 && oCoordenates.height != 0) {
			coordinates = oCoordenates;
			
			_top = imgOffset.top + oCoordenates.y2 + offsetY;
			_left = imgOffset.left + oCoordenates.x1 + offsetX;

			$('#tidypics_tag_menu').show().css({
				"top": _top + "px",
				"left": _left + "px"
			});

			$(".input-filter").focus();
		}
	}


	function hideTagMenu()
	{
		$('#tidypics_tag_menu').hide();
	}

	function showTagInstruct()
	{
		offsetY = -60;
		
		divWidth = $('#tidypics_tag_instructions').width();
		imgOffset = $('#tidypics_image').offset();
		imgWidth  = $('#tidypics_image').width();
		offsetX   = parseInt((imgWidth - divWidth)/2);
		
		_top = imgOffset.top + offsetY;
		_left = imgOffset.left + offsetX;

		$('#tidypics_tag_instructions').show().css({
			"top": _top + "px",
			"left": _left + "px"
		});
	}

	function hideTagInstruct()
	{
		$('#tidypics_tag_instructions').hide();
	}

	function addTag()
	{
		// do I need a catch for no tag?

		$("input#user_id").val(user_id);
		$("input#word").val( $("input.input-filter").val() );

		coord_string  = '"x1":"' + coordinates.x1 + '",';
		coord_string += '"y1":"' + coordinates.y1 + '",';
		coord_string += '"width":"' + coordinates.width + '",';
		coord_string += '"height":"' + coordinates.height + '"';

		$("input#coordinates").val(coord_string);

		//Show loading
		//$("#tag_menu").replaceWith('<div align="center" class="ajax_loader"></div>');
	}

	function deleteTags()
	{
		offsetY = 60;
		
		stopTagging();
		
		divWidth = $('#delete_tag_menu').width();
		imgOffset = $('#tidypics_image').offset();
		imgWidth  = $('#tidypics_image').width();
		offsetX   = parseInt((imgWidth - divWidth)/2);
		
		_top = imgOffset.top + offsetY;
		_left = imgOffset.left + offsetX;

		$('#tidypics_delete_tag_menu').show().css({
			"top": _top + "px",
			"left": _left + "px"
		});
		
		$('#tidypics_image').hover(
			function(){
				$('.tidypics_tag').hide();
			},
			function(){
				$('.tidypics_tag').hide();
			}
		);
	}
	
	function hideDeleteMenu()
	{
		$('#tidypics_delete_tag_menu').hide();
		
		// restart tag hovering
		$('#tidypics_image').hover(
			function(){
				$('.tidypics_tag').show();
			},
			function(){
				$('.tidypics_tag').hide();
			}
		);
	}
</script>		<div class="tidypics_info">
Image added by <b><a href="http://ride-report.com/riders/pg/profile/Eric">Eric</a></b>  300 days ago		</div>
	</div> <!-- tidypics wrapper-->
<div class="clearfloat"></div></div>

]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/10/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Fri, 20 Nov 2009 19:26:49 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/13/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Fri, 20 Nov 2009 20:34:30 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/40/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Wed, 25 Nov 2009 13:35:40 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/43/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Sun, 29 Nov 2009 10:34:36 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/45/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Mon, 30 Nov 2009 16:06:06 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/53/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Sat, 05 Dec 2009 09:31:48 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/55/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Sat, 05 Dec 2009 23:46:47 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/72/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Tue, 08 Dec 2009 20:07:06 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/76/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Fri, 11 Dec 2009 07:59:31 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/annotation/80/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_view" type="annotation" owner_uuid="http://ride-report.com/riders/export/opendd/0/" published="Mon, 14 Dec 2009 04:28:19 +0000" ><![CDATA[1]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/277/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="filestore::filestore" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[ElggDiskFilestore]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/276/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="filestore::dir_root" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[/home/ride-report.com/elgg_uploads/]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/275/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="simpletype" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[image]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/274/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="originalfilename" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[Screen shot 2009-11-02 at 3.17.25 PM.JPG]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/273/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="mimetype" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[image/pjpeg]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/272/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="filename" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[image/15/1258091113screen shot 2009-11-02 at 3.17.25 pm.jpg]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/278/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="tp_exif" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[a:13:{s:8:"FileName";s:50:"1258091113screen shot 2009-11-02 at 3.17.25 pm.jpg";s:12:"FileDateTime";i:1258091113;s:8:"FileSize";i:214265;s:8:"FileType";i:2;s:8:"MimeType";s:10:"image/jpeg";s:13:"SectionsFound";s:19:"ANY_TAG, IFD0, EXIF";s:8:"COMPUTED";a:5:{s:4:"html";s:25:"width="1389" height="625"";s:6:"Height";i:625;s:5:"Width";i:1389;s:7:"IsColor";i:1;s:17:"ByteOrderMotorola";i:1;}s:11:"XResolution";s:4:"72/1";s:11:"YResolution";s:4:"72/1";s:14:"ResolutionUnit";i:2;s:16:"Exif_IFD_Pointer";i:78;s:14:"ExifImageWidth";i:1389;s:15:"ExifImageLength";i:625;}]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/279/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="thumbnail" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[image/15/thumb1258091113screen shot 2009-11-02 at 3.17.25 pm.jpg]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/280/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="smallthumb" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[image/15/smallthumb1258091113screen shot 2009-11-02 at 3.17.25 pm.jpg]]></metadata>
<metadata uuid="http://ride-report.com/riders/export/opendd/18/metadata/281/" entity_uuid="http://ride-report.com/riders/export/opendd/18/" name="largethumb" type="metadata" owner_uuid="http://ride-report.com/riders/export/opendd/2/" published="Fri, 13 Nov 2009 05:45:13 +0000" ><![CDATA[image/15/largethumb1258091113screen shot 2009-11-02 at 3.17.25 pm.jpg]]></metadata>
</odd>