// JavaScript Document

function pleinecran() {
var plecran
ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ))
if (ie4)
plecran=window.open("index_2.html", "plecran", "resizable=yes","menubar=no");
else
plecran=window.open("index_2.html", "plecran", "height="+window.screen.availHeight+", width="+(window.screen.availWidth+20)+", top=0, left=0, toolbar=no, status=no, scrollbars=yes, location=yes, menubar=yes, directories=yes, resizable=yes");
}
function clp_clear() 
{ 
   var content=window.clipboardData.getData("Text"); 
   if (content==null) { 
      window.clipboardData.clearData();} 
   setTimeout("clp_clear();",1000);
} 
this.document.onload=clp_clear;
function bloqueTouche() 
{ 
  if(event.ctrlKey) //Touche Ctrl enfoncée 
    if((event.keyCode == 78) || (event.keyCode == 67)) //touche c ou C enfoncée 
      event.returnValue = false;  
} 
document.onkeydown =bloqueTouche;

function popup(url,largeur,hauteur,ascenseurs)
{
	window.open(url,"_blank","toolbar=0,location=0,directories=0,status=0,scrollbars="+(ascenseurs)+",resizable=0,copyhistory=0,menubar=0,width="+(largeur)+",height="+(hauteur)+",left="+((screen.width-largeur)/2)+",top="+((screen.height-hauteur)/2)+"");
	return(false);
}

function FermetureForcee()
{
	var obj_window = window.open('', '_self');
	obj_window.opener = window;
	obj_window.focus();
	opener=self;
	self.close();
}


function trouvestyle(idf) 
{ 
    if (document.getElementById) {
      return document.getElementById(idf).style;
    } else if (document.all) {
      return document.all[idf].style;
    } else if (document.layers) {
      return document.layers[idf];
    } else { return null }
}

function newstyle(idf,prop,value) 
	{
    	 var objet_style= trouvestyle(idf);
     	if(objet_style) 
        	eval( 'objet_style.' + prop + '="' + value+ '"' );
  	}

function ToggleElement(elmt)
{
	if (document.getElementById(elmt).style.visibility=="hidden")
		{
			//alert("visible");
			document.getElementById("Incrustation").style.display="block";
			document.getElementById(elmt).style.visibility="visible";
			newstyle("TableMenu","zIndex","0");
		}
		else
			{
				//alert("invisible");
				document.getElementById("Incrustation").style.display="none";
				document.getElementById(elmt).style.visibility="hidden";
				newstyle("TableMenu","zIndex","3");
			}
}

function AccueilVDS()
{
	var param=window.parent.location.search.substr(6,window.parent.location.search.length);
	
	if (param=="indexvds")
	{
		parent.frames["mainFrame"].window.location="voyageurs_des_sciences/index.html";
	}
	if (param=="expevdg")
	{
		parent.frames["mainFrame"].window.location="pagecentreB.htm";
	}
	if (param=="presse")
	{
		parent.frames["mainFrame"].window.location="presse/EspacePresse.html";
	}
}

function PleinEcran(theURL)
{
x=screen.width;
y=screen.height;
  window.open(theURL, 'Stephane','width='+x+',height='+y+',top=0,left=0,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
}

function AiguillageVDS(chemin)
{
	var navig=navigator.appVersion.substr(17,4);
	var version=navigator.appVersion.substr(22,1);
	if (navig=='MSIE' && version == 6)
	{
		window.parent.location.href=chemin+'/jeucadres.htm';
		//url(chemin+'/jeaucadres.htm');
	}
	else
	{
		window.parent.location.href=chemin+'/index.html';
	}
}



