var nb_play = 0;

function goto_accueil()
{		
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto_js_morceau(xhr); };
		
		lien="../../includes/home.php?v=" . concat(Math.random());
				
		xhr.open("GET", lien, true);		
		
		changeAnchor('home.html');
		document.title = "MY CLUBBING STORE >> MP3 DJ SHOP House-Dance-Electro-Techno-Clubbing-Rnb Remix Téléchargement 100% Légal !";
		xhr.send(null);
}

function is_connected()
{ 
    var xhr=null;

	if (window.XMLHttpRequest) { 
		xhr = new XMLHttpRequest();
	}
	else if (window.ActiveXObject) 
	{
			xhr = new ActiveXObject("Microsoft.XMLHTTP");
	}
	
	lien="../../js/is_connected.php?v=" . concat(Math.random());
	xhr.open("GET", lien, false); 
	
	xhr.send(null);
	if(xhr.readyState == 4) return(xhr.responseText);
	else return(false);
} 

function playmorceau(id)
{
		if(is_connected() == "false" && nb_play == 4) {
			document.getElementById("grisage").style.display  = 'block';
			document.getElementById("div_inscription").style.display  = 'block';			
		}
		nb_play = nb_play+1;
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_play(xhr); };
		
		lien="../../player-sm/play.php?morceau=".concat(id);
		
		xhr.open("GET", lien, true);
		document.title ="MY CLUBBING STORE >> En écoute : affiché le morceau";
		xhr.send(null);
}

function masquer_div_inscription()
{
		document.getElementById("grisage").style.display  = 'none';
		document.getElementById("div_inscription").style.display  = 'none';
}


function goto_actualite(id)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/actualite.php?id=".concat(id).concat("&v=").concat(Math.random());
		xhr.open("GET", lien, true);
		
		
		changeAnchor('actualite.html');
		document.title = "MY CLUBBING STORE >> ACTUALITE NEWS CLUBBING MATERIEL SOIREES FESTIVALES DJS IBIZA SORTIES Musique Electronique";
		xhr.send(null);
}

function goto_partenaires(id)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/partenaires.php?id=".concat(id).concat("&v=").concat(Math.random());
		xhr.open("GET", lien, true);
		
		ancre="partenaires/".concat(id);
		changeAnchor(ancre);
		
		document.title = "MY CLUBBING STORE >> PARTENAIRES CLUBBING du site MYCLUBBINGSTORE.COM";
		xhr.send(null);
}

function goto_nouveaute(nb)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/nouveautes.php?nb=".concat(nb).concat("&v=").concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('nouveautes');
		document.title = "MY CLUBBING STORE >> NOUVEAUTES des sons clubs dancefloor en telechargement legal";
		xhr.send(null);
}

function goto_detail_commande(id_commande)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/detail_commande.php?id=".concat(id_commande).concat("&v=").concat(Math.random());
		xhr.open("GET", lien, true);
		
		var ancre = 'detail_commande/'.concat(id_commande);
		changeAnchor(ancre);
		document.title = "MY CLUBBING STORE - Details de votre commande";
		xhr.send(null);
}

function goto_nouveautes_genre(genre,nb)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/nouveautes-genre.php?genre=".concat(genre).concat("&nb=").concat(nb).concat("&v=").concat(Math.random());
		xhr.open("GET", lien, true);
		
		var ancre = 'nouveautes/'.concat(genre);
		changeAnchor(ancre);
		document.title = "MY CLUBBING STORE >> NOUVEAUTES des sons clubs dancefloor en telechargement legal";
		xhr.send(null);
}

function goto_aide()
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/rubrique_aide.php?v=".concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('rubrique_aide.html');
		document.title = "MY CLUBBING STORE >> Rubrique d'aide de notre site de Vente de Musique Electronique";
		xhr.send(null);
}

function goto_recapitulatif_commande()
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/recapitulatif_commande_ajax.php?v=".concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('recapitulatif_commande.html');
		document.title = "MY CLUBBING STORE >> Recapitulatif de votre commande de mp3";
		xhr.send(null);
}

function goto_mon_compte()
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/compte.php?v=".concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('compte.html');
		document.title = "MY CLUBBING STORE >> Mon compte My Clubbing Store";
		xhr.send(null);
}

