url = 'http://www.somusic.fr/';
//url = 'http://int-somusic.integra.fr/';
function popup(url, title){
					window.open(url, title, '');
				};
// fonction de popup avec options
function popupOptions(url, title, options){
	window.open(url, title, options);
};
// Foncion de header
function headerSoMusic2( id, width ){
	if(document.getElementById(id)){
		if (width != undefined) document.getElementById(id).style.width = width;
		document.getElementById(id).style.backgroundColor = '#000';
		
		var header 	 = document.getElementById(id);
		var divLeft  = document.createElement("div");
		var divRight = document.createElement("div");
		var leftLink = document.createElement("a");
		var leftHome = document.createElement("a");
		var rightHome= document.createElement("a");
		var rightSG  = document.createElement("a");
		var rightUM  = document.createElement("a");
		
		divLeft.setAttribute('id','header_left');
		leftLink.setAttribute('href',"javascript:window.open('http://www.societegenerale.fr', 'societe');void(0);");
		leftLink.setAttribute('title','Souscrire &agrave; So Music');
		leftLink.setAttribute('id','cb');
		leftHome.setAttribute('href',"javascript:window.open('"+url+"');void(0);");
		leftHome.setAttribute('title','Retour &agrave; la page d\'accueil So Music');
		leftHome.setAttribute('id','accueilLight');
		rightHome.setAttribute('href',"javascript:window.open('"+url+"');void(0);");
		rightHome.setAttribute('title','Retour &agrave; la page d\'accueil So Music');
		rightHome.setAttribute('id','accueil');
		rightSG.setAttribute('href',"javascript:window.open('http://www.societegenerale.fr');void(0);");
		rightSG.setAttribute('title','Aller sur le site de la Soci&eacute;t&eacute; G&eacute;n&eacute;rale');
		rightSG.setAttribute('id','SG');
		rightUM.setAttribute('href',"javascript:window.open('http://www.universalmusic.fr');void(0);");
		rightUM.setAttribute('title','Aller sur le site d\'Universal Music France');
		rightUM.setAttribute('id','UM');
		
		divRight.setAttribute('id','header_right');
		divRight.appendChild(rightSG);
		divRight.appendChild(rightUM);
		divRight.appendChild(rightHome);
		
		divLeft.appendChild(leftHome);
		divLeft.appendChild(leftLink);
		header.appendChild(divRight);
		header.appendChild(divLeft);
		
		//<div id="header_right"><a id="SG" title="Aller sur le site de la Soci&amp;eacute;t&amp;eacute; G&amp;eacute;n&amp;eacute;rale" href="javascript:window.open('http://www.societegenerale.fr');void(0);"></a><a id="UM" title="Aller sur le site d'Universal Music France" href="javascript:window.open('http://www.universalmusic.fr');void(0);"></a><a id="accueil" title="Retour &amp;agrave; la page d'accueil So Music" href="javascript:window.open('http://www.somusic.fr/');void(0);"></a></div><div id="header_left"><a id="accueilLight" title="Retour &amp;agrave; la page d'accueil So Music" href="javascript:window.open('http://www.somusic.fr/');void(0);"></a><a id="cb" title="Souscrire &amp;agrave; So Music" href="javascript:window.open('http://www.societegenerale.fr', 'societe');void(0);"></a></div>
	}
	else alert("L'id fourni pour la fonction headerSoMusic est inexistant dans votre page. Merci de corriger");
}
//header 2
function headerSoMusic( id, width ){
	if(document.getElementById(id)){
		if (width != undefined) document.getElementById(id).style.width = width;
		//if (width != undefined) document.getElementById(id).style.width = 950;
		document.getElementById(id).style.backgroundColor = '#000';
		//var str="<div id='header_right'><a id='SG' title='Aller sur le site de la Société Générale' href='javascript:window.open('http://www.societegenerale.fr');void(0);'></a><a id='UM' title='Aller sur le site d&apos;Universal Music France' href='javascript:window.open('http://www.universalmusic.fr');void(0);'></a><a id='accueil' title='Retour à la page d&apos;accueil So Music' href='javascript:window.open('http://www.somusic.fr/');void(0);'></a></div><div id='header_left'><a id='accueilLight' title='Retour à la page d&apos;accueil So Music' href='javascript:window.open('http://www.somusic.fr/');void(0);'></a><a id='cb' title='Souscrire à So Music' href='javascript:window.open('http://www.societegenerale.fr', 'societe');void(0);'></a></div>";
		
		//var str = '<div id="header_extern" >';
			var str = '<div id="sous_header_extern" >';
				str += '<p>';
					str += '<a href="'+url+'" title="Retour &agrave; l\'accueil"><img src="' + url + 'images/logo-somusic.jpg" alt="So Music" /></a>';
				str += '</p>';
			str += '</div>';
			str += '<div style="clear:both"></div>';
		//str += '</div>';
		
		
		var header 		= document.getElementById(id);
		header.innerHTML = str;
	}
	else alert("L'id fourni pour la fonction headerSoMusic est inexistant dans votre page. Merci de corriger");
}
// Fonction de footer
function footerSoMusic2( id, width ){
	if(document.getElementById(id)){
		if (width != undefined) document.getElementById(id).style.width = width;
		document.getElementById(id).style.backgroundColor = '#000';

		var footer 		= document.getElementById(id);
		var span 		= document.createElement("span");
		var div 		= document.createElement("div");
		var txt 		= document.createTextNode("Copyright Universal Music 2008");
		var p 			= document.createElement("p");
		var aCGU		= document.createElement("a");
		var txtaCGU		= document.createTextNode("CGV / CGU");
		var aCredits	= document.createElement("a");
		var txtCredits	= document.createTextNode("Crédits");
		var aFAQ		= document.createElement("a");
		var txtFAQ		= document.createTextNode("FAQ");
		var aContact	= document.createElement("a");
		var txtContact	= document.createTextNode("Contact");
		var aMention	= document.createElement("a");
		var txtMention	= document.createTextNode("Mentions légales");
		var aSusc		= document.createElement("a");
		var txtSusc		= document.createTextNode("Souscrire à So Music");

		var img1	= document.createElement("img");
		img1.setAttribute('src', url+"img/footer_verticalBar.png");
		img1.setAttribute('alt','');
		var img2	= document.createElement("img");
		img2.setAttribute('src', url+"img/footer_verticalBar.png");
		img2.setAttribute('alt','');
		var img3	= document.createElement("img");
		img3.setAttribute('src', url+"img/footer_verticalBar.png");
		img3.setAttribute('alt','');
		var img4	= document.createElement("img");
		img4.setAttribute('src', url+"img/footer_verticalBar.png");
		img4.setAttribute('alt','');
		var img5	= document.createElement("img");
		img5.setAttribute('src', url+"img/footer_verticalBar.png");
		img5.setAttribute('alt','');

		p.setAttribute('id',"pFooterSoMusic");
		div.setAttribute('id',"divFooterSoMusic");
		span.setAttribute('id',"spanFooterSoMusic");
		aCGU.setAttribute('href',"javascript:window.open('"+url+"html/cgucgv/CGU_CGV.html');void(0);");
		aCGU.setAttribute('title','CGV / CGU');
		aCredits.setAttribute('href',"javascript:window.open('"+url+"html/credits/credits.html');void(0);");
		aCredits.setAttribute('title','Crédits');
		aFAQ.setAttribute('href',"javascript:window.open('"+url+"html/faq/faq.html');void(0);");
		aFAQ.setAttribute('title','FAQ');
		aContact.setAttribute('href',"mailto:contact@somusic.fr");
		aContact.setAttribute('title','Contact');
		aMention.setAttribute('href',"javascript:window.open('"+url+"html/mentionlegale/mentions_legales.html');void(0);");
		aMention.setAttribute('title','Mentions légales');
		aSusc.setAttribute('href',"javascript:popup('http://par.societegenerale.fr/EIP/resources/production/devenir_client/prenez_rendez-vous/');void(0);");
		aSusc.setAttribute('title','Souscrire à So Music');

		aCGU.appendChild(txtaCGU);
		p.appendChild(aCGU);
		p.appendChild(img1);
		aCredits.appendChild(txtCredits);
		p.appendChild(aCredits);
		p.appendChild(img2);
		aFAQ.appendChild(txtFAQ);
		p.appendChild(aFAQ);
		p.appendChild(img3);
		aContact.appendChild(txtContact);
		p.appendChild(aContact);
		p.appendChild(img4);
		aMention.appendChild(txtMention);
		p.appendChild(aMention);
		p.appendChild(img5);
		aSusc.appendChild(txtSusc);
		p.appendChild(aSusc);
		span.appendChild(txt);
		div.appendChild(span);
		div.appendChild(p);
		footer.appendChild(div);
	}
	else alert("L'id fourni pour la fonction footerSoMusic est inexistant dans votre page. Merci de corriger");
}

