
		if (window.createPopup && document.compatMode && document.compatMode=="CSS1Compat"){
			document.onreadystatechange = onresize = function fixIE6AbsPos(){
			if (!document.body) return;
			if (document.body.style.margin != "0px") document.body.style.margin = 0;
			onresize = null;
			document.body.style.height = 0;
			setTimeout(function(){ document.body.style.height = document.documentElement.scrollHeight+'px'; }, 1);
			setTimeout(function(){ onresize = fixIE6AbsPos; }, 100);
			}
		}
		function roTopNav(state, id){
			if(id=='01'){
				if(state=='over'){
					document.images['img_nav01'].src='images/home/navR01.gif';
					document.getElementById('genericRO').style.display = "none";
					document.getElementById('commercialRO').style.display = "inline";
				}
				if(state=='out'){
					document.images['img_nav01'].src='images/nav01.gif';
					document.getElementById('commercialRO').style.display = "none";
					document.getElementById('genericRO').style.display = "inline";
				}
			}
			if(id=='02'){
				if(state=='over'){
					document.images['img_nav02'].src='images/navR02.gif';
					document.getElementById('genericRO').style.display = "none";
					document.getElementById('residentialRO').style.display = "inline";
				}
				if(state=='out'){
					document.images['img_nav02'].src='images/nav02.gif';
					document.getElementById('residentialRO').style.display = "none";
					document.getElementById('genericRO').style.display = "inline";
				}
			}
			if(id=='03'){
				if(state=='over'){
					document.images['img_nav03'].src='images/navR03.gif';
					document.getElementById('genericRO').style.display = "none";
					document.getElementById('homesAbroadRO').style.display = "inline";
				}
				if(state=='out'){
					document.images['img_nav03'].src='images/nav03.gif';
					document.getElementById('homesAbroadRO').style.display = "none";
					document.getElementById('genericRO').style.display = "inline";
				}
			}
			if(id=='04'){
				if(state=='over'){
					document.images['img_nav04'].src='images/navR04.gif';
					document.getElementById('genericRO').style.display = "none";
					document.getElementById('corkRO').style.display = "inline";
				}
				if(state=='out'){
					document.images['img_nav04'].src='images/nav04.gif';
					document.getElementById('corkRO').style.display = "none";
					document.getElementById('genericRO').style.display = "inline";
				}
			}
			if(id=='05'){
				if(state=='over'){
					document.images['img_nav05'].src='images/navR05.gif';
					document.getElementById('genericRO').style.display = "none";
					document.getElementById('belfastRO').style.display = "inline";
				}
				if(state=='out'){
					document.images['img_nav05'].src='images/nav05.gif';
					document.getElementById('belfastRO').style.display = "none";
					document.getElementById('genericRO').style.display = "inline";
				}
			}
			if(id=='06'){
				if(state=='over'){
					document.images['img_nav06'].src='images/navR06.gif';
					document.getElementById('genericRO').style.display = "none";
					document.getElementById('limerickRO').style.display = "inline";
				}
				if(state=='out'){
					document.images['img_nav06'].src='images/nav06.gif';
					document.getElementById('limerickRO').style.display = "none";
					document.getElementById('genericRO').style.display = "inline";
				}
			}
		}
		function roSideNav(state, id){
			if(id=='01'){
				if(state=='over'){
					document.images['img_subnav01'].src='images/subnavR_01.gif';
				}
				if(state=='out'){
					document.images['img_subnav01'].src='images/subnav_01.gif';
				}
			}
			if(id=='02'){
				if(state=='over'){
					document.images['img_subnav02'].src='images/subnavR_02.gif';
				}
				if(state=='out'){
					document.images['img_subnav02'].src='images/subnav_02.gif';
				}
			}
			if(id=='03'){
				if(state=='over'){
					document.images['img_subnav03'].src='images/subnav_newsR.gif';
				}
				if(state=='out'){
					document.images['img_subnav03'].src='images/subnav_news.gif';
				}
			}
			if(id=='04'){
				if(state=='over'){
					document.images['img_subnav04'].src='images/subnavR_04.gif';
				}
				if(state=='out'){
					document.images['img_subnav04'].src='images/subnav_04.gif';
				}
			}
			if(id=='05'){
				if(state=='over'){
					document.images['img_subnav05'].src='images/home_subnav_researchR.gif';
				}
				if(state=='out'){
					document.images['img_subnav05'].src='images/subnav_research.gif';
				}
			}			
		}
		function dd_swap(state,id){
			if(id=='01'){
				if(state=='over'){
					document.images['dd_01'].src='images/home/contact_menuR01.gif';
				}
				if(state=='out'){
					document.images['dd_01'].src='images/home/contact_menu01.gif';
				}
			}
			if(id=='02'){
				if(state=='over'){
					document.images['dd_02'].src='images/home/contact_menuR02.gif';
				}
				if(state=='out'){
					document.images['dd_02'].src='images/home/contact_menu02.gif';
				}
			}
			if(id=='03'){
				if(state=='over'){
					document.images['dd_03'].src='images/home/contact_menuR03.gif';
				}
				if(state=='out'){
					document.images['dd_03'].src='images/home/contact_menu03.gif';
				}
			}
			if(id=='04'){
				if(state=='over'){
					document.images['dd_04'].src='images/home/contact_menuR04.gif';
				}
				if(state=='out'){
					document.images['dd_04'].src='images/home/contact_menu04.gif';
				}
			}
			if(id=='05'){
				if(state=='over'){
					document.images['dd_05'].src='images/home/contact_menuR05.gif';
				}
				if(state=='out'){
					document.images['dd_05'].src='images/home/contact_menu05.gif';
				}
			}
			if(id=='06'){
				if(state=='over'){
					document.images['dd_06'].src='images/home/contact_menuR06.gif';
				}
				if(state=='out'){
					document.images['dd_06'].src='images/home/contact_menu06.gif';
				}
			}
		}
		function dropdown(state){
			if(state=='down'){
				document.getElementById('ddContents').style.display = "inline";
			}
			if(state=='up'){
				document.getElementById('ddContents').style.display = "none";
			}
		}
		var bl_ddStatus='up';
		function dropdownOnClick(){
			if(bl_ddStatus=='up'){
				document.getElementById('ddContents').style.display = "inline";
				bl_ddStatus='down';
			}
			else{
				document.getElementById('ddContents').style.display = "none";
				bl_ddStatus='up';
			}
		}

		
