
<!--

var isIE=document.all;
var isNN=!document.all&&document.getElementById;
var isN4=document.layers;
var isHot=false;

function showScrollablePopup(srcUrl) {
	var fraObj = document.getElementById('fraScrollingPopup');
	fraObj.src = 'http://www.cryopc.co.uk/' + srcUrl;
	var divId = 'scrollablePopup';
	showCentrePopup(divId);
}

function showCentrePopup(idDiv) {
	centrePopup(idDiv);
	Effect.Appear(idDiv);
}

function hideModalPopup(idDiv) {

    var divStyleRef = getStyleObj(idDiv);

	if  (divStyleRef._BackgroundDiv) {
		divStyleRef._BackgroundDiv.style.display = "none";
	}
	
	Effect.Fade(idDiv);
}

function getStyleObj(id){
  var obj = null;
  if(document.getElementById){
      obj = document.getElementById(id);
    }else if(document.all){
      obj = document.all[id];
    }else if(document.layers){
      obj = document.layers[id];
  }
  return (obj && obj.style) || obj;
}

var BackgroundOnClick = function(){};

// called with event to centre popup in viewport
function centrePopup(idDiv){
  var viewPortWidth = windowState.getWidth();
  var viewPortHeight = windowState.getHeight();
  var horizontalScroll = windowState.getScrollX();
  var verticalScroll = windowState.getScrollY();

  var divStyleRef = getStyleObj(idDiv);

  if(divStyleRef){
    var divWidth = parseInt(divStyleRef.width);
    var divHeight = parseInt(divStyleRef.height);
    
    var hPos = Math.round(horizontalScroll+((viewPortWidth-divWidth)/2));
    var vPos = Math.round(verticalScroll+((viewPortHeight-divHeight)/2));

    hPos = (hPos < 0)?0:hPos;
    vPos = (vPos < 0)?0:vPos;

    var positionMod = (typeof divStyleRef.top == 'string')?"px":0;
    divStyleRef.top = vPos + positionMod;
    divStyleRef.left = hPos + positionMod;
    divStyleRef.zIndex = divStyleRef.zIndex + 1;

	// add background and null click event to make it modal
	if (!divStyleRef._BackgroundDiv) {
		divStyleRef._BackgroundDiv = document.createElement('div');
		divStyleRef._BackgroundDiv.style.display = "none";
		divStyleRef._BackgroundDiv.style.width = "100%";
		divStyleRef._BackgroundDiv.style.position = "absolute";
		divStyleRef._BackgroundDiv.style.top = "0px";
		divStyleRef._BackgroundDiv.style.left = "0px";
		document.body.appendChild(divStyleRef._BackgroundDiv);
	}
	with (divStyleRef) {
		BackgroundOpacity = 60;
		_BackgroundDiv.onclick =  BackgroundOnClick;
		_BackgroundDiv.style.background = '#000000';	
		_BackgroundDiv.style.height = document.all ? Math.max(Math.max(document.documentElement.offsetHeight, document.documentElement.scrollHeight), Math.max(document.body.offsetHeight, document.body.scrollHeight)) : (document.body ? document.body.scrollHeight : ((document.documentElement.scrollHeight != 0) ? document.documentElement.scrollHeight : 0)) + "px";
		_BackgroundDiv.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=" + BackgroundOpacity  +")";
		_BackgroundDiv.style.MozOpacity = BackgroundOpacity / 100;
		_BackgroundDiv.style.opacity = BackgroundOpacity / 100;
		_BackgroundDiv.style.zIndex = zIndex-1;
		_BackgroundDiv.style.cursor = 'default';
 
		//Display the background
		_BackgroundDiv.style.display = "";
    }
    }

}

-->