var clicked=""
var gtype=".jpg"
var selstate="_over"
if (typeof(loc)=="undefined" || loc==""){
	var loc=""
	if (document.body&&document.body.innerHTML){
		var tt = document.body.innerHTML.toLowerCase();
		var last = tt.indexOf("bottom.js\"");
		if (last>0){
			var first = tt.lastIndexOf("\"", last);
			if (first>0 && first<last) loc = document.body.innerHTML.substr(first+1,last-first-1);
		}
	}
}

document.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>");
document.write("<td><img src=\""+loc+"bottom_left.jpg\" alt=\"\" width=\"22\" height=\"43\"></td>");
tr(false);
writeButton("","http://investorvoice.ca/Research/Research_Index.htm","bottom_b1",78,43,"Research","",0);
writeButton("","http://investorvoice.ca/Complaints/complaints_index.html","bottom_b2",86,43,"Complaints","",0);
writeButton("","http://investorvoice.ca/OBSI/OBSI_index.htm","bottom_b3",58,43,"Ombudsman for Banking Services and Investments","",0);
writeButton("","http://investorvoice.ca/Presentations/Presentations_Index.htm","bottom_b4",98,43,"Presentations","",0);
writeButton("","http://investorvoice.ca/Search.htm","bottom_b5",66,43,"InvestorVoice & Google","",0);
writeButton("","http://investorvoice.ca/IMET/IMET.htm","bottom_b6",58,43,"Royal Canadian Mounted Police, Integrated Market Enforcement Team","",0);
writeButton("","http://investorvoice.ca/CSR/CSR_index.htm","bottom_b7",58,43,"Common Securities Regulator","",0);
writeButton("","http://investorvoice.ca/ABCP/ABCP_index.htm","bottom_b8",62,43,"Asset Backed Commercial Paper","",0);
writeButton("","http://investorvoice.ca/IAC/IAC_index.htm","bottom_b9",58,43,"OSC Investor Advisory Committee","",0);
tr(true);
document.write("<td><img src=\""+loc+"bottom_right.jpg\" alt=\"\" width=\"22\" height=\"43\"></td>");
document.write("</tr></table>")
loc="";

function tr(b){}

function turn_over(name) {
	if (document.images != null && clicked != name) {
		document[name].src = document[name+"_over"].src;
	}
}

function turn_off(name) {
	if (document.images != null && clicked != name) {
		document[name].src = document[name+"_off"].src;
	}
}

function reg(gname,name)
{
if (document.images)
	{
	document[name+"_off"] = new Image();
	document[name+"_off"].src = loc+gname+gtype;
	document[name+"_over"] = new Image();
	document[name+"_over"].src = loc+gname+"_over"+gtype;
	}
}

function evs(name){ return " onmouseover=\"turn_over('"+ name + "')\" onmouseout=\"turn_off('"+ name + "')\""}

function writeButton(urld, url, name, w, h, alt, target, hsp)
{
	gname = name;
	while(typeof(document[name])!="undefined") name += "x";
	reg(gname, name);
	tr(true);
	document.write("<td>");
	if (alt != "") alt = " alt=\"" + alt + "\"";
	if (target != "") target = " target=\"" + target + "\"";
	if (w > 0) w = " width=\""+w+"\""; else w = "";
	if (h > 0) h = " height=\""+h+"\""; else h = "";	
	if (url != "") url = " href=\"" + urld + url + "\"";
	
	document.write("<a " + url + evs(name) + target + ">");	
	
	if (hsp == -1) hsp =" align=\"right\"";
	else if (hsp > 0) hsp = " hspace=\""+hsp+"\"";
	else hsp = "";
	
	document.write("<img src=\""+loc+gname+gtype+"\" name=\"" + name + "\"" + w + h + alt + hsp + " border=\"0\" /></a></td>");
	tr(false);
}
