// JavaScript Document
	//Options
	var popupID="kp-popup";
	var popupTriggerID="kp-button-oracle-reading";
	var popupWidth=350;
	var popupHeight=50;
	var popupHiddenOffsetTop=-500;
	var popupHiddenOffsetLeft=-500;

	//System Functions
	function getWindowHeight(){
		var windowHeight=0;
		if(typeof(window.innerHeight)=="number"){
			windowHeight=window.innerHeight;
		}
		else if(document.documentElement.clientHeight){
			windowHeight=document.documentElement.clientHeight;
		}
		else if(document.body.clientHeight){
			windowHeight=document.body.clientHeight;
		}
		return windowHeight;
	}
	function getWindowWidth(){
		var windowWidth=0;
		if(typeof(window.innerWidth)=="number"){
			windowWidth=window.innerWidth;
		}
		else if(document.documentElement.clientWidth){
			windowWidth=document.documentElement.clientWidth;
		}
		else if(document.body.clientWidth){
			windowWidth=document.body.clientWidth;
		}
		return windowWidth;
	}

	//Display the Popup
	function popupDisplay(){
		var popupRef=document.getElementById(popupID);
		popupRef.style.display="block";
		popupRef.style.top=((getWindowHeight()-popupHeight)*0.5)+"px";
		popupRef.style.left=((getWindowWidth()-popupWidth)*0.5)+"px";
	}

	//Recenter the Popup
	function popupRecenter(){
		var popupRef=document.getElementById(popupID);
		popupRef.style.top=((getWindowHeight()-popupHeight)*0.5)+"px";
		popupRef.style.left=((getWindowWidth()-popupWidth)*0.5)+"px";
	}

	//Close the Popup
	function popupClose(){
		var popupRef=document.getElementById(popupID);
		popupRef.style.display="none";
		popupRef.style.top=popupHiddenOffsetTop+"px";
		popupRef.style.left=popupHiddenOffsetLeft+"px";
	}

	//Initialize the Popup
	function popupInit(){
		var popupRef=document.getElementById(popupID);
		var popupTriggerRef=document.getElementById(popupTriggerID);
		popupRef.style.display="none";
		popupRef.style.top=popupHiddenOffsetTop+"px";
		popupRef.style.left=popupHiddenOffsetLeft+"px";
		popupTriggerRef.onclick=popupDisplay;
		popupRef.onclick=popupClose;
	}
