/*=========================================*/
/*== Position Paypal -                                           ==*/
/*=========================================*/
YE.onContentReady("altViews", MovePaypalContent);
function MovePaypalContent()
{
    var paypalObj = document.getElementById("paypalButtonSet");
    var altViews = document.getElementById("altViews");
    var smugmug= document.getElementById("smugmug");
    if (altViews && paypalObj && smugmug)
    {
        var paypalSetObj = paypalObj.parentNode.removeChild(paypalObj);
        altViews.appendChild(paypalSetObj);
        paypalSetObj.style.display = "inline";
    }    
}






/*=========================================*/
/*== Client Login - ==*/
/*=========================================*/
<!-- 
 function checkEnter(e){ //e is event object passed from function invocation
   var characterCode; // literal character code will be stored in this variable
   if(e && e.which){ //if which property of event object is supported (NN4)
      e = e;
      characterCode = e.which; //character code is contained in NN4's which property
   }
   else{
      e = event;
      characterCode = e.keyCode; //character code is contained in IE's keyCode property
   }

   if(characterCode == 13){ //if generated character code is equal to ascii 13 (if enter key)
      Login(); //submit the form
   return false; 
   }
   else{
      return true; 
   }

}
function Login(){
var done=0;
var pword=document.f_login.pword.value;
pword=pword.toLowerCase();

if (pword=="nic") { window.location="/gallery/8267554_YnTcb"; done=1; }
if (pword=="bobbean") { window.location="/gallery/8267805_rpyqZ"; done=1; }

if (done==0) { alert("Password not accepted. Please try again."); }

}
// -->



/*=========================================*/
/*== Right Click Warning!                            ==*/
/*=========================================*/
rightClickWarning = "All images are © MdP, LLC. All rights reserved. Unauthorized use is prohibited!"




/*=========================================*/
/*== Hide Certain Categories                          ==*/
/*=========================================*/
var hiddenCategories = ["Texas%20Bulldogs","About%20Austin"];
 
function hideCategories()
{
  var categoriesBox = document.getElementById("categoriesBox");
  if (categoriesBox!=null) {
    var divs = categoriesBox.getElementsByTagName('div');
    for(i in divs)  {
      var div = divs[i];
      if(div.className=="miniBox") {
        var anchors = div.getElementsByTagName('a');  
        if(anchors.length>0) {
          var s = anchors[0].getAttribute('href');
          var parts = (s ? s.split('/') : null);
          s = (parts && parts.length>0 ? parts[parts.length-1] : s);
          for(cat in hiddenCategories) {
            if (hiddenCategories[cat] == s) {
              div.style.display = 'none';
            }
          }
        }    
      }
    }
    categoriesBox.style.visibility = 'visible';
  }
}
 
YE.onContentReady('categoriesBox', hideCategories);






/*=========================================*/
/*== Code to Help w/ Gallery Slideshow                  ==*/
/*=========================================*/
function hasPath(sPath){
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location);
}
