function getObject(obj) {
  var theObj;
  if(document.all) {
    if(typeof obj=="string") {
      return document.all(obj);
    } else {
      return obj.style;
    }
  }
  if(document.getElementById) {
    if(typeof obj=="string") {
      return document.getElementById(obj);
    } else {
      return obj.style;
    }
  }
  return null;
}

function fbclose(){
	document.getElementById('glike').style.display = 'none';
	document.getElementById('fblike').style.display = 'none';
}
var myWidth = 0, myHeight = 0, dshow = 0;

function wSize(){
  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;
  }
	
		getObject('glike').style.height = (myHeight+10)+'px' ;
		getObject('glike').style.left = '0px';
		getObject('glike').style.top = '0px';
	if (dshow == 1) {
		getObject('fblike').style.left = ((myWidth / 2) - 300)+'px' ;
		getObject('fblike').style.top = ((myHeight / 2) - 200) + 'px' ;
	}
}

function fbshow(){
	wSize();
	getObject('glike').style.display = '';
	getObject('glike').style.opacity = 0;
setTimeout(opa1, 10);
//setTimeout('opa(0.5)', 250);
//setTimeout('opa(0.7)', 250);


	
}
function fshow(){ getObject('fblike').style.display = '';
	getObject('fblike').style.left = ((myWidth / 2) - 300)+'px' ;
	getObject('fblike').style.top = ((myHeight / 2) - 200) + 'px' ;
	dshow =1;
}
function opa(op){
	getObject('glike').style.opacity = op;
	//getObject('glike')
}

function opa1(){	opa(0.1); setTimeout(opa2, 45); }
function opa2(){	opa(0.2); setTimeout(opa3, 45); }
function opa3(){	opa(0.3); setTimeout(opa4, 45); }
function opa4(){	opa(0.4); setTimeout(opa5, 45); }
function opa5(){	opa(0.5); setTimeout(opa6, 45); }
function opa6(){	opa(0.6); setTimeout(opa7, 55); }
function opa7(){	opa(0.7); setTimeout(fshow, 55); }

setTimeout(fbshow, 13000);
window.onresize= wSize;
