function Right(str, n)  { 
if (n <= 0) return ""; 
else if (n > String(str).length)  return str; 
else return String(str).substring(String(str).length-n,String(str).length); 
} 
function Left(str, n)  { 
if (n <= 0) return ""; 
else if (n > String(str).length)  return str; 
else return String(str).substring(0,n); 
} 
var l;
l = String(parent.window.location.href).length;
//document.write(parent.window.location.href);
if (Right(parent.window.location.href,12) == "mcbottom.htm" || Right(parent.window.location.href,15) == "erisabottom.htm" || Right(parent.window.location.href,15) == "minikbottom.htm" || Right(parent.window.location.href,12) == "mcbottom.asp" || Right(parent.window.location.href,15) == "erisabottom.asp" || Right(parent.window.location.href,15) == "minikbottom.asp")
{
 if (Right(parent.window.location.href,12) == "mcbottom.htm" || Right(parent.window.location.href,12) == "mcbottom.asp")  window.location.replace(Left(window.location,l-12));
 else window.location.replace(Left(window.location,l-15));
}

