$(document).ready(function(){$("#cat-4 ul.sidemenu").append('<li><a href="../vivara-variazioni">Vivara Variazioni</a></li>');if($.browser.mozilla||($.browser.webkit&&(navigator.userAgent.toLowerCase().indexOf('chrome')!==-1))){$("embed.vivara-video").addClass("bg-stretch");}else{$("object.vivara-video").addClass("bg-stretch");}
$(".bg-stretch").css({"width":$("div.main_content").width()+"px","height":Math.ceil($("div.main_content").width()/2)+"px"});$("img.fallback").bind("click tap",function(e){if(e.pageX-($(document).width()/2)<0){if(location.hostname==="perfume.emiliopucci.com"){document.location.href=$("ul.selected a:eq(0)").attr("href");}else{document.location.href=$("li.category.selected a:eq(2)").attr("href");}}else{if(location.hostname==="perfume.emiliopucci.com"){document.location.href=$("ul.selected a:eq(2)").attr("href");}else{document.location.href=$("li.category.selected a:eq(4)").attr("href");}}});if($("#big-image-container").length>0){$("#big-image-container").bind("click",function(){if(maui_runtime.current_language==="fr"){window.location.href="http://home.emiliopucci.com/"+maui_runtime.current_language+"/perfume/vivara-variazioni/vert"}else{window.location.href="http://home.emiliopucci.com/perfume/vivara-variazioni/verde"}});$("div.article_content").prepend('<div id="zoom-toggler" class="toggler-zoom-in"></div>');$("#zoom-toggler").css("right",($("#big-image-container img").width()+42)+"px");}
if($("body.article420 #big-image-container").length>0){$("body.article420 #big-image-container").bind("click",function(){if(maui_runtime.current_language==="fr"){window.location.href="http://home.emiliopucci.com/"+maui_runtime.current_language+"/perfume/miss-pucci-intense"}else{window.location.href="http://home.emiliopucci.com/perfume/miss-pucci-intense"}});$("div.article_content").prepend('<div id="zoom-toggler" class="toggler-zoom-in"></div>');$("#zoom-toggler").css("right",($("#big-image-container img").width()+42)+"px");}});$(window).load(function(){$("#big-image-container img").css({"height":Math.floor($("#big-image-container").height())-1});$("#big-image-container").css({"display":"none","visibility":"visible"}).fadeIn();});$(window).resize(function(){$(".bg-stretch").css({"width":$("div.main_content").width()+"px","height":Math.ceil($("div.main_content").width()/2)+"px"});$("#big-image-container img").removeAttr("style").css({"height":Math.floor($("#big-image-container").height())-1});$("#zoom-toggler").css("right",($("#big-image-container img").width()+42)+"px");});
