$(function() {
	
	var options = {
	    zoomWidth: 350,
	    zoomHeight: 250,
            xOffset: 10,
            yOffset: 0,
	    title: false,
            position: "right" 
	};
	$(".useZoom").jqzoom(options);

}); 
function ReplaceFeature(tableId, title, description, newFeatureMainURI, newFeatureZoomURI, newProfileURI ) {
        //debugger;
	var prefetch = new Image();
	prefetch.src = newFeatureZoomURI;

        var layoutTable = $('#' + tableId);
        if (layoutTable != null) {
            var imageDescription = $('#Description', layoutTable);
            if (imageDescription != null) {
                imageDescription.attr('innerText', description);
		imageDescription.text(description);
            }
            var imageAnchor = $('#MainView', layoutTable);
            if (imageAnchor != null) {
                imageAnchor.attr('href', newFeatureZoomURI);
                imageAnchor.attr('title', title);
                imageAnchor.children('img').attr('src', newFeatureMainURI); 
            }
            var profileImg = $('#ProfileImg', layoutTable);
            if (profileImg != null) {
                profileImg.attr('src', newProfileURI);
            }
            var imageTitle = $('#ImageTitle', layoutTable);
            if (imageTitle != null) {
                imageTitle.attr('innerText', title);  
		imageTitle.text(title);           
            }
        }
        return false;
}
