// change the link on the SmugMug Logo

YE.onAvailable('homelink', function(e) {

this.href = "http://BeckmannImages.smugmug.com/";

this.firstChild.alt = "Home";

this.firstChild.title = "Home";

});

// removes the pipes characters in the toolbar header

YE.onAvailable('toolbar', function(e) {

this.innerHTML = this.innerHTML.replace(new RegExp(/\|/g),"");

});


function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}


function removeKeywords() {

 var aKeywords = ['warszawa','vallarta','tagged','fran','adj','gps','puerto'];

 var oBox = YD.get('keywordsBox');
 oKeywords = YD.getElementsByClassName('keyword', 'a', oBox);

 for (i=0; i<oKeywords.length; i++) {
for (j=0; j<aKeywords.length; j++) {
if (aKeywords[j] == oKeywords[i].innerHTML) {
try {
oKeywords[i].parentNode.removeChild(oKeywords[i].previousSibling);
} catch(e){}
try {
oKeywords[i].parentNode.removeChild(oKeywords[i].nextSibling);
} catch(e){}
try {
oKeywords[i].parentNode.removeChild(oKeywords[i].nextSibling);
} catch(e){}
try {
oKeywords[i].parentNode.removeChild(oKeywords[i]);
} catch(e){}
break;
}
}
}
}












