function viva ()
{
	
	positionViva();
	
	
}
function positionViva ()
{
	var w = getWidth();
	var h = getHeight();
	var vw = $("show").offsetWidth;
	var vh = $("show").offsetHeight;
	
	$("show").style.top = (((h-vh)/2)) + "px";
	$("show").style.left = (((w-vw)/2)+30) + "px";
	
	if($("show").style.visibility != "visible")
	{
		$("show").style.visibility = "visible";
	}
	
  var vw2 = $("title").offsetWidth;
	var vh2 = $("title").offsetHeight;
	
	$("title").style.top = (((h-vh2)/2)) + "px";
	$("title").style.left = (((w-vw2)/2)-515) + "px";
	
  var vw5 = $("buttonbar").offsetWidth;
	var vh5 = $("buttonbar").offsetHeight;
	
	$("buttonbar").style.top = (((h-vh5)/2) + 246) + "px";
	$("buttonbar").style.left = (((w-vw5)/2)+30) + "px";
}
function $(e)
{
	if(document.getElementById(e))
	{
		return document.getElementById(e);
	}
	return false;
}
function getWidth ()
{
	var viewportwidth;
	var viewportheight;
	
	// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
	
	if (typeof window.innerWidth != 'undefined')
	{
	  viewportwidth = window.innerWidth,
	  viewportheight = window.innerHeight
	}
	
	// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
	
	else if (typeof document.documentElement != 'undefined'
	 && typeof document.documentElement.clientWidth !=
	 'undefined' && document.documentElement.clientWidth != 0)
	{
	   viewportwidth = document.documentElement.clientWidth,
	   viewportheight = document.documentElement.clientHeight
	}
	
	// older versions of IE
	
	else
	{
	   viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
	   viewportheight = document.getElementsByTagName('body')[0].clientHeight
	}
	return viewportwidth;

}
function getHeight ()
{
	var viewportwidth;
	var viewportheight;
	
	// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
	
	if (typeof window.innerWidth != 'undefined')
	{
	  viewportwidth = window.innerWidth,
	  viewportheight = window.innerHeight
	}
	
	// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
	
	else if (typeof document.documentElement != 'undefined'
	 && typeof document.documentElement.clientWidth !=
	 'undefined' && document.documentElement.clientWidth != 0)
	{
	   viewportwidth = document.documentElement.clientWidth,
	   viewportheight = document.documentElement.clientHeight
	}
	
	// older versions of IE
	
	else
	{
	   viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
	   viewportheight = document.getElementsByTagName('body')[0].clientHeight
	}
	return viewportheight;
}

window.onresize = viva;



