var EE_SiteRootA = document.location.href.substr(0, document.location.href.indexOf('kids'));
if (EE_SiteRootA.length < 2) {
	EE_SiteRootA = document.location.href.substr(0, document.location.href.indexOf('org/'));
EE_SiteRootA += 'org/';
}
else
{
EE_SiteRootA += 'kids/';
}
//;alert(EE_SiteRootA);
// in addition to window targets listed here, there are also:
// "main": the main browser window, name set by nav.js
// "external": full-sized second window, the target of all outbound links

function thumbPop(str, orient) {

	// horiz is default
	var width, height, winname;
	if (orient == 'v') {
		winname = 'v';
		width = 360;
		// img is 400 high
		height = 450;
	//square
	} else if (orient == 's') {
		winname = 's';
		width = 385;
		height = 425;
	} else {
		winname = 'h';
		width = 550;
		// img is 298 high
		height = 450;
	}
	
	var thumbWin = window.open(EE_SiteRootA + "thumb/" + str, "thumb" + winname, "scrollbars=auto,width=" + width + ",height=" + height);
	thumbWin.focus();
	return false;
}

	
