function showOverlayiFrame(headline, iframeUrl, iframeWidth, iframeHeight) {
	$('.jqmWindow').jqm({
		onShow: function(h){
			$('.jqmWindow')
				.html(
					'<div class="jqmWrap"><div class="jqmHeader"><div class="jqmClose"><!--close--></div>'
					+ headline
					+ '&#160;</div><div class="jqmContent"><div id="iframe_001">'
					+ '<iframe name="servicefunction" src="'
					+ iframeUrl 
					+ '" width="'
					+ iframeWidth
					+ '" height="'
					+ iframeHeight
					+ '" marginwidth="0" marginheight="0" align="top" frameborder="no" scrolling="auto" style="overflow-x: hidden;"></iframe>'
					+ '</div></div></div>');
			$('.jqmWrap').css('width', parseInt(iframeWidth) + 20 + 'px');
			$('.jqmWindow').css({
			    'top': $(window).scrollTop(),
			    'margin-left': '-' + parseInt(h.w.width() / 2) + 'px'
			});
			h.w.show();
		}
	});
	$('.jqmWindow').jqmShow();
	return false;
}

function stopRKey(evt) {
	var evt = (evt) ? evt : ((event) ? event : null);
	var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
	if (evt.keyCode == 13) {
		return false;
	}
}

document.onkeypress = stopRKey;


$().ready(function () {

    $('.jqmClose').live('click', function () {
        $('.jqmWindow').jqmHide();
    });


    $('.jqmWindowImg').jqm({
        onShow: function (h) {
            $('.jqmWindowImg').css({
                'top': $(window).scrollTop(),
                'margin-left': '-' + parseInt(h.w.width() / 2) + 'px'
            });
            h.w.show();
        }
    });
    $('.imgZoomIcon').live('click', function () {
        $(this).next('.jqmWindowImg').jqmShow();
    });

});
