function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

/*=======================*/
/*== CHANGE BREADCRUMB ==*/
/*=======================*/

YE.onContentReady('breadCrumbTrail', function() {this.innerHTML =
this.innerHTML.replace('VictoriaJZ','Photo Galleries')});

YE.onContentReady('breadcrumb', function() {this.innerHTML =
this.innerHTML.replace('VictoriaJZ', 'Photo Galleries')});

YE.onContentReady('breadCrumbTrail', function() {
 for (var i in this.childNodes) {
 if (this.childNodes[i].tagName == "A") {
 this.childNodes[i].href="/galleries";
 break;
 }
 }
});

YE.onContentReady('breadcrumb', function() {
 for (var i in this.childNodes) {
 if (this.childNodes[i].tagName == "A") {
 this.childNodes[i].href="/galleries";
 break;
 }
 }
});

// Copyright 2006-2007 javascript-array.com

var timeout	= 500;
var closetimer	= 0;
var ddmenuitem	= 0;

// open hidden layer
function mopen(id)
{	
	// cancel close timer
	mcancelclosetime();

	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}

// close layer when click-out
document.onclick = mclose;