function footerSoMusic( id, width ){
	if(document.getElementById(id)){
		if (width != undefined) document.getElementById(id).style.width = width;
		document.getElementById(id).style.backgroundColor = '#FFFFFF';
		
		//var str="footer test&eacute; ancore une fois";
		/*var str = "<div id='divFooterSoMusic'>"; 
		str	+= "<span id='spanFooterSoMusic'>";
		str	+= "Copyright Universal Music 2008";
		str	+= "</span>";
		str	+= "<p id='pFooterSoMusic'>";
		str	+= "<a href=\"javascript:window.open('"+url+"html/cgucgv/CGU_CGV.html');void(0);\" title=\"CGV / CGU\">CGV / CGU</a>";
		str	+= "<img src='"+url+"img/footer_verticalBar.png' border='0' alt='' />";
		str	+= "<a href=\"javascript:window.open('"+url+"html/credits/credits.html');void(0);\" title=\"Cr&eacute;dits\">Cr&eacute;dits</a>";
		str	+= "<img src='"+url+"img/footer_verticalBar.png' border=\"0\" alt='' />";
		str	+= "<a href=\"javascript:window.open('"+url+"html/faq/faq.html');void(0);\" title=\"FAQ\">FAQ</a>";
		str	+= "<img src='"+url+"img/footer_verticalBar.png' border=\"0\" alt='' />";
		str	+= "<a href=\"javascript:popupOptions('"+url+"html/contact/infoContact.html', 'contact', 'height=180,width=350');void(0);\" title=\"Contact\">Contact</a>";
		str	+= "<img src='"+url+"img/footer_verticalBar.png' border=\"0\" alt='' />";
		str	+= "<a href=\"javascript:window.open('"+url+"html/mentionlegale/mentions_legales.html');void(0);\" title=\"Mentions l&eacutegales\">Mentions l&eacute;gales</a>";
		str	+= "<img src='"+url+"img/footer_verticalBar.png' border=\"0\" alt='' />";
		str	+= "<a href=\"javascript:popup('http://par.societegenerale.fr/EIP/resources/production/devenir_client/prenez_rendez-vous/');void(0);\" title=\"Souscrire &agrave; So Music\">Souscrire &agrave; So Music</a>";
		str	+= "</p>";
		str	+= "</div>";*/
		
		var str = '<div id="footer_extern">';
					str	+= '<p>';
						str	+= 'Copyright Universal Music 2008';
					str	+= '</p>';
					str	+= '<ul>';
						str	+= '<li class="first_extern"><a href="'+url+'html/cgucgv/index.php" title="CGV / CGU">CGV / CGU</a></li>';
						str	+= '<li><a href="'+url+'html/credits/index.php" title="Cr&eacute;dits">Cr&eacute;dits</a></li>';
						str	+= '<li><a href="'+url+'html/faq/index.php" title="FAQ">FAQ</a></li>';
						str	+= '<li><a href="'+url+'html/contact/contact.html" title="Contact">Contact</a></li>';
						str	+= '<li><a href="'+url+'html/mentions-legales/index.php" title="Mentions l&eacute;gales">Mentions l&eacute;gales</a></li>';
						str	+= '<li><a href="'+url+'" title="Souscrire &agrave; So Music">Souscrire &agrave; So Music</a></li>';
					str	+= '</ul>';
				str	+= '</div>';
		
		
		var footer 		= document.getElementById(id);
		footer.innerHTML = str;
		
		}
	else alert("L'id fourni pour la fonction footerSoMusic est inexistant dans votre page. Merci de corriger");
	}