function goto_mes_commandes()
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/mescommandes.php?v=".concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('mescommandes.html');
		document.title = "MY CLUBBING STORE >> MES COMMANDES Télécharger vos mp3 achetés";
		xhr.send(null);
}

function goto_sinscrire()
{		
		document.getElementById("grisage").style.display  = 'none';
		document.getElementById("div_inscription").style.display  = 'none';
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/creer_compte.php?v=".concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('creer_compte.html');
		document.title = "MY CLUBBING STORE >> Inscription gratuite à notre MP3 SHOP";
		xhr.send(null);
}

function goto_deconnexion(mail)
{		
		var expDate = new Date();
		expDate.setTime(expDate.getTime() - 100000);
		
		document.cookie = "mcscok=".concat(mail).concat(";expires=").concat(expDate.toGMTString());
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto_deconnect(xhr); };
		
		lien="../../includes/deconnexion.php?v=".concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('deconnexion.html');
		document.title = "MY CLUBBING STORE >> Deconnexion de son compte My Clubbing Store";
		xhr.send(null);
}

function goto_quisommesnous()
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		   
		
		//Math.random() afin de recharger le cache : prise en compte de la modification de la langue
		lien="../../includes/quisommesnous.php?v=" . concat(Math.random());
		xhr.open("GET", lien, true);
				
		changeAnchor('quisommesnous.html');
		document.title = "MY CLUBBING STORE >> Description de la societe editrice du site MYCLUBBINGSTORE.COM";
		xhr.send(null);
}

function goto_compilations()
{
		
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/compilations.php?v=".concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('compilations.html');
		document.title = "MY CLUBBING STORE >> COMPILATIONS Dance Electro House Techno Clubbing Rnb";
		xhr.send(null);
}

function goto_albums()
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/albums.php?v=".concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('albums.html');
		document.title = "MY CLUBBING STORE >> ALBUMS Dance Electro House Techno Clubbing Rnb";
		xhr.send(null);
}

function goto_conditions()
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/conditions.php?v=".concat(Math.random());		
		xhr.open("GET", lien, true);
		
		changeAnchor('conditions.html');
		document.title = "MY CLUBBING STORE >> Conditions Generales d'Utilisation du Site MYCLUBBINGSTORE.COM";
		xhr.send(null);
}

function goto_bannieres()
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/bannieres.php?v=".concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('bannieres.html');
		document.title = "MY CLUBBING STORE >> Bannieres d'auto-promotion du Site My Clubbing Store";
		xhr.send(null);
}

function goto_dossier_presse()
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/dossier-de-presse.php?v=".concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('dossier-de-presse.html');
		document.title = "MY CLUBBING STORE >> Dossier de Presse du site MYCLUBBINGSTORE.COM";
		xhr.send(null);
}

function goto_faq()
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/faq.php?v=".concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('faq.html');
		document.title = "MY CLUBBING STORE >> FAQ du site MYCLUBBINGSTORE.COM";
		xhr.send(null);
}

function goto_contact()
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/contact.php?v=".concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('contact.html');
		document.title = "MY CLUBBING STORE >> Coordonnees de Contact MYCLUBBINGSTORE";
		xhr.send(null);
}

function goto_playlist()
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/playlist.php?v=".concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('playlist.html');
		document.title = "MY CLUBBING STORE >> PLAYSLIT DJ DEEJAY House Electro Dance Trance Club";
		xhr.send(null);
}

function goto_carte_musique()
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/check-carte-musique.php?v=".concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('check-carte-musique.html');
		document.title = "My Clubbing Store - Carte Musique Jeune";
		xhr.send(null);
}

function goto_confidentialite()
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/confidentialite.php?v=".concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('confidentialite.html');
		document.title = "MY CLUBBING STORE >> Remarques sur la confidentialité de notre DJ SHOP";
		xhr.send(null);
}

function goto_voyage()
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/voyage.php?v=".concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('voyage.html');
		document.title = "MY CLUBBING STORE >> Voyage clubbing";
		xhr.send(null);
}

function goto_panier()
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/pannier_add.php?v=".concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('panier.html');

		xhr.send(null);
}

function goto_mot_de_passe()
{
		document.getElementById("grisage").style.display  = 'none';
		document.getElementById("div_inscription").style.display  = 'none';
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/motdepasse.php?v=".concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('motdepasse.html');

		xhr.send(null);
}


