function popContact() {
	Dialog.confirm({url:'contact.php'}, {
		id:"winContact",
		className:"realdarkcube",
		width:300,
		height:380,
		title:"contact",
		okLabel: "Envoyer",
		cancelLabel: "Annuler",
		onOk:function(win){
			$('fContact').request({
				onComplete: function(r){
					if (r.responseText!="CLOSE") {
						$('wContact').innerHTML=r.responseText;
					} else {
						alert("Merci\nMessage envoyé.");
						win.close();
					}
				}
			});
		}
	});
}
function popNewsletter() {
	Dialog.confirm({url:'newsletter.php'}, {
		id:"winNewsletter",
		className:"realdarkcube",
		width:300,
		height:180,
		title:"newsletter",
		okLabel: 'Envoyer',
		cancelLabel: "Annuler",
		onOk:function(win){
			$('fNewsletter').request({
				onComplete: function(r){
					if (r.responseText!="CLOSE") {
						$('wNewsletter').innerHTML=r.responseText;
					} else {
						alert("Merci de votre inscription.");
						win.close();
					}
				}
			});
		}
	});
}
function popPartager() {
	Dialog.confirm({url:'partager.php'}, {
		id:"winPartager",
		className:"realdarkcube",
		width:300,
		height:200,
		title:"partager / share",
		okLabel: "Envoyer",
		cancelLabel: "Annuler",
		onOk:function(win){
			$('fPartager').request({
				onComplete: function(r){
					if (r.responseText!="CLOSE") {
						$('wPartager').innerHTML=r.responseText;
					} else {
						alert("Merci\nMessage envoyé.");
						win.close();
					}
				}
			});
		}
	});
}
function popInfos() {
	Dialog.alert({url:'infos.php'}, {
		id:"winInfos",
		className:"realdarkcube",
		width:300,
		height:300,
		title:"information",
		okLabel: "Fermer"
	});
}

function popAudio(m) {
	Dialog.alert({url:'pre_audio.php?m='+m}, {
		id:"winPartager",
		className:"realdarkcube",
		width:250,
		height:200,
		title:"",
		okLabel: "Close"
	});
}

function popY1() {
	Dialog.alert('<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/EKieDgjsl00&hl=fr_FR&fs=1&color1=0x3a3a3a&color2=0x999999"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/EKieDgjsl00&hl=fr_FR&fs=1&color1=0x3a3a3a&color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>', {
		id:"winY1",
		className:"realdarkcube",
		width:500,
		height:419,
		title:"",
		okLabel: "Close"
	});
}

function popY2() {
	Dialog.alert('<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/A9Td8XBUP5g&hl=fr_FR&fs=1&color1=0x3a3a3a&color2=0x999999"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/A9Td8XBUP5g&hl=fr_FR&fs=1&color1=0x3a3a3a&color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>', {
		id:"winY2",
		className:"realdarkcube",
		width:500,
		height:419,
		title:"",
		okLabel: "Close"
	});
}

function popY3() {
	Dialog.alert('<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/DMbiSi6wEGU&color1=0xb1b1b1&color2=0xd0d0d0&hl=en_US&feature=player_embedded&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/DMbiSi6wEGU&color1=0xb1b1b1&color2=0xd0d0d0&hl=en_US&feature=player_embedded&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="385"></embed></object>', {
		id:"winY1",
		className:"realdarkcube",
		width:750,
		height:450,
		title:"",
		okLabel: "Close"
	});
}

function popY4() {
	Dialog.alert('<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/s5x47kWsQAs&color1=0xb1b1b1&color2=0xd0d0d0&hl=en_US&feature=player_embedded&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/s5x47kWsQAs&color1=0xb1b1b1&color2=0xd0d0d0&hl=en_US&feature=player_embedded&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="385"></embed></object>', {
		id:"winY1",
		className:"realdarkcube",
		width:750,
		height:450,
		title:"",
		okLabel: "Close"
	});
}

function popY5() {
	Dialog.alert('<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/O5q8zOnN1j8&color1=0xb1b1b1&color2=0xd0d0d0&hl=en_US&feature=player_embedded&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/O5q8zOnN1j8&color1=0xb1b1b1&color2=0xd0d0d0&hl=en_US&feature=player_embedded&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="385"></embed></object>', {
		id:"winY1",
		className:"realdarkcube",
		width:750,
		height:450,
		title:"",
		okLabel: "Close"
	});
}

function popMusic(m) {
	window.open('pop_music.php?m='+m,'popMusicWin','height=100,width=250,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
}

function popY6() {
        Dialog.alert('<object width="640" height="505"><param name="movie" value="http://www.youtube.com/v/zlUPJS2OUPQ?fs=1&amp;hl=fr_FR"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/zlUPJS2OUPQ?fs=1&amp;hl=fr_FR" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="505"></embed></object>', {
                id:"winY1",
                className:"realdarkcube",
                width:750,
                height:650,
                title:"",
                okLabel: "Close"
        });
}


