
  //Remember where we are, so that changing language will bring us
  // back to the right page.
  // Set location for main frame pages (bets).
function setLocationCookie(xtraParams) {
    if(parent.frames['bets'] != null &&
       parent.frames['bets'] ==  self) {
       var myLocation = parent.frames['bets'].location;
       var relLoc = getRelativeLocation(myLocation.toString());
       if (xtraParams != null) {
    	   relLoc = relLoc.concat(xtraParams);
       }
       setCookie("expekt_last_location", relLoc);
    }
}
setLocationCookie();
