/* Script Analitycs */ 

var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-21097596-1']); _gaq.push(['_setDomainName', 'none']); _gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']); (function() {var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);})();

/* Script Turn */ 

$(window).ready(function(){$('#turn').bxSlider({mode: 'vertical',auto: true,pause: 1500,speed: 1500,autoDirection: 'prev',controls: false});})

/* Script Loading */ 

$(function(){$('.positionable').hide(); $('.positionable_dos').hide(); $('.position').hide(); $('.position_dos').hide();})
$(window).load(function(){$('.positionable').show();  $('.positionable_dos').show(); $('.position').show(); $('.position_dos').show();});

/* Script Add */

$(function(){$( "#dialog:ui-dialog" ).dialog( "destroy" );
$( "#dialog_user" ).dialog({autoOpen: true,height: 510,width: 350,modal: true,
buttons: {},close: function() {}});

$( "#add_user" ).button({ icons: {primary: "ui-icon-person"},text: true}).click(function() {$( "#dialog_user" ).dialog( "open" );});});

$(function(){$( "#dialog:ui-dialog" ).dialog( "destroy" );
$( "#dialog_upload" ).dialog({autoOpen: false,height: 190,width: 460,modal: true,
buttons: {"J'importe mon motif !": function() {$("#new_upload").submit();},"Annuler": function() {$( this ).dialog( "close" );
}},close: function() {}});

$( "#add_upload" ).button({ icons: {primary: "ui-icon-transferthick-e-w"},text: true}).click(function() {$( "#dialog_upload" ).dialog( "open" );});});

$(function(){$( "#dialog:ui-dialog" ).dialog( "destroy" );
$( "#dialog_pan" ).dialog({autoOpen: false,height: 300,width: 400,modal: true,
buttons: {"Ajouter au panier": function() {$("#new_art").submit();},"Annuler": function() {$( this ).dialog( "close" );
}},close: function() {}});

$( "#add_pan" ).button({text: true}).click(function() {$( "#dialog_pan" ).dialog( "open" );});});

/* Script Edit */
$(function() {$("a, input", ".edit" ).button().next().button({icons: {secondary: "ui-icon-trash"},text: false});});
$(function() {$(".mod" ).button()});

