var imgPrefix = "nav_";
var imgPath = "images/";

for(var x=0;x<=5;x++){
	eval(imgPrefix  + x + ' = new Image();');
	eval(imgPrefix  + x + '.src = "' + imgPath + imgPrefix + x + '.gif"');

	eval(imgPrefix  + x + '_on = new Image();');
	eval(imgPrefix  + x + '_on.src = "' + imgPath + imgPrefix + x + '_on.gif"');
}

function doRoll(theImg, imgNum, setTo){
	if(setTo == "on"){
		//alert(eval(imgPrefix + imgNum + '_on.src'));
		theImg.src = eval(imgPrefix + imgNum + '_on.src');
	}
	else{
		//alert(eval(imgPrefix + imgNum + '.src'));
		theImg.src = eval(imgPrefix + imgNum + '.src');
	}
}

function init(){
	if(typeof(activepage) != 'undefined'){
		document.getElementById("i" + activepage).src = eval(imgPrefix + activepage + '_on.src');
	
		var theImg = document.getElementById("i" + activepage );
		theImg.onmouseover = null;
		theImg.onmouseout = null;
	}
}

<!--
// The TrackTag variable refers to the location of the
// base action tag. In the actual implementation this 
// action tag will point to a 1x1 pixel GIF.

var TrackTag = 'http://switch.atdmt.com/action/';

function GetActionTag(URL){ 
  document.action_tag.src = TrackTag + URL;

// The URL passed from the SWF will be appended to TrackTag.
// The image will be loaded into the img src tags below the 
// Flash ad's OBJECT tag.
}
-->
