( function(){

/* ============================================================================== colorRows - 'rowTint'
	Automatic coloured rows | Bite Size Standards
	http://bitesizestandards.com/bites/automatic-coloured-rows
*/
var colorRows = function() {
	var myTR = document.getElementsByTagName('tr');
	for (var i=0;i<myTR.length;i++) {
		if (i%2) {
			myTR[i].className = 'rowTint';
		}
	}
};

/* ============================================================================== initRollovers - 'imgover'
	Standards Compliant Rollover Script
	Author : Daniel Nolan
	http://www.bleedingego.co.uk/webdev.php
*/

var initRollovers = function() {
	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, '_ov'+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 = aImages[i].onclick = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_ov'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
};


/* ============================================================================== addEvent
*/

function addEvent(elm, listener, fn){
	try{
		elm.addEventListener(listener, fn, false);
	}catch(e){
		elm.attachEvent('on' + listener, fn);
	}
}

addEvent(window, 'load', function() {
	colorRows();
	initRollovers();
	formAdjust();
	createExternalLink();
	gaccessFix();
});

}) ();


function show(id)
{
 var men="img"+id;
 document.getElementById(men).style.display='block';

 }
function hide(id)
 {
 var men="img"+id;

 document.getElementById(men).style.display='none';
 } 
 
function disp01()
 {
 show(1);hide(2);hide(3);hide(4);hide(5);hide(6);hide(7);hide(8);
 }
function disp02()
 {
 show(2);hide(1);hide(3);hide(4);hide(5);hide(6);hide(7);hide(8);
 }
function disp03()
 {
 show(3);hide(1);hide(2);hide(4);hide(5);hide(6);hide(7);hide(8);
 }
function disp04()
 {
 show(4);hide(1);hide(2);hide(3);hide(5);hide(6);hide(7);hide(8);
 }

function disp05()
 {
hide(1);hide(2);hide(3);hide(4);show(5);hide(6);hide(7);hide(8);
 }
function disp06()
 {
 hide(1);hide(2);hide(3);hide(4);show(6);hide(5);hide(7);hide(8);
 }
function disp07()
{
hide(1);hide(2);hide(3);hide(4); show(7);hide(5);hide(6);hide(8);
}

function disp08()
{
hide(1);hide(2);hide(3);hide(4); hide(5);hide(6);hide(7);show(8);
}

