function debug(debugString) {
	if (window.console && window.console.log)
		window.console.log(debugString);
};

function zoom (theImg, issue, edition) {

var cropHeight = jQuery(".cropperResize").height();
var cropWidth = jQuery(".cropperResize").width();
var xOffset = Math.round(jQuery(".cropperResize").position().left);
var yOffset = Math.round(jQuery(".cropperResize").position().top);

// Seitenverhältnis zwischen Slides und Grossbild (2000 px Höhe/ 731px Höhe)
var aspectRatio = 2.736;

xOffset = Math.round(xOffset * aspectRatio);
yOffset = Math.round(yOffset * aspectRatio);
cropWidth = Math.round(cropWidth * aspectRatio);
cropHeight = Math.round(cropHeight * aspectRatio);

myhref = 'cropimage.cfm?fileIndex=' + theImg;
myhref += "&top=" + yOffset + "&left=" + xOffset + "&width=" + cropWidth + "&height=" + cropHeight + "&issue=" + issue + "&edition=" + edition;
debug(myhref);

jQuery("#keyhole").attr('href',myhref);
jQuery("#keyholeImage").colorbox({href:myhref, transition:'none', open:true, photo:true});
}