function embedPage (url)
{
	$().ready
	(
		function ()
		{
			var existingIFrame = $('#embeddedIFrame')[0];
		
			if (!existingIFrame)
			{
				var backGroundLayer = document.createElement('div');
				backGroundLayer.id = 'BackGroundLayer';
				backGroundLayer.style.position = 'absolute';
				backGroundLayer.style.top = '0px';
				backGroundLayer.style.width = '100%';
				backGroundLayer.style.height = $(document.body).height() + 'px';
				backGroundLayer.style.zIndex = '9';
				backGroundLayer.style.backgroundColor = '#b1b1b1';
				backGroundLayer.style.opacity = '0.3';
				backGroundLayer.style.filter = 'Alpha(opacity=30, finishopacity=30, style=0)';
				
				document.body.appendChild(backGroundLayer);
			
				var iFrame = document.createElement('iframe');
				iFrame.id = 'embeddedIFrame';
				iFrame.src = url;
				iFrame.style.position = 'absolute';
				iFrame.style.top = '0px';
				iFrame.style.marginTop = '170px';
				iFrame.style.left = '260px';
				iFrame.style.width = '735px';
				iFrame.style.height = '100%';
				iFrame.style.overflow = 'hidden';
				iFrame.style.zIndex = '10';	
				iFrame.scrolling = 'no';
				
				document.body.appendChild(iFrame);

				$('#' + iFrame.id).bind
				(
					'load',
					function ()
					{
						resizeEmbeddedIFrame(iFrame);
					}
				);
			}
		}
	);
}

function resizeEmbeddedIFrame (iFrame)
{
	var iFrameDocument;
	
	if (iFrame.contentDocument)
	{
		iFrameDocument = iFrame.contentDocument;
		
	}
	else if (iFrame.contentWindow.document)
	{
		iFrameDocument = iFrame.contentWindow.document;
	}

	iFrame.style.height = $(iFrameDocument.body).height() + 'px';
}

function hideEmbeddedIFrame ()
{
	var iFrame = document.getElementById('embeddedIFrame');
	var layer = document.getElementById('BackGroundLayer');
	
	document.body.removeChild(layer);
	document.body.removeChild(iFrame);
}