var cacheImage = new Array(4);
var fileName = new Array('show_directory-sel.gif', 'register-sel.gif', 'find_exhibitors-sel.gif', 'find_lines-sel.gif');
var i;

for (i = 0; i < fileName.length; i++) {
	cacheImage[i] = new Image();
	cacheImage[i].src = '../images/nav/' + fileName[i];
}

function refreshFrames(activeLink) {
	if (activeLink != 'register') {
		s = parent.ads.location.toString();
		if (s.indexOf('ads.php') == -1) {
			parent.ads.location = '../php/ads.php';
		}
	} else {
		s = parent.ads.location.toString();
		if (s.indexOf('cover.html') == -1) {
			parent.ads.location = '../html/cover.html';
		}
	}

	if (activeLink == 'find_exhibitors') {
		parent.find.location = '../html/find-exhibitors.html';
		parent.document.getElementById('innerFrameset').rows = "157,28,*";
	} else if (activeLink == 'find_lines') {
		parent.find.location = '../html/find-lines.html';
		parent.document.getElementById('innerFrameset').rows = "157,28,*";
	} else {
		parent.find.location = '../html/blank.html';
		parent.document.getElementById('innerFrameset').rows = "157,0,*";
	}

	parent.nav1.location = '../php/nav1.php?active_link=' + activeLink;
	location = '../php/nav2.php?active_link=' + activeLink;
}