<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
} function MM_preloadImages() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	initObjects();
} function MM_findObj(n, d) { //v4.01
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function jump(){
	if (document.go.quickselect.options[document.go.quickselect.selectedIndex].value != "") {
		location = document.go.quickselect.options[document.go.quickselect.selectedIndex].value;
	}
}

hasPopped=false;
function popWin(xURL,xX,xY,options) {
	if (options) {
		optionStr='width='+xX+',height='+xY+','+options;
    } else {
		optionStr='width='+xX+',height='+xY+',resizable=yes,title=yes,toolbar=no,scrollbars=yes,screenX=40,screenY=5';
	}
 	poppedWin = window.open(xURL,'PopWin',optionStr);
	if (poppedWin) { poppedWin.focus(); }
	hasPopped=true;
}

function caminawin(fpath, wWidth, wHeight) {
   var winX = (screen.availWidth - wWidth)*.5;
   var winY = (screen.availHeight - wHeight)*.5;
   poppedWin = window.open(fpath, "PopWin", "toolbar=no,menubar=no,width=" + wWidth + ",height=" + wHeight + ",left=" + winX + ",top=" + winY + ",scrollbars=no");
   if (poppedWin) { poppedWin.focus(); }
}

function PopWin() {
   newwindow=window.open("","PopWin","height=500,width=800,scrollbars=yes,resizable=yes,top=50,left=50,screenX=50,screenY=50,location=no,toolbar=no");
}

function calcPop() {
   newwindow=window.open("","calcPop","height=380,width=550,scrollbars=no,noresize,top=50,left=50,screenX=50,screenY=50,location=no,toolbar=no");
}

function calcPopWin() {
   newwindow=window.open("","calcPopWin","height=480,width=650,scrollbars=yes,noresize,top=50,left=50,screenX=50,screenY=50,location=no,toolbar=no");
}

function mortPop() {
   newwindow=window.open("","mortPop","width=567,height=630,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=no,menubar=no");
}

function round (n, d) {
   n = n - 0; // force number
   if (d == null) d = 2;
   var f = Math.pow(10, d);
   n += Math.pow(10, - (d + 1)); // round first
   n = Math.round(n * f) / f;
   n += Math.pow(10, - (d + 1)); // and again
   n += ''; // force string
   return d == 0 ? n.substring(0, n.indexOf('.')) :
      n.substring(0, n.indexOf('.') + d + 1);
}

function swapBgColorChange(id)
{
  if(document.getElementById)
  {
    document.getElementById(id).className="selectrate";
  }
}

function swapBgColorRestore(id)
{
  if(document.getElementById)
  {
    document.getElementById(id).className="openrate";
  }
}


// **** Start of ekit rollover javascipt ****
<!--
//check if image object is supported, then preload images

function newRollover(imgName,imgFiles) {
  if (document.images) {
    imgFiles=imgFiles+",";
    imgNo=1;
    while(imgFiles.indexOf(',')!=-1) {
      imgFile=imgFiles.substring(0,imgFiles.indexOf(','));
      imgFiles=imgFiles.substring(imgFiles.indexOf(',')+1,imgFiles.length);
      eval(imgName+"_urc_"+imgNo+"=new Image();");
      eval(imgName+"_urc_"+imgNo+".src='"+imgFile+"'");
      imgNo++;
    }
  }
}

function rolldiv(img,on,div,type) {
  type=type?type:img;
  if (document.images)
    if (navigator.appName.indexOf('Netscape')==-1 || navigator.appVersion.substr(0,1)>4 || !div)
      eval("document.images['"+img+"'].src="+type+"_urc_"+on+".src");
    else {
      div+="."; divd="";
      while(div.indexOf('.')!=-1) {
	divd+=div.substring(0,div.indexOf('.'))+".document.";
	div=div.substring(div.indexOf('.')+1,div.length);
      }
      eval("document."+divd+"images['"+img+"'].src="+type+"_urc_"+on+".src");
    }
}
function roll(img,on,type) {
  type=type?type:img;
  if (document.images) 
    eval("document.images['"+img+"'].src="+type+"_urc_"+on+".src");
}
function rollDyn(img,on,div,type) {
  type=type?type:img;
  if (document.images) 
    eval(div+".doc.images['"+img+"'].src="+type+"_urc_"+on+".src");
}

//nav
newRollover("affordable","/fr/images/mkitfr_btn_affordable_off.gif,/fr/images/mkitfr_btn_affordable_over.gif");
newRollover("equity","/fr/images/mkitfr_btn_equity_off.gif,/fr/images/mkitfr_btn_equity_over.gif");
newRollover("nexthome","/fr/images/mkitfr_btn_nexthome_off.gif,/fr/images/mkitfr_btn_nexthome_over.gif");
newRollover("save","/fr/images/mkitfr_btn_save_off.gif,/fr/images/mkitfr_btn_save_over.gif");

//touts
newRollover("tout_affordable","/fr/images/mkitfr_tout_affordable_off.gif,/fr/images/mkitfr_tout_affordable_over.gif");
newRollover("tout_equity","/fr/images/mkitfr_tout_equity_off.gif,/fr/images/mkitfr_tout_equity_over.gif");
newRollover("tout_nexthome","/fr/images/mkitfr_tout_nexthome_off.gif,/fr/images/mkitfr_tout_nexthome_over.gif");
newRollover("tout_save","/fr/images/mkitfr_tout_save_off.gif,/fr/images/mkitfr_tout_save_over.gif");

// **** End of ekit rollover javascript ****


// ekit function to open a js pop-up window :: set "isCenter" to true or false to have it centered on monitor or not
 
function openCenteredWin(theURL,winName,features, myWidth, myHeight, isCenter) {
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}


//-->

