
function initCallBtn() {
	var bgCall     = document.createElement('div');
	var frameCall  = document.createElement('iframe');
	var mainWindow = document.createElement('div');
	var callBtn    = document.getElementById('pushTalk');

	bgCall.id = 'backgroundPopup';
	document.body.appendChild(bgCall);

	
	frameCall.setAttribute('frameborder', 0);
	frameCall.setAttribute('hspace', 0);
	frameCall.setAttribute('wspace', 0);
	frameCall.setAttribute('name', 'frameCall');
	frameCall.setAttribute('allowtransparency', 1);
	frameCall.style.backgroundColor = 'transparent';
	frameCall.className = 'talkFrame';
	frameCall.src = 'http://www.medstore-online.com/makecall.php';

	mainWindow.className = 'callMainWindow';
	document.body.appendChild(mainWindow);

	$(callBtn).click(function() {
		$(bgCall).css({
			"opacity": 0.9,
			"height" : document.documentElement.clientWidth,
		});
		$(bgCall).fadeIn("slow");

		var elementHeight = $(mainWindow).height();
		var elementWidth = $(mainWindow).width();

		mainWindow.appendChild(frameCall);

		$(frameCall).load(function() {
			$(mainWindow).css({
				"width": elementWidth + 5,
				"height": elementHeight + 5,
				"position": "fixed",
				"margin": "auto",
				"top": "0px",
				"right": "0px",
				"bottom": "0px",
				"left": "0px"
			});

			if ($.browser.msie) {
				$(mainWindow).css({
					"left": "50%",
					"top": "50%",
					"margin-top": (-elementHeight / 2),
					"margin-left": (-elementWidth / 2)
				});
				if (!window.XMLHttpRequest) { //ie6
					$(mainWindow).attr("style", "position: absolute; top: expression(documentElement.scrollTop+documentElement.offsetHeight/2-" + elementHeight / 2 + "); left: expression(documentElement.scrollLeft+documentElement.offsetWidth/2-" + elementWidth / 2 + ");");
				}
			}
			$(mainWindow).fadeIn('slow');
		});
	});
};
