/******************************************************************************** * This JS is used to server Pop Under promo randomly during registration process. * Currenntly there are three popunder promos - Gallery, Research and Deal of the day. * These are served from Home Page, Taco Bell Page and Registration page. * If a user stays on this page for more than 3 minutes, popunder promo will open. *********************************************************************************/ var popunderArray = new Array ("gallery", "research", "dealofday"); var popunder_win; function openPopunder(){ url = "/promos/popunder/popunder.jsp?refUrl=" + location.href; url += "&popunder=" + randomPopUnder(); setTimeout("getPopunder(url)", 180000); } function getPopunder(url){ popunder_win = window.open(url, "popunder", "width=320,height=279,left=400,screenX=400,top=300,screenY=300,location=no,scrollbars=no,resizable=no,status=no"); } function randomPopUnder(){ random.seed = (random.seed * random.a + random.c) % random.m; var x = Math.round((random.seed / random.m) * 2); return popunderArray[x]; }