function showModelPage(a){var c=$(a).value;var b=new Request({method:"get",url:"/shared/code/SupportWebServs.asmx/getModelPage?site=odw_"+wep.locale+"&m="+c,onSuccess:function(e,d){if(document.URL.indexOf("/repair/index.aspx?site")==-1){document.location=d.getElementsByTagName("string")[0].childNodes[0].nodeValue}else{if(d.getElementsByTagName("string")[0].childNodes[0].nodeValue.indexOf("manuals")==-1){document.location=d.getElementsByTagName("string")[0].childNodes[0].nodeValue}else{document.location="/repair/request/index.aspx?locale="+wep.locale+"&modelId="+c}}},onFailure:function(e,d){document.location=e.responseText}});b.send(null)}function showContactPage(){var b=$("contactSearch").value;var a=new Request({method:"get",url:"/shared/code/SupportWebServs.asmx/getModelPage?site=odw_"+wep.locale+"&m="+b,onSuccess:function(e,d){var c=d.getElementsByTagName("string")[0].childNodes[0].nodeValue;if(c.indexOf("/main/error.aspx")!=-1||c.indexOf("/manuals/index.aspx")!=-1){getContactDetails()}else{document.location=c}},onFailure:function(d,c){alertBox.alert("Failed loading the data");document.location=d.responseText}});a.send(null)}function getContactDetails(){var a=new Request.HTML({url:"/contacts/contacts_cic.aspx?site=odw_"+wep.locale,onSuccess:function(b){$("search_results").set("html","");btn_close=new Element("img");btn_close.set("src","/css/imgs/consumer/ssp-icon-minimize.gif");btn_close.set("id","contact_results_btn");btn_close.addEvent("click",function(c){$("search_results").removeClass("openresults");document.location=document.location.href.substring(0,document.location.href.lastIndexOf("#",0));$("search_results").empty();btn_close.dispose()});$("search_results").adopt(btn_close);$("search_results").adopt(b);$("search_results").setStyle("padding","15px")},onFailure:function(){$("search_results").set("html","The request failed.")}});a.send(null);document.location=document.location+"#search_anchor";if(wep.locale=="ro_RO"||wep.locale=="hu_HU"||wep.locale=="cs_CZ"){$("chat_results").removeClass("hidden");insert_smartbut()}}function activateTab(a){var c=6;var b=new Array("none","general","specifications","manuals","compatibility","repair","contact");activeTab=b[a];s.linkTrackVars="pageName";s.pageName=s.prop4+" : Products : "+model_used+" : "+activeTab;s.t();if(a==6){getContactDetails()}for(i=1;i<=c;i++){if($("tabTitle_"+i)){$("tabTitle_"+i).className="tab-nav-item"}$("tabTitle_"+a).className="tab-nav-item tab-active"}for(i=1;i<=c;i++){if($("section_"+i)){$("section_"+i).className="tab-box-content sectionDeactivated"}$("section_"+a).className="tab-box-content sectionActivated"}}function getModelManuals(c,f,b,e){var a=$("divManTable");if(f=="sr"){f="rs"}var d=new Request({method:"get",url:"/shared/code/supportwebservs.asmx/getManualsList?cat="+b+"&subCat="+e+"&model="+c+"&l="+f,onRequest:waitImg(),onSuccess:function(h,g){a.set("html",g.getElementsByTagName("string")[0].childNodes[0].nodeValue);document.body.style.cursor="default";var j=$$(".manual-table a");j.each(function(l,k){l.setAttribute("target","_blank");l.onclick=function(){pageTracker._trackPageview("/Manuals/Downloads/"+b+"/"+e+"/"+c+"/"+l.href)}})},onFailure:function(h,g){a.set("html","An error occurred during the treatment.");document.body.style.cursor="default"}});d.send(null)}function waitImg(){var a=new Element("img",{src:"/dl_img/wait.gif"});a.injectInside($("divManTable"));document.body.style.cursor="wait"}function sendFeedback(a){var d=-1;var b="";var e="";if(typeof ActivDiv=="undefined"){ActivDiv=""}if(typeof activeTab=="undefined"){activeTab=""}if(a=="left"){var c=$("feedbackLeft").options;var d=c[c.selectedIndex].value;b=$("fbl_txt").value;if(d!=-1){$("fbl_txt").value=""}}else{if(a=="bottom"){var c=$("feedbackBott").options;var d=c[c.selectedIndex].value;b=$("fbb_txt2").value;if(d!=-1){$("fbb_txt2").value=""}}}if(d!=-1){if($defined($("activeTab"))){e=$("activeTab").value}else{if($defined(activeTab)){e=activeTab}else{e="NoTabClicked"}}storeFBInfoInDB(d,b,e);if($("feedbackBox")){$("feedbackBox").style.display="none"}if($("feedbackBottomBox")){$("feedbackBottomBox").style.display="none"}}else{alertBox.alert("Please select an option")}return false}function storeSurveyResult(a,c){var b=new Request({method:"get",url:"/shared/code/supportwebservs.asmx/storeSurveyData?owner="+a+c+"&locale="+wep.locale,onSuccess:function(f,e){var d=e.getElementsByTagName("boolean")[0].childNodes[0].nodeValue}});b.send(null)}function storeFBInfoInDB(c,d,a){var b=new Request({method:"get",url:"/shared/code/supportwebservs.asmx/storeFeedbackData?theLocation="+escape(document.location)+"&theRating="+c+"&theComments="+d+"&theActiveTab="+a+"&theModel=",onSuccess:function(g,f){var e=f.getElementsByTagName("boolean")[0].childNodes[0].nodeValue}});b.send(null)}function swapImages(c,e,d,b,a){objImg=c.src;currentImg=objImg.substr(objImg.lastIndexOf("/")+1);if(currentImg==e){c.src=objImg.substr(0,objImg.lastIndexOf("/")+1)+d;c.alt=a}else{c.src=objImg.substr(0,objImg.lastIndexOf("/")+1)+e;c.alt=b}}function showHideSpan(a){theSpan=$(a);theSpan.style.display=((theSpan.style.display=="block")?"none":"block")}function ChangeSite(d,f){var e=window.location.href;var b;var c;if(f.value){var a=f.value}else{var a=f}if(e.indexOf("?site=,")!=-1){c=/\?site=,odw_[a-z]{2}_[A-Z]{2}/i;b=e.replace(c,"?site="+a)}else{if(e.indexOf("?site=")!=-1){c=/\?site=odw_[a-z]{2}_[A-Z]{2}/i;b=e.replace(c,"?site="+a)}else{if(e.indexOf("&site=")!=-1){c=/&site=odw_[a-z]{2}_[A-Z]{2}/i;b=e.replace(c,"&site="+a)}else{if(e.indexOf("?")!=-1){b=e.replace("?","?site="+a+"&")}else{b=e+"?site="+a}}}}Cookie.write("site",a,{duration:365});window.location=b}function createCookie(c,d,e){if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString()}else{var a=""}document.cookie=c+"="+d+a+"; path=/"}function showHideHelp(f,c){var e=$(f);if(c==1){var b=0;var g=0;var a=$("selType");var d=a;while(d){b+=d.offsetLeft;g+=d.offsetTop;d=d.offsetParent}e.style.left=b+"px";e.style.top=g+(a.offsetHeight*3)+"px";e.style.display="block"}else{e.style.display="none"}}function changeModel(b,a,c){window.location=c+"?site="+b+"&m="+a}function check_wm_serial(c,b){var e="Please contact our Customer Information Center, when the headphones supplied with WALKMAN have these symptoms. Sony will replace the damaged headphones with new ones without charge.";var d="Your WALKMAN is not affected by this issue. You can continue enjoying your WALKMAN.";var a=$("wm_message");if(b.length<7){a.value="The serial number must contain 7 digits."}else{if(c=="NWZ-S738F"&&b>="5000001"&&b<="5031355"){a.value=e}else{if(c=="NWZ-S739F"&&b>="5000001"&&b<="5014255"){a.value=e}else{a.value=d}}}}function toggleFAQSection(oSectionHeader,sectionId){with($("img_"+sectionId)){src=(src.indexOf("plus.gif")>-1)?"/images/tables/book_minus.gif":"/images/tables/book_plus.gif"}oSectionHeader.className=oSectionHeader.className=="faq_secHeader"?"faq_secHeader_bold":"faq_secHeader";var oSpan=$("section_"+sectionId);oSpan.style.display=((oSpan.style.display=="block")?"none":"block")}function ToggleSpanImg(e,b){var d=$(e);var c=$(b);var a=c.src;if(a.substr(a.length-10)=="icon_+.gif"){c.src=a.substring(0,a.lastIndexOf("icon_+.gif"))+"icon_-.gif"}else{c.src=a.substring(0,a.lastIndexOf("icon_-.gif"))+"icon_+.gif"}d.style.display=d.style.display=="block"?"none":"block"}function toggleFlashComp(c){spanTags=$$(".lensDetails");spanTag=$(c);spans=$$("");for(var a=0;a<spanTags.length;a++){spanTags[a].style.display="none"}var b=$(c);b.style.display=="block"?b.style.display="none":b.style.display="block"}function dnld(a){if($("conditionsbox").checked==1){show("backupsol");s.pageName="spt : Download page 2 : "+model_used;s.t();window.open(a,"mywindow","width=430,height=350");return false}else{alertBox.alert(agreetxt);return false}}function dnld_mult(c,d){var a=$$(".conditionsboxes");var b=$$(".backupsol");if(a[d-1].checked==1){window.open(c,"mywindow","width=430,height=350");show(b[d-1]);return false}else{alertBox.alert(agreetxt);return false}}function hideAndToggle(){var c=$$(".subdiv");var f=$$(".supdiv");var e=$$(".bularw");var b=$$(".settingsmenu");var a=new Array();var d=new Array();e.each(function(j,g){var h=new Fx.Slide(c[g],{duration:400,transition:Fx.Transitions.Pow.easeOut});a[g]=h;j.onclick=function(){h.show();for(var k=0;k<a.length;k++){if(k!=g){a[k].hide()}}return false};h.hide()});b.each(function(h,g){var j=new Fx.Slide(f[g],{duration:400,transition:Fx.Transitions.Pow.easeOut});d[g]=j;j.hide();h.onclick=function(){j.show();for(var k=0;k<d.length;k++){if(k!=g){d[k].hide()}}for(var k=0;k<a.length;k++){if(k!=g){a[k].hide()}}return false}})}function show(a){theDiv=$(a);theDiv.style.display=="block"?theDiv.style.display="none":theDiv.style.display="block"}function hideallcontent(){var b=document.getElementsByTagName("div");for(var a=0;a<b.length;a++){if((b[a].id.substr(0,3)=="ddc")&&b[a].style.display==""){hide(b[a])}}}function inittogglers(){var a=$$(".toggler");var b=$$(".toggled");var c=new Array();a.each(function(f,e){var d=new Fx.Slide(b[e],{duration:400,transition:Fx.Transitions.Pow.easeOut});c[e]=d;f.onclick=function(){d.show();b[e].setStyle("height","700px");for(var g=0;g<c.length;g++){if(g!=e){c[g].hide()}}return false};d.hide()})}function hideVideos(){var a=$$(".togglerVid");var b=$$(".toggledVid");a.each(function(d,c){d.onclick=function(){for(var e=0;e<b.length;e++){b[e].setStyle("display","none")}show(b[c]);return false}})}function disappear(e){var n=(!document.all&&document.getElementById)?true:false;var h=((document.all)&&(navigator.appVersion.indexOf("MSIE"!=-1)))?true:false;var a=0;var b=0;var l=0;var c=0;var f="";f=document.getElementsByTagName("span");var g=new Array();for(var d=0;d<f.length;d++){if((f[d].id!="")&&(f[d].id.indexOf("item")!=-1)){g[a]=f[d];a=a+1}}a=0;for(var c=0;c<g.length;c++){if(g[c].id==e.id){var l=0;l=c;break}}c=0;for(var b=0;b<g.length;b++){if(b==l){if(g[b].style.display=="none"){g[b].style.display=""}else{if(g[b].style.display==""){g[b].style.display="none"}}}else{if(g[b].style.display==""){g[b].style.display="none"}}}}function clearFBtextbox(a){var b=$(a);if(b.value.replace(/^\s+|\s+$/g,"")==""){b.value=""}}function SetActivDIV(a){ActivDiv=a}function showFAQs(c,b){var d=c.split("|");var a="faq.aspx?site="+odw+"&sc="+d[0];if(d[1]&&d[1]!=""){a+="&m="+d[1]}if(d[2]&&d[2]!=""){a+="&f="+d[2]}location.href=a}function insert_smartbut(){$("smartimg").innerHTML='&nbsp;<img src="http://rs.instantservice.com/resources/smartbutton/6058/22636/available.gif?'+Math.floor(Math.random()*10001)+'" style="width:0;height:0;visibility:hidden;position:absolute;" onLoad="agents_available()" onError="agents_not_available()">'}function agents_available(){var a="";odw=location.href.substring(location.href.lastIndexOf("site")+9,location.href.lastIndexOf("site")+14);switch(wep.locale){case"ro_RO":a="/contacts/chat/chat.aspx?site=odw_ro_RO";break;case"cs_CZ":a="/contacts/chat/chat.aspx?site=odw_cs_CZ";break;case"hu_HU":a="/contacts/chat/chat.aspx?site=odw_hu_HU";break;default:a=""}$("smartbutton").set("html",'<img src="https://admin.instantservice.com/brands/instantservice/images/clickhere.gif" onclick="javascript:window.open(\''+a+"','_blank','menubar=no, status=no, width=600,height=600'); return false;\">");return true}function agents_not_available(){var a="";switch(wep.locale){case"ro_RO":a='Nici un agent nu este disponibil &#238;n acest moment.<br/>Va rugam sa ne trimiteti <a href="/contacts/email/email.aspx?site='+odw+'">ane-mail</a>.<br/>';break;case"cs_CZ":a='Jelenleg minden oper&#225;torunk foglalt.<br/>K&#233;rj&#252;k, k&#252;ldj&#246;n <a href="/contacts/email/email.aspx?site='+odw+'">emailt.</a><br/>';break;case"hu_HU":a='Omlouv&#225;me se, ale &#382;&#225;dn&#237; pracovn&#237;ci nejsou moment&#225;lne k dispozici.<br/>Pros&#237;m, za&#353;lete n&#225;m <a href="/contacts/email/email.aspx?site='+odw+'">e-mail.</a><br/>';break;default:a=""}$("smartbutton").set("html",a);return true}function InitTabNav(){try{var c=0;var a=$$(".tab-nav-link span");a.each(function(e,d){a[d].setStyle("max-width","350px");if(a[d].offsetHeight>c){c=a[d].offsetHeight}});c=c-20;$$(".tab-nav-link span").each(function(d){$$(".tab-nav-link span").setStyle("height",c)})}catch(b){return false}}function changeLANG(){var d=window.location.href;var b;var c;if(wep.locale=="fr_BE"){var a="odw_nl_BE"}else{if(wep.locale=="nl_BE"){var a="odw_fr_BE"}else{if(wep.locale=="de_LU"){var a="odw_fr_LU"}else{if(wep.locale=="fr_LU"){var a="odw_de_LU"}else{if(wep.locale=="de_CH"){var a="odw_fr_CH"}else{if(wep.locale=="fr_CH"){var a="odw_de_CH"}}}}}}if(d.indexOf("?site=,")!=-1){c=/\?site=,odw_[a-z]{2}_[A-Z]{2}/i;b=d.replace(c,"?site="+a)}else{if(d.indexOf("?site=")!=-1){c=/\?site=odw_[a-z]{2}_[A-Z]{2}/i;b=d.replace(c,"?site="+a)}else{if(d.indexOf("&site=")!=-1){c=/&site=odw_[a-z]{2}_[A-Z]{2}/i;b=d.replace(c,"&site="+a)}else{if(d.indexOf("?")!=-1){b=d.replace("?","?site="+a+"&")}else{b=d+"?site="+a}}}}Cookie.write("site",a,{duration:365});window.location=b};