function roll(obj, subpath, state, id) { 
	var objN = id ? obj+id : obj;
  var subpath = "img/specific/btbp/"
	document.images[objN].src = subpath + obj + state + ".gif";
}


function omo(img,state) {
		var oldsrc=img.src;
		var oldtype=oldsrc.substr(oldsrc.length-4,4);
		var oldstem=oldsrc.substr(0,oldsrc.length-5);

		img.src=oldstem + state + oldtype;
	//	alert('stem: ' + oldstem + "\ntype: " + oldtype + "\nsrc: " + img.src);
	}


var flashVars = document.location.href;
flashVars = "pageName=" + flashVars.substring(flashVars.lastIndexOf("/")+1);
flashVars = flashVars.replace("?","&");

