
	// ADD EVENT LISTENERS FOR NAV BUTTONS
	// 1. me
	document.getElementById('me').addEventListener("mouseover", function(){ rolling('me', 'on', '' ); }, false);
	document.getElementById('me').addEventListener("mouseout", function(){ rolling('me', 'off', '' ); }, false);
	document.getElementById('me').addEventListener("click", function(){ rolling('me', 'click', '#1F9781' ); }, false);

	// 2. cv
	document.getElementById('cv').addEventListener("mouseover", function(){ rolling('cv', 'on', '' ); }, false);
	document.getElementById('cv').addEventListener("mouseout", function(){ rolling('cv', 'off', '' ); }, false);
	document.getElementById('cv').addEventListener("click", function(){ rolling('cv', 'click', '#79485C' ); }, false);

	// 3. gallery
	document.getElementById('gallery').addEventListener("mouseover", function(){ rolling('gallery', 'on', '' ); }, false);
	document.getElementById('gallery').addEventListener("mouseout", function(){ rolling('gallery', 'off', '' ); }, false);
	document.getElementById('gallery').addEventListener("click", function(){ rolling('gallery', 'click', '#0A8EBC' ); }, false);

	// 4. techtips
	document.getElementById('techtips').addEventListener("mouseover", function(){ rolling('techtips', 'on', '' ); }, false);
	document.getElementById('techtips').addEventListener("mouseout", function(){ rolling('techtips', 'off', '' ); }, false);
	document.getElementById('techtips').addEventListener("click", function(){ rolling('techtips', 'click', '#FEB50C' ); }, false);

	// 5. delicious
	document.getElementById('delicious').addEventListener("mouseover", function(){ rolling('delicious', 'on', '' ); }, false);
	document.getElementById('delicious').addEventListener("mouseout", function(){ rolling('delicious', 'off', '' ); }, false);
	document.getElementById('delicious').addEventListener("click", function(){ rolling('delicious', 'click', '#4F9906' ); }, false);

	// 6. isaLibrary
	document.getElementById('isaLibrary').addEventListener("mouseover", function(){ rolling('isaLibrary', 'on', '' ); }, false);
	document.getElementById('isaLibrary').addEventListener("mouseout", function(){ rolling('isaLibrary', 'off', '' ); }, false);
	document.getElementById('isaLibrary').addEventListener("click", function(){ rolling('isaLibrary', 'click', '#FC7009' ); }, false);

	// 7. batgirl
	document.getElementById('batgirl').addEventListener("mouseover", function(){ rolling('batgirl', 'on', ''); }, false);
	document.getElementById('batgirl').addEventListener("mouseout", function(){ rolling('batgirl', 'off' , ''); }, false);
	document.getElementById('batgirl').addEventListener("click", function(){ rolling('batgirl', 'click', '#605174'); }, false);

	// 8. connect
	document.getElementById('connect').addEventListener("mouseover", function(){ rolling('connect', 'on', '' ); }, false);
	document.getElementById('connect').addEventListener("mouseout", function(){ rolling('connect', 'off', '' ); }, false);
	document.getElementById('connect').addEventListener("click", function(){ rolling('connect', 'click', '#C71B1B' ); }, false);

	// ADD EVENT LISTENERS FOR HOME BANNER
	document.getElementById('banner').addEventListener("click",
		function(){

			// get id of currently selected item
			var StoredID = document.getElementById('store').value;

			// if we are not on the home-screen
			if(StoredID != 'home_content'){
				// return banner title to start text
				document.getElementById('titletext').innerHTML = "welcome to the world of librarydonna";
				jQuery(document).ready(
					function(){

						// hide currently selected content
						jQuery('#allcontent').find('#' + StoredID).animate({ "opacity": "hide" }, 1500);

						// show home-screen content
						jQuery('#allcontent').find('#home_content' ).animate({ "opacity": "show" }, 1500);

						// move all nav-bars to margin
						jQuery('div.nav').find('span').animate({ "left": "0px", color:"black"  }, 250)	;

						// return banner to home-screen color
						jQuery('#banner').animate({ backgroundColor: '#1C803A',  color:'#1C803A' }, 500)	;

						// store id of home-screen
						document.getElementById('store').value = 'home_content';

						return false;
						}
					);
				}
			},
		false);

	// // // // // // // // // // // // // // // // // // // //
	// CHECK FOR FLASH PLUGIN
	var hasFlash = false;
	
	// try to make Shockwave object
	try {
		var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
		// if the obect is made, flash plugin is installed
		if(fo){
			hasFlash = true; 
			}
		}
	// if there's an error, probably no flash...	
	catch(e){
		// ...but just in case, check for a flash MIME type
		if( navigator.mimeTypes ["application/x-shockwave-flash"] != undefined ){
			hasFlash = true;
			}
		}   
	
	// if there's flash, show the flash-dependant slide show
	if(hasFlash){
		document.getElementById("FlashSlideShow").className = "FlashShow";
		document.getElementById("NoFlashText").className = "FlashHide";
		}
	// if there's no flash, hide the flash-dependant slide show
	else{
		document.getElementById("NoFlashText").className = "FlashShow";
		document.getElementById("FlashSlideShow").className = "FlashHide";
		}
