function getSharedItemRequest(n){var i=isCookieSet(),t=n,u=i?"a":"r",r;$.cyriauto.itemid=t;r=getItemMask(t);$.cyriauto.mask=r;i?$.post(window.getRequirementsUrl,{itemId:t,p:u},function(n){var t=$.cyriauto.root+n.url;window.location=t.toLowerCase()}):runInstructionDialog()}function isCookieSet(){var n=!1;return $.cookie("id")!=null&&(n=!0),n}function runInstructionDialog(){var n=window.getIntroPage+$.cyriauto.mask+"/"+$.cyriauto.itemid+"/?p=a",t=window.getIntroPage+$.cyriauto.mask+"/"+$.cyriauto.itemid+"/?p=r";InstructionDialog.requirementsURI(t);DetectionDialog.detectionCompleteURI(n);DetectionObject.returnUrl(n);InstructionDialog.show()}function getItemMask(n){var i=getWebApi+n,t="";return $.ajax({async:!1,type:"GET",url:i,success:function(n){t=n[0].UriMask}}),t}function setImageZoom(n){$(n).each(function(){var n=$(this),t=n.position().left,i=n.position().top;$(this).hover(function(){$(this).parent().parent().css("z-index",1);$(this).stop().animate({width:"115",left:t-50,top:i-50,backgroundColor:"#fff"},"slow");$(this).css({height:"auto"});$(this).parent().css({color:"#fff"})},function(){$(this).parent().css({color:""});$(this).parent().parent().css("z-index",0);$(this).stop().animate({width:"35",height:"45",left:t,top:i,backgroundColor:"#fff"},"slow")})})}var getRequirementsUrl=$.cyriauto.root+"cyri/requirementsurl",getIntroPage=$.cyriauto.root+"cyri/requirements/",getWebApi=$.cyriauto.root+"cyri/api/canyourunit/item/"