function goto_charts()
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/charts.php?v=" . concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('charts.html');
		document.title ="MY CLUBBING STORE >> CHARTS CLASSEMENT Hebdomadaire du son Dancefloor d'apres les meilleures Ventes";
		xhr.send(null);		
}

function goto_charts_100()
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/charts-100.php?v=" . concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('charts-top-100.html');
		document.title ="MY CLUBBING STORE >> CHARTS CLASSEMENT Hebdomadaire du son Dancefloor d'apres les meilleures Ventes";
		xhr.send(null);		
}

function goto_charts_genre(genre)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/charts-genre.php?genre=".concat(genre).concat("&v=").concat(Math.random());
		xhr.open("GET", lien, true);
		
		var ancre="charts/".concat(genre);
		changeAnchor(ancre);
		document.title ="MY CLUBBING STORE >> CHARTS CLASSEMENT Hebdomadaire du son Dancefloor d'apres les meilleures Ventes";
		xhr.send(null);		
}

function goto_charts_details()
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/charts_details.php?v=".concat(Math.random());
		xhr.open("GET", lien, true);
		
		changeAnchor('charts-details.html');
		document.title ="MY CLUBBING STORE >> CHARTS CLASSEMENT Hebdomadaire du son Dancefloor d'apres les meilleures Ventes";
		xhr.send(null);		
}

function goto_artistes(page)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/liste_artistes.php?nb=".concat(page).concat("&v=").concat(Math.random());
		xhr.open("GET", lien, true);
		
		ancre="artistes/".concat(page);
		changeAnchor(ancre);
		document.title ="MY CLUBBING STORE >> ARTISTES - DJs - PRODUCTEURS en vente dans notre mp3 shop";
		xhr.send(null);
		
		
}

function goto_fiche_artiste(page)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;
		
		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		
		lien="../../includes/fiche_artiste.php?id=".concat(page).concat("&v=").concat(Math.random());		
		xhr.open("GET", lien, true);
		
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		ancre = "artiste/".concat(page);
		changeAnchor(ancre);
		title("artiste",page);
		xhr.send(null);
}

function goto_fiche_artiste(page,num)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;
		
		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		
		lien="../../includes/fiche_artiste.php?id=".concat(page).concat("&nb=").concat(num).concat("&v=").concat(Math.random());		
		xhr.open("GET", lien, true);
		
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		ancre = "artiste/".concat(page);
		changeAnchor(ancre);
		title("artiste",page);
		xhr.send(null);
}

function goto_fiche_label(page, num)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;
		
		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		
		lien="../../includes/fiche_label.php?id=".concat(page).concat("&nb=").concat(num).concat("&v=").concat(Math.random());	
		xhr.open("GET", lien, true);
		
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		
		
		ancre = "label/".concat(page).concat(",").concat(num);
		changeAnchor(ancre);
		title("label",page);
		xhr.send(null);
}

function goto_biographie(page)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;
		
		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		lien="../../includes/biographie.php?id=".concat(page).concat("&v=").concat(Math.random());
		xhr.open("GET", lien, true);
		
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		ancre = "biographie/".concat(page);
		changeAnchor(ancre);
		
		xhr.send(null);
}

function goto_jaquette(page)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;
		
		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		lien="../../includes/pochette_morceau.php?id=".concat(page).concat("&v=").concat(Math.random());
		xhr.open("GET", lien, true);
		
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		ancre = "jaquette/".concat(page);
		changeAnchor(ancre);
		
		xhr.send(null);
}

function goto_prevenir_amis(id)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;
		
		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		lien="../../includes/prevenir_amis.php?id=".concat(id).concat("&v=").concat(Math.random());
		xhr.open("GET", lien, true);
		
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		ancre = "prevenir_amis/".concat(id);
		changeAnchor(ancre);
		
		xhr.send(null);
}

function goto_remixes(page)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;
		
		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		lien="../../includes/remixes.php?id=".concat(page).concat("&v=").concat(Math.random());
		xhr.open("GET", lien, true);
		
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		ancre = "remixes/".concat(page);
		changeAnchor(ancre);
		
		xhr.send(null);
}

