function showplayer(yabla_url) {
	var rnd = Math.round;
	var x=screen.availWidth;
	var y=screen.availHeight;
	var aspect_ratio = 1.5;
	var pct = .90;
	if (x > 999 ) {
		pct=0.80;
	}
	if (x > 1199 ) {
		pct=0.75;
	}
	if (x > 1400 ) {
		pct=0.70;
	}
	var width = rnd(pct*x);
	var height = rnd(width/aspect_ratio);
	var top = rnd( (y-height)/3);
	var left= rnd( (x-width)/2);

	var win1=window.open(yabla_url,'YABLA','resizable=yes,width='+width+',height='+height+',top='+top+',left='+left);
	win1 && win1.focus();
}
$(function() {
  $('a.gb').live("click",function(e){
    e.preventDefault();
    showplayer(this.href);
    return false;
  });
  
})