/*
	http://www.brothercake.com/
*/
var attachCommonEvent = function(event_name, function_obj) {
	var type = 0;
	if (typeof window.addEventListener != undefined) {
		// .. gecko, safari, konqueror and standard
		window.addEventListener(event_name, function_obj, false);
		type = 1;
	}
	else if (typeof document.addEventListener != undefined) {
		// .. opera 7
		document.addEventListener(event_name, function_obj, false);
		type = 2;
	}
	else if (typeof window.attachEvent != undefined) {
		// .. win/ie
		window.attachEvent("on" + event_name, function_obj);
		type = 3;
	}
	return type;
};

/* exemple : attache test sur onload

	function test() {}
	attachCommonEvent("load", test);
*/
