jQuery.noConflict();
jQuery(document).ready(function(){
});

Oshoplang = { 

//RemoveError: 'Your custom string goes here (Message displayed when product is removed from the shopping cart)', 
ChooseAttribute: 'Don\'t forget to precise the options.', 
Added: ' item(s) added to your bag.',
//OutOfStock: 'Your custom string goes here (Message displayed when product added is out of stock)',
PreOrder: ' preordered item(s) added to your bag.',
//InvalidQuantity: 'Your custom string goes here (Message displayed when invalid quantity is added the shopping cart)',
CartEmpty: 'Your bag is empty.',
CartUpdateSuccess: 'Your bag is now empty.',
InvalidShip: 'Please choose a shipping option.',
ChooseState: 'Choose a State please, even if you feel it\'s not applicable :) Thanks.',
EnterZip: 'Zipcode?'
/* ChooseShip: 'Your custom string goes here (Message displayed when customer tries to check out without selecting a radio button shipping option)',
IncorrectGForm: 'Your custom string goes here (Message displayed when the gift voucher form in Admin -> More Customization Options -> Online Shop Layouts -> gift Voucher layout is broken)',
EnterGName: 'Your custom string goes here (Message displayed when customer tries to submit the Gift Voucher form without entering the recipients name)',
InvalidGEmail: 'Your custom string goes here (Message displayed when customer tries to submit the Gift Voucher form without entering a proper email address)',
EnterGMessage: 'Your custom string goes here (Message displayed when customer tries to submit the Gift Voucher form without entering a message for the recipient)'
*/

}

function alert(msg){
		if (msg) {
			if	((msg.substr(0, 40) == "Option d'envoi s�lectionn�e avec succ�s.") || (msg.substr(0, 38) == "Shipping option selected successfully.")){
			// VF + VA : On n'affiche pas d'alert c'est inutile lorsque l'utilisateur change d'option de livraison
			}
			else {
			jQuery.facebox(msg);
			}
		}
}

// Carrousel
var carrousel={
	nbSlide:0,
	nbCurrent:1,
	elemCurrent:null,
	elem:null,
	timer:null,
	
	init:function(elem){
		this.nbSlide=elem.find(".slide").length;elem.append('<div class="navigation"></div>');
		for(var i=1;i<=this.nbSlide;i++){
			elem.find(".navigation").append("<span>"+i+"</span>");
			}
elem.find(".navigation span").click(function(){carrousel.gotoSlide(jQuery(this).text());})
this.elem=elem;elem.find(".slide").hide();elem.find(".slide:first").show();this.elemCurrent=elem.find(".slide:first");this.elem.find(".navigation").css("opacity",0.6);this.elem.find(".navigation span:first").addClass("active");carrousel.play();elem.mouseover(carrousel.stop);elem.mouseout(carrousel.play);},gotoSlide:function(num){if(num==this.nbCurrent){return false;}
this.elemCurrent.find(".visu").fadeOut();this.elem.find("#slide"+num).show();this.elem.find("#slide"+num+" .visu").hide().fadeIn();var titleHeight=this.elemCurrent.find(".title").height();this.elemCurrent.find(".title").animate({"bottom":-titleHeight},800);this.elem.find("#slide"+num+" .title").css("bottom",-titleHeight).animate({"bottom":0},800);this.elem.find(".navigation span").removeClass("active");this.elem.find(".navigation span:eq("+(num-1)+")").addClass("active");this.nbCurrent=num;this.elemCurrent=this.elem.find("#slide"+num);},next:function(){var num=this.nbCurrent+1;if(num>this.nbSlide){num=1;}
this.gotoSlide(num);},prev:function(){var num=this.nbCurrent-1;if(num<1){num=this.nbSlide;}
this.gotoSlide(num);},stop:function(){window.clearInterval(carrousel.timer);},play:function(){window.clearInterval(carrousel.timer);carrousel.timer=window.setInterval("carrousel.next()",5000);}}
jQuery(function(){carrousel.init(jQuery("#carrousel"));});