function nd_removeDisaster()
{
	document.getElementById("nd_myAnim").style.display = "none" ;
	document.getElementById("nd_copyright").style.display = "none" ;
}

nd_ismx = new Array();
nd_ismx["graff"] = nd_ismx["shaver"] = nd_ismx["manif"] = true ;
var indefinie;

if ( nd_control == indefinie )
{
	var nd_control = "" ;
}

if ( nd_dest == indefinie )
{
	var nd_dest = "" ;
}

nd_mx = "" ;
if ( nd_ismx[nd_mode] )
{
	nd_mx = "mx" ;
}

switch(nd_mode)
{
	case "bomb" :
	{
		nd_movie = "meteor" ;
		break;
	}
	case "blood" :
	{
		nd_movie = "gun" ;
		break;
	}
	case "paint" :
	{
		nd_movie = "gun" ;
		break;
	}
	case "acid" :
	{
		nd_movie = "pee" ;
		break;
	}
	case "vomit" :
	{
		nd_movie = "pee" ;
		break;
	}
	default :
	{
		nd_movie = nd_mode ;
	}
}

// var nd_myfla = '' + nd_mx + '.swf?mode=' + nd_mode + '&destruction=' + nd_dest + '&acces=&control=' + nd_control ;
var nd_myfla = '' + nd_movie + '.swf?mode=' + nd_mode + '&destruction=' + nd_dest + '&acces=&control=' + nd_control ;

if ( nd_mode == "sucker" || nd_mode == "shaver" || nd_mode == "manif" )
{
	nd_myfla += "&target=" + document.location ;
}

var nd_anim = '<div id="nd_myAnim" style="position:absolute; left:0px; top:0px; width:100%; height:100%; z-index:100">'
+ '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100%" height="100%" id="mySwf">'
+ '<param name="movie" value="' + nd_myfla + '">'
+ '<param name="menu" value="false">'
+ '<param name="quality" value="high"><param name="wmode" value="transparent"><param name="scale" value="noborder">'
+ '<embed src="' + nd_myfla +'" quality=high wmode=transparent pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100%" height="100%" scale="noborder" id="mySwf" menu="false">'
+ '</embed></object></div>' ;

document.write(nd_anim);

var nd_pubfla = 'anaclock.swf' ;
var ndpub_larg = 200 ;
var ndpub_haut = 200 ;

var nd_pub = '<div id="nd_copyright" style="position:absolute; left:0px; top:0px; width:' + ndpub_larg + '; height:' + ndpub_haut + '; z-index:101">'
+ '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="' + ndpub_larg + '" height="' + ndpub_haut + '">'
+ '<param name="movie" value="' + nd_pubfla + '">'
+ '<param name="menu" value="false">'
+ '<param name="quality" value="high"><param name="wmode" value="transparent">'
+ '<embed src="' + nd_pubfla + '" quality=high wmode=transparent pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + ndpub_larg + '" height="' + ndpub_haut + '" menu="false">'
+ '</embed></object></div>' ;
 
document.write(nd_pub);

// Détection du navigateur
var nc6 = (typeof(window.controllers) != 'undefined' && typeof(window.locationbar) != 'undefined')? true:false;
var nc4 = (document.layers)? true:false;
var ie4 = (document.all)? true:false;

var hwin = 0 ;
var lwin = 0 ;

function move(calque)
{
	if (document.getElementById)
	{
		document.getElementById(calque).style.top = yoffset;
		if (ie4)
		{
			document.getElementById(calque).style.width = lwin;
		}
		else if (nc6)
		{
			document.getElementById(calque).style.width = "100%";
		}
	}
	if (document.all && !document.getElementById)
	{
		document.all[calque].style.top = yoffset;
		document.all[calque].style.width = "100%";
	}
	if (document.layers)
	{
		document.layers[calque].style.top = yoffset;
		document.layers[calque].style.width = "100%";
	}
}

function screen()
{
	hwin = document.body.clientHeight - 3 ;
	lwin = document.body.clientWidth ;
	yoffset = document.body.scrollTop ;
	document.getElementById("nd_copyright").style.left = lwin - ndpub_larg ;
	document.getElementById("nd_copyright").style.top = hwin - ndpub_haut + yoffset ;
	move("nd_myAnim") ;
	setTimeout("screen()",1000);
}

screen() ;

