//20060428 - MARK ROOKS - now using customer specific version in /home/site/X/interface/client
//20070214 - GRAHAM WEIR - ported to Javascript based on content.vbs

function getSiteUIDFromPath( path ) {
	var site_uid = -1;
	var pos1 = 0;
	var uid = -1;
	if ( path.substr(0,9) == "/content/" ) {
		pos1 = path.indexOf( "/", 10 );
		uid = parseInt( path.substring( 9, pos1 ) );
		if ( !isNaN(uid) ) {
			site_uid = uid;
		}
	}
	return site_uid;
}
document.writeln("<script language=\"Javascript\" src=\"/home/site/" + getSiteUIDFromPath( document.location.pathname ) + "/interface/client/content.js\"></script>");

