rightClickWarning = "All photos are property of Vince Amato Photography. All rights reserved. Unauthorized use is prohibited. ©2008"; 

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

// how fast do you want the filmstrip to move?
filmstripMove = 1;

//filmStrip values you can override:
rightMoves = -5;
leftMoves = 5;


function createSWF( w, h, params) {
  var args = "";
  for (var i in params) {
    args += i + "=" + params[i] + "&amp;";
  }
document.writeln('<object width="100%" height="100%" align="middle">'+ '<param name="movie" value="http://www.smugmug.com/ria/ShizamSlides-2007091201.swf?'+args+'"/>'+ '<param name="wmode" value="transparent" />'+ '<embed src="http://www.smugmug.com/ria/ShizamSlides-2007091201.swf?'+args+'" wmode="transparent" width="' + w + '" height="' + h + '" type="application/x-shockwave-flash" allowScriptAccess="always" allowNetworking="all"/></object>');
return 1;
} 


YE.onAvailable('categoryTitle', function() {this.innerHTML = 'Collections / Galleries'});
YE.onAvailable('featuredTitle', function() {this.innerHTML = 'Nouvelles Images / New Images'});
YE.onAvailable('popularTitle', function() {this.innerHTML = 'Favorites'});
YE.onAvailable('bioTitle', function() {this.innerHTML = 'Popular Shots'});
YE.onAvailable('subCatGalleryTitle', function() {this.innerHTML = this.innerHTML.replace(/(sub\-)?categories/, '')});
YE.onAvailable('subCatGalleryTitle', function() {this.innerHTML = this.innerHTML.replace('galleries', '')});

function changeCategoryInfo() {
  re = /^([0-9]+ )(galler(y|ies))/;

  oEl = YD.get("categoriesBox")? YD.get("categoriesBox") : YD.get("subcategoriesBox");
  if (oEl) {
    oList = YD.getElementsByClassName("miniBox", "div", oEl);

    for (i=0; i<oList.length; i++) {
      pTags = oList[i].getElementsByTagName("p");
      re.exec(pTags[1].innerHTML);
      pTags[1].innerHTML = RegExp.$1 + RegExp.$2;
    }
  }
}


YE.onContentReady('breadcrumb', function() { 
  for (var i in this.childNodes) {
    if (this.childNodes[i].tagName == "A") {
      this.childNodes[i].href="/galleries"; 
      break;
    }
  }
});


addEvent(window, "load", ModifyText);
function ModifyText () {
   var objElement = document.getElementById("breadCrumbTrail")
   if (objElement != null) {
      var str = new String(objElement.innerHTML);
      str = str.replace('>Vince<', '>Galleries<')
      objElement.innerHTML = str;
   }
}



/*=========================================*/
/*== Position Paypal -                                           ==*/
/*=========================================*/
YE.onContentReady("altViews", MovePaypalContent);

function MovePaypalContent()
{
    var paypalObj = document.getElementById("paypalButtonSet");
    var altViews = document.getElementById("altViews");
    if (altViews && paypalObj)
    {
        var paypalSetObj = paypalObj.parentNode.removeChild(paypalObj);
        altViews.appendChild(paypalSetObj);
        paypalSetObj.style.display = "inline";
    }    
}


document.formname.on1.value = 'Album Title';
document.formname.os1.value= albumtitlepp + ' File Name: ' + mainPhotoFileName;
