$.noConflict();
jQuery(document).ready(function() {
								
	//	MODIFICATIONS GRAPHIQUES
		/*	Logo Header	avec lien home */
		jQuery('.GeneralLayout').append('<a id="logo" title="Bosphores, vente en ligne de climatisation, chauffage et pompe &agrave; chaleur" href="/"><img src="https://eboutique-hebergement.orange-business.com/WebRoot/Orange/Shops/69a97ff4-2dab-11df-ac32-000d609a287c/MediaGallery/bosphores_style/logo.png" alt="Bosphores"/></a>');

		/* AUTO PROMO	*/
		jQuery('.GeneralLayout').append('<a id="credits" href="http://www.roxane-webdesign.com" title="roxane-webdesign.com : cr&eacute;ation de sites internet, logos et photographie" onclick="window.open(this.href); return false;">Design par <img align="absmiddle" src="https://eboutique-hebergement.orange-business.com/WebRoot/Orange/Shops/69a97ff4-2dab-11df-ac32-000d609a287c/MediaGallery/bosphores_style/roxane-webdesign.gif" alt="roxane-webdesign.com : cr&eacute;ation de sites internet, logos et photographie" border="0" /></a>');

		/*	Promotions menu horizontal	*/
		jQuery('.NavBarTop .NavigationElement a:contains(Promotions)').html('<img id="promo-menu" src="https://eboutique-hebergement.orange-business.com/WebRoot/Orange/Shops/69a97ff4-2dab-11df-ac32-000d609a287c/MediaGallery/bosphores_style/promotions_climatisation.png" alt="Promotions"/>');

		/*	Image de fond contenu central (pieds du couple)	
		jQuery('.Layout1 .ContentArea').css('background','#fff url(https://eboutique-hebergement.orange-business.com/WebRoot/Orange/Shops/69a97ff4-2dab-11df-ac32-000d609a287c/MediaGallery/bosphores_style/contentarea_bg.jpg) no-repeat 478px 0px');*/

	//	MISE EN PAGE ET ANIMATION DES NOUVEAUTES
	if (jQuery(".HotDealList").length > 0){
			jQuery('.HotDealList').css('display','none');
			jQuery('.TaxAndShippingInfo').css('display','none');
	
			function recup_infos(){
				var titre_newprods = '<img border="0" src="https://eboutique-hebergement.orange-business.com/WebRoot/Orange/Shops/69a97ff4-2dab-11df-ac32-000d609a287c/MediaGallery/bosphores_style/nouveautes_climatisation.gif" alt="Nouveautés climatisation et pompe à chaleur">';
				jQuery('.HotDealList').before(titre_newprods + '<div id="newproducts"><ul></ul></div><div class="tax-shipping"></div>');
				jQuery('.HotDeal').each(function(){
					var nomprodtemp = jQuery(this).find('a.ProductName').text();
						if (nomprodtemp.length > 65) {var nomprod = nomprodtemp.substr(0, 65) + '...'} else {var nomprod = nomprodtemp};
					var lienprod = jQuery(this).find('.InfoArea a').attr('href');
					var prixprodtemp = jQuery.trim(jQuery(this).find('a.Price').html());
					var prixprod = prixprodtemp.replace(",00","");
					var photourl = jQuery(this).find('.ImageArea a img').attr('src');
					
					var taxship = jQuery('.TaxAndShippingInfo').html();
					if (taxship != null) {jQuery('.tax-shipping').append('<span>' + taxship + '</span>')};
					
					jQuery('#newproducts ul').append('<li><span class="nomprod">' + nomprod + '</span><span class="prixprod">' + prixprod + '</span></li>');
					jQuery('#newproducts').append('<div><h3><a href="' + lienprod + '" tile="' + nomprodtemp + '">' + nomprodtemp + '</a> <span>' + prixprod + '</span></h3><a href="' + lienprod + '" tile="' + nomprodtemp + '"><img src="' + photourl + '" alt="' + nomprodtemp + '"/></a></div>');
				});
			};
	
			recup_infos();
		
			var nb = jQuery('#newproducts div').length;
			var next = 0;
			var wait = 3000;
			var delai;
			function trace(){
				jQuery('#newproducts ul li').eq(next).addClass('current');
			};
			tourne = function() {
				if(next >= nb) {next = 0;};
				jQuery('#newproducts div:visible').fadeOut('fast');
				jQuery('.tax-shipping span').fadeOut('fast');
				jQuery('#newproducts ul li').removeClass('current');
				jQuery('#newproducts div').eq(next).fadeIn();
				jQuery('.tax-shipping span').eq(next).fadeIn();
				trace();
				next = next + 1;
				delai = setTimeout("tourne()",wait);
				wait = 3000;
			};
			jQuery('#newproducts ul li').click(function(){
				clearTimeout(delai);
				next = jQuery(this).index();
				wait = 5000;
				tourne();
			});

			tourne();
	}
	
	//	Liens "Affichage" --> "Détails"
	if (jQuery(".Links a:contains(Affichage)").length > 0){
		jQuery(".Links a:contains(Affichage)").html('D&eacute;tails').addClass('details_link');
	}
	if (jQuery("a.Action:contains(Affichage)").length > 0){
		jQuery("a.Action:contains(Affichage)").html('D&eacute;tails').addClass('details_link');
	}

	// Custom Entetes pages
	if (jQuery(".custom_entete").length > 0){
		if (jQuery("#promotions_page.custom_entete").length > 0) {
			var h1_txt = jQuery('h1').html();
			jQuery('h1').eq(0).addClass('custom').html('<img src="https://eboutique-hebergement.orange-business.com/WebRoot/Orange/Shops/69a97ff4-2dab-11df-ac32-000d609a287c/MediaGallery/bosphores_style/promotions_big.gif" alt="' + h1_txt + '" />');
		} else {
			var h1_txt = jQuery('h1').html();
			jQuery('h1').eq(0).addClass('custom blue').html('<span>' + h1_txt + '</span>');
		}
	}

	// REMISE EN PAGE FICHE PRODUIT
	if (jQuery(".ProductDetails").length > 0){
		jQuery('.SlideShowPreview').css('display','none')/*.remove()*/;
		jQuery('.TopSmallPadding').css('display','none')/*.remove()*/;
		jQuery('.ProductDetails .InfoArea').prev('.ClearBoth').remove();
		
		jQuery(".ProductDetails").nextAll('a').addClass('lien_xsell');
		jQuery('#basketForm_standalone').nextAll('br').remove();
	}
	
	
	//	MAIL ADRESS OBFUSCATOR
	if (jQuery("#email_adress").length > 0){
		jQuery('#email_adress span').each(function(){
			if (jQuery(this).html() == "[at]"){jQuery(this).html("@")} else if (jQuery(this).html() == "[point]"){jQuery(this).html(".")};
		});
	}
	
	// OBS
	jQuery('a:contains(Orange Business Services)').hide();
	
});
