<!--

// Some vars
document.on = new Array();
document.ob = new Array();

// List of the image's names
document.list = new Array('events','entertaiment','exploring','festivals','regattas','shopping','sports','soft');

//////////////////
function createOb() {
        for (i=0;i<=document.list.length-1;i++) {
                e = new Array();
                if ((e[i]=MM_findObj(document.list[i]))!=null) {document.ob[i] = e[i]} else { createOb(); };
        }

} //////////////////

function CountryChanged()
{
	id = document.form_name.mylist.options[document.form_name.mylist.selectedIndex].value

	window.location =  "" + id + ""
}////

function showSub(which){

switch (which) {

// Here goes the code for the subnav (HTML CODE)
	case 'retail': subNAV1 = '<strong><a href="#" class="reg" onMouseDown="showSub(\'retail\')">Retail</a></strong><br><table width="144" border="0" cellspacing="0" cellpadding="0">  <tr>    <td colspan="2" valign="top"><strong>Banks Accounts</strong></td>  </tr>  <tr>    <td width="11" align="center" valign="top"><strong> <IMG SRC="images/g_bullet.gif" width="10" height="7" border="0"></strong></td>    <td width="133"><a href="#"> <strong>Chequings &amp; Savings</strong></a></td>  </tr>  <tr>    <td width="11" align="center" valign="top"><strong> <IMG SRC="images/g_bullet.gif" width="10" height="7" border="0"></strong></td>    <td width="133"><strong> <a href="#"> Premier Services</a></strong></td>  </tr>  <tr>    <td width="11" align="center" valign="top"><strong> <IMG SRC="images/g_bullet.gif" width="10" height="7" border="0"></strong></td>    <td width="133"><strong><a href="#"> Services for Seniors</a><strong></strong> </strong></td>  </tr>  <tr>    <td colspan="2" valign="top"><strong> </strong><strong>Investing</strong></td>  </tr>  <tr>    <td width="11" align="center" valign="top"><strong> <IMG SRC="images/g_bullet.gif" width="10" height="7" border="0"></strong></td>    <td width="133"><a href="#"> <strong>Mutual Funds</strong></a></td>  </tr>  <tr>    <td align="center" valign="top"><strong><IMG SRC="images/g_bullet.gif" width="10" height="7" border="0"></strong></td>    <td><strong><a href="#"> GICs</a></strong></td>  </tr>  <tr>    <td width="11" align="center" valign="top"><strong> <IMG SRC="images/g_bullet.gif" width="10" height="7" border="0"></strong></td>    <td width="133"><strong> <a href="#"> Portfolio Programs</a></strong></td>  </tr>  <tr>    <td align="center" valign="top"><strong><IMG SRC="images/g_bullet.gif" width="10" height="7" border="0"></strong></td>    <td><strong><a href="#"> Retirement RRSPs</a></strong></td>  </tr>  <tr>    <td colspan="2" valign="top"><strong>Insurance</strong></td>  </tr>  <tr>    <td align="center" valign="top"><strong><IMG SRC="images/g_bullet.gif" width="10" height="7" border="0"></strong></td>    <td><a href="#"> <strong>General Insurance </strong></a></td>  </tr></table>'
	break;
	case 'borrowing': subNAV2 = '<strong><a href="#" class="reg" onMouseDown="showSub(\'borrowing\')">International Banking</a></strong><br><table width="144" border="0" cellspacing="0" cellpadding="0"><tr>    <td colspan="2" width="167"><IMG SRC="images/spacer.gif" width="1" height="5"></td>  </tr>  <tr>    <td width="13" align="center" valign="top"><strong> <IMG SRC="images/g_bullet.gif" width="10" height="7" border="0"></strong></td>    <td width="154"><strong><a href="new_to_intl.html">New to International Banking? </a></strong></td>  </tr>  <tr>    <td width="13" align="center" valign="top"><strong> <IMG SRC="images/g_bullet.gif" width="10" height="7" border="0"></strong></td>    <td width="154"><strong> <a href="personal.html">Int\'l Personal Banking </a></strong></td>  </tr>  <tr>    <td width="13" align="center" valign="top"><strong> <IMG SRC="images/g_bullet.gif" width="10" height="7" border="0"></strong></td>    <td width="154"><strong><a href="premier.html">Int\'l Premier Banking </a> </strong></td>  </tr>  <tr>    <td width="13" align="center" valign="top"><strong> <IMG SRC="images/g_bullet.gif" width="10" height="7" border="0"></strong></td>    <td width="154"><strong><a href="corporate.html">Int\'l Corporate Banking</a></strong></td>  </tr>  <tr>    <td width="13" align="center" valign="top"><strong> <IMG SRC="images/g_bullet.gif" width="10" height="7" border="0"></strong></td>    <td width="154"><strong><a href="locations.html">Int\'l Banking Locations</a></strong></td>  </tr>  <tr>    <td align="center" valign="top"><strong><IMG SRC="images/g_bullet.gif" width="10" height="7" border="0"></strong></td>    <td><a href="personal3.html#Property"><strong>Int\'l Mortgage</strong></a></td>  </tr>  <tr>    <td width="13" align="center" valign="top"><strong> <IMG SRC="images/g_bullet.gif" width="10" height="7" border="0"></strong></td>    <td width="154"><a href="whatsnew.html"> <strong>What\'s new </strong></a></td>  </tr>  <tr>    <td align="center" valign="top"><strong><IMG SRC="images/g_bullet.gif" width="10" height="7" border="0"></strong></td>    <td><a href="apply.html"><strong>Apply Now</strong></a></td>  </tr></table>'
	break;
}

if (document.all){
        if(which!=''){
			 switch (which) {
				case 'retail': 
					subnav1.innerHTML=subNAV1;
					subnav2.innerHTML='<strong><a href="#" class="reg" onMouseDown="showSub(\'borrowing\')">International Banking</a></strong>';
				break;
				case 'borrowing': 
					subnav1.innerHTML='<strong><a href="#" class="reg" onMouseDown="showSub(\'retail\')">Retail</a></strong>';
					subnav2.innerHTML=subNAV2;
				break;
             
			 }
        }
}
else if (document.layers){
        if(which!=''){
             document.layers["subnavNE"].document.write(subNAV);
  			 document.layers["subnavNE"].document.close()
		}
}
	else
	{
	if ((x=MM_findObj('subnav'))!=null) {obj = x;obj.innerHTML =subNAV;}
	else {alert('You need NS 4 or IE 4 to view this site!')}
	}
}

////

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 MM_swapImgRestore(b) { //v3.0
	if (!document.on[b]) {
		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_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_swapImage2() { //v3.0

        var i,j=0,x,a=MM_swapImage2.arguments;     clean();
        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];document.on[a[0]] = x.oSrc;}}

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 (!document.on[a[0]]) {
    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 clean() { 
	for (i=0;i<=document.list.length-1;i++) 
	{
		if 	(document.on[document.list[i]] != null && document.ob[i] != null) {    
		document.ob[i].src = document.on[document.list[i]];
		document.on[document.list[i]] = null;
		}
	}
}
//-->