var myWidth = 0, myHeight = 0;
function findWindowSize() {
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
}
function resize()
{

findWindowSize();

if(myHeight <= 700)
{
document.getElementById("footer").style.top= '700px';
document.getElementById("container").style.height= '700px';
document.getElementById("certificate").style.top= '700px';
document.getElementById("pst").style.top= '700px';

 document.getElementById("gapper").style.display= 'none';



}
else
{
document.getElementById("footer").style.top= '100%';
document.getElementById("container").style.height= '100%';
document.getElementById("certificate").style.top= '100%';
document.getElementById("pst").style.top= '100%'

//document.getElementById("wrapper").style.top= (myHeight-525)/2+'px' ;




}

if(myWidth <= 700)
{
	document.getElementById("pst").style.left= '5px';
}
else if(myWidth <= 1024 && myWidth > 700)
{
	document.getElementById("pst").style.left= '5%';
}
else
{
	document.getElementById("pst").style.left= '12%';
}

if(myWidth < 1024)
{
	//document.getElementById("container").style.width= '100%';
	document.getElementById("certificate").style.left= '1024px';
	document.getElementById("footerlink").style.left= '30px';
	

}
else
{
	//document.getElementById("container").style.width= '100%';
	document.getElementById("certificate").style.left= '100%';
	document.getElementById("footerlink").style.left= '50%';

}


if(myHeight > 700)

  document.getElementById("gapper").style.display= 'block';
  document.getElementById("gapper").style.height= ((myHeight-600)/2)+'px';

}

function display()
{
//document.getElementById("footer").style.visibility= 'visible';
//document.getElementById("certificate").style.visibility= 'visible';
//document.getElementById("pst").style.visibility= 'visible';
	
}


