function showPage(content)
{
	jQuery('select').css('visibility', 'hidden');
	//clear form first
	var width = jQuery(window.document).width();
	var height = jQuery(window.document).height();
	
	var top = jQuery(window.document).scrollTop();
	var vp = jQuery(window).height();
	jQuery(document.body).append('<div id="contact-mask"></div>');
	
	var html = new Array(
		'<div id="generic-popup">',
			'<div style="relative;"><a href="#" onclick="hidePage(); return false;"><img src="/images/close.png" alt="X" class="close" /></a></div>',
			'<div id="popup-content" style="overflow: auto; height: 500px;">',
			'</div>',
		'</div>');
	
	jQuery(document.body).append(html.join(''));
	var c = jQuery('#'+content).clone(true).css('display','block');
	
	jQuery('#popup-content').append(c);
	if(jQuery('#google-icon', jQuery('#popup-content')).length > 0)
	{
		jQuery('#google-icon', jQuery('#popup-content')).append('<object type="application/x-shockwave-flash" data="https://clients4.google.com/voice/embed/webCallButton" width="230" height="85"><param name="movie" value="https://clients4.google.com/voice/embed/webCallButton" /><param name="wmode" value="transparent" /><param name="FlashVars" value="id=287a29059452ed8db829aa73a4255be712fbbc17&style=0" /></object>');
	}
	
	jQuery('#contact-mask').css('height', height+'px').css('width', width+'px').click(hidePage).show();
	jQuery('#generic-popup').css({top: ((vp/2)-250+top)+'px', left: ((width/2)-350)+'px'}).show();
	
}

function hidePage()
{
	jQuery('select').css('visibility', 'visible');
	jQuery('#contact-mask,#generic-popup').remove();
}
