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(){
		if(PNC.$('ourshopspageoldstreetlink')){
			PNC.$('ourshopspageoldstreetlink').map = false;
			PNC.$('ourshopspageoldstreetlink').onclick = function(e){
				if(this.map){
					PNC.$('ourshopspageoldstreet').style.backgroundPosition = '0px 0px';
					this.innerHTML = 'View map';
					this.map = false;
				} else {
					PNC.$('ourshopspageoldstreet').style.backgroundPosition = '0px -224px';
					this.innerHTML = 'Hide map';
					this.map = true;
				}
				return false;
			}; 
		}
		if(PNC.$('ourshopspageadamscourtlink')){
			PNC.$('ourshopspageadamscourtlink').map = false;
			PNC.$('ourshopspageadamscourtlink').onclick = function(e){
				if(this.map){
					PNC.$('ourshopspageadamscourt').style.backgroundPosition = '0px 0px';
					this.innerHTML = 'View map';
					this.map = false;
				} else {
					PNC.$('ourshopspageadamscourt').style.backgroundPosition = '0px -224px';
					this.innerHTML = 'Hide map';
					this.map = true;
				}
				return false;
			}; 
		}
	});
	////////////////////////////////////////////////////////////////////
	////////////////////////////////////////////////////////////////////

}