function viva ()
{
	
	positionViva();
	
	
}
function positionViva ()
{
	var w = getWidth();
	var h = getHeight();
	//var vh = $("logo").offsetHeight + $("mainmenu").offsetHeight + $("workstrip").offsetHeight;
//	var vw = $("show").offsetWidth;
//	var vh = $("show").offsetHeight;
	//var lw = $("logo").offsetWidth;
	//var mw = $("mainmenu").offsetWidth;
	
//	$("show").style.top = (((h-vh)/2)) + "px";
//	$("show").style.left = (((w-vw)/2)) + "px";
	//$("logo").style.left = (((w-lw)/2)) + "px";
	//$("mainmenu").style.left = (((w-mw)/2)) + "px";
	
	if($("show").style.visibility != "visible")
	{
		$("show").style.visibility = "visible";
	}
	
//  var vw2 = $("title").offsetWidth;
//	var vh2 = $("title").offsetHeight;
	
//	$("title").style.top = (((h-vh2)/2) - 290) + "px";
//	$("title").style.left = (((w-vw2)/2)) + "px";
	
  var vw3 = $("blackpulp").offsetWidth;
  var vh3 = $("blackpulp").offsetHeight;
  
  $("blackpulp").style.top = ((h-vh3) - 20) + "px";
  $("blackpulp").style.left = ((w-vw3) - 5) + "px";
  
  var vw4 = $("footer").offsetWidth;
  var vh4 = $("footer").offsetHeight;
  
  $("footer").style.top = ((h-vh3) - 20) + "px";
  $("footer").style.left = (5) + "px";

//  var vw5 = $("subtitle").offsetWidth;
//	var vh5 = $("subtitle").offsetHeight;
	
//	$("subtitle").style.top = (((h-vh5)/2) + 275) + "px";
//	$("subtitle").style.left = (((w-vw5)/2)) + "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;



