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;
}

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

rightClickWarning = "All photos are property of Carl B Silverstein Photography. All rights reserved. Unauthorized use is prohibited.";

function norobotmail(aUser, aDomain) {
document.location = "mailto:" + aUser + "@" + aDomain;
}

function delHover() {
imgTags = document.getElementsByTagName("img");
for (i=0; i<imgTags.length; i++) {
imgTags[i].title = "";
imgTags[i].alt = "";
}
}

function redirectPath() {
re = /(cbsnet.smugmug.com)/;
tmp = window.location.href;
if (re.test(tmp)) {
tmp = tmp.replace(re, 'www.silverstein.com (http://www.silverstein.com/)');
window.location.href = tmp;
}
}
redirectPath();

function doOnLoad() {
  if (window.AlbumID && (window.AlbumID == "4410101")) //
  removeLinkFromImg();
}

function removeLinkFromImg() {
  oList = YD.getElementsByClassName("photo", "div");

  for (i=0; i < oList.length ; i++) {
    if (oList[i].childNodes) {
      oList[i].firstChild.removeAttribute("href");
      oList[i].firstChild.firstChild.removeAttribute("alt");
      oList[i].firstChild.firstChild.removeAttribute("title");
    }
  }
}