function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}



var vanityTable =
{

	peopleportraits:"http://www.premierphotokc.com/gallery/5679808_iq96X#349929985_u346F",

	petportraits:"http://www.premierphotokc.com/gallery/4680264_WyEyD#281670795_NqUaq",

sandrameneses: "http://www.premierphotokc.com/gallery/5760760_Uy2jn#356252090_KbsKw",

kwheeler: "http://premierphotokc.smugmug.com/gallery/7484926_Eepdp#482994709_7BrmR",

menesesbaby: "http://premierphotokc.smugmug.com/gallery/6232518_rM7yu#393391086_4EEW9",

maternity: "http://www.premierphotokc.com/gallery/5756814_CAgws#355878024_EW4oy",

chadamanda: "http://www.premierphotokc.com/gallery/5801170_6KU5A/1/359357895_aMjnu#359357895_aMjnu",

ethaneli: "http://premierphotokc.smugmug.com/gallery/7325215_M9yRZ#471319765_XGWbn",

jaydenhartline: "http://premierphotokc.smugmug.com/gallery/7450025_AxV9E#480518159_BKc6u",

priddywedding: "http://www.premierphotokc.com/Weddings/Priddy-Wedding/10054533_xZFp9#P-1-15",

murphylippincoh: "http://www.premierphotokc.com/gallery/5759273_QFXuu#356113852_Bukep",

flemingwedding:  "http://www.premierphotokc.com/Weddings/S-Fleming-Wedding/9945737_fVcfB#678889551_aBLjb",


fleming: "http://www.premierphotokc.com/People/Engagement/Stephanie-Fleming/9745649_8HT5Q#659963551_iCDYP",

heatherlyfamily: "http://premierphotokc.smugmug.com/gallery/7977382_4tDu7#518354778_sMH8G",

melgirls: "http://premierphotokc.smugmug.com/gallery/6856169_yzVzb#438495243_7mGMX",

grandmahershley: "http://premierphotokc.smugmug.com/gallery/6727792_ZMMQY#429654767_S7diY",

seiberyorkie: "http://www.premierphotokc.com/Other/Seiber-Yorkie/10219183_sgeTa#704472456_5ujHN",

twopoms: "http://premierphotokc.smugmug.com/gallery/7537562_mj3cz#486843679_cRdT5",

lmaternity: "http://www.premierphotokc.com/gallery/7537670_eCfR3#486849795_efNZq",

aprilrj: "http://premierphotokc.smugmug.com/gallery/6488393_nXcui#412137282_SyYUv",

ooaband: "http://premierphotokc.smugmug.com/gallery/7140250_SVvfi#459126069_DCEkU",

arreguidogs: "http://premierphotokc.smugmug.com/gallery/6801061_8qGzx#434665594_nbPg5",

marshallfamily: "http://premierphotokc.smugmug.com/gallery/6559052_eC7xf#417428127_k9ucJ",

wheelertwins: "http://premierphotokc.smugmug.com/gallery/7888920_whnir#512533151_tpUsT",

connerfamily: "http://www.premierphotokc.com/gallery/6531670_SiZxc#415268541_wvLEH",

spearsfamily: "http://premierphotokc.smugmug.com/gallery/6710793_hxjKk#428459079_4Rq78",

kaisergsd: "http://premierphotokc.smugmug.com/gallery/6694659_SuMPd#427374299_TVF9a",

menesesdec: "http://premierphotokc.smugmug.com/gallery/6736302_E88PN#430251962_SE6tS",

tobymaggieholiday: "http://premierphotokc.smugmug.com/gallery/6546017_AnUB4#417442464_4omgF",

bopetty: "http://www.premierphotokc.com/gallery/5882076_q5p62/1/365528730_GCY5m#365528730_GCY5m",

candicewheeler: "http://www.premierphotokc.com/gallery/5846809_hgDix/1/362830726_ctjoX#362830726_ctjoX",

newellfamily: "http://premierphotokc.smugmug.com/gallery/6447198_XzC9j#408583060_zj53V",

finkfamily: "http://www.premierphotokc.com/gallery/6432658_KGwo4#407531437_RQw5d",

angeldog: "http://premierphotokc.smugmug.com/gallery/7108968_fVYPa#455818812_NGKmP",

winkiecards: "http://premierphotokc.smugmug.com/gallery/6651500_QZW9W#424506662_UsHA5",

menesesoneyear:  "http://www.premierphotokc.com/Other/meneses/9461045_UEH4i#634753287_gNvBi",

sadieroscoe: "http://premierphotokc.smugmug.com/gallery/6695472_irfBH#427410579_FBr9F",

endofthetrail:"http://www.premierphotokc.com/gallery/5936315_kVbdS#369438944_VLxNy",

momsalliance: "http://premierphotokc.smugmug.com/gallery/5948384_QhHRn/1/370711195_58iC2#370711195_58iC2",

pioneerdays: "http://premierphotokc.smugmug.com/gallery/5960579_RNpRb",

holidaycards: "http://premierphotokc.smugmug.com/gallery/6528768_u7PWk#419654593_BVsX7",

lopez: "http://premierphotokc.smugmug.com/gallery/6173336_cXNkq#393945946_fTXde",

morris: "http://www.premierphotokc.com/gallery/6172927_rCk55#393944795_xHyKH",

boyddogs: "http://www.premierphotokc.com/gallery/6254046_utTEG#394992705_QKBrF",

seiber: "http://premierphotokc.smugmug.com/gallery/6296615_oco5v#435623310_jnTLu",

shieldsmanor: "http://premierphotokc.smugmug.com/gallery/5971042_x5WDw#372583271_FrawV",

kcrenfest: "http://www.premierphotokc.com/gallery/6041472_fCnnb#378982802_tq3xz",

weddingofthecentury: "http://premierphotokc.smugmug.com/gallery/6232607_2gdkZ#393397476_o8KVj",

worldbirdsanctuary: "http://premierphotokc.smugmug.com/gallery/6119517_sYVG5#384791067_F53rC",

train: "http://www.premierphotokc.com/gallery/6062289_T6re3#380115156_XgFvn",

dvdscrapbook: "http://premierphotokc.smugmug.com/gallery/5989927_48N2H/1/374167226_CfZca",

	childrenportraits:"http://www.premierphotokc.com/gallery/4561826_axfeR#268853432_WPcXv"
	
};


function CheckRedirects()
 {
     if (YD.hasClass(document.body, 'homepage'))    // only run this code on the home page
     {
         // get the path from the current URL, 
         // convert it to lowercase and remove the leading slash
         var path = window.location.pathname.toLowerCase().substr(1);
         
         var newURL = vanityTable[path];        // look it up in our table
         
         // if we found it in the table && newURL is different than where we are
         if (newURL && (newURL != window.location))
         {
             window.location.replace(newURL);        // go to the new URL
         }
     }
 }