// change the link on the SmugMug Logo

YE.onAvailable('homelink', function(e) {
    this.href = "http://intruecolors.com/";
    this.firstChild.alt = "In True Colors Photography";
    this.firstChild.title = "Back Home";
});

// removes the pipes characters in the toolbar header

YE.onAvailable('toolbar', function(e) {
this.innerHTML = this.innerHTML.replace(new RegExp(/\|/g),"");
});












function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_3256444"))
  {
    var objElement = YD.get("comment")
    if (objElement != null)
    {
      var str = new String(objElement.innerHTML);
      str = str.replace(/\gallery/gi, 'guestbook');
      objElement.innerHTML = str;
    }
  }
}

YE.onAvailable("comment", ModifyText);



function hasPath(sPath)
{
  re = new RegExp("\/" + sPath + "(\/|$)");
  return re.test(window.location)
}


function redirectPath() {
re = /((www.)?ed911.smugmug.com)/;
tmp = window.location.href;
if (re.test(tmp)) {
tmp = tmp.replace(re, 'http://www.intruecolors.smugmug.com');
window.location.href = tmp;
}
}
redirectPath(); 




rightClickWarning = "All images on this site are property of InTrueColors Photography- ©2004-2009. All rights reserved. Unauthorized use is prohibited. For more information, please contact us directly.";




function doOnLoad()
{
if (window.AlbumID && window.AlbumID == "3294448") //
{
removeLinkFromImg();
}
}

function removeLinkFromImg()
{
var links = document.getElementsByTagName("A");
for (var i = 0; i < links.length; i++)
{
var link = links[i];
var divElm = link.parentNode;
if (!divElm) continue;
if (divElm.className.indexOf("photo")<0) continue;
link.href = "javascript:void(0);";
}
}







/*=========================*/

/*== SLIDE SHOW          ==*/

/*== version 0.58        ==*/

/*== Updated 15 Mar 2007 ==*/

/*=========================*/

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 doOnLoad()

{
if (window.AlbumID && window.AlbumID == "4339334") //
{
removeLinkFromImg();
}
}

function removeLinkFromImg()
{
var links = document.getElementsByTagName("A");
for (var i = 0; i < links.length; i++)
{
var link = links[i];
var divElm = link.parentNode;
if (!divElm) continue;
if (divElm.className.indexOf("photo")<0) continue;
link.href = "javascript:void(0);";
}
}


