function showImage(i,a) //Popup window for full resolution image
{

  var generator=window.open('','name','height=700,width=850, resizable=yes, scrollbars=yes, toolbar=no');
  generator.moveTo(300,10);
  generator.document.write('<html><head><title>'+a+'</title>');
  generator.document.write('<link rel="stylesheet" href="http://www.glicit.com/Taaffe/stylesheet.css">');
  generator.document.write('</head><body>');
  generator.document.write('<center><p><a href="javascript:self.close()">Close</a> this window.</p>');
  generator.document.write('<img src="http://www.glicit.com/Taaffe/images/facilities/'+i+'" width="800"/>');

  generator.document.write('<center></body></html>');
  generator.document.close();
  
}

function showHRIstats(h)
{
var url="http://www.goracing.ie/content/hri/HRIData/hrihorsedata.aspx?hid="+h;
  var generator=window.open(url,'name','height=480,width=800, resizable=yes, scrollbars=yes, toolbar=no');
}

function showHRIentries(h) {
var url="http://www.goracing.ie/content/hri/HRIData/hrientrydata.aspx?type=1&id="+h;
  var generator=window.open(url,'name','height=480,width=800, resizable=yes, scrollbars=yes, toolbar=no');
}

function showRacingPost(h) {
var url="http://www.racingpost.com/horses/horse_home.sd?horse_id="+h;
  var generator=window.open(url,'name','height=480,width=800, resizable=yes, scrollbars=yes, toolbar=no');
}

function displayTaaffeEMail() { //Anti-spam script. Bots should not be able to read this
	var first = 'ma';
	var second = 'il';
	var third = 'to:';
	var address = 'info';
	var domain = 'tomtaafferacing';
	var ext = 'ie'; 
	document.write('<a href="');
	document.write(first+second+third);
	document.write(address);
	document.write('&#64;');
	document.write(domain);
	document.write('.');
	document.write(ext);  
	document.write('">'); 
	document.write('Tom Taaffe Racing</a>');
	}
	
function displayGlicITEMail() {
	var first = 'ma';
	var second = 'il';
	var third = 'to:';
	var address = 'info';
	var domain = 'glicit';
	var ext = 'com'; 
	document.write('<a href="');
	document.write(first+second+third);
	document.write(address);
	document.write('&#64;');
	document.write(domain);
	document.write('.');
	document.write(ext);  
	document.write('">'); 
	document.write('Glic I.T.</a>');
	}	

function displayTonyEMail() {
	var first = 'ma';
	var second = 'il';
	var third = 'to:';
	var address = 'tonybk';
	var domain = 'eircom';
	var ext = 'net'; 
	document.write('<a href="');
	document.write(first+second+third);
	document.write(address);
	document.write('&#64;');
	document.write(domain);
	document.write('.');
	document.write(ext);  
	document.write('">'); 
	document.write('Tony Keane</a>');
	}		
	
function displayPeterEMail() {
	var first = 'ma';
	var second = 'il';
	var third = 'to:';
	var address = 'ptmooney';
	var domain = 'iol';
	var ext = 'ie'; 
	document.write('<a href="');
	document.write(first+second+third);
	document.write(address);
	document.write('&#64;');
	document.write(domain);
	document.write('.');
	document.write(ext);  
	document.write('">'); 
	document.write('Peter Mooney</a>');
	}		
	
function toggle(id){ //Used for expand-collapse Stats in Happy Days
    ul = "ul_" + id;
    img = "img_" + id;
    ulElement = document.getElementById(ul);
    imgElement = document.getElementById(img);
    if (ulElement){
            if (ulElement.className == 'closed'){
                    ulElement.className = "open";
                    imgElement.src = "images/downarrow.gif";
                    }else{
                    ulElement.className = "closed";
                    imgElement.src = "images/rightarrow.gif";
                    }
            }
    }	

