// JavaScript Document

function flashMe(fichier, largeur, hauteur){
	document.write('<object type="application/x-shockwave-flash" data="swf/'+fichier+'" width="'+largeur+'" height="'+hauteur+'">\n');
	document.write('<param name="movie" value="swf/'+fichier+'" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('</object>\n');
}


function flashMeTableaux(fichier, largeur, hauteur, lang){
	document.write('<object type="application/x-shockwave-flash" data="swf/'+fichier+'" width="'+largeur+'" height="'+hauteur+'">\n');
	document.write('<param name="movie" value="swf/'+fichier+'" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<param name="flashvars" value="id='+lang+'" />\n');
	document.write('</object>\n');
}

function flashMeFixDroit(fichier, largeur, hauteur, id){
	document.write('<object type="application/x-shockwave-flash" data="swf/'+fichier+'" width="'+largeur+'" height="'+hauteur+'">\n');
	document.write('<param name="movie" value="swf/'+fichier+'" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<param name="flashvars" value="id='+id+'" />\n');
	document.write('</object>\n');
}

function flashMeJobs(fichier, largeur, hauteur, id){
	document.write('<object type="application/x-shockwave-flash" data="swf/'+fichier+'" width="'+largeur+'" height="'+hauteur+'">\n');
	document.write('<param name="movie" value="swf/'+fichier+'" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<param name="flashvars" value="id='+id+'" />\n');
	document.write('</object>\n');
}

function flashMeInternautes(fichier, largeur, hauteur, id){
	document.write('<object type="application/x-shockwave-flash" data="swf/photos-internautes/'+fichier+'" width="'+largeur+'" height="'+hauteur+'">\n');
	document.write('<param name="movie" value="swf/photos-internautes/'+fichier+'" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<param name="flashvars" value="id='+id+'" />\n');
	document.write('</object>\n');
}

function popIt(img,title) {
	var titre="Frog - " + title;
	popup=open("",'Frog','width=300,height=300,toolbar=no,scrollbars=no,resizable=yes,left=50,top=50');	
	popup.document.write("<html><head><title>"+titre+"</title></head>");
	popup.document.write("<script language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+18,document.images[0].height+66); window.focus();} else { setTimeout('check()',250) } }</"+"script>");
	popup.document.write("<body onload='checksize()' style='margin:2px; padding:0;'><img src='"+img+"' style='border: 1px solid #666;'>");
	popup.document.write("</body></html>");
	popup.document.close();
}

function videoMe(fichier, largeur, hauteur, id){
	document.write('<object type="application/x-shockwave-flash" data="'+fichier+'" width="'+largeur+'" height="'+hauteur+'">\n');
	document.write('<param name="movie" value="'+fichier+'" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<param name="flashvars" value="pubid='+id+'" />\n');
	document.write('</object>\n');
}