function rvas_get_scaled_size(b,a){var c=b.w/a.w,d=b.h/a.h;return 1d?{w:a.w/a.dpr,h:Math.floor(b.h/c/a.dpr)}:{w:Math.floor(b.w/d/a.dpr),h:a.h/a.dpr}:{w:Math.round(b.w/a.dpr),h:Math.round(b.h/a.dpr)}} function rvas_get_available_size(){var b=$("#theImage").width(),a=1,c;"innerHeight"in window?(c=window.innerHeight,document.documentElement.clientWidth>window.innerWidth&&window.innerWidth&&(a=document.documentElement.clientWidth/window.innerWidth),c=Math.floor(c*a)):c=document.documentElement.offsetHeight;c-=Math.ceil($("#theImage").offset().top);var d=window.devicePixelRatio&&1c.w*c.zoom||e.h>c.h*c.zoom){if(1e&&e>1/b&&d.width()e&&e>1/b&&d.width()b?a.removeClass("wide"):a.addClass("wide"));RVAS.disable?rvas_get_available_size():rvas_choose()});$("#theMainImage").click(function(b){if(!$(this).attr("usemap")&&b.clientY){var a=(b.pageX- $(this).offset().left)/$(this).width();b=b.pageY-$(this).offset().top;0.3>a?$("#linkPrev").length&&15b/$(this).height()&&15