function pop(url)
{
    var name="popup";
    var w= 985;
    var h=667;
    var opts = "width=" + w + ",height=" + h + ",scrollbars=yes,toolbar=yes,location=yes,menubar=yes,status=yes,resizable=yes";
    opts=opts+',top='+((screen.height/2)-(h/2))+',left='+((screen.width/2)-(w/2));
    var win = window.open(url,name,opts);
    return(false );
}

window.addEvent('domready', function()
{
    var links = $$('a.popup');
    links.each(function(el)
    {
        el.addEvent('click',function(clicker)
        {
            var event = new Event(clicker);
            event.stop();
            return(pop(el.href));
        });
    });

});

window.addEvent('domready', function()
{
    if(Browser.Engine.trident4)
    {
        var hiders = $$('.ie6Hide');
        hiders.each(function(el)
        {
            el.setStyle('display', 'none');
        });

    }
});

var key = "up,up,down,down,left,right,left,right,b,a";
var secret = key.split(',')

window.addEvent('keydown', function(event)
{
    if(event.key == secret.shift())
    {
        if(secret.length == 0)
        {
            obfuscato(); 
        }
    }
    else
    {
        secret = key.split(',')
    }	

});

function obfuscato()
{
    alert("fuck yeah!");
}

