showPhotoBar = false;
// script to replace a user's name in the breadcrumb with "Home"
YE.onContentReady("breadCrumbTrail", ReplaceTopOfBreadcrumbWithHome);

function ReplaceTopOfBreadcrumbWithHome()
{
    var str = this.innerHTML.replace(/\n/g, " ");
    this.innerHTML = str.replace(/\>[^\<]+<\/a>/i, ">Home</a>");
}
//------------------------------------------------------------------------------------
// Move share and slideshow buttons to the cart line
//-------------------------------------------------------------------------------------

YE.onContentReady("shareButton", MoveToCartDiv);
YE.onContentReady("slideshowButton", MoveToCartDiv);

function MoveToCartDiv()
{
}
MoveObjToDiv(this, "cartButtonsWrapper");
}

function MoveObjToDiv(sourceObj, destDiv)
{
	var destDivObj = document.getElementById(destDiv);	// get the object for the dest div
	if (sourceObj && destDivObj)
	{
		sourceObj.parentNode.removeChild(sourceObj);	// remove object from it's current parent
		destDivObj.appendChild(sourceObj);				// add it to the new parent
	}	
}


