// JavaScript Document

var bCrumbPath = "";
var woms = new Array();

function setCrumbPath() {
	var crumbString = "";
	var breadCrumbLinks = document.getElementById('breadCrumbLinks');
	breadCrumbLinks.innerHTML = breadCrumbString;
	var currentCrumb = breadCrumbLinks.innerHTML;
	crumbString = currentCrumb;
	if (typeof addToCrumb!="undefined") {
		crumbString += addToCrumb;
	}
	if (typeof itemDetailCrumb!="undefined") {
		crumbString += itemDetailCrumb;
	}
	breadCrumbLinks.innerHTML = crumbString;
}

function urlToLoad(urlMap) {

	var theHost = location.host;
	var thePath = location.pathname;
	var pathElements = thePath.split("/");
	var newUrl=""

	newURL = "http://"+ theHost + "/" + pathElements[1] + "/" + pathElements[2] + "/" + pathElements[3] + "/" + urlMap;
	window.location=newURL;
}

function womOn(){
	window.onload = womGo;
}

function womGo(){
	for(var i = 0;i < woms.length;i++)
		eval(woms[i]);
}

function womAdd(func){
	woms[woms.length] = func;
}

