// Image Functions
// changeImage() and preload() functions for rollovers and GIF animation
// 19990326
// Copyright (C) 1999 Dan Steinman
// Distributed under the terms of the GNU Library General Public License
// Available at http://www.dansteinman.com/dynapi/
function preload(imgObj,imgSrc) {
	if (document.images) {
		eval(imgObj+' = new Image()')
		eval(imgObj+'.src = "'+imgSrc+'"')
	}
}
function changeImage(layer,imgName,imgObj) {
	if (document.images) {
		if (document.layers && layer!=null) eval('document.'+layer+'.document.images["'+imgName+'"].src = '+imgObj+'.src')
		else document.images[imgName].src = eval(imgObj+".src")
	}
}
preload('Logo','/nav/images/ScienceStuff_Logo.jpg');
preload('WS','/common/Buttons/WS_Over.gif');
preload('WS_Over','/common/Buttons/ws_brktdk.gif');
preload('Login','/common/Buttons/Login_Over.gif');
preload('Login_Over','/common/Buttons/login_brktdk.gif');
preload('ViewCart','/common/Buttons/Cart_Over.gif');
preload('ViewCart_Over','/common/Buttons/cart_brktdk.gif');
preload('Map','/common/Buttons/Map_Over.gif');
preload('Map_Over','/common/Buttons/map_brktdk.gif');
preload('ContactUs','/common/Buttons/Contact_Over.gif');
preload('ContactUs_Over','/common/Buttons/contact_brktdk.gif');

function toggleMe(a){
  var e=document.getElementById(a);
  if(!e)return true;
  if(e.style.display=="none"){
    e.style.display="block"
  } else {
    e.style.display="none"
  }
  return true;
}
