function fixit(){

	var browser=navigator.appName

	if (browser=="Microsoft Internet Explorer"){

		document.getElementById('navigation').style.position="absolute";

	}
}

var stage

function openInscript(s){

	stage = s
 	document.getElementById('envoi').action="scripts/sendmail.php?stage=" + s

	if(document.getElementById('confirm').style.visibility == 'visible'){
		document.getElementById('confirm').style.visibility = 'hidden'
	}
	document.getElementById('inscription').style.visibility = 'visible'
	document.getElementById('header').innerHTML = "<b>Inscription</b><br/><h2>" + stage + "</h2>"

}



function playMovie(movie){
	if(movie != ''){
		if(movie.lastIndexOf('http') != -1){
			var str = '<object width="384" height="236"><param name="movie" value="' + movie + '" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><embed src="' + movie + '" type="application/x-shockwave-flash" width="384" height="236" allowFullScreen="true" allowScriptAccess="always"></embed></object>'
		}else{
			var str = '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" id="videoplayer" width="384" height="236" >\n<param name="src" value="images/' + movie + '" />\n<param name="autoplay" value="true" />\n<param name="bgcolor" value="black" />\n<embed src="images/' + movie + '" name="videoplayer" autoplay="true"  enablejavascript="true" width="384" height="236" bgcolor="black">\n</embed>\n</object>';
		}
		return str
	}
}



function rock(what){

	if(what == 1){

		document.getElementById('movie').innerHTML = '<table width="384" height="340"><tr><td height="300"><img id="diaporama" alt="magicien" src="" /></td></tr><tr><td height="40" valign="middle">diaporama || <a href="#" onclick="rock(2)">video</a></td></tr></table>'
		goDiapoFond()
	}else{
		st = playMovie(choix)
		document.getElementById('movie').innerHTML = '<table width="384" height="340"><tr><td height="300">' + st + '</td></tr><tr><td height="40" valign="middle"><a href="#" onclick="rock(1)">diaporama</a> || video</td></tr></table>'

	}
}
