if(document.getElementById){

	var uk; // Required in GLOBAL scope - does not overwrite any exisiting objects!
	if(!uk){ uk = {}; } else if(typeof uk != "object"){ eval('throw new Error("uk already exists and is not an object");'); }
	if(!uk.co){ uk.co = {}; } else if(typeof uk.co != "object"){ eval('throw new Error("uk.co already exists and is not an object");'); }
	if(!uk.co.pntestbed){ uk.co.pntestbed = {}; } else if(typeof uk.co.pntestbed != "object"){ eval('throw new Error("uk.co.pntestbed already exists and is not an object");'); }
	if(!uk.co.pntestbed.core){ eval('throw new Error("uk.co.pntestbed.core does not exist");'); }
	var PNC = uk.co.pntestbed.core;
	
	
	PNC.window.onload(function(){
		var o = PNC.$('repimgex');
		o.innerHTML = 'E-mail: <a href="mailto:info@residentuk.co.uk">info@residentuk.co.uk</a>';
		o = PNC.$('repae');
		if(o){
			o.href = 'mailto:info@residentuk.co.uk';
			o.innerHTML += '<br/>info@residentuk.co.uk';
		}
		
		o = PNC.$('viewcontainer');
		if(o){
			o.style.width = '100%';
			o.style.overflow = 'hidden';
			PNC.$('content').style.width = '100%';
			PNC.$('content').style.overflow = 'hidden';
			var nMarginRight = 100;
			var av = PNC.document.getElementsByClassName('viewimg');
			var a = [345];
			for(var i = 0; i < av.length - 1; i++){
				a[i + 1] = a[i] + nMarginRight + av[i].width;
				av[i].style.marginRight = nMarginRight + 'px';
			}
			a[0] = 0;
			viewer.reset(a, 40, 1.25);

		}
		
		o = PNC.$('viewermenu');
		if(o){
			o.innerHTML = '<ul id="viewmenu" class="fc">'
						+ '	<li><a href="#" onclick="viewer.backStart();this.blur();return false;"><img id="the_left_button" width="16px" height="16px" src="images/arrow-left.gif" alt="Left" /></a></li>'
						+ '	<li class="viewmenulast"><a href="#" onclick="viewer.nextStart();this.blur();return false;"><img id="the_right_button" width="16px" height="16px" src="images/arrow-right.gif" alt="Right" /></a></li>'
						+ '</ul>';
		}
	});
}
