var bodywidth='';
var bodyheight='';
var scollbodyheight='';
var popdisplatfromtop='';
var popdisplatfromleft='';
var yWithScroll ='';
var xWithScroll ='';
var popdisplatfromtop_revenue='';


function page_size_scroll()
{
if (window.innerHeight && window.scrollMaxY) {// Firefox
		scollbodyheight = window.innerHeight + window.scrollMaxY;
		xWithScroll = window.innerWidth + window.scrollMaxX;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		scollbodyheight = document.body.scrollHeight;
		xWithScroll = document.body.scrollWidth;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		scollbodyheight = document.body.offsetHeight;
		scollbodyheight = scollbodyheight + 250;
		xWithScroll = document.body.offsetWidth;
  	}
}

if( typeof( window.innerWidth ) == 'number' ) 
	{
	//Non-IE
		bodywidth = window.innerWidth;
		bodyheight = window.innerHeight;
	} 
	else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
	{
		//IE 6+ in 'standards compliant mode'
		bodywidth = document.documentElement.clientWidth;
		bodyheight = document.documentElement.clientHeight;
	} 
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
	{
		//IE 4 compatible
		bodywidth = document.body.clientWidth;
		bodyheight = document.body.clientHeight;
	}	
	displaywidth=(bodywidth-814);
	popdisplatfromleft=(displaywidth/2);
	displayheight=(bodyheight-565);
	displayheight_revenue=(bodyheight-600);
	popdisplatfromtop=Math.round((displayheight/2));
	popdisplatfromtop_revenue=Math.round((displayheight_revenue/2));

function load_pricing()
{
	document.getElementById('overlay').style.display = 'block';
	temp_popdisplatfromleft = popdisplatfromleft + "px";
	temp_popdisplatfromtop = popdisplatfromtop + "px";
	temp_bodyheight = scollbodyheight + 50 + "px";
	temp_obj = document.getElementById('pricing');
	temp_obj.style.display='block';
	temp_obj.style.left=temp_popdisplatfromleft;
	temp_obj.style.top=temp_popdisplatfromtop;
	temp_obj_2 = document.getElementById('overlay');
	temp_obj_2.style.height=temp_bodyheight;
	show_hide('DPtwoh',pricetabs);

	
}
function load_video(videoName)
{
	var vidName = videoName;
	document.getElementById('overlay').style.display = 'block';
	temp_popdisplatfromleft = popdisplatfromleft + "px";
	temp_popdisplatfromtop = popdisplatfromtop + "px";
	temp_bodyheight = scollbodyheight + 50 + "px";
	//temp_obj = document.getElementById('pricing');
	temp_obj = document.getElementById(vidName);
	temp_obj.style.display='block';
	temp_obj.style.left=temp_popdisplatfromleft;
	temp_obj.style.top=temp_popdisplatfromtop;
	temp_obj_2 = document.getElementById('overlay');
	temp_obj_2.style.height=temp_bodyheight;
}

function load_revenue()
{
	document.getElementById('overlay').style.display = 'block';
	temp_popdisplatfromleft = popdisplatfromleft + "px";
	temp_popdisplatfromtop = popdisplatfromtop_revenue + "px";
	temp_bodyheight = scollbodyheight + 50 + "px";
	temp_obj = document.getElementById('revenue');
	temp_obj.style.display='block';
	temp_obj.style.left=temp_popdisplatfromleft;
	temp_obj.style.top=temp_popdisplatfromtop;
	temp_obj_2 = document.getElementById('overlay');
	temp_obj_2.style.height=temp_bodyheight;
}
function close_popup()
{
	if(document.getElementById('revenue'))
	{
		document.getElementById('revenue').style.display='none';
	}
	
	if(document.getElementById('pricing'))
	{
		document.getElementById('pricing').style.display='none';
	}
	
	if(document.getElementById('overlay'))
	{
		document.getElementById('overlay').style.display='none';
	}
	
	
}
function close_videopopup(clsVideoName)
{
	var clsVName = clsVideoName;
	if(document.getElementById(clsVName))
	{
		document.getElementById(clsVName).style.display='none';
	}
	
	if(document.getElementById('overlay'))
	{
		document.getElementById('overlay').style.display='none';
	}
}

