if (YD.hasClass(document.body,"gallery_5356883|gallery_3937472") && YD.hasClass(document.body,"galleryPage"))
{ 
showPhotoBar = false;
}


delCategory();



if (YD.hasClass(document.body,"gallery_3020273") && YD.hasClass(document.body,"galleryPage"))
{ 
helpMenuToggle('Viewing0');
}







function addCategoryDescription() {
 var categoryDescription = {
     "Computers" : "Artwork create from combinations of photographic material from various sources.",
     "Photography" : "Traditional photography of various types.",
     "Black_&amp;_White" : "Black & White Artwork",
     "Color_Images" : "Color Images",
     "Black_&_White_Images" : "Black & White Images",
     "Color" : "Color Artwork"
 };

  if ((YD.hasClass(document.body, "category")) && (!YD.hasClass(document.body, "subcategory"))) {

    re = /category_(\S+)/i;
    re.exec(document.body.className);

    breadCrumb = YD.get("breadcrumb");
    if (breadCrumb && categoryDescription[RegExp.$1]) {
      divTag = document.createElement("div");
      divTag.className = "categoryDescription";
      divTag.appendChild(document.createTextNode(categoryDescription[RegExp.$1]));
      breadCrumb.parentNode.insertBefore(divTag, breadCrumb.nextSibling);
    }
  }
  if (YD.hasClass(document.body, "homepage")) {
    re = /\>([\w\-]+)<\/a>/i;

    divTag = YD.get("categoriesBox");
   if (divTag) {
      divTags = YD.getElementsByClassName("albumTitle", "p", divTag);

      for (i=0; i<divTags.length; i++) {
       re.exec(divTags[i].innerHTML);
        if (categoryDescription[RegExp.$1] != undefined) {
          pTag = document.createElement("p");
          pTag.className = "categoryDescription";
          pTag.appendChild(document.createTextNode(categoryDescription[RegExp.$1]));
          divTags[i].parentNode.insertBefore(pTag, divTags[i].nextSibling);
        }
      }
    }
  }
}
YE.addListener(window, "load", addCategoryDescription); 





YE.onAvailable('keywordList', function(e) {

this.innerHTML = this.innerHTML.replace(new RegExp(/\•/g),"|");

});




/* Update map coordinates and zoom level */
function UpdateMap()
   {
   map.setCenter(new GLatLng(33.90743800000000, -118.00104200000000), 9);
   }

/* If this is the find page, add a listener for the map's load event */
if(hasPath("map"))
   GEvent.addListener(map, "load", UpdateMap);


document.oncontextmenu = rightProtect;
  function rightProtect(e) 
{ if (window.event) 
{ var srcEl = event.srcElement ? event.srcElement : event.target; }
  else 
{ var srcEl = e.srcElement ? e.srcElement : e.target; }
  if (srcEl.tagName.toLowerCase() == 'img') {
  window.alert(rightClickWarning);
  return false; }
  else 
{ return true; } }

var rightClickWarning = "All images on this site are mine.";








var objElement = document.getElementById("breadcrumb")
if (objElement != null) {
var str = new String(objElement.innerHTML);
str = str.replace('>richw<', '><a href="/galleries" class="nav">Galleries</a><');
objElement.innerHTML = str;
}






 document.oncontextmenu = rightProtect;
  function rightProtect(e) 
{ if (window.event) 
{ var srcEl = event.srcElement ? event.srcElement : event.target; }
  else 
{ var srcEl = e.srcElement ? e.srcElement : e.target; }
  if (srcEl.tagName.toLowerCase() == 'img') {
  window.alert(rightClickWarning);
  return false; }
  else 
{ return true; } }

var rightClickWarning = "All images on this site are mine.";


// removes galleries word

YE.onContentReady('galleryTitle', function() {this.innerHTML = this.innerHTML.replace('Galleries', '')});



YE.onAvailable("content", MarkPasswordBody);

function MarkPasswordBody()
{
    if ((YD.hasClass(this, "galleryPassword")) || (YD.hasClass(this, "passwordPage")))
    {
        YD.addClass(document.body, "passwordBody");
    }
}





YE.onAvailable('featuredTitle', function() {this.innerHTML = 'Favs'});





