// change the link on the SmugMug Logo

YE.onAvailable('homelink', function(e) {
  this.href = "http://photos.teich.net/";
  this.firstChild.alt = "teich images";
  this.firstChild.title = "teich images";
});

// removes the pipes characters in the toolbar header

YE.onAvailable('toolbar', function(e) {
  this.innerHTML = this.innerHTML.replace(new RegExp(/\|/g),"");
});

// Flash thing
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;
}

// Duplicate home
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}