// JavaScript Document
 
if (parent.frames.length > 0){
	window.top.location.href = location.href;
}



if(WindowObjectReferenceMorceau){
}else{
var WindowObjectReferenceMorceau;
}
var WindowObjectReferencePlan;
var WindowObjectReferenceRecherche; 
var WindowObjectReferenceContact; 
 
var WindowObjectReferenceIll; 
var WindowObjectReferenceDico; 
/* Declaring a global variable
which will store a reference to the new window to be created */

function ouvre_recherche(){
	var l=753;
	var h=520;
this.window.location='../recherche/recherche.html';
	//WindowObjectReferenceRecherche = window.open('../recherche/recherche.html','recherche','width='+l+',height='+h+',scrollbars=auto,resizable=yes');
	WindowObjectReferenceRecherche.focus();
}


//ouvre_ill sert aussi bien aux illustrations qu'aux def du dico..
function ouvre_ill(ill,hauteur,largeur){
	var l=largeur+50;
	var h=hauteur+150;
	var longueur=ill.length;
	var fin = (longueur-4);
	var debut = ill.lastIndexOf('/')+1;
	var nom  = ill.substring(debut,fin);
	

	WindowObjectReferenceIll = window.open(ill,nom,'width='+l+',height='+h+',scrollbars=auto,resizable=yes');
	WindowObjectReferenceIll.focus();
}

function ouvre_morceaux(){
	//alert(WindowObjectReferenceMorceau);
	var l=753;
	var h=520;
	if(WindowObjectReferenceMorceau){
		
		
		
		WindowObjectReferenceMorceau.focus();
		
		
	}else{
		
		WindowObjectReferenceMorceau = window.open('../morceau/morceau.html','morceaux_choisis','width='+l+',height='+h+',scrollbars=auto,resizable=yes');
		WindowObjectReferenceMorceau.focus();
	}
}


function ouvre_dico(){
	var l=753;
	var h=520;
	
	
		WindowObjectReferenceDico = window.open('../dico/liste.html','glossaire','width='+l+',height='+h+',scrollbars=auto,resizable=yes');
		WindowObjectReferenceDico.focus();
	
}

function ouvre_plan(){
this.window.location='../pages/plan.htm';
}


function ouvre_note(note,hauteur,largeur){

	WindowObjectReferenceNote = window.open(note+'.htm','note','width='+largeur+',height='+hauteur+',scrollbars=auto,resizable=yes');
	WindowObjectReferenceNote.focus();
}


function ouvre_apropos(){
	var l=600;
	var h=500;
	
	

	WindowObjectReferenceapropos = window.open('statique/apropos.htm','à propos du site','width='+l+',height='+h+',scrollbars=yes,resizable=yes');
	WindowObjectReferenceapropos.focus();
}

function ouvre_merci(){
	var l=600;
	var h=500;
	
	

	WindowObjectReferencemerci = window.open('statique/remerciements.htm','Remerciements','width='+l+',height='+h+',scrollbars=yes,resizable=yes');
	WindowObjectReferencemerci.focus();
}

function ouvre_prix(){
	var l=400;
	var h=160;
	
	

	WindowObjectReferenceprix = window.open('statique/prix.htm','Prix du Forum atomique 2004','width='+l+',height='+h+',scrollbars=auto,resizable=yes');
	WindowObjectReferenceprix.focus();
}

function ajoute_chemin(){
	var page=String(window.location);
	//var type=typeof(page);
	var tab=page.split("/");
	var longueur=tab.length; 
	var monAdresse=tab[longueur-1];
	
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="570" height="20">');
	document.write('<param name="movie" value="../menu/position.swf?ma_page_url='+monAdresse+'">');
	
	document.write('<param name="quality" value="high">');
	document.write('<embed src="../menu/position.swf?ma_page_url='+monAdresse+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="570" height="20"></embed>');
  	document.write('</object>');
	
	
	//alert(tab[longueur-1]);
	
}

function ouvre_contact(){
	
	window.location = "mailto:contact-radio@laradioactivite.com";
	
}

