var addthis_pub="sonyericssoncws";var addthis_offset_top=4;var addthis_offset_left=-10;var SE={};SE.tools={hash:function(){var A=window.location.hash.substring(1).split("/");return A[A.length-1]||A[A.length-2];},basename:function(){var A=window.location.pathname.split("/");
return A[A.length-1]||A[A.length-2];},supportPositionFixed:function(){var B=null;if(document.createElement){var C=document.createElement("div");if(C&&C.style){C.style.width="1px";C.style.height="1px";C.style.position="fixed";C.style.top="10px";var A=document.body;
if(A&&A.appendChild&&A.removeChild){A.appendChild(C);B=(C.offsetTop===10);A.removeChild(C);}C=null;}}return B;},scrollTop:function(){if(typeof (window.pageYOffset)=="number"){return window.pageYOffset;}else{if(document.body&&document.body.scrollTop){return document.body.scrollTop;
}else{if(document.documentElement&&document.documentElement.scrollTop){return document.documentElement.scrollTop;}}}}};SE.products={init:function(){this.prepareShare();this.prepareColorSelector();this.prepareNotify();this.prepareGetAllAcc();this.evalJS();generateRestorLayerByUrlList();
},evalJS:function(){this.prepareLightBox();this.hideLightBox();this.preparePng();this.prepareCarousel();},preparePng:function(){$.ifixpng("/cws/images/spacer.gif");$(".png, .teaser-container img, .promo-images img, .promo-container img, .collection-container, .collection-corner-right, .collection-wrapper, .collection-content img, .product-introduction img, .carousel-cart img, .util-content img, img.accessory-pc-small-image").ifixpng();
},prepareMenu:function(){},prepareShare:function(){$(".js-share").click(function(){return addthis_sendto();}).mouseover(function(){return addthis_open(this,"","[URL]","[TITLE]");}).mouseout(function(){addthis_close();});},prepareLightBox:function(){$(".js-lbtrigger").unbind("click").click(function(){SE.products.showLightBox(this);
return false;});$(".js-lbcloser, .lb-container").unbind("click").click(function(){SE.products.hideLightBox();return false;});},prepareCarousel:function(){$(".carousel-prev").unbind("click").click(function(){var C=($(this).parent().data("i")||0);var A=$(this).next().find(".carousel-cart").length;
var B=Math.round($(this).next().height()/A);if(C*B<0){$(this).parent().data("i",++C);$(this).next().animate({marginTop:((C*B))+"px"},200);}this.blur();return false;});$(".carousel-next").unbind("click").click(function(){var D=($(this).parent().data("i")||0);
var B=$(this).prev().find(".carousel-cart").length;var C=Math.round($(this).prev().height()/B);var A=$(this).parent().height();if(D*C>((C*B)-A)*-1){$(this).parent().data("i",--D);$(this).prev().animate({marginTop:((D*C))+"px"},200);}this.blur();return false;
});},prepareColorSelector:function(){$(".js-colorselector").click(function(){$(".js-colorselector").removeClass("current");$(this).addClass("current");$(".promo-images img").attr("src",$(this).attr("href"));$(".promo-images img").ifixpng();$(this).blur();return false;
});},prepareNotify:function(){$(".js-notifyme").click(function(){var A=$(this).attr("href");var B=window.open(A,"","width=550,height=580,menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=no");$(this).blur();return false;});},prepareGetAllAcc:function(){$(".js-showallaccessories").click(function(){var A=$(this).attr("href");
var B="";$.get(A,function(C){var F=C.toString();var D=F.indexOf("<!-- ajaxhookstart -->");var E=F.indexOf("<!-- ajaxhookend -->");$("#php-content .neoWrapper").append(F.substring(D,E));$(".js-showallaccessories").hide();});$(this).blur();return false;});},hideLightBox:function(){$(".js-lbcloser").hide();
$(".lb-container").hide();$(".lb-content").empty();},showLightBox:function(B){var A=$(B).attr("href").split("#");if(A.length>1){$(".lb-wrapper").css({width:A[1]+"px"});}else{$(".lb-wrapper").css({width:""});}$.get(A[0],{},function(C){if(!SE.tools.supportPositionFixed()){$(".lb-container").show().css({top:((SE.tools.scrollTop()||0)+103)+"px"});
}else{$(".lb-container").show();}$(".lb-content").html(C);$(".js-lbcloser").show();});},changePage:function(A){SE.products.changeMenu(A);this.loadContent("template/"+A+".shtml",{});},changeMenu:function(A){window.location.hash=A;$(".js-tabmenu li").each(function(){if($(this).attr("id")==("js-"+A)){$(this).addClass("selected-tab");
}else{$(this).removeClass("selected-tab");}});},loadContent:function(A,B){$.get(A,B,function(C){$("#js-ajax",C).each(function(D){$("#php-content .wrapper").html($(this).html()).show();SE.products.evalJS();});});}};$(document).ready(function(){SE.products.init();
});document.write("<style>.topic-image{visibility:hidden;}</style>");function openFullChart(){window.open("http://www.sonyericsson.com/memorystick/","popProductSnippet","scrollbars=yes,toolbar=no,width=500,height=800");}