Shadowbox.loadSkin('classic', '../src/skin');
Shadowbox.loadLanguage('en', '../src/lang');
Shadowbox.loadPlayer(['flv', 'html', 'iframe', 'img', 'qt', 'swf', 'wmp'], '../src/player');
window.onload = function(){
Shadowbox.init();
};

function dodaj(gra){
    Shadowbox.open({
        player:     'iframe',
        title:      'Dodaj swój tekst',
        content:    'http://netbus.pl/dodaj/dodaj.php?gra='+gra,
        height:     270,
        width:      550
    });
    }

function reklama(){
    Shadowbox.open({
        player:     'iframe',
        title:      'Reklama',
        content:    'http://netbus.pl/info/reklama.php',
        height:     300,
        width:      400
    });
    }

function reklamab(){
    Shadowbox.open({
        player:     'iframe',
        title:      'Reklama',
        content:    'http://www.gry.netbus.pl/bpr/reklama.php',
        height:     410,
        width:      640
    });
    }

function kontakt(){
    Shadowbox.open({
        player:     'iframe',
        title:      'Kontakt',
        content:    'http://netbus.pl/info/kontakt.php',
        height:     150,
        width:      400
    });
    }

function login(ref){
    Shadowbox.open({
        player:     'iframe',
        title:      'Logowanie',
        content:    'http://netbus.pl/info/login.php?ref='+ref,
        height:     150,
        width:      400
    });
    }


      function show(el) {      document.getElementById(el).style.display = "block";
      for(var i=1; i<=6; i++) {
      if(el == i) {
      document.getElementById(el).style.display = "block";
      }else{
      document.getElementById(i).style.display = "none";
      }}}

function gsize(i) {    var gry = document.getElementById("gra");
    var h_buf=gry.height;
    var w_buf=gry.width;


	if(i){
    var wsp="1.1";
    } else
    {    var wsp="0.9";
    }

    gry.height=wsp * h_buf;
    gry.width=wsp * w_buf;

 }
