<!-- 

function get_random(maxNum) {
	var ranNum= Math.round(Math.random()*(maxNum-1));
	ranNum+=1;
	return ranNum;
}

/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
/*													*/
/*			Wildcard Positions 2 and 3				*/
/*													*/
/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */

width_S=169;	/* height of wildcard positions 2 and 3 */
height_S=133;   /* width of wildcard positions 2 and 3 */
border_S=0;		/* border size of wildcard positions 2 and 3 */

pic1_S= new Image(width_S,height_S);	/* Images available for wc positions 2 and 3 */
pic1_S.src="images/rgt_wc_wacky_pack.gif";  
pic2_S= new Image(width_S,height_S); 
pic2_S.src="images/rgt_wc_ed.gif"; 

function refreshImg_S() {  			/* Random Image Generator for wildcard positions 2 and 3 */
	var chooseNum_S = get_random(2);  /* '2' is the number of wildcard positions 2 and 3 images */
	chooseNum_S--;
	
	var pics_S = new Array(2) 		/* '2' is the number of wildcard positions 2 and 3 images */
	pics_S[0]=pic1_S.src;
	pics_S[1]=pic2_S.src;
	   
	var alt_S = new Array(2) 		/* '2' is the number of wildcard positions 2 and 3 images */
	alt_S[0]="Congratulations to Sweepstakes Winner Ed Louviere!";
	alt_S[1]="Wacky Magna Bears!";
	
	var href_S = new Array(2) 		/* '2' is the number of wildcard positions 2 and 3 images */
	href_S[0]="kids/wackystuff.shtml";
	href_S[1]="promo/promo.jsp";
 
	var xNum_S = chooseNum_S; 		/* Chooses a random number for img src and alt tags */
	var imgSrc_S = pics_S[chooseNum_S];  	/* Assigns an image to the src tag */ 
	var altTag_S = alt_S[chooseNum_S];	 	/* Assigns the corresponding alt tag for chosen image */
	var hrefLoc_S = href_S[chooseNum_S];	/* Assigns the appropriate href location for link */
 
 	
	document.write("<a href='"+hrefLoc_S+"'><img src='"+imgSrc_S+"' width='"+width_S+"' height='"+height_S+"' border='"+border_S+"' alt='"+altTag_S+"' /></a>");
}


/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
/*													*/
/*			Wildcard Positions 4 and 5				*/
/*													*/
/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */

width_M2=260;	/* height of wildcard positions 4 and 5 */
height_M2=155;   /* width of wildcard positions 4 and 5 */
border_M2=0;		/* border size of wildcard positions 4 and 5 */

pic1_M2= new Image(width_M2,height_M2);	/* Images available for wc positions 4 and 5 */
pic1_M2.src="images/rgt_wc_cool_breeze.gif";  
pic2_M2= new Image(width_M2,height_M2); 
pic2_M2.src="images/rgt_wc_toaster.gif"; 

function refreshImg_M2() {  			/* Random Image Generator for wildcard positions 4 and 5 */
	var chooseNum_M2 = get_random(2);  /* '2' is the number of wildcard positions 4 and 5 images */
	chooseNum_M2--;
	
	var pics_M2 = new Array(2) 		/* '2' is the number of wildcard positions 4 and 5 images */
	pics_M2[0]=pic1_M2.src;
	pics_M2[1]=pic2_M2.src;
	   
	var alt_M2 = new Array(2) 		/* '2' is the number of wildcard positions 4 and 5 images */
	alt_M2[0]="Try Our Orange Cool Breeze!";
	alt_M2[1]="Breakfast Toaster Combo!";
	
	var href_M2 = new Array(2) 		/* '2' is the number of wildcard positions 4 and 5 images */
	href_M2[0]="promo/promo.jsp";
	href_M2[1]="promo/promo.jsp";
  
	var xNum_M2 = chooseNum_M2; 		/* Chooses a random number for img src and alt tags */
	var imgSrc_M2 = pics_M2[chooseNum_M2];  	/* Assigns an image to the src tag */ 
	var altTag_M2 = alt_M2[chooseNum_M2];	 	/* Assigns the corresponding alt tag for chosen image */
	var hrefLoc_M2 = href_M2[chooseNum_M2];	/* Assigns the appropriate href location for link */
 
	document.write("<a href='"+hrefLoc_M2+"'><img src='"+imgSrc_M2+"' width='"+width_M2+"' height='"+height_M2+"' border='"+border_M2+"' alt='"+altTag_M2+"' /></a>");
}

width_M=260;	/* height of wildcard positions 4 and 5 */
height_M=155;   /* width of wildcard positions 4 and 5 */
border_M=0;		/* border size of wildcard positions 4 and 5 */

pic1_M= new Image(width_M,height_M);	/* Images available for wc positions 4 and 5 */
pic1_M.src="images/rgt_wc_supersonic_burrito.gif";  
pic2_M= new Image(width_M,height_M); 
pic2_M.src="images/rgt_wc_certificate.gif"; 

function refreshImg_M() {  			/* Random Image Generator for wildcard positions 4 and 5 */
	var chooseNum_M = get_random(2);  /* '2' is the number of wildcard positions 4 and 5 images */
	chooseNum_M--;
	
	var pics_M = new Array(2) 		/* '2' is the number of wildcard positions 4 and 5 images */
	pics_M[0]=pic1_M.src;
	pics_M[1]=pic2_M.src;
	   
	var alt_M = new Array(2) 		/* '2' is the number of wildcard positions 4 and 5 images */
	alt_M[0]="Breakfast Burrito";
	alt_M[1]="Sonic Store";
	
	var href_M = new Array(2) 		/* '2' is the number of wildcard positions 4 and 5 images */
	href_M[0]="menu/breakfast.shtml";
	href_M[1]="javascript:storeWindow();";
  
	var xNum_M = chooseNum_M; 		/* Chooses a random number for img src and alt tags */
	var imgSrc_M = pics_M[chooseNum_M];  	/* Assigns an image to the src tag */ 
	var altTag_M = alt_M[chooseNum_M];	 	/* Assigns the corresponding alt tag for chosen image */
	var hrefLoc_M = href_M[chooseNum_M];	/* Assigns the appropriate href location for link */
 
	document.write("<a href='"+hrefLoc_M+"'><img src='"+imgSrc_M+"' width='"+width_M+"' height='"+height_M+"' border='"+border_M+"' alt='"+altTag_M+"' /></a>");
}


// Locator Code
function locatorWindow(mypage, myname, w, h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable=yes,toolbar=yes';
win = window.open(mypage, myname, winprops);
}


// SonicStore Code
function storeWindow() {
var mypage = "https://www.sonicdriveinstore.com/cgi-bin/sonicb2c.sh";
var myname = "SonicStore";
var w = "808";
var h = "560";
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable=yes,toolbar=yes';
win = window.open(mypage, myname, winprops);
}

//-->