/*
	Main
	Requires Mootool 1.2 Core
	Requires lib.ok.utils.RequireUtils
	Ok!nteractif
*/
///	Imports	//////////////////////////////////////////////////////////////////////////////////////////////////////////
RequireUtils.require(
	[
		'lib.ok.ui.ButtonsManager'
	]
);

///	Constants	//////////////////////////////////////////////////////////////////////////////////////////////////////

///	Class	//////////////////////////////////////////////////////////////////////////////////////////////////////////
var Main = 
{		
	init			: function()
	{
	//	Init buttons states	
		ButtonsManager.generate('over');
	//	Init BrowserUpdate
		this.broswerUpdateCheck();
	},
	
	broswerUpdateCheck : function(){
		if (document.location.protocol == "https:"){
			  return;
		 }
		
		/* Script by http://browser-update.org/ */
		var $buoop = {} 
			$buoop.ol = window.onload; 
			
		window.onload=function(){ 
		 
		 if ($buoop.ol) $buoop.ol(); 
		 
		 var e = document.createElement("script"); 
			 e.setAttribute("type", "text/javascript"); 
			 e.setAttribute("src", "http://browser-update.org/update.js"); 
		 document.body.appendChild(e); 
		} 
	}
};
