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;
}

if (document.images) {
nav_home_f2 = new Image(57 ,68); nav_home_f2.src = "images/nav_home_f2.gif";
nav_home_f1 = new Image(57 ,68); nav_home_f1.src = "images/nav_home.gif";
nav_about_f2 = new Image(62 ,68); nav_about_f2.src = "images/nav_about_f2.gif";
nav_about_f1 = new Image(62 ,68); nav_about_f1.src = "images/nav_about.gif";
nav_news_f2 = new Image(55 ,68); nav_news_f2.src = "images/nav_news_f2.gif";
nav_news_f1 = new Image(55 ,68); nav_news_f1.src = "images/nav_news.gif";
nav_practice_f2 = new Image(147 ,68); nav_practice_f2.src = "images/nav_practice_f2.gif";
nav_practice_f1 = new Image(147 ,68); nav_practice_f1.src = "images/nav_practice.gif";
}

function doRandom(){
	fact = new Array
	fact[1]="Did you know that there are approximately 280,000 active B.C. companies?</span><br><img src='images/spacer.gif' width=1 height=4 border=0><br>(source: BC Ministry of Finance – Corporate Registry, 2003)"
	fact[2]="Only about 22% of Canadian law firms have their own web site.</span><br><img src='images/spacer.gif' width=1 height=4 border=0><br>(source: Statistics Canada, 2003)"
	fact[3]="There were 40,175 patents filed in Canada during the period 2001 to 2002.</span><br><img src='images/spacer.gif' width=1 height=4 border=0><br>(source: Canadian Intellectual Property Office)"
	fact[4]="Each year there are 111 million people who cross the Canada-U.S. border.</span><br><img src='images/spacer.gif' width=1 height=4 border=0><br>(source: Integrated Border Enforcement Team, 2003)"
	fact[5]="96% of Canadian corporations with annual revenues of less than $15 million pay $25,000 or less in corporate income tax each year.</span><br><img src='images/spacer.gif' width=1 height=4 border=0><br>(source: Canadian Tax Journal, 2001)"
	fact[6]="The Royal Canadian Mounted Police earn approximately $2 million per year from merchandising the RCMP trade-marks.</span><br><img src='images/spacer.gif' width=1 height=4 border=0><br>(source: Southern Californian Law Review, Vol. 74, No. 6, September 2001)"
	fact[7]="Hockey goal pads, which originated from leg protectors for cricket, were modified in the 1920s by Emil &quot;Pop&quot; Kenesky (born Knischewoky) to what is essentially their present design. He flattened and widened the exterior of the pads to reduce the rebound of the puck. He received a patent (#294435) on November 5, 1929.</span><br><img src='images/spacer.gif' width=1 height=4 border=0><br>(source: Canadian Intellectual Property Office, 2003)"
	
	random_num = (Math.round((Math.random()*6)+1))
	
	document.write(fact[random_num]);
}

