

function telechargerpluginswf(){
	window.open('http://www.adobe.com/shockwave/download/?P1_Prod_Version=ShockwaveFlash&Lang=French','_blank');
}


/*==== Focus sur les fields ====*/
function GetFocus(field) {
	if (field.value==field.title) {field.value=''}
}

/*==== Blur sur les fields ====*/
function GetBlur (field) {
	if (field.value=='') {
		field.value=field.title;
	} 
}

/*==== Focus sur les pass ====*/
function GetFocusPass(id_txt, field) {
	var txt = document.getElementById(id_txt);
	txt.style.display='none';
}
/*==== Blur sur les pass ====*/
function GetBlurPass(id_txt, field) {
	var txt = document.getElementById(id_txt);
	if(field.value=='')	txt.style.display='block';
}

/*==== Click sur Txt Pass ====*/
function FocusSurField(id_txt, field) {
	document.getElementById(id_txt).style.display='none';
	document.getElementById(field).focus();
}

// Cache les msg d'erreur
function hide_success () {
	div  = (document.layers) ? document.layers['successPad'] : document.getElementById('successPad');
	div2  = (document.layers) ? document.layers['sulogPad'] : document.getElementById('sulogPad');
	div.className = "success_hide";
	div2.className = "success_hide";
}

function hide_error () {
	div  = (document.layers) ? document.layers['errorPad'] : document.getElementById('errorPad');
	div2  = (document.layers) ? document.layers['errorPadLog'] : document.getElementById('errorPadLog');
	div.className = "error_hide";
	div2.className = "error_hide";
}

function open_popup_radioz()
{
	window.open('radioz.php','RadiOZ','height=200,width=490,toolbar=no,menubar=no,scrollbars=no,resizable=no')
}
function open_popup_player(id_track)
{
	window.open('player.php?id_track='+id_track,'mp3_player','height=200,width=490,toolbar=no,menubar=no,scrollbars=no,resizable=no')
}

function open_popup_credits()
{
	window.open('credits.php','Credits','height=500,width=600,toolbar=no,menubar=no,scrollbars=yes,resizable=no')
}
function open_popup_mentions()
{
	window.open('mentions.php','Mentions','height=500,width=600,toolbar=no,menubar=no,scrollbars=yes,resizable=no')
}

function change_artiste(sel_img,sel_link, sel_puce, nb_puces)
{
	document.getElementById('artist_img').src = sel_img;
	document.getElementById('artist_link').href = sel_link;
	document.getElementById('artist_img_link').href = sel_link;
	/*
	for(i=0;i<nb_puces;i++)
	{
		if(i==sel_puce)
		{
			document.getElementById('artist_li'+i).listStyleImage="url('../images/puce_artist_list.jpg')";
		}
		else
		{
			document.getElementById('artist_li'+i).listStyle="none";
		}
	}
	*/
}

function scrollAlbum()
{

	var myFx = new Fx.Scroll(window).toElement('album_player');

}

