function $(v,o) { return((typeof(o)=='object'?o:document).getElementById(v)); }
function $S(o) { return((typeof(o)=='object'?o:$(o)).style); }

function alertSize() {
  var myWidth = 0, myHeight = 0;
  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;
  }
  
  return (Array(myWidth,myHeight));
}

function hide_q_p ()
{
	$S('quest_partner_float').display='none';
	$S('hide_screen').display='none';
}

function q_p()
{	
	ar_x_y=alertSize();
	
	$S('hide_screen').display='';
	$S('hide_screen').left='0px';
	$S('hide_screen').top='0px';
	$S('hide_screen').width='100%';
	$S('hide_screen').height='100%';
	$S('hide_screen').position='fixed';
		
	$S('quest_partner_float').display='';
	$S('quest_partner_float').left=Math.round((ar_x_y[0]-$('quest_partner_float').clientWidth)/2)+'px';
	$S('quest_partner_float').top=Math.round((ar_x_y[1]-$('quest_partner_float').clientHeight)/2)+'px';	
}


