window.addEvent('domready',function() {

    var whois_online = JSON.decode(registry.whois_online);
    new MooEroFav(registry.domain,{'whois_online':whois_online});
    new MooEroBlacklist(registry.domain,{'whois_online':whois_online});
    
    var moo_disc = new MooDisclaimer(registry.domain,registry.lang_tab, js_text,{});

    new Swiff('/swfs/eroblog/header_'+registry.lang+'.swf', {
        id: 'chatInterface',
        params: {
            scale: 'showall',
            allowFullScreen: 'true'
        },
        vars: {
            //none
        },
        width: 750,
        height: 213,
        container: $('welcome_box'),
        callBacks: {
            //none, not working
        }
    });
    
    new Swiff('/swfs/eroblog/pub_partner.swf', {
        id: 'chatInterface',
        params: {
            scale: 'showall',
            allowFullScreen: 'true'
        },
        vars: {
            //none
        },
        width: 197,
        height: 243,
        container: $('pub_affiliate'),
        callBacks: {
            //none, not working
        }
    });
    
    function storeTitle(element) {
        if(element.get('title')) {
            var content = element.get('title').split('::');
            var titre = content[0]?content[0]:'';
            var text = content[1]?content[1]:'';
            element.store('tip:title', titre);
            element.store('tip:text', text);
        }
    }
    
    $$('.ihelptip').each(function(element,index) {
        storeTitle(element);
    });
    var tooltip_info = new Tips('.ihelptip',{className:'info_tooltip',fixed: false});
    //if(Browser.Engine.trident!=true  || registry.action=='profil') {
        $$('.infotip, .linktip, .helptip').each(function(element,index) {
            storeTitle(element);
        });
        tooltip_info.attach('.infotip, .helptip, .linktip');
    //}
    
    SqueezeBox.assign($('top_left_box'), {
		handler:'iframe',
        size:{x:700,y:540}, 
        url:'http://mailing.only4info.com/?LyId=1056&lng='+registry.lang_id
	});

    
});

