function hasPath(sPath) 
{ 
re = new RegExp("\/" + sPath + "(\/|$)"); 
return re.test(window.location) 
} 
 
if (hasPath("Galleries")) YD.addClass(document.body, "Galleries"); 
if (hasPath("Start")) YD.addClass(document.body, "Start");
if (hasPath("Contact")) YD.addClass(document.body, "Contact");
if (hasPath("Artist")) YD.addClass(document.body, "Artist");
if (hasPath("Details")) YD.addClass(document.body, "Details"); 