var VB_PREHOME = function() {
	return {
		addLoadEvent : function(e) {
			if (window.addEventListener)
	 			window.addEventListener('load', e, false);
	  		else if (window.attachEvent)
				window.attachEvent('onload', e);
		},
		popup : function(url,larg,haut){
			window.open(url,'','height='+haut+', width='+larg+', toolbar=no, menubar=no, scrollbars=no, resizable=yes, location=no, directories=no, status=no');
		},
		prehome : function(){
			return {
			/*
				init : function(){
					var _body = document.getElementsByTagName("body")[0];
					var _prehome = document.getElementById("HP_prehome_tous_love");
					var _prehome_child = document.getElementById("HP_prehome_tous_love_flash");
					deplacer(_body,_prehome);
					setDims(_prehome);
					setDims(_prehome_child);
					window.onresize = function(){
						setDims(_prehome);
						setDims(_prehome_child);
					}
				},
				*/
				fermer : function(){
					masqueElement(document.getElementById("HP_prehome_tous_love"));
				}
			};
			function setDims(e){
				setHauteur(e,getWinDim().h);
				setLargeur(e,getWinDim().w);
			}
			function deplacer(x,y){
				x.appendChild(y);
			}
			function masqueElement(e){
				e.style.display = 'none';
			}
			function setHauteur(e,h){
				e.style.height = h+'px';
			}
			function setLargeur(e,l){
				e.style.width = l+'px';
			}
			function getWinDim() {
				var w,h;
				if ( window.innerWidth ) { // autres que IE
					w = window.innerWidth;
					h = window.innerHeight;
				} else if ( document.documentElement.clientWidth ) { // IE8
					w = document.documentElement.clientWidth;
					h = document.documentElement.clientHeight;
				} else if ( document.body.clientWidth ) { // IE6
					w = document.body.clientWidth;
					h = document.body.clientHeight;
				}
				return {'w':w, 'h':h} ;
			}
		}()
	};
}();