/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  Copyright 2001-3 by Sharon Paine 
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

// resize fix for ns4
var origWidth, origHeight;
if (document.layers) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

// link style change
var cur_link;
function doLinkClass(lnk) {
  if (lnk && lnk.blur) lnk.blur();	// remove marquee
  if (!lnk || cur_link == lnk) return;
  if (cur_link) cur_link.className = "done";
  lnk.className = "on";
  cur_link = lnk;
}

var cur_lyr;	// holds id of currently visible layer
function swapLayers(lnk,id) {
  doLinkClass(lnk);
  if (cur_lyr) hideLayer(cur_lyr);
  showLayer(id);
  cur_lyr = id;
}

function showLayer(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) lyr.css.visibility = "visible";
}

function hideLayer(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) lyr.css.visibility = "hidden";
}

function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? getLyrRef(id,document): null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}

// get reference to nested layer for ns4
// from old dhtmllib.js by Mike Hall of www.brainjar.com
function getLyrRef(lyr,doc) {
	if (document.layers) {
		var theLyr;
		for (var i=0; i<doc.layers.length; i++) {
	  	theLyr = doc.layers[i];
			if (theLyr.name == lyr) return theLyr;
			else if (theLyr.document.layers.length > 0) 
	    	if ((theLyr = getLyrRef(lyr,theLyr.document)) != null)
					return theLyr;
	  }
		return null;
  }
}

function init(id,lyr) {
  var lnk = getElemRefs(id);
  swapLayers(lnk,lyr);
}