/*	FLASH MAP
	The button instance is reference by it's actual text on the map (nw) for example
	but the flashmap returns it's true name here (newwestminster) in the case of (nw) */

function mapurl(area){
	var mapurl = "";
	switch(area)
	{
	case 'westvancouver':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@VWV&realtor_mysqldb=redbvancouver&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'vancouverwest':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@VVW&realtor_mysqldb=redbvancouver&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'northvancouver':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@VNV&realtor_mysqldb=redbvancouver&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'eastvan':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@VVE&realtor_mysqldb=redbvancouver&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'burnaby':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@VBS-@VBN-@VBE&realtor_mysqldb=redbvancouver&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'richmond':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@VRI&realtor_mysqldb=redbvancouver&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'delta':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@F10&realtor_mysqldb=redbfraser&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'portmoody':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@VPM&realtor_mysqldb=redbvancouver&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'newwestminster':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@VNW&realtor_mysqldb=redbvancouver&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'coquitlam':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@VCQ&realtor_mysqldb=redbvancouver&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'protcoquitlam':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@VPQ&realtor_mysqldb=redbvancouver&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break   
	case 'northsurrey':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@F20&realtor_mysqldb=redbfraser&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'surrey':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@F30&realtor_mysqldb=redbfraser&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'cloverdale':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@F40&realtor_mysqldb=redbfraser&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'whiterock':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&%40area=%40F50&realtor_mysqldb=redbfraser&officelimit=&Which=All&%40mlnum=&min_%40listprice=&max_%40listprice=&sort=%40listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'pittmeadows':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@VPI&realtor_mysqldb=redbvancouver&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'mapleridge':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@VMR&realtor_mysqldb=redbvancouver&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'langley':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@F60&realtor_mysqldb=redbfraser&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'mission':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@F80&realtor_mysqldb=redbfraser&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'abbotsford':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@F70&realtor_mysqldb=redbfraser&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'chilliwack':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=N&@area=@H90&realtor_mysqldb=redbchilliwack&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'kamloops':
	  //mapurl = "";
	  alert("Coming Soon");
	  return false;
	  break    
	case 'kelowna':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=Y&@area=@Kelowna&realtor_mysqldb=homelifelistingstoronto&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'merritt':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=Y&@area=&realtor_mysqldb=homelifelistingskl&officelimit=&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'princeton':
	  mapurl = "/cgi-bin/hl/listings.cgi?overlord=Results&realtorinfo=Y&@area=&realtor_mysqldb=homelifelistingstoronto&officelimit=000291&Which=All&@mlnum=&min_@listprice=&max_@listprice=&sort=@listprice&order=DESC&output=quick&lpp=10&listingtype=";
	  break    
	case 'salmonarm':
	  mapurl = "http://www.homelifesalmonarm.com/properties/officelistings.html";
	  break
	default:
	}
	top.location = mapurl;
}

