var mess = "    -=< Centre Direct du Multimedia vous souhaite la bienvenue >=-     ";
var i = 0;

function defile(){
window.status = mess.substring(i, mess.length) + mess.substring(0, i);
i++;
if (i > mess.length)
	i = 0;
window.setTimeout("defile()",200);
}

function maximise(){
window.moveTo(0,0);

var nic="nic.fr"; // redirection si le visiteur vient de l afnic
var ref = document.referrer;
if ( (ref.lastIndexOf(nic))>0 )
	document.location.href='http://www.cdmultimedia.fr/Internet/Index.php';

	if (document.all) { // IE
		if (  (window.height != screen.availHeight) 
		   || (window.width  != screen.availWidth) ){
		window.resizeTo(screen.availWidth, screen.availHeight);
		}
	}
	else { // NETSCAPE
	   if ( (window.outerHeight != screen.availHeight)
	     || (window.outerWidth  != screen.availWidth) ) {
		window.outerHeight = screen.availHeight;
		window.outerWidth = screen.availWidth;
	   }
	}
i1 = new Image;
i1.src = "/menu/Rond.gif";
defile();
}

function gauche(){
	window.document.write('<div align="left" style="position:absolute; left:10px; width:165px; height:');
	if (document.all)
		window.document.write(document.body.clientHeight - 80 - 40);
	else
		window.document.write(window.innerHeight - 80 - 40);
	window.document.write('px; overflow: auto; ">');
}

function centre(){
	window.document.write('<div align="left" style="position:absolute; left:190px; width:');
	if (document.all)
		window.document.write(document.body.clientWidth - 165 - 40);
	else
		window.document.write(window.innerWidth - 165 - 40);
	window.document.write('px; height:');
	if (document.all)
		window.document.write(document.body.clientHeight - 80 - 40);
	else
		window.document.write(window.innerHeight - 80 - 40);
	window.document.write('px; overflow: auto; ">');
}

function popup1(){
window.open('/popup.html','MailPopup','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=300,height=200');
}

function GetCookie (){
 var cookValue = "" ;
 var cookName = "" ;
 var egal = document.cookie.indexOf( "$" ) ;
 cookName = document.cookie.substring ( 0, egal ) ;
 cookValue = document.cookie.substring ( egal + 1, egal + 4) ;
 if (cookValue != "yes") popup1();
 }

function SetCookie (){
 var aujourdhui = new Date() ;
 var expdate = new Date() ;
 expdate.setTime( aujourdhui.getTime() + ( 365*24*60*60*1000*2 ) ) ;
 document.cookie = "registred$yes" + ";expires=" + expdate.toGMTString() ;
 }
