// Configuration of environnement and dependencies on Viadeo webapp
tetra.extend({
	conf: {
		env: 'jQuery',
		jsVersion: VNS.context.scriptsVersion,
		authCallback: function(){ 
			tns.ajaxBox = 
				new VNS.util.AjaxPopupBox('/r/account/authentication/', { 
						callback : 'tns.currentRequest', 
						allowEscape : false, 
						popupVar: 'tns.ajaxBox' 
				});
		},
		currentRequestCallback: function() {
			if(tns.ajaxBox) {
				tns.ajaxBox.close();
			}
		},
		api: {
			apiKey: 'applicationName',  
	        status: true, 
	        cookie: true
		},
		enableBootstrap: true
	}
}).start();
@@ -175,16 +175,20 @@
 ()%7B %0A%09%09%09
+if(!
 tns.ajax
@@ -194,160 +194,74 @@
 xBox
- = 
+) %7B
 %0A%09%09%09%09
-new VNS.util.AjaxPopupBox('/r/account/authentication/', %7B %0A%09%09%09%09%09%09callback : 'tns.currentRequest', %0A%09%09%09%09%09%09allowEscape : false, 
+tns.ajaxBox = new VNS.util.SecureLoginModalBox();
 %0A%09%09%09
+%7D%0A
 %09%09%09
-popupVar: '
 tns.
@@ -271,16 +271,14 @@
 xBox
-' %0A%09%09%09%09%7D
+.show(
 );%0A%09

Update lib/conf/viadeo-api.js