if(document.URL=="http://www.centaman.com/Default.aspx")
{
var RP="dnn_RightPane"
};
else if (document.URL=="http://www.centaman.com/Home/tabid/36/Default.aspx")
{
var RP="dnn_RightPane"
};
else if (document.URL=="http://www.centaman.com/Solutions/GovernmentandEnterpriseBookingSolutions/tabid/60/Default.aspx")
{
var RP="dnn_RightPane"
};
else if (document.URL=="http://www.centaman.com/Solutions/TourismandVisitorAttractionSolutions/tabid/59/Default.aspx")
{
var RP="dnn_RightPane"
};
else if (document.URL=="http://www.centaman.com/Solutions/ZoosFunparks/tabid/84/Default.aspx")
{
var RP="dnn_RightPane"
};
else if (document.URL=="http://www.centaman.com/Solutions/CulturalZoologicalAttractions/tabid/59/Default.aspx")
{
var RP="dnn_RightPane"
};
else if (document.URL=="http://www.centaman.com/Solutions/WaterparksFunparksFECs/tabid/84/Default.aspx")
{
var RP="dnn_RightPane"
};
else if (document.URL=="http://www.centaman.com/Solutions/AquaticsLeisureCentres/tabid/58/Default.aspx")
{
var RP="dnn_RightPane"
};
else if (document.URL=="http://www.centaman.com/Solutions/VenuesGovtBookingNeeds/tabid/60/Default.aspx")
{
var RP="dnn_RightPane"
};
else if (document.URL=="http://www.centaman.com/Solutions/AquaticHealthandLeisureCentreSolutions/tabid/58/Default.aspx")
{
var RP="dnn_RightPane"
};
else if (document.URL=="http://www.centaman.com/Support/tabid/83/Default.aspx")
{
var RP="dnn_RightPane"
};
else if (document.URL=="http://www.centaman.com/Solutions/TourismAdventureActivities/tabid/87/Default.aspx")
{
var RP="dnn_RightPane"
};
else if (document.URL=="http://www.centaman.com/NewsandEvents/tabid/57/Default.aspx")
{
var RP="dnn_ContentPane"
};
else if (document.URL=="http://www.centaman.com/")
{
var RP="dnn_RightPane"
};
else if (document.URL=="http://www.centaman.com/AboutUs/tabid/55/Default.aspx")
{
var RP="dnn_ContentPane"
};
else if (document.URL=="http://www.centaman.com/AboutUs/MarkIles/tabid/80/Default.aspx")
{
var RP="dnn_ContentPane"
};
else if (document.URL=="http://www.centaman.com/AboutUs/MikeKorbel/tabid/81/Default.aspx")
{
var RP="dnn_ContentPane"
};
else if (document.URL=="http://www.centaman.com/ContactUs/tabid/56/Default.aspx")
{
var RP="dnn_RightPane"
};
else
{
var RP="dnn_LeftPane"
};

window.onload = setRDiv;

function setRDiv() {
  var whR = 0;
  if ((document.getElementById(RP).offsetHeight)>(document.getElementById("main").offsetHeight)) // Window Height
  whR = document.getElementById(RP).offsetHeight;
  else {
  if ((document.getElementById(RP).offsetHeight)<(document.getElementById("main").offsetHeight)) // Window Height
  whR = document.getElementById("main").offsetHeight;};
  var dR = document.getElementById('main') // Get div element
  var dhR = dR.offsetHeight // div height
  dR.style.height = whR + 'px'; // Set div height to window height
}

function getRWindowHeight() {
  var RwindowHeight = 0;
	
  if (typeof(window.innerHeight) == 'number')
    RwindowHeight = window.innerHeight;
	
  else {
		
    if (document.documentElement && document.documentElement.clientHeight)
      RwindowHeight = document.documentElement.clientHeight;
		
    else {
      if (document.body && document.body.clientHeight)
        RwindowHeight = document.body.clientHeight; }; };
				
  return RwindowHeight;
};
window.onload = setRDiv;

function setRDiv() {
  var whR = 0;
  if ((document.getElementById(RP).offsetHeight)>(document.getElementById("main").offsetHeight)) // Window Height
  whR = document.getElementById(RP).offsetHeight;
  else {
  if ((document.getElementById(RP).offsetHeight)<(document.getElementById("main").offsetHeight)) // Window Height
  whR = document.getElementById("main").offsetHeight;};
  var dR = document.getElementById('main') // Get div element
  var dhR = dR.offsetHeight // div height
  dR.style.height = whR + 'px'; // Set div height to window height
}

function getRWindowHeight() {
  var RwindowHeight = 0;
	
  if (typeof(window.innerHeight) == 'number')
    RwindowHeight = window.innerHeight;
	
  else {
		
    if (document.documentElement && document.documentElement.clientHeight)
      RwindowHeight = document.documentElement.clientHeight;
		
    else {
      if (document.body && document.body.clientHeight)
        RwindowHeight = document.body.clientHeight; }; };
				
  return RwindowHeight;
};

