﻿
// this function is used in site pages such as those for Mimi Sheridan's thesis
// to use this function, code a link as follows:
//        <a href="javascript:goToLink('streetcars_counterbalance');">Counterbalance</a>

function goToLink(friendly_name) {
    document.location.href = getLink(friendly_name);
}

// this function is used in index.htm


function getLink(friendly_name) {
    var result = null;
    switch (friendly_name) {
    
	 	case 'history_wall':
            result = "http://qahistory.org/wall/index.htm";
            break;
		case '7th_wmcgraw':
            result = "http://qahistory.org/search/detail.php?id=37";
            break;
        case '202_w_olympic':
            result = "http://qahistory.org/search/detail.php?id=73";
            break;
    
        case 'ankeny':
            result = "http://web1.seattle.gov/dpd/historicalsite/QueryResult.aspx?ID=1426791654";
            break;

        case 'bagley':
            result = "http://www.qahistory.org/oldhomes/target7.html";
            break;

        case 'bagley1':
            result = "http://www.qahistory.org/oldhomes/target7.html";
            break;

        case 'bagley2':
            result = "http://www.qahistory.org/oldhomes/target6.html";
            break;
            
         case 'bagley3':
             result = "http://qahistory.org/search/detail.php?id=77";
             break;

         case 'ballard':
             result = "http://qahistory.org/search/detail.php?id=123";
             break;
         
         case 'black':
             result = "http://qahistory.org/search/detail.php?id=74";
             break;
             
        case 'book':
            result = "http://qahistory.org/book.htm";
            break;
        case 'butterworth':
            result = "http://qahistory.org/search/detail.php?id=86";
            break;

        case 'childrens':
            result = "http://www.qahistory.org/cohphoto.htm";
            break;

        case 'christ_scientist':
            result = "http://www.qahistory.org/church/index.html";
            break; 
                  
        case 'clise_anna':
            result = "http://qahistory.org/search/detail.php?id=54";
            break;

        case 'counterbalance_park':
            result = "http://www.qahistory.org/counterbalance/newpark.htm";
            break; 
            
        case 'delamar':
            result = "http://qahistory.org/search/detail.php?id=121";
            break;
            
        case 'denny':
            result = "http://www.qahistory.org/denny/index.htm";
            break;

        case 'furry':
            result = "http://qahistory.org/search/detail.php?id=70";
            break;
            
        case 'highland_firstnorth':
            result = "http://qahistory.org/now.htm";
            break;

        case 'interbay_p_patch_2001':
            result = "http://www.qahistory.org/ncomposting_flowers.htm";
            break;
            
        case 'kerry_park':
            result = "http://qahistory.org/now2004a.htm";
            break;
            
        case 'kerry_park_1932':
            result = "http://qahistory.org/search/detail.php?id=109";
            break;
            
            
         case 'kinnear':
             result = "http://qahistory.org/search/detail.php?id=103";
            break;    
               
        case 'kinnear_park':
            result = "http://qahistory.org/search/detail.php?id=117";
            break;    
            
        case 'mercer':
            result = "http://qahistory.org/search/detail.php?id=38";
            break;

        case 'mercer_1st_w':
            result = "http://qahistory.org/search/detail.php?id=84";
            break;
            
        case 'mount_pleasant':
            result = "http://qahistory.org/mt_pleasant.htm";
            break;

        case 'parsons':
            result = "http://qahistory.org/search/detail.php?id=79";
            break;
            
        case 'queen_anne_boulevard':
            result = "http://www.qahistory.org/bookbit.htm";
            break;

        case 'queen_anne_club':
            result = "http://www.qahistory.org/qaclub.htm";
            break;

        case 'queen_anne_style':
            result = "http://qahistory.org/qanames.htm";
            break;

        case 'riddle':
            result = "http://qahistory.org/search/detail.php?id=94";
            break;
            
        case 'seattle_center_vigil':
            result = "http://www.qahistory.org/nflower_vigil.htm";
            break;
        
        case 'smith_henry':
            result = "http://qahistory.org/search/detail.php?id=53";
            break;
            
         case 'stimson':
             result = "http://www.qahistory.org/405whigh.htm";
            break;   
            
        case 'streetcars':
            result = "http://qahistory.org/streetcars.htm";
            break;
        case 'streetcars_counterbalance':
            result = "http://qahistory.org/counterbalance/index.htm";
            break;
            
        case 'streetcars_counterbalance2':
            result = "http://qahistory.org/counterbalance.htm";
            break;
            
        case 'treat':
            result = "http://qahistory.org/treat/index.html";
            break;
            
            
        case 'valencia':
            result = "http://www.qahistory.org/valencia.htm";
            break;    
            
         case 'water_towers':
            result = "http://www.qahistory.org/watertowers.htm";
            break;     
        case 'wilke_farm':
            result = "http://qahistory.org/wilke_farm.htm";
            break;     
        default:
            result = "http://qahistory.org";

    }
    return result;

}
