/* Show members login page */
function getHeight() {
	return (window.frames['monIframe'].returnHeight())+20;	
}

function setHeight() {
	var docHeight=getHeight();
	document.getElementById('monIframe').style.height = docHeight+'px';
	document.getElementById('iframe').style.height = docHeight+'px';
}

function showIframe() 
{
	$('#fogall').click(hideIframe);
	document.getElementById('fogall').style.height = document.body.parentNode.scrollHeight+'px';
	document.getElementById('fogall').style.display = 'block';
	document.getElementById('iframe').style.display = 'block';	
	setHeight();	
}

function hideIframe() 
{
	parent.document.getElementById('fogall').style.display='none';
	parent.document.getElementById('iframe').style.display='none';			
}


function pop_free(link) {
	var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
	
	mywindow = window.open(link,"mywindow","location=0,status=0,scrollbars=1,toolbar=0,width=770,height=835");
	if(!is_chrome) {
		var int_windowLeft = (screen.width - 770) / 2;
		var int_windowTop = (screen.height - 835) / 2;
		mywindow.moveTo(int_windowLeft,int_windowTop);
	}
}
