var vanityTable =
 {
	portraitservices : "http://www.studiovoxpop.com/gallery/4200871",
	portraitoptions : "http://www.studiovoxpop.com/gallery/4287656_jMyCH",
sampleportraits : "http://www.studiovoxpop.com/gallery/4546308_awpTs",
	portraitprintprices : "http://www.studiovoxpop.com/gallery/4287614_e3rXK",
hysteria : "http://www.studiovoxpop.com/gallery/4746689_vjAHx",
	clientgalleries : "http://www.studiovoxpop.com/gallery/4287645_icLDZ",
    thephotographer : "http://www.studiovoxpop.com/gallery/2533641",
    faqs : "http://www.studiovoxpop.com/gallery/2533751",
    photographicart : "http://www.studiovoxpop.com/StudioVoxPop%20Galleries"
 };

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
         }
     }
 }












  
//filmStrip values you can override:
rightMoves = 5;
leftMoves = -5;


function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

function AddReferralCode()  {
  var links = this.getElementsByTagName("A");
  if (links && (links.length != 0)) {
    var smugLink = links.item(0);
    smugLink.href = "http://www.smugmug.com/?referrer=hme1Wd4DbTs2w";
  }
}
YE.onAvailable('footer', AddReferralCode);


rightClickWarning = "All photos are Copyrighted Justin Akers - Studio VoxPop. All rights reserved. Unauthorized use is prohibited."

showImagePreview = false;

YE.onAvailable('galleryTitle', function() {this.innerHTML = 'Studio VoxPop Galleries'});




resizeLarge();

function resizeLarge() {
var url = window.location.href;

if (url.indexOf("/Small") + url.indexOf("/Medium") + url.indexOf("/Original") > -3) {
window.location.replace(url.substr(0, url.lastIndexOf("/")) + "/Large")
}
}


function redirectPath() { 
re = /(studiovoxpop.smugmug.com)/; 
tmp = window.location.href; 
if (re.test(tmp)) { 
tmp = tmp.replace(re, 'www.studiovoxpop.com'); 
window.location.href = tmp; 
} 
}
redirectPath();