var ANGEBOT_POPUP_BG = '/assets/images/ebuero/layer/angebot_popup.png';

function openAngebotPopup() {
	scroll(0, 0);
	showOverlay();
	showAngebotPopup();
}
function closeAngebotPopup() {
	hideAngebotPopup();	
	hideOverlay();
}
function showAngebotPopup() {
	var angebot_popup = document.getElementById('angebot_popup');
	if(angebot_popup) {
		angebot_popup.style.backgroundImage = 'url(' + this.ANGEBOT_POPUP_BG + ')';
		if(typeof(window.XMLHttpRequest) == 'undefined') {
			DD_belatedPNG.fix('#angebot_popup');
			angebot_popup.style.position = 'absolute';
			angebot_popup.style.top = (document.documentElement.scrollTop + 50) + 'px';
		}
		angebot_popup.style.display = 'block';
	}
}
function hideAngebotPopup() {
	var angebot_popup = document.getElementById('angebot_popup');
	if(angebot_popup) {
		angebot_popup.style.display = 'none';
	}
}

var CALLBACK_POPUP_BG = '/assets/images/common/popup-527x552.png';

function openCallbackPopup() {
	scroll(0, 0);
	showOverlay();
	showCallbackPopup();
}
function closeCallbackPopup() {
	hideCallbackPopup();	
	hideOverlay();
}
function showCallbackPopup() {
	var callback_popup = document.getElementById('callback_popup');
	callback_popup.style.backgroundImage = 'url(' + this.CALLBACK_POPUP_BG + ')';
	if(typeof(window.XMLHttpRequest) == 'undefined') {
		DD_belatedPNG.fix('#callback_popup');
		callback_popup.style.position = 'absolute';
		callback_popup.style.top = (document.documentElement.scrollTop + 50) + 'px';
	}
	callback_popup.style.display = 'block';
}
function hideCallbackPopup() {
	document.getElementById('callback_popup').style.display = 'none';
}

addLoadEvent(function() {
	var img = new Image;
	img.src = this.CALLBACK_POPUP_BG;
	var img2 = new Image;
	img2.src = this.ANGEBOT_POPUP_BG;
});
