var blogFeedsAvailable=false;var blogFeedsElement=false;SE.namespace("products",{deferPageViewStatisticsCall:false,init:function(){this.prepareShare();this.preparePng();this.prepareStats();this.reviewRating.init();this.evalJS();generateRestorLayerByUrlList();
$("body").bind("onBlogFeedLoad",function(B,A){SE.products.prepareOverviewSubsection(A);});},evalJS:function(){if($("#reviews-subsection-container").length){SE.products.loadOverviewExpertReviews();}else{if(!blogFeedsElement&&$("#blog-subsection-container").length){SE.products.prepareOverviewSubsection(false);
}}$(".header-menu").each(function(){if(!$(this).find("li").length){$(this).css({"margin":0,"height":0});}$(this).next("#php-compatible-phones").css({"margin":"40px auto auto","width":970});});SE.products.banners.init();if($("#word-on-the-web").length>0){SE.products.wowInitInterval=setInterval(function(){if(typeof google==="object"&&typeof google.feeds==="object"){clearInterval(SE.products.wowInitInterval);
SE.products.wow.init();}},200);}SE.products.prepageTabSubNavigation();SE.products.dealerlocator.init();SE.products.prepareBgPng();SE.products.prepareColorSelector();SE.products.prepareGetAllAcc();SE.products.prepareQualityPromo();SE.products.preparePrintBtn();
SE.AuxiliaryNav.shopTool.bindEvents();neo.Core.prepareSpec();neo.Carousel.initialize();neo.ToolTip.init();SE.NotifyMe.init();neo.Tools.setSameHeight($(".teaser-details").find("p:first"));neo.Tools.setSameHeight(jQuery(".teaser-container.hero .equal"));setTimeout("neo.Tools.setSameHeight(jQuery('.teaser-container.hero'))",3000);
SE.AuxiliaryNav.shopTool.updateDisplay();$("a[rel=tooltip-medium]").hover(SE.products.toolTip.showMediumTip,SE.products.toolTip.hideMediumTip);SE.FaceBook.parseFB();},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-shadow, .collection-content img, .product-introduction img, .carouselItem img, .util-content img, img.accessory-pc-small-image, .topic-banner-image img").ifixpng();
},prepareBgPng:function(){$.ifixpng("/cws/images/spacer.gif");$(".collection-container, .collection-corner-right, .collection-wrapper, .collection-shadow").ifixpng();},prepareShare:function(){$(".js-share").click(function(){return addthis_sendto();}).mouseover(function(){return addthis_open(this,"","[URL]","[TITLE]");
}).mouseout(function(){addthis_close();});},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;});},prepareUtilsPopup:function(){$("body").bind("onUtilsPopupChange",SE.products.resizeUtilsPopup);$("#php-container").append("<div id='php-utils-info-popup'><div id='php-utils-info-popup-bg'><div></div></div><div id='php-utils-info-popup-content'><div class='floatright close_button'><span></span></div><div><!--append content--></div></div><div class='corner-div'><span></span></div></div>");
$(".js-buy").mouseenter(function(event){if(event.currentTarget.nodeName!="A"){return false;}$(window).bind("resize",function(){SE.products.closeUtilsPopup();});$(".js-buy").removeClass("hover");$(this).addClass("hover");if($(this).hasClass("js-util-rtl")){$("#php-utils-info-popup").addClass("php-utils-info-popup-rtl");
}else{$("#php-utils-info-popup").removeClass("php-utils-info-popup-rtl");}if($("#php-utils-info-popup").hasClass("js-populated")){if($(this).hasClass(".js-notifyme")&&$("#php-utils-info-popup").css("display")=="none"){contentReset();}else{SE.products.positionUtilsPopup();
}if(($().scrollTop()>$("#php-utils-info-popup").offset().top)&&($("#php-utils-info-popup").offset().top>20)){$().scrollTo($("#php-utils-info-popup").offset().top-20,600);}}else{if($(this).hasClass("js-notifyme")){$("#php-utils-info-popup").addClass("php-notifyme-info");
}var params=eval("("+$(this).attr("params")+")");SE.products.positionUtilsPopup();$.get(params.url,function(xml){var str=xml.toString();var _height=$("#php-utils-info-popup-content").height();$("#php-utils-info-popup-content > div").not(".close_button").html(str);
if($("#php-utils-info-popup").hasClass("php-notifyme-info")){$("#php-utils-info-popup-content").css({"height":"auto"});var __height=$("#php-utils-info-popup-content").height();if(__height<285){__height=285;}if(__height>_height){$("#php-utils-info-popup-content").css({"height":__height});
$("#php-utils-info-popup, #php-utils-info-popup-bg").css({"height":__height+20});SE.products.positionUtilsPopup();}}enablePngImages();$("#php-utils-info-popup").addClass("js-populated");});}});$("#php-utils-info-popup-content .close_button").click(function(){SE.products.closeUtilsPopup();
$(".js-buy").removeClass("hover");});},prepageTabSubNavigation:function(){$(".header-menu").find("a").addClass("js-tablink");neo.JSTabs.prepareJSTabLinks();},positionUtilsPopup:function(){try{var B=$("#php-utils-info-popup").hasClass("php-utils-info-popup-rtl");
var C=($(".js-buy.hover").offset().top-$("#php-utils-info-popup").outerHeight(true))+4;if(B){$("#php-utils-info-popup").css({"top":C+"px","left":$(".js-buy.hover").offset().left+"px","display":"block"});}else{var A=($(".js-buy.hover").offset().left+$(".js-buy.hover").outerWidth())-$("#php-utils-info-popup").outerWidth(true);
$("#php-utils-info-popup").css({"top":C+"px","left":A+"px","display":"block"});}$("#php-utils-info-popup .corner-div").css({"width":$(".js-buy").outerWidth()+2});if(($().scrollTop()>$("#php-utils-info-popup").offset().top)&&($("#php-utils-info-popup").offset().top>20)){$().scrollTo($("#php-utils-info-popup").offset().top-20,600);
}}catch(D){}},resizeUtilsPopup:function(C,B){$("#php-utils-info-popup-content").css({"height":"auto"});var A=$("#php-utils-info-popup-content").height();if(A<285){A=285;}if(A!=B){$("#php-utils-info-popup-content").css({"height":A});$("#php-utils-info-popup, #php-utils-info-popup-bg").css({"height":A+20});
SE.products.positionUtilsPopup();}},closeUtilsPopup:function(){$("#php-utils-info-popup").css({"display":"none"});$(window).unbind("resize");},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;});},prepareQualityPromo:function(){var A=0;var C=111;
var B;$(".quality-promo.small-promo .promo-wrapper, .quality-promo.medium-promo .promo-wrapper").each(function(){var E=$("h2",$(this)).outerHeight(true);var D=$("p",$(this)).outerHeight(true)+E+C;if(D>A){A=D;}});$(".quality-promo.small-promo .promo-wrapper, .quality-promo.medium-promo .promo-wrapper").each(function(){$(this).css("height",A);
$(this).parent().parent().css("visibility","visible");});if($.browser.msie&&$.browser.version=="6.0"){$(".product-introduction").css({"height":$(".quality-promo").outerHeight()-35});}else{$(".product-introduction").css({"min-height":$(".quality-promo").outerHeight()-35});
}},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");}});},prepareFeeds:function(B){var A=setTimeout(function(){$.ajax({type:"GET",url:B,beforeSend:function(){neo.Preloader.create($("#feeds-container"));
},success:function(C){neo.Preloader.remove();var F=C.toString();var D=F.indexOf("<!--js-ajax-feeds-start-->");var E=F.indexOf("<!--js-ajax-feeds-end-->");$("#feeds-container").removeClass("tempBorders");$("#feeds-container").html(F.substring(D,E));setTimeout("placeCarousels()",1000);
setTimeout("addReflections()",1000);setTimeout(function(){if(document.all){addIECorners();}else{addCorners();}},1000);setTimeout("enablePngImages()",1000);},complete:function(){$("#feeds-container").removeClass("tempBorders");}});},1000);},prepareOverviewSubsection:function(A){if(A){$("#blog-subsection-container").append("<div class='yui-g php-blog-grid'><div class='yui-u first'></div><div class='yui-u last'></div></div>");
$(".php-blog-grid .first").append($("#blogs-container"));SE.products.loadOverviewSubsection(true,"two",".php-blog-grid .last");}else{SE.products.loadOverviewSubsection(false,"one","#blog-subsection-container");}},loadOverviewSubsection:function(C,B,A){$.ajax({type:"GET",url:URL_WEB_PAGE_OVERVIEW_SUB_PAGE+"&blogfeed="+C+"&layoutPosition="+B,beforeSend:function(){},success:function(D){var E=D.toString();
$(A).append(E);if($.browser.msie&&$.browser.version.substr(0,1)<7){$(A).html($(A).children());}if(B=="two"){SE.products.loadOverviewSubsection(C,"one","#blog-subsection-container");}},complete:function(){neo.Carousel.initialize();neo.ToolTip.init();if($.browser.msie&&$.browser.version.substr(0,1)<7){setTimeout(function(){enablePngImages();
SE.products.preparePng();},1000);}generateRestorLayerByUrlList();}});},loadOverviewExpertReviews:function(){var A="#overview-reviews-content";$.ajax({type:"GET",url:URL_WEB_PAGE_OVERVIEW_SUB_PAGE+"&blogfeed=false&layoutPosition=one",beforeSend:function(){},success:function(B){var E=B.toString();
var C=E.indexOf("<!--js-ajax-external-review-start-->");var D=E.indexOf("<!--js-ajax-external-review-end-->");if(C>-1&&D>-1){$(A).append(E.substring(C,D));$(A).parent().show();}},complete:function(){neo.ToolTip.init();}});},prepareStats:function(){$("body").bind("onJSTabLoad",function(B,A){neo.JSTabs.setStatisticsPropValues(A,["pageName","prop1","prop2","prop3"]);
if(!SE.products.deferPageViewStatisticsCall){if(typeof statForPHPTabView==="function"){statForPHPTabView();}}SE.products.deferPageViewStatisticsCall=false;});},preparePrintBtn:function(){$(".print_btn").bind("click",function(){neo.Core.openPopup($(this).attr("href"),"Summary","width=500,height=500,scrollbars=yes");
return false;});},blogFeedsXml:function(){var B=[[45,780],[45,270],[45,100]];var A=0;var C=new google.feeds.Feed(feedURL);C.setResultFormat(google.feeds.Feed.MIXED_FORMAT);C.setNumEntries(1000);C.load(function(S){if(!S.error){var M=new Array();var K=S.xmlDocument.getElementsByTagName("item");
for(var G=0;G<S.feed.entries.length;G++){var R=S.feed.entries[G];var F=["title","link","publishedDate","content","categories"];var D=R[F[4]].toString();D=D.match(categoryMatch);var E=R[F[2]];if(D!=null){blogFeedsAvailable=true;if(A<feedsLength){var J=new Object();
var L=K[G].getElementsByTagName("imageUrl")[0];if(L!=null){J.imageUrl=L.firstChild.nodeValue;}R[F[2]]=neo.Tools.dateToString(E);J.date=R[F[2]];J.link=R[F[1]];J.title=R[F[0]];J.description=$(R[F[3]]).text();M.push(J);A++;}else{break;}}}if(blogFeedsAvailable){var Q=(M.length<3)?M.length:3;
for(var I in M){if(M[I].imageUrl!=null){$("#feed").append("<div class='blog'><div class='image-section'><img style='display:none' src='"+M[I].imageUrl+"' /></div><div class='description'><span class='timestamp'>"+M[I].date+"</span><strong><a href='"+M[I].link+"' target='_blank' >"+M[I].title.cut(B[Q-1][0]," [...]")+"</a></strong><p>"+M[I].description.cut(B[Q-1][1]," [...]")+"</p></div></div>");
}else{if(M[I].title==undefined){continue;}else{var P=M[I].title!=undefined?M[I].title:"";var H=M[I].description!=undefined?M[I].description.cut(B[Q-1][1]," [...]"):"";var E=M[I].date!=undefined?M[I].date:"";var N=M[I].link!=undefined?M[I].link:"";if($("#feed .blog").length==0){$("#feed").append("<div class='blog'><div class='image-section'></div><div class='description'><span class='timestamp'>"+E+"</span><strong><a href='"+N+"' target='_blank' >"+P+"</a></strong><p>"+H+"</p></div></div>");
}}}}if(Q==2){$(".blogarea .blog .description").css({"paddingTop":"6px","paddingBottom":"11px"});}if(Q==1){$(".blogarea .blog .description").css({"paddingTop":"6px","paddingBottom":"16px"});}$("#blogs-container").css({"display":"block"});}$("body").trigger("onBlogFeedLoad",[blogFeedsAvailable]);
}else{$("body").trigger("onBlogFeedLoad",[blogFeedsAvailable]);}if(($("#feed img").length)!=0){var O="feed";if(navigator.appName=="Netscape"){$(window).load(function(){SE.products.feedImgRead(O);});}else{SE.products.feedImgRead(O);}}});},feedImgRead:function(E){var C=$("#"+E+" img");
var D=C.length;var A;var F;C.removeAttr("width");C.removeAttr("height");for(var B=0;B<D;B++){A=$("#feed img:eq("+B+")").width();F=$("#feed img:eq("+B+")").height();if(A>90){$("#feed img:eq("+B+")").css("width","90px");}if(F>60){$("#feed img:eq("+B+")").css("height","60px");
}$("#feed img:eq("+B+")").css("display","block");}},prepareCommunityFeed:function(A){var B=new google.feeds.Feed(A);B.load(function(L){if(!L.error){var F=0;for(var D=0;D<L.feed.entries.length;D++){var J=L.feed.entries[D];var I=J.title;var H=J.link;var K=$(J.content).text();
K=K.cut(300);var G=neo.Tools.dateToString(J.publishedDate);var C=J.author;var E="<li id='blog_"+F+"'><span>"+C+"</span><em> "+G+"</em>";E+="<h3>"+I+" <img src='/cws/images/dummy/img_rating.jpg' /></h3>";E+=K;E+="</li>";$("#community-feed-container ul").append($(E));
$("#blog_"+F).find(".jive-rendered-content").append(' <a href="'+H+'" target="_blank">Read More >></a>');F++;}if(L.feed.entries.length>0){$("#community-feed-container").show();}}});},priceInfoFeed:{dArray:[],pArray:[],paging:null,init:function(A,D){this.dArray=[];
this.pArray=[];this.paging=new SE.Paging($(".field"),A,$(".paging"));this.paging.init(1);jQuery.each(jQuery("#retailer-listing .field"),function(E){SE.products.priceInfoFeed.dArray.push(jQuery(this).attr("price"));SE.products.priceInfoFeed.pArray.push(jQuery(this).attr("price"));
});SE.products.priceInfoFeed.pArray.sort(function(F,E){return F-E;});var B=0;var C=SE.products.priceInfoFeed.pArray.length-1;jQuery.each(SE.products.priceInfoFeed.pArray,function(E){jQuery.each($("#retailer-listing .field[price='"+SE.products.priceInfoFeed.pArray[E]+"']"),function(F){if(jQuery(this).attr("asc")==undefined){jQuery(this).attr("asc",String(B));
B++;}if(jQuery(this).attr("desc")==undefined){jQuery(this).attr("desc",String(C));C--;}});});this.highlight();},sort:function(A){switch(parseInt(A.value)){case 1:jQuery.each(jQuery("#retailer-listing .field"),function(B){jQuery("#retailer-listing").append($("#retailer-listing .field[asc='"+B+"']"));
});break;case 2:jQuery.each(jQuery("#retailer-listing .field"),function(B){jQuery("#retailer-listing").append($("#retailer-listing .field[desc='"+B+"']"));});break;default:jQuery.each(SE.products.priceInfoFeed.dArray,function(B){jQuery("#retailer-listing").append($("#retailer-listing .field[price='"+SE.products.priceInfoFeed.dArray[B]+"']"));
});}this.paging.showPage(1);this.highlight();},highlight:function(){jQuery.each(jQuery("#retailer-listing .field"),function(A){if(A%2==0){jQuery(this).css("background","#FBFBFB");}else{jQuery(this).css("background","#FFFFFF");}});}},toolTip:{showMediumTip:function(A){SE.products.toolTip.populateToolTip(this,"medium");
SE.products.toolTip.positionToolTip(A,this,"medium");$(".tooltip-medium").css({"display":"block","opacity":0}).stop().animate({"opacity":1});},hideMediumTip:function(A){$(".tooltip-medium").stop().animate({"opacity":0},290,function(){$(".tooltip-medium").hide();
});},showSmallCenterTip:function(A){SE.products.toolTip.populateToolTip(this,"small");SE.products.toolTip.positionToolTip(A,this,"small");$(".tooltip-small").css({"display":"block","opacity":0,"text-align":"center"}).stop().animate({"opacity":1});},hideSmallCenterTip:function(A){$(".tooltip-small").stop().animate({"opacity":0},290,function(){$(".tooltip-small").hide();
});},populateToolTip:function(A,B){if(B=="dynamic"){$(".tooltip-"+B+"-content span.left").html($(A).attr("description"));}else{$(".tooltip-"+B+"-content").html($(A).attr("description"));}},positionToolTip:function(C,A,B){elementOffset=$(A).offset();if($(A).hasClass("mouse-position")){$(A).mousemove(function(D){$(".tooltip-"+B).css("top",D.pageY+25);
$(".tooltip-"+B).css("left",D.pageX-($(".tooltip-"+B).width()/2)+5);});$(A).mouseout(function(){$(A).unbind("mousemove");});}if(B=="overall-rating-wrapper"||B=="your-rating-wrapper"){elementX=elementOffset.left-25;}else{if(B=="small-help"){elementX=elementOffset.left-42;
}else{elementX=elementOffset.left-($(".tooltip-"+B).width()/2);}}elementX=elementX+($(A).width()/2);elementY=elementOffset.top+25;$(".tooltip-"+B).css({"top":elementY+"px","left":elementX+"px"});}},reviewRating:{userReviewTrack:{},currentReviewTab:null,init:function(){$("body").append("<div id='review-script'></div>");
if(neo.Cookie.get("cwsuserreview")==null){neo.Cookie.set("cwsuserreview"," ","","/","","");}else{if(neo.Cookie.get("cwsuserreview").length>1){this.userReviewTrack=neo.Tools.evalString(neo.Cookie.get("cwsuserreview"));}}},user:{paging:null,count:0,get:function(){if((JIVE_REVIEWLIST_URL.trim()).length>0){var B=new Date();
var A=new neo.URL(JIVE_REVIEWLIST_URL);A.append({"callback":"?","rand":B.getTime()});var C=new neo.DynamicScript(A);C.add($("#review-script").get(0));}},set:function(D){$("#review-users-list").empty();SE.products.reviewRating.user.count=0;for(var E in D.reviews){var A=D.reviews[E];
var C=SE.products.reviewRating.getReviewHtml(A,"user");$("#review-users-list").append(C);var B=$("#review-user-"+A.id);B.find(".review-meta-stars").attr("rating",A.rating);B.find(".review-feedback-positive").click(function(){$(this).parent().parent().animate({"opacity":"hide"},function(){var G=Number($(this).find(".review-feedback-positive").attr("reviewid"));
var F=Number($(this).find(".review-feedback-positive").attr("reviewTotal"));$(this).parent().html("<p><strong>"+SE.textResource.thanks_for_your_feedback+"</strong><br /></p><p><strong>"+SE.textResource.you_and+" "+(F+1)+" "+SE.textResource.other_visitors_found_this_review_helpful+"</strong></p>");
SE.products.reviewRating.postLike(G,"Like");});return false;});B.find(".review-feedback-negative").click(function(){$(this).parent().parent().animate({"opacity":"hide"},function(){var F=Number($(this).find(".review-feedback-negative").attr("reviewid"));$(this).parent().html("<p><strong>"+SE.textResource.thanks_for_your_feedback+"</strong><br /></p><p><strong>&nbsp;</strong></p>");
SE.products.reviewRating.postLike(F,"Dislike");});return false;});$.each(B.find(".review-meta-stars li"),function(F){if(F<A.rating){$(this).addClass("filled");}});SE.products.reviewRating.user.count++;}if(SE.products.reviewRating.user.count>0){$("#review-users .record-sort i").html(SE.products.reviewRating.user.count+" "+SE.textResource.visitor_reviews);
this.paging=new SE.Paging($("#review-users .review"),10,$("#review-users .paging"));this.paging.init(1);}SE.products.reviewRating.displayTabs();}},expert:{paging:null,count:0,get:function(A){$.ajax({type:"GET",url:A.toString(),dataType:"json",beforeSend:function(){},success:function(B){SE.products.reviewRating.expert.set(B);
},error:function(D,B,C){if(B=="parsererror"){SE.products.reviewRating.expert.set();}}});},set:function(B){$("#review-expert-list").html("");if(B!=undefined&&B.reviews.length>0){SE.products.reviewRating.expert.count=B.reviews.length;for(var E=0;E<B.reviews.length;
E++){var A=B.reviews[E];$("#review-expert-list").append(SE.products.reviewRating.getReviewHtml(A,"expert"));if(A.rating!=undefined){var D=0;if(A.rating>0&&A.rating<=20){D=1;}else{if(A.rating>20&&A.rating<=40){D=2;}else{if(A.rating>40&&A.rating<=60){D=3;}else{if(A.rating>60&&A.rating<=80){D=4;
}else{if(A.rating>60&&A.rating<=100){D=5;}}}}}SE.products.reviewRating.setRatingStars($("#review-expert-"+A.expertReviewId).find(".review-meta-stars li"),D,"expert");}}}else{$("#reviews-experts").addClass("no-reviews");}if(SE.products.reviewRating.expert.count>0){var C=(SE.products.reviewRating.expert.count>1)?SE.textResource.expert_reviews:SE.textResource.expert_review;
$("#reviews-experts .record-sort i").html(SE.products.reviewRating.expert.count+" "+C);this.paging=new SE.Paging($("#reviews-experts .review"),10,$("#reviews-experts .paging"));this.paging.animate=true;this.paging.init(1);}else{$("#reviews-experts .record-sort p").html(SE.textResource.no_expert_review+"<br />"+SE.textResource.check_back_expert_review);
}$("#reviews-experts").removeClass("loading");}},setRatingStars:function(D,C,B){var A=SE.textResource.this_expert_rated_this_product;$.each(D,function(E){if(E<C){$(this).addClass("filled");$(this).find("a").each(function(){$(this).attr("rel","tooltip-small-center");
$(this).hover(SE.products.toolTip.showSmallCenterTip,SE.products.toolTip.hideSmallCenterTip);switch(C){case 1:$(this).attr("description",A+"<br />"+SE.textResource.poor);break;case 2:$(this).attr("description",A+"<br />"+SE.textResource.fair);break;case 3:$(this).attr("description",A+"<br />"+SE.textResource.average);
break;case 4:$(this).attr("description",A+"<br />"+SE.textResource.good);break;case 5:$(this).attr("description",A+"<br />"+SE.textResource.excellent);break;default:}});}});},getReviewHtml:function(H,E){var C="<div id='review-"+E+"-"+((E=="expert")?H.expertReviewId:H.id)+"' class='review'>";
var D=(H.title!=undefined)?(H.title.trim().length>0)?H.title:false:false;var B=(H.author!=undefined)?(H.author.trim().length>0)?H.author:false:false;var F=(H.date!=undefined)?(H.date.trim().length>0)?H.date:"":"";var I=(H.body!=undefined)?(H.body.trim().length>0)?H.body:false:false;
var G=(H.url!=undefined)?(H.url.trim().length>0)?H.url:false:false;var A=(H.sourceImageUrl!=undefined)?(H.sourceImageUrl.trim().length>0)?H.sourceImageUrl:false:false;if(E=="expert"&&A){C+="<div class='review-"+E+"-picture'>";C+="<img src='"+A+"'/>";C+="</div>";
}C+=A?"<div class='review-meta'>":"<div class='review-meta review-no-picture'>";if(D){C+="<h3 class='review-title'>"+D+"</h3>";}if(E=="expert"){C+="<p class='review-date'>"+F;if(B){C+=" "+SE.textResource.by+" <strong>"+B+"</strong>";}C+="</p>";}else{C+="<p class='review-date'>"+F;
if(B){C+=" "+SE.textResource.by+" <a class='review-user' href=''>"+B+"</a>";}C+="</p>";}C+="<ul class='review-meta-stars'>";C+="<li class='star-1'><a href='javascript:void(0)'>1</a></li>";C+="<li class='star-2'><a href='javascript:void(0)'>2</a></li>";C+="<li class='star-3'><a href='javascript:void(0)'>3</a></li>";
C+="<li class='star-4'><a href='javascript:void(0)'>4</a></li>";C+="<li class='star-5'><a href='javascript:void(0)'>5</a></li>";C+="</ul>";if(!I&&E=="expert"&&G){C+="<a href='"+G+"' target='_blank' class='external-link'> "+SE.textResource.read_more+"</a>";}C+="</div>";
if(I){C+="<div class='review-body'>";C+="<p>";C+=I.cutByWords(120);if(G&&E=="expert"){C+="<a href='"+G+"' target='_blank' class='external-link'> "+SE.textResource.read_more+"</a>";}C+="</p>";C+="</div>";}if(E=="user"){if(SE.products.reviewRating.userReviewTrack[H.id]==undefined){C+="<div class='review-rating'>";
C+="	<div class='review-feedback'>";C+="		<p><strong>"+SE.textResource.was_this_helpful+"</strong></p><br/>";C+="		<p>"+H.likeCount+" "+SE.textResource.of+" "+H.totalCount+" "+SE.textResource.visitors_found_this_review_helpful+"</p>";C+="		<p class='review-feedback-icons'><a reviewTotal='"+H.totalCount+"' reviewid='"+H.id+"' href='' class='review-feedback-positive' description='Click if this review was helpful' rel='tooltip-dynamic'/><a reviewid='"+H.id+"' href='' class='review-feedback-negative' description='Click if this review was unhelpful' rel='tooltip-dynamic'/></p>";
C+="		<div class='clear-both'/>";C+="    </div>";C+="	<div class='review-feedback-thanks'></div>";C+="</div>";}else{if(SE.products.reviewRating.userReviewTrack[H.id]=="Like"){C+="<p><strong>"+SE.textResource.thanks_for_your_feedback+"</strong><br /></p><p><strong>"+SE.textResource.you_and+" "+H.totalCount+" "+SE.textResource.other_visitors_found_this_review_helpful+"</strong></p>";
}else{C+="<p><strong>"+SE.textResource.thanks_for_your_feedback+"</strong><br /></p><p><strong>&nbsp;</strong></p>";}}}C+="</div>";return C;},postLike:function(E,B){var C=new Date();var A=new neo.URL(JIVE_REVIEWLIKEPOST_URL);if(B=="Like"){A.append({"callback":"?","reviewId":E,"rand":C.getTime(),"like":"Like"});
}else{if(B=="Dislike"){A.append({"callback":"?","reviewId":E,"rand":C.getTime(),"dislike":"Disike"});}}SE.products.reviewRating.userReviewTrack[E]=B;neo.Cookie.set("cwsuserreview",JSON.stringify(SE.products.reviewRating.userReviewTrack),"","/","","");var D=new neo.DynamicScript(A);
D.add($("#review-script").get(0));},displayTabs:function(){if(SE.products.reviewRating.currentReviewTab==null){if(SE.products.reviewRating.expert.count>0){$("#reviews-expert-tab").addClass("selected-tab");$("#reviews-listing-tabs, #reviews-experts").css({"display":"block"});
$("#reviews-expert-tab").css({"display":"inline"});$("#reviews-user-tab").removeClass("selected-tab");$("#review-users").css({"display":"none"});}if(SE.products.reviewRating.user.count>0){$("#reviews-user-tab").css({"display":"inline"});if(SE.products.reviewRating.expert.count==0){$("#reviews-user-tab").addClass("selected-tab");
$("#reviews-listing-tabs, #review-users").css({"display":"block"});$("#reviews-user-tab").css({"display":"inline"});}}}else{if(SE.products.reviewRating.currentReviewTab=="user"){$("#review-users").css({"display":"block"});$("#reviews-user-tab").css({"display":"inline"});
$("#reviews-user-tab").addClass("selected-tab");}}}},colorPicker:{animated:false,animateColorPicker:function(){if(!SE.products.colorPicker.animated){SE.products.colorPicker.animated=true;var B=$("#php-mediaspace-color-picker");var A=B.find(".carouselClipper").width();
B.find(".carouselClipper").css("width",0);B.css("visibility","visible");B.find(".carouselWrapper").animate({opacity:1,filter:""},300,"swing",function(){B.find(".carouselClipper").animate({width:A},500,"swing");});}},setProductColor:function(A){var B=$(".product-main-image"),D=$(A).attr("url"),C=B.find("img");
if(D!=""){$("#php-mediaspace-color-picker").find(".carouselItem").removeClass("selected");$(A).addClass("selected");if(SE.PHPMediaSpace.isHero){if(B.css("display")=="none"){swfobject.removeSWF("mediaSpace");if($("#mediaSpace").length==0){$("#mediaSpaceContainer").append('<div id="mediaSpace"></div>');
}SE.PHPMediaSpace.renderFlashMedia(false);}}if(C.attr("src")!=D){C.attr("src","").hide();B.show();C.attr("src",D).bind("load",function(){$(this).fadeIn();});}else{if(B.css("display")=="none"){B.show();C.hide().fadeIn();}}}},hideColorMainImage:function(){$(".product-main-image").hide();
$("#php-mediaspace-color-picker").find(".carouselItem").removeClass("selected");$("#php-mediaspace-color-picker").find(".carouselItem.default").addClass("selected");}}});SE.namespace("products.banners",{setDynamicBanners:function(){var E=$(".product"),A=E.length,B=$("#variable-products-box"),C=B.find(".product");
if(A===3){B.addClass("tripple");jQuery.each(C,function(){jQuery(this).addClass("product-"+(jQuery(this).index()+1));});jQuery(".product-1").after('<div class="line"></div>');jQuery(".product-2").after('<div class="clear"></div>');var D=jQuery(".product-3").html();
jQuery(".product-3").html('<div class="top"></div> '+D+'<div class="bottom"></div>');}else{if(A===2){B.addClass("double");jQuery.each(C,function(){jQuery(this).addClass("product-"+(jQuery(this).index()+1));});jQuery(".product-1").after('<div class="line"></div>');
}else{if(A===1){B.addClass("single");B.find(".product").addClass("product-3");var D=jQuery(".product-3").html();jQuery(".product-3").html('<div class="top"></div> '+D+'<div class="bottom"></div>');}}}},init:function(){this.setDynamicBanners();$(".banner1 a").bind("click",function(){SE.products.banners.generateStatistics("inspire");
var B=$(this).attr("target"),A=$(this).attr("href");setTimeout("SE.products.banners.linkHandler('"+B+"', '"+A+"')",800);return false;});$(".banner2 a").bind("click",function(){SE.products.banners.generateStatistics("campaign");var B=$(this).attr("target"),A=$(this).attr("href");
setTimeout("SE.products.banners.linkHandler('"+B+"', '"+A+"')",800);return false;});$(".banner3 a").bind("click",function(){SE.products.banners.generateStatistics("dynamic");var B=$(this).attr("target"),A=$(this).attr("href");setTimeout("SE.products.banners.linkHandler('"+B+"', '"+A+"')",800);
return false;});},linkHandler:function(B,A){switch(B){case"_layer":neo.openLayer(A,640,390,"banner");break;case"_blank":window.open(A);break;default:window.location=A;}},generateStatistics:function(A){if(typeof generateOmnitureStatForClick==="function"){generateOmnitureStatForClick("banners",A,"linkView");
}}});SE.namespace("products.wow",{filterp:"",facebook_loaded:false,facebook_posts:[],facebook_feed:null,blogs_loaded:false,blog_posts:[],blog_feeds:null,youtube_loaded:false,youtube_video:null,youtube_feed:null,flash_video:null,time_out:null,time_out_delay:30000,wow_load_interval:null,video_load_interval:null,init:function(){if($("#word-on-the-web").length>0){this.setStartPositions(function(){setTimeout(function(){if(!SE.isIE7){$(".word-web-inner .bottom").before("<span class='clear-both'></span>");
}$("#word-on-the-web").css({display:"block",visibility:"hidden"});$("#word-on-the-web .video").show();$("#word-on-the-web .feeds").show();if($(".word-web-inner").hasClass("no-acc")){setTimeout(function(){var B=$(".feeds .content");if(SE.products.wow.youtube_feed==null&&B.length>1){neo.Tools.setSameHeight($(B));
}var A=$(".feeds .content").outerHeight(true);if(A+40>322){$(".feeds .content").height(322);}else{$(".feeds .content").height(A+40);}$("#word-on-the-web").css({visibility:"visible"});},200);}else{$("#word-on-the-web").css({visibility:"visible"});}SE.products.wow.displayMessage(false);
},200);});}},setStartPositions:function(B){var A=SE.products.wow;A.time_out=setTimeout(function(){SE.products.wow.triggerTimeout();},A.time_out_delay);if(A.youtube_feed!=null){A.loadVideo();A.video_load_interval=setInterval(function(){if(A.youtube_loaded){window.clearInterval(SE.products.wow.video_load_interval);
if(A.youtube_video!=null){A.renderYouTubeVideo();A.displayFeeds(true,B);}else{if(A.flash_video!=null){A.renderProductVideo();A.displayFeeds(true,B);}else{A.displayFeeds(false,B);}}}},100);}else{if(A.flash_video!=null){A.renderProductVideo();A.displayFeeds(true,B);
}else{A.displayFeeds(false,B);}}},displayFeeds:function(D,H){var A=SE.products.wow,F=!SE.isBlank(A.blog_feeds),E=!SE.isBlank(A.facebook_feed),C=$(".word-web-inner"),B,G=true;F?A.loadBlogs():A.blogs_loaded=true;E?A.loadFacebook():A.facebook_loaded=true;if(F||E){A.wow_load_interval=setInterval(function(){if(A.facebook_loaded&&A.blogs_loaded){window.clearTimeout(SE.products.wow.time_out);
window.clearInterval(SE.products.wow.wow_load_interval);B=A.getDisplayCase();switch(B){case 1:A.renderBlogs(3);A.renderFacebook(3);G=false;if(D){A.initAccordian();}break;case 2:A.renderFacebook(D?3:6);A.renderBlogs(0);break;case 3:A.renderBlogs(D?3:6);A.renderFacebook(0);
break;default:A.displayMessage(true);return false;}if((D&&G)||!D){C.addClass("no-acc");C.find(".feeds h3").addClass("upper");}if(!D){C.addClass(G?"one-module":"two-modules");}H();}},100);}},getDisplayCase:function(){var A=SE.products.wow;if(A.facebook_posts.length>0&&A.blog_posts.length>0){return 1;
}else{if(A.facebook_posts.length>0&&A.blog_posts.length==0){return 2;}else{if(A.facebook_posts.length==0&&A.blog_posts.length>0){return 3;}else{return 0;}}}},triggerTimeout:function(){window.clearInterval(SE.products.wow.wow_load_interval);window.clearInterval(SE.products.wow.video_load_interval);
SE.products.wow.displayMessage(true);},displayMessage:function(A){var B=$("#word-web-message");$("#word-web-loader").remove();if(A){B.show();}else{B.remove();}},initAccordian:function(){var B=$("#blog_feed");var A=((document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1))?true:false;
$("#facebook_feed h3").addClass("upper");B.find(".content").css({"display":"none"});B.find("h3").addClass("lower");B.removeClass("active").addClass("inactive");$(".feeds .feed h3").unbind("click").bind("click",function(){if(!A){$(".feeds .feed .content").animate({opacity:"toggle",height:"toggle"});
}else{$(".feeds .feed .content").toggle();}$(".feeds .feed").toggleClass("active").toggleClass("inactive");});},loadVideo:function(){try{var F=this.youtube_feed.url,C=new google.feeds.Feed(F),A=SE.products.wow,B=0,E;C.setNumEntries(30);C.load(function(G){A.youtube_loaded=true;
if(G.feed.entries.length>0){var J=G.feed.entries[0],L=$.trim(J.title.split("http")[0]),I=J.link,H=J.contentSnippet,K=neo.Tools.getParam("v",I);A.youtube_video=new A.YouTubeVideo(K,L,I,H);}});}catch(D){}},loadBlogs:function(){try{var B=new cws.Feeds.Aggregator(),C=1,A=SE.products.wow,E;
B.setNumEntries(30);for(x=0;x<this.blog_feeds.length;x++){B.addFeed(this.blog_feeds[x].url,this.blog_feeds[x].name,this.blog_feeds[x].icon);}B.load(function(F){A.blog_posts=[];if(F.feed.entries.length>0){A.blog_posts=F.feed.entries.slice(0,6);}SE.products.wow.blogs_loaded=true;
});}catch(D){}},renderBlogs:function(D){var C="",F=$("#blog_feed"),B=$(".feeds"),A=SE.products.wow,E="";if(D>0){$.each(A.blog_posts,function(G,H){if(G==D){return false;}if(!SE.isBlank(H.icon)){E='class="icon" style="background-image:url('+H.icon+')"';}else{E="";
}C+='<li><a id="'+H.name+'" '+E+' href="'+H.link+'" target="_blank">'+H.title.cut(47).toString()+"</a><span>&nbsp;&middot;&nbsp;"+A.getDateString(new Date(H.publishedDate))+"</span><br><p>"+H.contentSnippet.cut(135).toString()+'</p> <a id="'+H.name+'" class="external-link" href="'+H.link+'" target="_blank">Read more</a></li>';
if(D==6){if(G%2){C+='<li class="clear-float"></li>';}}});F.find("ul").html(C);F.find("ul li a").click(function(){var G=$(this).attr("href"),H=$(this).attr("id");SE.products.wow.postStatistics(H);window.open(G);return false;});}else{F.remove();}},loadFacebook:function(){var A=$.ajax({url:this.facebook_feed.url,cache:true,dataType:"jsonp",jsonpCallback:"SE.products.wow.fbCallback"});
},fbCallback:function(C){var B=0,A=SE.products.wow,D;if(!C.error){$.each(C.data,function(E,G){if(B>6){return false;}if(G.message!=undefined){D=G.message.toLowerCase();if(D.search(A.filterp)!=-1){var F={};F.link=G.link;F.date=A.getDateString(new Date(A.convertDate(G.created_time)));
F.title=G.from.name.cut(47).toString();F.description=G.message.cut(135).toString();F.icon=A.facebook_feed.icon;F.name=A.facebook_feed.name;A.facebook_posts.push(F);B++;}}});}A.facebook_loaded=true;},renderFacebook:function(D){var C="",F=$("#facebook_feed"),B=$(".feeds"),A=SE.products.wow,E="";
if(D>0){$.each(A.facebook_posts,function(G,H){if(G==D){return false;}if(!SE.isBlank(H.icon)){E='class="icon" style="background-image:url('+H.icon+')"';}else{E="";}C+='<li><a id="'+H.name+'" '+E+' href="'+H.link+'" target="_blank">'+H.title+"</a><span>&nbsp;&middot;&nbsp;"+H.date+"</span><br><p>"+H.description+"</p></li>";
if(D==6){if(G%2){C+='<li class="clear-float"></li>';}}});F.find("ul").html(C);F.find("ul li a").click(function(){var G=$(this).attr("href");SE.products.wow.postStatistics("facebook");window.open(G);return false;});}else{F.remove();}},renderYouTubeVideo:function(){var B=$("#loadYouTubeVideo"),A=SE.products.wow.youtube_video;
B.find("iframe").attr("src","http://www.youtube.com/embed/"+A.id);B.find("h3").html('<a href="http://www.youtube.com/watch?v='+A.id+'" target="_blank">'+A.title+"</a>");B.find("p").html(A.content);B.find("h3 a").click(function(){var C=$(this).attr("href");SE.products.wow.postStatistics("youtube");
window.open(C);return false;});B.show();$(".video .social").show();},renderProductVideo:function(){$("#flashVideo").show();},getDateString:function(C){var E="",I=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],D=new Date(),H=D.getWeek(),B=C.getWeek(),F=D.getYear(),G=C.getYear();
if(F==G&&H==B){E=I[C.getDay()-1];}else{if(F==G&&H!=B){E=A[C.getMonth()]+" "+C.getDate();}else{if(F!=G){E=A[C.getMonth()]+" "+C.getDate()+", "+C.getFullYear();}}}return E;},convertDate:function(C){var F=/(\d{4})+(\-)+(\d{2})+(\-)+(\d{2})/g,H=/(\d{2})+(\:)+(\d{2})+(\:)+(\d{2})/g,E=/((\-{1})|(\+{1}){1})+(\d{4})/g,B=C.match(F).toString().split("-"),D=new Date(),G=C.match(H).toString(),A=C.match(E).toString();
D.setFullYear(Number(B[0]));D.setMonth(Number(B[1])-1);D.setDate(Number(B[2]));return D.toDateString()+" "+G+" "+A;},postStatistics:function(A){if(!SE.isBlank(A)){if(typeof generateOmnitureStatForClick==="function"){generateOmnitureStatForClick(A,"wow","linkView");
}}},Feed:function(B,A,C){this.url=B?B:"";this.name=A?A:"";this.icon=C?C:"";},YouTubeVideo:function(D,C,B,A){this.title=C;this.link=B;this.content=A;this.id=D;}});SE.namespace("products.dealerlocator",{init:function(){jQuery("#dealer_search #search").bind("click",SE.products.dealerlocator.onClickHandler);
jQuery("#dealer_search #cityPostcode").keypress(function(A){if(A.keyCode==13){jQuery("#search").click();}});},onClickHandler:function(){var B=jQuery("#cityPostcode").val();var C=jQuery("#dealer_search .error");var A=jQuery("#type-in-postcode-initialmsg");if(SE.isBlank(B)){A.hide();
C.find(".invalid-char, .no-result").hide();C.show();C.find(".null-value").show();return false;}SE.products.dealerlocator.loadMapsApi();},loadMapsApi:function(){try{google.load("maps","3",{"callback":SE.products.dealerlocator.onMapsApiLoadHandler,"other_params":"client=gme-sonyericssonmobile&sensor=false&language="+cws.lc+"&region="+cws.cc});
}catch(A){}},onMapsApiLoadHandler:function(){jQuery("#dealer_search #search").unbind("click",SE.products.dealerlocator.onClickHandler);jQuery.ajax({url:"/cws/js/maps/dealerlocator/scripts.js",dataType:"script",cache:true,success:function(){jQuery("#dealer_search #search").click();
}});}});var General=General||new Object();General.demolizer={hideOverlay:function(){$("#php-mediaspace-info").hide();},showOverlay:function(){$("#php-mediaspace-info").show();}};$(document).ready(function(){SE.products.init();$("body").bind("onJSTabLoad",SE.products.evalJS);
$("body").bind("onJSTabLoadStart",SE.products.closeUtilsPopup);});document.write("<style>.topic-image{visibility:hidden;}</style>");function openFullChart(){}
