	/*************************************
		ROLLOVER
	*************************************/
	
	
	/*
			Standards Compliant Rollover Script
			Author : Daniel Nolan
			http://www.bleedingego.co.uk/webdev.php
		*/
		
		function initRollovers() {
			if (!document.getElementById) return
			
			var aPreLoad = new Array();
			var sTempSrc;
			var aImages = document.getElementsByTagName('img');
		
			for (var i = 0; i < aImages.length; i++) {		
				if (aImages[i].className == 'imgover') {
					var src = aImages[i].getAttribute('src');
					var ftype = src.substring(src.lastIndexOf('.'), src.length);
					var hsrc = src.replace(ftype, '_o'+ftype);
		
					aImages[i].setAttribute('hsrc', hsrc);
					
					aPreLoad[i] = new Image();
					aPreLoad[i].src = hsrc;
					
					aImages[i].onmouseover = function() {
						sTempSrc = this.getAttribute('src');
						this.setAttribute('src', this.getAttribute('hsrc'));
					}	
					
					aImages[i].onmouseout = function() {
						if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_o'+ftype, ftype);
						this.setAttribute('src', sTempSrc);
					}
				}
			}
		}
		
		window.onload = initRollovers;
		




	/*************************************
		SHOW HIDE INDEX THUMBNAILS
	*****************************/		
 
  	function Hide(id) {
		var el = document.getElementById(id);
		el.style.visibility = 'hidden';
	}

 	function Show(id) {
		var el = document.getElementById(id);
		el.style.visibility = 'visible';
	}
	
	
	
	function swapImage(obj) {
		if (this.className == 'swapon_' + obj +'') {this.className = 'swapoff_' + obj +'';}
		else {this.className = 'swapoon_' + obj +'';}
	}



	function switchMenu(obj) {
		var el = document.getElementById(obj);
		if ( el.style.display != "none" ) {
			el.style.display = 'none';
		}
		else {
			el.style.display = '';
		}
	}
	
	
	
	function swapImage(obj) {
		if (this.className == 'swapon_' + obj +'') {this.className = 'swapoff_' + obj +'';}
		else {this.className = 'swapoon_' + obj +'';}
	}













/*************************************************************
 * Window Onload Manager (WOM) v1.0
 * Author: Justin Barlow - www.netlobo.com
 *
 * Description:
 * The WOM library of functions allows you to easily call
 * multiple javascript functions when your page loads.
 *
 * Usage:
 * Add functions to WOM using the womAdd() function. Pass the
 * name of your functions (with or without parameters) into
 * womAdd(). Then call womOn() like this:
 *     womAdd('hideDiv()');
 *     womAdd('changeBg("menuopts","#CCCCCC")');
 *     womOn();
 * WOM will now run when your page loads and run all of the
 * functions you have added using womAdd()
 *************************************************************/

/*************************************************************
 * The womOn() function will set the window.onload function to
 * be womGo() which will run all of your window.onload
 * functions.
 *************************************************************/
function womOn(){
	window.onload = womGo;
}

/*************************************************************
 * The womGo() function loops through the woms array and
 * runs each function in the array.
 *************************************************************/
function womGo(){
	for(var i = 0;i < woms.length;i++)
		eval(woms[i]);
}

/*************************************************************
 * The womAdd() function will add another function to the woms
 * array to be run when the page loads.
 *************************************************************/
function womAdd(func){
	woms[woms.length] = func;
}

/*************************************************************
 * The woms array holds all of the functions you wish to run
 * when the page loads.
 *************************************************************/
var woms = new Array();



