(function(){
		var url = document.location.href;
		if( url.match('www.coangels.co.uk') ){
			var forwardUrl = url.replace(/www.coangels.co.uk/, 'www.weareangels.com');
			document.location.href = forwardUrl;
		}
		else if( url.match('www.thecompany.co.uk') ){
			var forwardUrl = url.replace(/www.thecompany.co.uk/, 'www.weareangels.com');
			document.location.href = forwardUrl;
		}
	})();
	
function getWidth() {
	var nWidth = (screen.width) ? screen.width : this.innerWidth;
	return nWidth;
}

function getHeight() {
	var nWidth = (screen.height) ? screen.height : this.innerHeight;
	return nWidth;
}

function getSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
 // window.alert( 'Width = ' + myWidth );
 // window.alert( 'Height = ' + myHeight );
 return myHeight;
}

function setResolutionSpecificAssets(sPage){
	var nWidth = getWidth();
	var nHeight = getHeight();
	var dBody = document.getElementsByTagName('body')[0];
	var dWidth = document.getElementById('width');
	var dFooter = document.getElementById('footer');
	var dContent = document.getElementById('content');
	var dIntro = document.getElementById('intro');

	if((nWidth == 1280) && (nHeight == 800)){
		dWidth.style.width = '1024px';
		dFooter.style.width = '1024px';
		if(sPage){
			dBody.className = sPage + '_' + 10248;
		}
	}
	//1440 x 900 Justin
	else if((nWidth == 1440) && (nHeight == 900)){
		dWidth.style.width = '1400px';
		dFooter.style.width = '1400px';
		if(sPage){
			dBody.className = sPage + '_' + 1400;
		}
	}
	//1920 x 1200 Lee
	else if((nWidth == 1920) && (nHeight == 1200)){
		dWidth.style.width = '1600px';
		dFooter.style.width = '1600px';
		if(sPage){
			dBody.className = sPage + '_' + 1600;
		}
	}
	else if((nWidth > 1024) && (nWidth < 1600)){
		if(sPage){
			dBody.className = sPage + '_' + 1280;
		}
	}
	else if(nWidth >= 1600){
		if(sPage){
			dBody.className = sPage + '_' + 1600;
		}
	}
	else{
		if(sPage){
			dBody.className = sPage + '_' + 1024;
		}
	}
}

function init(sPage){
	//setResolutionSpecificAssets(sPage);
}

function hilitePaginator(event){
	var sType = event.type;
	var dSrc = (document.all) ? event.srcElement : event.target;
	var dElement = (dSrc.tagName == 'IMG') ? dSrc.parentNode : dSrc;
	var dImg = dElement.getElementsByTagName('IMG')[0];
	var sImgSrc = dImg.src;
	if(sType.match('over')){
		dElement.className += ' on';
		var sSrc = sImgSrc.replace(/.jpg/, '_on.gif');
		dImg.src = sSrc;
	}
	else if(sType.match('out')){
		dElement.className = dElement.className.replace(/ on/, '');
		var sSrc = sImgSrc.replace(/_on.gif/, '.jpg');
		dImg.src = sSrc;
	}
	else{
		//do nothing
	}
}

function showAward(Id){
	var aAwards = document.getElementById('nav2').getElementsByTagName('UL');
	var dAward = document.getElementById(Id);
	for(var i=0; i<aAwards.length; i++){
		aAwards[i].style.display = 'none';
	}
	dAward.style.display = 'block';
}