SM.PhotoBar.config.position = 'bottom';
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

rightClickWarning = "All images are copyright © Brian Johnson. All rights reserved. Unauthorized use is prohibited.";

var vanityTable = 
 {
    heads: "http://horrorillustration.smugmug.com/gallery/6529449_8QaXU#415118922_3SqKA",
     blackgounds : "http http://www.horrorillustration.com/gallery/6532699_89gRB#415341090_FoCFc",
     film: " http://www.horrorillustration.com/gallery/6533562_X8TTX#415400287_y9MuA",
     animation: "http://www.horrorillustration.com/gallery/6533050_JBU6W#415365358_YMRBf"
 };
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
         }
     }
 }

