function getWh()
{
   var myWidth = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ 
    myWidth = document.documentElement.clientWidth;
    
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 
    myWidth = document.body.clientWidth;
  }   
  return myWidth;
}

function getHei()
{
  var myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ 
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 
    myHeight = document.body.clientHeight;
  }  
  
  return myHeight;
}

function getMidLeft(myWidth,srcWidth)
{
  var leftt=0;
  leftt = Math.round((myWidth-srcWidth)/2); 	
  return leftt;  
}
	
function getMidTop(myHeight,srcHeight)
{
  var topp=0;
  topp = Math.round((myHeight-srcHeight)/2); 	
  return topp;  
}
