// JavaScript Document

function openDisclaimer()
{
	NewWindow4=window.open('http://www.menus.ca/disclaimer.htm','disclaimer','width=400,height=270,screenX=20,screenY=20,scrollbars=0,resizable=0,menubar=0,toolbar=0');
}
function openLink(lnk){
	NewWindow=window.open(lnk,'ExtLink','width=750,height=600,screenX=20,screenY=20,scrollbars=1,resizable=1,menubar=1,toolbar=1');
}
function selectProvince(provID) {
	switch(provID)
		{
		case 1: // BC
			document.getElementById('city').innerHTML = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" class="provList"><p><strong>Your City:</strong></p><ul><li><a href="/cities/vancouver/index.php">Vancouver (Metro)</a></li><li><a href="/cities/victoria/index.php">Victoria</a></li><li><a href="/cities/abbotsford/index.php">Abbotsford</a>, <a href="/directory.php?city=29">Campbell River</a></li><li><a href="/directory.php?city=28">Chiliwack</a>, <a href="/directory.php?city=27">Courtenay</a></li><li><a href="/directory.php?city=26">Cranbrook</a>, <a href="/directory.php?city=25">Duncan</a></li><li><a href="/directory.php?city=24">Kamloops</a>, <a href="/directory.php?sub=69">Kelowna</a></li><li><a href="/directory.php?city=23">Mission</a>, <a href="/directory.php?city=22">Nanaimo</a></li><li><a href="/directory.php?city=21">Parksville</a>, <a href="/directory.php?city=20">Penticton</a></li><li><a href="/directory.php?city=19">Port Alberni</a>, <a href="/directory.php?city=18">Powell River</a></li><li><a href="/directory.php?city=17">Prince George</a>, <a href="/directory.php?city=16">Prince Rupert</a></li><li><a href="/directory.php?city=15">Vernon</a>, <a href="/cities/whistler/index.php">Whistler</a></li><li><a href="#" onClick="javascript: selectProvince(0); return false;">See Provinces</a></li></ul></td><td width="268"><div align="center"><img src="images/prov-bc.png" width="268" height="257" border="0" usemap="#Map1"></div></td></tr></table><map name="Map1"><area shape="rect" coords="71,149,143,196" href="/cities/vancouver/index.php"><area shape="rect" coords="59,196,110,227" href="/cities/victoria/index.php"><area shape="rect" coords="151,161,229,183" href="/directory.php?city=24"><area shape="rect" coords="148,187,207,219" href="/directory.php?sub=69"></map>';
    	break;    
		case 2: // AB
			document.getElementById('city').innerHTML = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" class="provList"><p><strong>Your City:</strong></p><ul><li><a href="/directory.php?city=Calgary">Calgary</a></li>        <li><a href="/directory.php?city=Edmonton">Edmonton</a></li><li><a href="/cities/coming.php">Red Deer</a><br /></li><li><a href="/cities/coming.php">Lethbridge</a></li><li><a href="#" onClick="javascript: selectProvince(0); return false;">See Provinces</a></li></ul></td><td width="268"><div align="center"><img src="images/prov-ab.png" width="160" height="257" border="0" usemap="#Map2"></div></td></tr></table><map name="Map2"><area shape="rect" coords="8,187,73,216" href="/directory.php?city=Calgary"><area shape="rect" coords="31,130,102,165" href="/directory.php?city=Edmonton"><area shape="rect" coords="69,167,141,189" href="/cities/coming.php"><area shape="rect" coords="35,222,109,254" href="/cities/coming.php"></map>';
    	break;    
		case 3: // SK
			document.getElementById('city').innerHTML = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" class="provList"><p><strong>Your City:</strong></p><ul><li><a href="/cities/regina/index.php">Regina</a></li><li><a href="/cities/saskatoon/index.php">Saskatoon</a></li><li><a href="#" onClick="javascript: selectProvince(0); return false;">See Provinces</a></li></ul></td><td width="268"><div align="center"><img src="images/prov-sk.png" width="158" height="257" border="0" usemap="#Map3"></div></td></tr></table><map name="Map3"><area shape="rect" coords="42,142,115,180" href="/cities/saskatoon/index.php"><area shape="rect" coords="77,206,129,242" href="/cities/regina/index.php"></map>';
    	break;    
		case 4: // MB
			document.getElementById('city').innerHTML = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" class="provList"><p><strong>Your City:</strong></p><ul><li><a href="/cities/winnipeg/index.php">Winnipeg</a></li><li><a href="/directory.php?city=10">Brandon</a></li><li><a href="#" onClick="javascript: selectProvince(0); return false;">See Provinces</a></li></ul></td><td width="375"><div align="center"><img src="images/prov-mb.png" border="0" usemap="#Map4" /></div></td></tr></table><map name="Map4"><area shape="rect" coords="15,219,72,248" href="/directory.php?city=10"><area shape="rect" coords="94,214,171,242" href="/cities/winnipeg/index.php"></map>';
    	break;    
		case 5: // ON
			document.getElementById('city').innerHTML = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" class="provList"><p><strong>Your City:</strong></p><ul><li><a href="/directory.php?city=Toronto">Toronto</a></li><li><a href="/directory.php?city=Ottawa">Ottawa</a></li><li><a href="/cities/coming.php">Hamilton</a></li><li><a href="/cities/coming.php">London</a></li><li><a href="/cities/coming.php">Brampton</a></li><li><a href="/cities/coming.php">Markham</a></li><li><a href="/cities/coming.php">Vaughan</a></li><li><a href="/cities/coming.php">Windsor</a></li><li><a href="/cities/coming.php">Kitchener</a></li><li><a href="#" onClick="javascript: selectProvince(0); return false;">See Provinces</a></li></ul></td><td width="268"><div align="center"><img src="images/prov-on.png" width="278" height="257" border="0" usemap="#Map5"></div></td></tr></table><map name="Map5"><area shape="rect" coords="118,105,167,125" href="/directory.php?city=Toronto"><area shape="rect" coords="219,134,267,168" href="/directory.php?city=Ottawa"><area shape="rect" coords="120,126,197,255" href="/cities/coming.php"><area shape="rect" coords="197,192,264,234" href="/cities/coming.php"></map>';
    	break;    
		case 6: // QC
			document.getElementById('city').innerHTML = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" class="provList"><p><strong>Your City:</strong></p><ul><li><a href="/cities/coming.php">Gatineau</a></li><li><a href="/cities/coming.php">Montreal</a></li><li><a href="/cities/coming.php">Quebec</a></li><li><a href="/cities/coming.php">Sherbrooke</a></li><li><a href="#" onClick="javascript: selectProvince(0); return false;">See Provinces</a></li></ul></td><td width="268" valign="middle"><div align="center"><img src="images/prov-qc.png" width="230" height="257" border="0" usemap="#Map6" /></div></td></tr></table><map name="Map6" id="Map6"><area shape="rect" coords="19,172,226,260" href="/cities/coming.php" /></map>';
    	break;    
		case 7: // NS
			document.getElementById('city').innerHTML = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" class="provList"><p><strong>Your City:</strong></p><ul><li><a href="/directory.php?city=Halifax">Halifax</a></li><li><a href="/cities/coming.php">Cape Breton</a></li><li><a href="#" onClick="javascript: selectProvince(0); return false;">See Provinces</a></li></ul></td><td width="268"><div align="center"><img src="images/prov-ns.png" width="176" height="257" border="0" usemap="#Map7"></div></td></tr></table><map name="Map7"><area shape="rect" coords="54,157,102,198" href="/directory.php?city=Halifax"><area shape="rect" coords="123,24,169,77" href="/cities/coming.php"></map>';
    	break;    
		case 8: // PEI
			document.getElementById('city').innerHTML = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" class="provList"><p><strong>Your City:</strong></p><ul><li><a href="/cities/coming.php">Charlottetown</a><a href="/cities/coming.php"></a></li><li><a href="#" onClick="javascript: selectProvince(0); return false;">See Provinces</a></li></ul></td><td width="268" valign="middle"><div align="center"><a href="/cities/coming.php"><img src="images/prov-pe.png" width="137" height="94" border="0" /></a></div></td></tr></table>';
    	break;    
		case 9: // NB
			document.getElementById('city').innerHTML = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" class="provList"><p><strong>Your City:</strong></p><ul><li><a href="/cities/coming.php">Fredericton</a></li><li><a href="/cities/coming.php">Moncton</a></li><li><a href="/cities/coming.php">Saint John</a></li><li><a href="#" onClick="javascript: selectProvince(0); return false;">See Provinces</a></li></ul></td><td width="268" valign="middle"><div align="center"><img src="images/prov-nb.png" width="285" height="257" border="0" usemap="#Map9" /></div></td></tr></table><map name="Map9" id="Map9"><area shape="rect" coords="187,110,255,153" href="/cities/coming.php" /><area shape="rect" coords="93,162,177,204" href="/cities/coming.php" /><area shape="rect" coords="195,205,278,249" href="/cities/coming.php" /></map>';
    	break;    
		case 10: // NL
			document.getElementById('city').innerHTML = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" class="provList"><p><strong>Your City:</strong></p><ul><li><a href="/cities/coming.php">St. John\'s</a><a href="/cities/saskatoon/index.php"></a></li><li><a href="#" onClick="javascript: selectProvince(0); return false;">See Provinces</a></li></ul></td><td width="268"><div align="center"><img src="images/prov-nf.png" width="268" height="257" border="0" usemap="#Map10"></div></td></tr></table><map name="Map10"><area shape="rect" coords="199,79,263,134" href="/cities/coming.php"></map>';
    	break;    
		default:
			document.getElementById('city').innerHTML = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" class="provList"><p><strong>Select to continue:</strong></p><ul><li><a href="#" onclick="javascript: selectProvince(1); return false;">British Columbia</a></li><li><a href="#" onclick="javascript: selectProvince(2); return false;">Alberta</a></li><li><a href="#" onclick="javascript: selectProvince(3); return false;">Saskatchewan</a></li><li><a href="#" onclick="javascript: selectProvince(4); return false;">Manitoba</a></li><li><a href="#" onclick="javascript: selectProvince(5); return false;">Ontario</a></li><li><a href="#" onclick="javascript: selectProvince(6); return false;">Quebec</a></li><li><a href="#" onclick="javascript: selectProvince(7); return false;">Nova Scotia</a></li><li><a href="#" onclick="javascript: selectProvince(8); return false;">PEI</a></li><li><a href="#" onclick="javascript: selectProvince(9); return false;">New Bruswick</a></li><li><a href="#" onclick="javascript: selectProvince(10); return false;">Newfoundland</a></li></ul></td><td width="375"><img src="images/home-canada.png" width="375" height="257" usemap="#Map" border="0" /></td></tr></table>';
		} 
}
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 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_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function toggleDiv(divid){
    if(document.getElementById(divid).style.display == 'none')
	{
    	document.getElementById('option_share').style.display = 'none';
		document.getElementById('option_review').style.display = 'none';
		document.getElementById(divid).style.display = 'block';
    }
	else {
      document.getElementById(divid).style.display = 'none';
    }
}
function hoverYes(LinkName) {
		LinkName.style.background = "url(images/rest_bglinkgeneric.gif)";
	}
function hoverNo(LinkName) {
		LinkName.style.background = "";
	}
function initDivs() {
	document.getElementById('option_share').style.display = 'none';
	document.getElementById('option_review').style.display = 'none';
}