

var nv_cont = 0; nv_coul = 0; nv_title = 0;
var rx = 0; ry = 0; nv_url = 0;


if(parent.frames.length < 1){

	nv_title2 = document.title;	

}



function pgv(src){

	top.frames['ifram'].location.href = src;
	
}



function createFlashMenu(n1,n2){

	top.rx = n1;

	top.ry = n2;

}



window.onload = displFromPage;

//addLoadEvent(displFromPage);



// onload au niveau de la page chargee (de la iframe)

function displFromPage(){

	if(top.frames.length > 0)
	
	{

		top.nv_cont = document.getElementById('droite');
		
		if(document.getElementById('droite').className != "entete"){
		
			top.nv_h = document.getElementById('texte').offsetHeight;
			
			top.nv_s = "n";
		
		}
		
		else {
		
			top.nv_s = "e";
			top.entete(imghck);
		
		}
		
		

		top.nv_title = document.title;

		top.cnsad(top.rx,top.ry);

		top.displFromTop();

	}

	else {


	}



}



function pageView(n){

	src = n;
	
	window.location.href = src;
	
	//window.setTimeout("pgv('"+n+"')",800)
	
}

function zoom(t){

t.blur();
url = t.getAttribute("href");

	if(navigator.userAgent.indexOf('MSIE')<0){
		sX = window.screenX;
		sY = window.screenY;
	}
	else {
		sX = window.screenLeft;
		sY = window.screenTop;
	}
	
	wW = 500;
	wH = 500;
	
	lX = (screen.width / 2) - (wW / 2);
	lY = (screen.height / 2) - (wH / 2);

zmm = window.open(url,'zoom','width='+wW+', height='+wH+', resizable=yes, scrollbar=no, toolbar=no, location=no, directories=no, status=no, menubar=no, copyhistory=no, left='+lX+', top='+lY)
	
	zmm.focus();
	

}



/*
function createBufferIframe(){

	if(top.frames.length < 1)
	
	{
	
		ifr = document.createElement('iframe');
	
		ifr.id = "ifram";

		ifr.setAttribute('name','ifram');
	
		//ifr.setAttribute('src',window.location.href);
		
	ifr.setAttribute('src',"/index-test.html");
		
		document.getElementById('page').appendChild(ifr);
		
	// creation d'un formulaire special Firefox Mac permettant d'obtenir le focus
	
		if(navigator.userAgent.indexOf('Gecko') >= 0 && navigator.userAgent.indexOf('Safari') < 0)
		
		{
		
			fom = document.createElement('form');
			inp = document.createElement('input');
			inp.setAttribute('type','text');
			fom.setAttribute('id','spe1');
			
			fom.appendChild(inp)
			
			document.getElementsByTagName('body').item(0).appendChild(fom)
		
		}

	}
	
	else {
	
	//alert('')
	
	}

}
*/






// si il y a un parent: inutile de charger le flash
/*
	if(top.frames.length < 1)
	
	{

		if(navigator.userAgent.indexOf('MSIE')<0)
		{

			Fla = document.createElement('object');
			Fla.setAttribute('data','http://blockbuster/menu.swf');
			Fla.setAttribute('width','250');
			Fla.setAttribute('height','600');
			Fla.setAttribute('id','flashcnsad');
		//Fla.setAttribute('classid','clsid:D27CDB6E-AE6D-11cf-96B8-444553540000');
			//Fla.setAttribute('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0');
			
			param1 = document.createElement('param');
			param1.setAttribute('name','movie');
			param1.setAttribute('value','http://blockbuster/menu.swf');
			
			param2 = document.createElement('param');
			param2.setAttribute('name','wmode');
			param2.setAttribute('value','transparent');		
		
			Fla.appendChild(param1);
			Fla.appendChild(param2);

			document.getElementById('menuCNSAD').appendChild(Fla);

		}

		else 
		{

			Fla = document.createElement('embed');
			Fla.setAttribute('src','http://blockbuster/menu.swf');
			Fla.setAttribute('width','250');
			Fla.setAttribute('height','600');
			Fla.setAttribute('quality','high');
			Fla.setAttribute('pluginspage','http://www.macromedia.com/go/getflashplayer');
			Fla.setAttribute('type','application/x-shockwave-flash');
			Fla.setAttribute('wmode','transparent');
			Fla.setAttribute('swLiveConnect','true');
			Fla.setAttribute('id','flashcnsad');
	
			document.getElementById('menuCNSAD').appendChild(Fla);

// donner un name avec cette methode pour IE:

			document.getElementById('flashcnsad').setAttribute('name','flashcnsad')

		}

	}

	else {
	
// s'il y a un parent initialisation du numero du menu
		
		

	}
*/