
SetImageProperties = function(elm, key, imgId, width, height, isResized) {
	/* image properties ------------------------
	elm			:	image object
	key			:	media key
	imgId		:	image brick id
	width		:	original image width
	height		:	original image height
	isResized	:	image is resized (boolean)
	------------------------------------------*/

	//alert(isResized);
	if(isResized && elm.width < width) {
		var p = elm.parentNode;
		var newDiv = document.createElement("div");
		newDiv.innerHTML = "<a href='javascript:showPopup(\"img"+key+"\","+width+","+(height+20)+",0)'><img src='/img/lupe.gif' class='lupe' title='' alt='' border='0' /></a>";
		
		newDiv.style.marginLeft = (elm.width-16)+"px";
		newDiv.style.marginTop = "-15px";
		newDiv.style.fontSize = "12px";
		p.appendChild(newDiv);
	}
}

GenerateMail = function(m) {
	document.location.href='mailto:'+m.split(',')[1]+'@'+m.split(',')[0];
	return false;
}