var filterstring="progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=1.0 Duration=0.7)";

function returnimgcode(theimg)
{
	var imghtml="";
	if(theimg!="")
	imghtml+='<img class="thumb-big" src="images/gallery/'+ theimg +'" alt="" width="280" height="178" />';
	if (theimg!="")
	//imghtml+='</a>'
	return imghtml;
}

function modifyimage(loadarea, imgsrc)
{
	if (document.getElementById){
	var imgobj=document.getElementById(loadarea);
	if (imgobj.filters && window.createPopup){
	imgobj.style.filter=filterstring;
	imgobj.filters[0].Apply();
	}
	imgobj.innerHTML=returnimgcode(imgsrc);
	if (imgobj.filters && window.createPopup)
	imgobj.filters[0].Play();
	
	return false
	}
}