//<![CDATA[
		   
// code for old calculator
var calcwin;
function showCalculatorNoProp(lang){
	var settings,leftPosition,topPosition,url;
	url = "http://www.eraeurope.com/index.cfm?fuseaction=mortCalc.showCalc\&changeLanguage=" + lang;
	leftPosition = (screen.width) ? (screen.width)/2 - 300 : 0;
	topPosition = (screen.height) ? (screen.height)/2 - 300 : 0;
	settings = 'toolbar=NO,location=NO,directories=NO,status=NO,menubar=NO,scrollbars=yes,resizable=yes,copyhistory=NO,width=420,height=320,top='+ topPosition+ ',left='+leftPosition;
	if (calcwin && !calcwin.closed) {
		calcwin.close();
	}
	calcwin = window.open(url,'calcwin',settings);
}

function showCalculator(propertyUUID,propertyPrice,lang){
	var settings,leftPosition,topPosition,url;
	url = "http://www.eraeurope.com/index.cfm?fuseaction=mortCalc.showCalc\&title=ERA France | simulation de financement\&propertyUUID=" + propertyUUID;
	url += "\&propertyPrice=" + propertyPrice + "\&changeLanguage=" + lang;
	leftPosition = (screen.width) ? (screen.width)/2 - 300 : 0;
	topPosition = (screen.height) ? (screen.height)/2 - 300 : 0;
	settings = 'toolbar=NO,location=NO,directories=NO,status=NO,menubar=NO,scrollbars=yes,resizable=yes,copyhistory=NO,width=420,height=320,top='+ topPosition+ ',left='+leftPosition;
	if (calcwin && !calcwin.closed) {
		calcwin.close();
	}
	calcwin = window.open(url,'calcwin',settings);
}

// code for new calculator
	var calcwin;
	function showCalcFlash(price){
		var settings,leftPosition,topPosition,url;
		url = "http://www.erafrance.com/index.cfm?fuseaction=csearch.mortgageCalculator\&price="+price;
		leftPosition = (screen.width) ? (screen.width)/2 - 300 : 0;
		topPosition = (screen.height) ? (screen.height)/2 - 200 : 0;
		settings = 'toolbar=NO,location=NO,directories=NO,status=NO,menubar=NO,scrollbars=NO,resizable=yes,copyhistory=NO,width=600,height=400,top='+ topPosition+ ',left='+leftPosition;
		if (calcwin && !calcwin.closed) {
			calcwin.close();
		}
		calcwin = window.open(url,'calcwin',settings);
	}

//]]>