// JavaScript Document

function initGallery(){    

    var img = new Image();
    //here we will cache all of the images for future use.
	
    img.src ="graphics/homeSm.gif"; 
    img.src ="graphics/eventsSm.gif"; 
    img.src ="graphics/blogSm.gif"; 
    img.src ="graphics/videosSm.gif";
	img.src ="graphics/resourcesSm.gif";
	img.src ="graphocs/homeLg.gif"; 
    img.src ="graphics/eventsLg.gif"; 
    img.src ="graphics/blogLg.gif"; 
    img.src ="graphics/videosLg.gif";
	img.src ="graphics/resourcesLg.gif";
	
	 
}

if (document.images) {
	homeOn = new Image();	
	homeOn.src="graphics/homeLg.gif";
	homeOff = new Image();	
	homeOff.src="graphics/homeSm.gif";
	eventsOn = new Image();	
	eventsOn.src="graphics/eventsLg.gif";
	eventsOff = new Image();	
	eventsOff.src="graphics/eventsSm.gif";
	blogOn = new Image();	
	blogOn.src="graphics/blogLg.gif";
	blogOff = new Image();	
	blogOff.src="graphics/blogSm.gif";
	videosOn = new Image();	
	videosOn.src="graphics/videosLg.gif";
	videosOff = new Image();	
	videosOff.src="graphics/videosSm.gif";
	resourcesOn = new Image();	
	resourcesOn.src="graphics/resourcesLg.gif";
	resourcesOff = new Image();	
	resourcesOff.src="graphics/resourcesSm.gif";
}

function activate (image_name) { 
	if (document.images) {
		document[image_name].src= eval(image_name+ "On.src");
	}
}

function deactivate (image_name) {
	if (document.images) {
		document[image_name].src= eval(image_name+ "Off.src");
	}
}