
/*  ----------------------------------------------
    landing.js
    author: Regi E. (rellis@pushhere.com, Lead Dev)
    
    req/location
      scripts/mootools-core.js
      scripts/landing.js
    ----------------------------------------------  */


/*  =Class: landingSwf
    ----------------------------------------------  */    
    var landingSwf = new Swiff('/static/images/flash/main.swf', {
        id: 'landing',
        width: '100%',
        height: '800',
        style: 'visibility: visible',
        container: $('landing'),
            params: {
                bgcolor: '#000000',
                allowScriptAccess: 'always',
                quality: 'high',
                wMode: 'transparent',
                scale: 'noscale',
                menu: 'false',
                swLiveConnect: 'false'
            },
            vars: {
                EN_URL: '/home/',
                JP_URL: 'http://www.antiquorum-japan.com/',
                CN_URL: 'http://www.antiquorum.com.hk/',
                IT_URL: '/it/'
            }
        });
        
    function mobile() {
      window.location = 'http://beta.antiquorum.com/mobile/';
    }
    
    
/*  =Ready
    ----------------------------------------------  */
    window.addEvent('domready', function() {
      ($chk(Browser.Platform.ipod)) ? mobile() : landingSwf.replaces($('landing'));
    });
    
    
    
    