function title (type, page)
{
	var xhr=null;
		
	if (window.XMLHttpRequest) { 
		xhr = new XMLHttpRequest();
	}
	else if (window.ActiveXObject) 
	{
			xhr = new ActiveXObject("Microsoft.XMLHTTP");
	}
	lien="../../js/title_js.php?type=".concat(type).concat("&page=").concat(page);
	xhr.open("GET", lien, true);
		
	xhr.onreadystatechange = function(){	
		if(xhr.readyState == 4 && xhr.status == 200){
			document.title=xhr.responseText;
		}
	}
	
	xhr.send(null);
}

function goto_fiche_morceau(page)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;
		
		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		lien="../../includes/fiche_morceau.php?id=".concat(page).concat("&v=").concat(Math.random());
		xhr.open("GET", lien, true);
		
		xhr.onreadystatechange = function() { alert_ajax_goto_js_morceau(xhr); };
		
		ancre = "morceau/".concat(page);
		changeAnchor(ancre);
				
		title("morceau",page);
		xhr.send(null);
}

function goto_fiche_ticket(page)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;
		
		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		lien="../../includes/fiche_ticket.php?id=".concat(page).concat("&v=").concat(Math.random());
		xhr.open("GET", lien, true);
		
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		ancre = "ticket/".concat(page);
		changeAnchor(ancre);
				
		xhr.send(null);
}

function goto_detail_actualite(page)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;
		
		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		lien="../../includes/detail_actualite.php?id=".concat(page).concat("&v=").concat(Math.random());
		xhr.open("GET", lien, true);
		
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };		
		
		ancre = "actualite/".concat(page);
		changeAnchor(ancre);
		
		title("actualite",page);
		xhr.send(null);
}

function goto_fiche_playlist(page)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;
		
		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		lien="../../includes/fiche_playlist.php?id=".concat(page).concat("&v=").concat(Math.random());
		xhr.open("GET", lien, true);
		
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };		
		
		ancre = "playlist/".concat(page);
		changeAnchor(ancre);
		
		title("playlist",page);
		xhr.send(null);
}

function goto_labels(page)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		lien="../../includes/liste_labels.php?nb=".concat(page).concat("&v=").concat(Math.random());
		xhr.open("GET", lien, true);
		
		ancre = "labels/".concat(page);
		changeAnchor(ancre);
		
		document.title="MY CLUBBING STORE >> LABELS disponibles en téléchargement légal sur notre plate-forme";
		xhr.send(null);
}



function goto_compilation(page,num)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		lien="../../includes/fiche_compilation.php?id=".concat(page).concat("&nb=").concat(num).concat("&v=").concat(Math.random());
		xhr.open("GET", lien, true);
		
		ancre = "compilation/".concat(page).concat(",").concat(num);
		changeAnchor(ancre);
		
		xhr.send(null);
}

function goto_album(page,num)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		lien="../../includes/fiche_album.php?id=".concat(page).concat("&nb=").concat(num).concat("&v=").concat(Math.random());
		xhr.open("GET", lien, true);
		
		ancre = "album/".concat(page).concat(",").concat(num);
		changeAnchor(ancre);
		
		xhr.send(null);
}

function goto_genres(genre)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto(xhr); };
		
		lien="../../includes/liste_genre.php?id=".concat(genre).concat("&nb=").concat(page).concat("&v=").concat(Math.random());
		xhr.open("GET", lien, true);
		
		ancre = "genres/".concat(genre);
		changeAnchor(ancre);
		//mettre title
		xhr.send(null);
}

