jp = new function() {
	;
}

// initialisation librairies js toutou
toutou.require(
	"toutou.utils.browser",
	"toutou.event.manager", 
	"toutou.html.dom", 
	"toutou.html.ajaxForm", 
	"toutou.html.event",
	"toutou.html.layout",
	"toutou.html.dnd",
	"toutou.frame.defaultFrame", 
	"toutou.effect.move",
	"toutou.js.closure", 
	"toutou.js.object", 
	"toutou.js.ajax",
	"toutou.utils.strings"
);

if(toutou.utils.browser.ua.ie)
{
	document.getElementsByName = function(name) {
		var temp = document.all[name];
	    var matches = new Array();
	    for(var i=0; i < temp.length; i++)
	    {
	    	if(temp[i].getAttribute("name") == name)
	    	{
	    		matches.push(temp[i]);
	    	}
	    }
	    return matches;
	};
}

toutou.config.extraRootUrls.jp = 'view/js';

toutou.require(
	"jp.diapo",
	"jp.note",
	"jp.home",
	"jp.navigation",
	"jp.popover",
	"jp.drag",
	"jp.contrib",
	"jp.search",
	"jp.inscription",
	"jp.identification",
	"jp.password",
	"jp.editionCompte",
	"jp.ficheDivers",
	"jp.ficheSociete",
	"jp.ficheJeu",
	"jp.contact",
	"jp.image",
	"jp.article",
	"jp.front",
	"jp.formNewsletter",
	"jp.envoiAmi",
	"jp.habillage"
);

toutou.event.manager.extend(jp);
