function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function addIEFavorite(){
	if (window.external){
		external.AddFavorite(location.href, 'NIA, www.insulation.org')
	}
	else{
		alert("Sorry, your browser doesn't support this feature.\n" + "If you are using Netscape Navigator, click Bookmarks\n" + "and then Add Bookmark to add this site to your favorites.");
	}
}

<!-- frame buster - code by Gordon McComb keeps our site out of other people's frames -->
/*setTimeout ("changePage()", 3000);

function changePage() {
		if (self.parent.frames.length != 0)
			self.parent.location=document.location;
		}
*/
var lastimage = -1;
var lastfiletype = "jpg";
var lastinstancenumber = -1;


function doPreload() {
   var allgifimages = new Array('dropdown_bg','buy_now','view_all_products_in_store');
   var alljpgimages = new Array('nav_about_us','nav_join_nia','nav_members_only','nav_contact_us','nav_events','nav_site_map','nav_go');
   preloadImages(allgifimages,'gif');
   preloadImages(alljpgimages,'jpg');
}

function preloadImages(the_images_array,imgtype) {
	for(var loop = 0; loop < the_images_array.length; loop++) {
		var an_image = new Image();
		an_image.src = "http://www.insulation.org/images/design/" + the_images_array[loop] + "_over." + imgtype;
		window.status = "Preloading "+the_images_array[loop];
	}
	window.status = "Done";
}

function over(imgname,filetype)
{
	eval('document.images.' + imgname + '.src="http://www.insulation.org/images/design/' + imgname + '_over.' + filetype + '";');
	lastimage = imgname;
	lastfiletype = filetype;
	lastinstancenumber = -1;
}

//allows for multiple buttons on the same page with same URL to be rolled over individually
function buttonover(imgname,instancenumber,filetype)
{
	eval('document.images.' + imgname + instancenumber + '.src="http://www.insulation.org/images/design/' + imgname + '_over.' + filetype + '";');
	lastimage = imgname;
	lastinstancenumber = instancenumber;
	lastfiletype = filetype;
}

function out()
{
	if(lastimage != -1)
	{
		if(lastinstancenumber == -1)
		{
			eval('document.images.' + lastimage + '.src="http://www.insulation.org/images/design/' + lastimage + '.' + lastfiletype + '";');
		}
		else
		{
			eval('document.images.' + lastimage + lastinstancenumber + '.src="http://www.insulation.org/images/design/' + lastimage + '.' + lastfiletype + '";');
		}	
	}
}