function verify_newsletter() 
{
	var message_false = "Veuillez entrer votre adresse E-mail, s'il vous plait.";
	var message_true = "Merci, vous recevrez une confirmation de votre inscription prochainnement.";
	if (document.NewsLetter_ins.newsletter_email.value=="")
	{
		alert(message_false);
		return false;
	}
	else 
	{
		alert(message_true);
		document.NewsLetter_ins.submit();
	}
}

function detectflash()
{

//********Set the names of your web pages here:*****

	flashpage 		= "mainmovie.htm"
	upgradepage		= "flashmain.htm"
	nonflashpage	= "flashmain.htm"
	cantdetectpage	= "flashmain.htm"
	
//**************************************************
	noautoinstall = ""

	if(navigator.appName == "Microsoft Internet Explorer" && 
		(navigator.appVersion.indexOf("Mac") != -1 || 
		 navigator.appVersion.indexOf("3.1") != -1))
	{
			noautoinstall = "true";
	}

	if (navigator.appName == "Microsoft Internet Explorer" &&
		 noautoinstall != "true")
	{
			window.location=flashpage;
	}
	else if(navigator.plugins)
	{
		if(navigator.plugins["Shockwave Flash"])
		{
			window.location=flashpage;
		}
		else if(navigator.plugins["Shockwave Flash 2.0"])
		{
			window.location=nonflashpage;
		}
		else
		{
			window.location=nonflashpage;
		}
	}
	else 
	{
	window.location=cantdetectpage;
	}
}

function HomePage(obj)
{
	obj.style.behavior='url(#default#homepage)';
	obj.setHomePage('http://imc.homeip.net');
}

function Pop(lol) 
{
window.open(lol,'LOL','toolbar=0,location=no,directories=no,status=no,menuBar=no,scrollbars=yes,resizable=0,width=300,height=150,left=200,top=200');
}
function Admin(adminl) 
{
window.open(adminl,"LOL",'toolbar=0,location=no,directories=no,status=no,menuBar=no,scrollbars=yes,resizable=1,width=800,height=600,left=0,top=0');
}
function infos(infos,sizeW,sizeH) 
{
	window.open(infos,"LOL",'toolbar=0,location=no,directories=no,status=no,menuBar=no,scrollbars=no,resizable=no,width=335,height=202,left=200,top=200');
}
function preloadImages() 
{ 
  var d=document;
  if(d.images)
  { if(!d.p) 
       d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments;
    for(i=0; i<a.length; i++)
      if (a[i].indexOf("#")!=0)
      { 
         d.p[j]=new Image;
         d.p[j++].src=a[i];
      }
  }
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  win=window.open(theURL,winName,features);
  win.focus();
}


var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0
if(ns){doc = "document."; sty = ""}
if(ie){doc = "document.all."; sty = ".style"}
var initialize = 0
var Ex, Ey, topColor, subColor, ContentInfo
if(ie)
{
Ex = "event.x"
Ey = "event.y"
topColor = "#AAAAAA"
subColor = "#FFFFFF"
}
if(ns)
{
Ex = "e.pageX"
Ey = "e.pageY"
window.captureEvents(Event.MOUSEMOVE)
window.onmousemove=overhere

topColor = "#AAAAAA"
subColor = "#FFFFFF"
}

function MoveToolTip(layerName, FromTop, FromLeft, e)
{
	if(ie){eval(doc + layerName + sty + ".top = "  + (eval(FromTop) + document.body.scrollTop))}
	if(ns){eval(doc + layerName + sty + ".top = "  +  eval(FromTop))}
	eval(doc + layerName + sty + ".left = " + (eval(FromLeft) + 15))
}
function ReplaceContent(layerName)
{
	if(ie){document.all[layerName].innerHTML = ContentInfo}
	if(ns)
	{
		with(document.layers[layerName].document) 
		{ 
			open(); 
			 write(ContentInfo); 
			close(); 
		}
	}
}
function Activate(){initialize=1}
function deActivate(){initialize=0}
function overhere(e)
{
	if(initialize)
	{
		MoveToolTip("ToolTip", Ey, Ex, e)
		eval(doc + "ToolTip" + sty + ".visibility = 'visible'")
	}
	else
	{
		MoveToolTip("ToolTip", 0, 0)
		eval(doc + "ToolTip" + sty + ".visibility = 'hidden'")
	}
}
function EnterContent(layerName, TTitle, TContent)
{
	ContentInfo = '<table border="0" width="150" cellspacing="0" cellpadding="0">'+
	'<tr><td width="100%" bgcolor="#000000">'+
	'<table border="0" width="100%" cellspacing="1" cellpadding="0">'+
	'<tr><td width="100%" bgcolor='+topColor+'>'+
	'<table border="0" width="90%" cellspacing="0" cellpadding="0" align="center">'+
	'<tr><td width="100%">'+
	'<font class="tooltiptitle">&nbsp;'+TTitle+'</font>'+
	'</td></tr>'+
	'</table>'+
	'</td></tr>'+
	'<tr><td width="100%" bgcolor='+subColor+'>'+
	'<table border="0" width="90%" cellpadding="0" cellspacing="1" align="center">'+
	'<tr><td width="100%">'+
	'<font class="tooltipcontent">'+TContent+'</font>'+
	'</td></tr>'+
	'</table>'+
	'</td></tr>'+
	'</table>'+
	'</td></tr>'+
	'</table>';
	ReplaceContent(layerName)
}



