$(document).ready(function() {	   $('#actus').cycle({		fx: 'fade' 	});	$('#exclus').after('<div id="nav" class="nav">').cycle({		fx:'fade',		pager:'#nav',		pagerAnchorBuilder: function(idx, fade) {			switch (idx) {					case 0:						return '<li class="onglet"><a href="#">info1</a></li>';					break;					case 1:						return '<li class="onglet"><a href="#">info2</a></li>';					break;					case 2:						return '<li class="onglet"><a href="#">info3</a></li>';					break;					case 3:						return '<li class="onglet"><a href="#">info4<</a>/li>';					break;					default: 						return '<li class="onglet"><a href="#">info</a></li>';					break;			}										} 		});	/*----------------------------------------------------------------------------------*//* Datepicker																		*//*----------------------------------------------------------------------------------*/				if($('.date-pick')) {		$('.date-pick').datePicker({			clickInput:true		});	}	if($('#facture')) {		Date.format = 'dd/mm/yyyy';		$("#facture").datePicker({			startDate: (new Date('1970', '01', '01')).asString()		});	}	/*----------------------------------------------------------------------------------*//* Ajout & suppression produits formulaire Garantie		           					*//*----------------------------------------------------------------------------------*/		//cpt = 1;	if (cpt > 1) $('#del').css('display', 'block');	$('#add').click(function() {		if (cpt > 0) $('#del').css('display', 'block');		//$('#tr_add').replaceWith('<tr id="tr_add'+cpt+'"><td class="text"><label for="produits[]">Réf. produit *:</label></td><td class="champCP"><input type="text" id="produit'+cpt+'" name="produits[]" /></td><td class="textVille"><label for="gammes[]">Gamme&nbsp;*:</label></td><td class="champ"><input type="text" id="gamme'+cpt+'" name="gammes[]"/></td></tr><tr id="tr_add"><td><input name="cpt" type="hidden" value="'+cpt+'" /></td></tr>');		//$('#tr_add').replaceWith('<tr id="tr_add'+cpt+'"><td class="text"><label for="produit'+cpt+'">Réf. produit *:</label></td><td class="champCP"><input type="text" id="produit'+cpt+'" name="produit'+cpt+'" /></td><td class="textVille"><label for="gamme'+cpt+'">Gamme&nbsp;*:</label></td><td class="champ"><input type="text" id="gamme'+cpt+'" name="gamme'+cpt+'"/></td></tr><tr id="tr_add"><td><input name="cpt" type="hidden" value="'+cpt+'" /></td></tr>');		$('#tr_add').replaceWith('<tr id="tr_add'+cpt+'"><td class="text"><label for="produit'+cpt+'">Réf. produit *:</label></td><td colspan="3" class="champCP"><input type="text" id="produit'+cpt+'" name="produit'+cpt+'" /></td></tr><tr id="tr_add"><td><input name="cpt" type="hidden" value="'+cpt+'" /></td></tr>');		cpt++;	});	$('#del').click(function() {		if (cpt > 1) cpt--;		if (cpt == 1) $('#del').css('display', 'none');		$('#tr_add'+cpt).remove();		$('#tr_add').replaceWith('<tr id="tr_add"><td><input name="cpt" type="hidden" value="'+(cpt-1)+'" /></td></tr>');	});});// fonction Accès mal-voyantfunction changeTaillePolice(taille) {	if (document.getElementById("bloc_content").style.fontSize == taille+"em")	{	document.getElementById("bloc_content").style.fontSize="";	}	else	{	document.getElementById("bloc_content").style.fontSize=taille+"em";	}}// fonction Ajouter aux favorisfunction favoris() {if ( navigator.appName != 'Microsoft Internet Explorer' ){ window.sidebar.addPanel("Meubles Délias, Home Design","http://meubles-delias.com/",""); }else { window.external.AddFavorite("http://meubles-delias.com/","Meubles Délias, Home Design"); } }