function suppr_panier(reference, type)
{
		document.getElementById("left").style.visibility  = 'visible';
		var xhr=null;

		if (window.XMLHttpRequest) { 
			xhr = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) 
		{
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//on définit l'appel de la fonction au retour serveur
		xhr.onreadystatechange = function() { alert_ajax_goto_panier(xhr); };
		lien = "../../js/suppr_panier.php?reference=".concat(reference).concat("&type=").concat(type).concat("&v=").concat(Math.random());
				
		xhr.open("GET", lien, true);
		
		changeAnchor('panier.html');
		//mettre title
		xhr.send(null);
}

function alert_ajax_goto(xhr)
{
    if (xhr.readyState==4) 
    {    	
		if (document.getElementById)
		{
			reponse = xhr.responseText;
			document.getElementById("left").innerHTML = reponse;
		}
		else if (document.all) 
		{
			reponse = xhr.responseText;
			document.all["left"].innerHTML = reponse;
		}		
    }
	else {
		var aff = '<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><center><img src="../../img/chargement-big.gif"/></center>';
		if (document.getElementById)
		{
			document.getElementById("left").innerHTML = aff;
		}
		else if (document.all) 
		{
			document.all["left"].innerHTML = aff;
		}		
	}
}

function alert_ajax_goto_panier(xhr)
{
    if (xhr.readyState==4) 
    {    	
		if (document.getElementById)
		{
			reponse = xhr.responseText;
			document.getElementById("left").innerHTML = reponse;
		}
		else if (document.all) 
		{
			reponse = xhr.responseText;
			document.all["left"].innerHTML = reponse;
		}
		aff_panier();
    }
	else {
		var aff = '<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><center><img src="../../img/chargement-big.gif"/></center>';
		if (document.getElementById)
		{
			document.getElementById("left").innerHTML = aff;
		}
		else if (document.all) 
		{
			document.all["left"].innerHTML = aff;
		}		
	}
}

function alert_ajax_goto_connect(xhr)
{
    if (xhr.readyState==4) 
    {	
		// TODO : seulement si connexion est OK !
		document.getElementById("selection_personnalisee").style.display  = 'block';
		document.getElementById("pub").style.display  = 'none';
		aff_panier();
		selection_personnalisee();
		if (document.getElementById)
		{
			reponse = xhr.responseText;
			//alert(reponse);
			document.getElementById("espace-membre").innerHTML = reponse;
		}
		else if (document.all) 
		{
			reponse = xhr.responseText;
			//alert(reponse);
			document.all["espace-membre"].innerHTML = reponse;
		}		
    }
	else {
		var aff = '<div style="margin-top:5px;"><div style="margin-top:1px;margin-left:450px;float:left;"><img src="../../img/connect-loader.gif"/></div> <div style="margin-left:5px;float:left;">Connexion en cours...</div></div>';
		if (document.getElementById)
		{
			document.getElementById("espace-membre").innerHTML = aff;
		}
		else if (document.all) 
		{
			document.all["espace-membre"].innerHTML = aff;
		}		
	}
}

function alert_ajax_goto_connect_recap(xhr)
{
	document.getElementById("selection_personnalisee").style.display  = 'block';
	document.getElementById("pub").style.display  = 'none';
	aff_panier();
	selection_personnalisee();
    if (xhr.readyState==4) 
    {    	
		if (document.getElementById)
		{
			reponse = xhr.responseText;
			document.getElementById("espace-membre").innerHTML = reponse;
		}
		else if (document.all) 
		{
			reponse = xhr.responseText;
			document.all["espace-membre"].innerHTML = reponse;
		}
		goto_recapitulatif_commande();
    }
	else {
		var aff = '<div style="margin-top:5px;"><div style="margin-top:1px;margin-left:450px;float:left;"><img src="../../img/connect-loader.gif"/></div> <div style="margin-left:5px;float:left;">Connexion en cours...</div></div>';
		if (document.getElementById)
		{
			document.getElementById("espace-membre").innerHTML = aff;
		}
		else if (document.all) 
		{
			document.all["espace-membre"].innerHTML = aff;
		}		
	}
}

function alert_ajax_goto_connect_comment(xhr,morceau)
{
	document.getElementById("selection_personnalisee").style.display  = 'block';
	document.getElementById("pub").style.display  = 'none';
	aff_panier();
	selection_personnalisee();
    if (xhr.readyState==4) 
    {    	
		if (document.getElementById)
		{
			reponse = xhr.responseText;
			document.getElementById("espace-membre").innerHTML = reponse;
		}
		else if (document.all) 
		{
			reponse = xhr.responseText;
			document.all["espace-membre"].innerHTML = reponse;
		}
		comment(morceau);
    }
	else {
		var aff = '<div style="margin-top:5px;"><div style="margin-top:1px;margin-left:450px;float:left;"><img src="../../img/connect-loader.gif"/></div> <div style="margin-left:5px;float:left;">Connexion en cours...</div></div>';
		if (document.getElementById)
		{
			document.getElementById("espace-membre").innerHTML = aff;
		}
		else if (document.all) 
		{
			document.all["espace-membre"].innerHTML = aff;
		}		
	}
}

function alert_ajax_goto_deconnect(xhr)
{
    if (xhr.readyState==4) 
    {
		document.getElementById("selection_personnalisee").style.display  = 'none';
		document.getElementById("pub").style.display  = 'block';
		if (document.getElementById)
		{
			reponse = xhr.responseText;
			document.getElementById("espace-membre").innerHTML = reponse;
		}
		else if (document.all) 
		{
		reponse = xhr.responseText;
		document.all["espace-membre"].innerHTML = reponse;
		}		
    }
	else {
		var aff = '<div style="margin-top:5px;"><div style="margin-top:1px;margin-left:450px;float:left;"><img src="../../img/connect-loader.gif"/></div> <div style="margin-left:5px;float:left;">Déconnexion en cours...</div></div>';
		if (document.getElementById)
		{
			document.getElementById("espace-membre").innerHTML = aff;
		}
		else if (document.all) 
		{
			document.all["espace-membre"].innerHTML = aff;
		}		
	}
}


function alert_ajax_goto_js(xhr)
{
	
    if (xhr.readyState==4) 
    {    	
		alert('alert_ajax_goto_js');
		if (document.getElementById)
		{
			var c= document.getElementById("left");
			c.innerHTML = xhr.responseText;
		}
		else if (document.all) 
		{
			var c= document.all["left"];
			c.innerHTML = xhr.responseText;
		}
		
		var allscript = c.getElementsByTagName('script');
		
		for(var i=1;i< allscript.length;i++){
			//alert(allscript[i].src);
			if(allscript[i].src){			
				//alert('if / i='+i+' allscript : '+ allscript[i].src);//et la tu fais un new XHR en l’obligeant à faire un window.eval() sur le responseText
			} else {
				//alert('else / i='+i+' allscript : '+ allscript[i].src);
				eval(allscript[i].text);
			}                   
		}
		
		if(i==1) eval(allscript[0].text);
	} 
			 
	else {
		var aff = '<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><center><img src="../../img/chargement-big.gif"/></center>';
		if (document.getElementById)
		{
			document.getElementById("left").innerHTML = aff;
		}
		else if (document.all) 
		{
		document.all["left"].innerHTML = aff;
		}		
	}
}


function alert_ajax_goto_js_morceau(xhr)
{
	
    if (xhr.readyState==4) 
    {    	
	
		if (document.getElementById)
		{
			var c= document.getElementById("left");
			c.innerHTML = xhr.responseText;
		}
		else if (document.all) 
		{
			var c= document.all["left"];
			c.innerHTML = xhr.responseText;
		}
		
		var allscript = c.getElementsByTagName('script');
		
		for(var i=2;i< allscript.length;i++){
			//alert(allscript[i].src);
			if(allscript[i].src){			
				//alert('if / i='+i+' allscript : '+ allscript[i].src);//et la tu fais un new XHR en l’obligeant à faire un window.eval() sur le responseText
			} else {
				//alert('else / i='+i+' allscript : '+ allscript[i].src);
				eval(allscript[i].text);
			}                   
		}
		
		if(i==2) eval(allscript[0].text);
	} 
			 
	else {
		var aff = '<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><center><img src="../../img/chargement-big.gif"/></center>';
		if (document.getElementById)
		{
			document.getElementById("left").innerHTML = aff;
		}
		else if (document.all) 
		{
		document.all["left"].innerHTML = aff;
		}		
	}
}



function alert_ajax_play(xhr)
{
	var global = this;
    if (xhr.readyState==4) 
    {    	
		if (document.getElementById)
		{
			var c= document.getElementById("emmanuel");
			c.innerHTML = xhr.responseText;
		}
		else if (document.all) 
		{
			var c= document.all["emmanuel"];
			c.innerHTML = xhr.responseText;
		}
		
		var allscript = c.getElementsByTagName('script');
		
		for(var i=1;i< allscript.length;i++){
			//alert(allscript[i].src);
			if(allscript[i].src){			
				//alert('if / i='+i+' allscript : '+ allscript[i].src);//et la tu fais un new XHR en l’obligeant à faire un window.eval() sur le responseText
			} else {
				//alert('else / i='+i+' allscript : '+ allscript[i].src);
				eval(allscript[i].text);
			}                   
		}
		if(i==1) eval(allscript[0].text);
	} 
			 
	else {
		var aff = '<br/><br/><br/><br/><center>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="../../img/player-loader.gif"/></center>';
		if (document.getElementById)
		{
			document.getElementById("emmanuel").innerHTML = aff;
		}
		else if (document.all) 
		{
		document.all["emmanuel"].innerHTML = aff;
		}		
	}
}
