function getNameForObj(targ){
	
	//the base name of the obj should include everything inthe image's path up to the first '-'
	//note: could be a problem if a folder in image's path has a hyphen in it
	//for this reason we search only from the last folder (last '/' in path)
	
	//alert('gNFO: getting object name');
	
	var lastFolder = targ.src.lastIndexOf('/');
	var hyphIndex1 = targ.src.indexOf('-',lastFolder);
	var imgName = targ.src.substring(0,hyphIndex1);
	
	//alert('gNFO: img name ' + imgName);
	
	return imgName;
}

function getLangForObj(targ){
	
	//some buttons are sensitive to the language being displayed on the page
	//these buttons will denote this in their path -> look for this and return it
	
	var lang = '';
	if(targ.src.search('-EN-') != -1){
		//alert('gLFO: found EN');
		lang = '-EN-';
	}
	else if(targ.src.search('-CZ-') != -1){
		//alert('gLFO: found CZ');
		lang = '-CZ-';
	}
	else {
		//alert('gLFO: no language component');
		lang = '-';
	}
	
	//alert('gLFO: language is' + lang);
	
	return lang;
}
