
function doImageShowBig(n)
{
}

function doShareImageOnClick ()
{
	var imgA = document.getElementsByTagName ("img");
	//alert (imgA.length);
	for (o = 0; o < imgA.length; o++)
	{
		//alert (imgA[o].getAttribute ("src"));
		
		if (imgA[o].getAttribute ("src").length > 0)
		{
			if (imgA[o].getAttribute ("src").indexOf ("media/images/sharingImages/") > 0)
			{
				//alert (imgA[o].getAttribute ("src"));
				imgA[o].setAttribute ("style", "cursor:pointer");
				imgA[o].style.cursor = "pointer";
				//imgA[o].onclick = doImageShowBig (o);
				imgA[o].onclick = function ()
				{
					var sorc = this.src;
					var tp = sorc.split (".");
					var nam = tp[tp.length - 2];
					if (
						nam.substring (nam.length - 2) == "_m" || 
						nam.substring (nam.length - 2) == "_t"
					)
					{
						nam = nam.substring (0, nam.length - 2);
						tp[tp.length - 2] = nam;
					}
					var hrf = tp.join (".");
					
					//alert (hrf);
					//location.href = hrf;
					window.open (hrf, "SHIMAGE", '');
				}
			}
			else if (imgA[o].getAttribute ("src").indexOf ("ray/modules/movie/files/") > 0)
			{
				//alert (imgA[o].getAttribute ("src"));
				imgA[o].setAttribute ("style", "cursor:pointer");
				imgA[o].style.cursor = "pointer";
				//imgA[o].onclick = doImageShowBig (o);
				imgA[o].onclick = function ()
				{
					var sorc = this.src;
					var tp = sorc.split (".");
					var pam = tp[tp.length - 2];
					tp = pam.split ("/");
					var nam = tp[tp.length - 1];
					
					var hrf = "http://iofotografoevideo.e-ducation.it/viewVideo.php?fileID=" + escape (nam);
					
					//alert (hrf);
					//location.href = hrf;
					window.open (hrf, "SHVIDEO", '');
				}
			}
		}
		
	}
}
