// Génération de la Tache de SANG
function splahsBlood()
{
	// Taille de notre image
	var imageH = 185 ;
	var imageW = 200 ;
	// On récuperer la positions
	var screenXmax = (browser.ie == true) ? document.documentElement.clientWidth + 14 : window.innerWidth + 14;
	var screenYmax = (browser.ie == true) ? document.documentElement.clientHeight : window.innerHeight;
	
	var Xmax = (screenXmax*1)-imageW ;
	var Ymax = (screenYmax*1)-imageH ;
	// La création du bouton
	splahsBlood                = document.createElement('div') ;
    splahsBlood.name           = 'splahsBlood' ;
	splahsBlood.className      = 'splahsBlood' ;
    splahsBlood.id             = 'splahsBlood' ;
    splahsBlood.value          = 'splahsBlood' ;
	splahsBlood.style.position = 'fixed' ;
    splahsBlood.style.zIndex   = '23000' ;
	splahsBlood.style.width    = imageH+'px' ;
	splahsBlood.style.height   = imageW+'px' ;		
	splahsBlood.style.left     = Xmax+'px' ;
	splahsBlood.style.top      = Ymax+'px' ;
	// On rajoute le bouton a la page
	document.body.appendChild(splahsBlood);
	
	ReposSplashBlood = function()
	{
		// Taille de notre image
		var imageH = 185 ;
		var imageW = 200 ;
		// On récuperer la positions
		var screenXmax = (browser.ie == true) ? document.documentElement.clientWidth + 14 : window.innerWidth + 14;
		var screenYmax = (browser.ie == true) ? document.documentElement.clientHeight : window.innerHeight;
		// On positionne l'image
		var Xmax = (screenXmax*1)-imageW ;
		var Ymax = (screenYmax*1)-imageH ;
		splahsBlood.style.left     = Xmax+'px' ;
		splahsBlood.style.top      = Ymax+'px' ;
	}
	window.onresize=ReposSplashBlood;
}


// Quand le DOM est pret on initialise nos Objets javascript
window.addEvent('domready', function() {
	
	var myVerticalSlide = new Fx.Slide('vertical_slide_01');

	$('v_toggle_01').addEvent('click', function(e){
		e.stop();
		myVerticalSlide.toggle();
	});
	// Il commence caché
	myVerticalSlide.hide();
	
		//-vertical
	var myVerticalSlide2 = new Fx.Slide('vertical_slide_02');

	$('v_toggle_02').addEvent('click', function(e){
		e.stop();
		myVerticalSlide2.toggle();
	});
	// Lui aussi ce con
	myVerticalSlide2.hide();
});
