<!--

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 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];}}
}

function onLoadImages() {
  MM_preloadImages('images/headernav_home_f2.gif','images/headernav_investors_f2.gif','images/headernav_contact_f2.gif','images/headernav_aboutus_f2.gif','images/topnav_apply_f2.gif','images/topnav_howitworks_f2.gif','images/topnav_whatpeople_f2.gif','images/topnav_rates_f2.gif','images/topnav_tips_f2.gif', 'images/home_action_bg_rollover1.gif', 'images/home_action_bg_rollover2.gif', 'images/applynow_action_bg_rollover1.gif', 'images/applynow_action_bg_rollover2.gif');
}

function googleVancouver() {
    // display map
    iframe_googlemap.location = "http://maps.google.com/maps/ms?msa=0&msid=102508580144413336994.0004386532c32aebfcc01&ll=49.266432,-123.113158&spn=0.007141,0.017338&om=1&output=embed&s=AARTsJqTYM81fuuY33yYdp-VEg37mB-W6g";
    
}

function googleCalgary() {
    // display map
    iframe_googlemap.location = "http://maps.google.com/maps/ms?ie=UTF8&hl=en&om=1&s=AARTsJqNk8urF17G2jkBizrMimLCglu4Qw&msa=0&msid=102508580144413336994.00043865dea17df02c48a&ll=50.956595,-114.071474&spn=0.003244,0.006437&z=17&output=embed";
    
}

function googleToronto() {
    // display map
    iframe_googlemap.location = "http://maps.google.com/maps/ms?ie=UTF8&hl=en&om=1&s=AARTsJrtsaxjj4qKKnyI4bPU9_junKyrkg&msa=0&msid=102508580144413336994.000438660587794715c80&ll=43.601993,-79.639978&spn=0.014917,0.025749&z=15&output=embed";
    
}


function googleHalifax() {
    // display map
    iframe_googlemap.location = "http://maps.google.com/maps/ms?ie=UTF8&hl=en&om=1&s=AARTsJpn720EB1_2Me6fI5SWwNB_ciOwlA&msa=0&msid=102508580144413336994.000438b1797e12818f2a5&ll=44.657725,-63.576636&spn=0.014653,0.025749&z=15&output=embed";
    
}


function googleMoncton() {
    // display map
    iframe_googlemap.location = "http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=102508580144413336994.000438b1928ea045c7dda&ll=46.089282,-64.774572&spn=0,0&om=1&output=embed&s=AARTsJqyu8WL0YUV9aSYHOBj6JSMSuP7zg";
    
}


function googleAtlantic() {
    // display map
    iframe_googlemap.location = "http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&ll=46.233533,-63.122528&spn=0.00757,0.017338&om=1&msid=102508580144413336994.000438b1b85635a1f5dea&output=embed&s=AARTsJqPFjLCyfpsdHpTUIr8BFyDngE21g";
    
}

function googleEdmonton() {
    // display map
    iframe_googlemap.location = "http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=102508580144413336994.00043903705cc3ea3f02f&om=1&ll=53.54097,-113.504112&spn=0,0&output=embed&s=AARTsJqjYKVibPfoWVmc3wQTCOc4EsahGQ";
    
}

function enablePhoneNumberField() {
  
  document.forms[0].feedback_phone.disabled = false;
  document.getElementById('click-mask').style.display = 'none';
  document.forms[0].feedback_phone.focus();

  
}

function focusPhoneNumberField() {
  
  if (document.forms[0].feedback_phone.value == "(optional - click here to fill out)") {
    document.forms[0].feedback_phone.value = '';
  }
  
}

function blurPhoneNumberField() {
  
  if (document.forms[0].feedback_phone.value == "") {
    document.forms[0].feedback_phone.disabled = true;
    document.getElementById('click-mask').style.display = 'block';
  }
  
}

function contactMeEmail() {
  
  document.forms[0].feedback_contactme[0].checked = true;
  document.forms[0].feedback_contactme[1].checked = true;
  
}


function contactMePhone() {
  
  document.forms[0].feedback_contactme[2].checked = true;
  document.forms[0].feedback_contactme[3].checked = true;
  
}

function feedbackEmailOn() {
  
  document.getElementById('feedback_contactme_email_on').style.display = 'block';
  document.getElementById('feedback_contactme_email').style.display = 'none';
  
  document.getElementById('feedback_contactme_phone_on').style.display = 'none';
  document.getElementById('feedback_contactme_phone').style.display = 'block';

}

function feedbackPhoneOn() {
  
  document.getElementById('feedback_contactme_phone_on').style.display = 'block';
  document.getElementById('feedback_contactme_phone').style.display = 'none';
  
  document.getElementById('feedback_contactme_email_on').style.display = 'none';
  document.getElementById('feedback_contactme_email').style.display = 'block';

}


//-->