window.addEvent("domready",function(){var a=Cookie.read("site");new Tips($$(".tip"));if(Browser.Engine.trident4){DD_belatedPNG.fix(".main, .vsp-nav-home-img, .vsp-nav-down-img, .vsp-nav-doc-img, .vsp-nav-spec-img, .vsp-nav-reg-img, .vsp-nav-contact-img, .vsp-footer-bot")}if($("loginleftbox")){$$(".bothlog").setStyle("display","block")}if($("showlogtxt")){$$(".vsp-top-expl").addEvent("click",function(b){if($("showlogtxt").get("src")=="/css/imgs/vaio/vsp-icon-maximize.gif"){$$("#logtxthome p").setStyle("display","block");$("showlogtxt").set("src","/css/imgs/vaio/vsp-icon-minimize.gif")}else{$$("#logtxthome p").setStyle("display","none");$("showlogtxt").set("src","/css/imgs/vaio/vsp-icon-maximize.gif")}})}if($("left_max_login")){$("left_logh3").addEvent("click",function(b){if($("left_max_login").get("src")=="/css/imgs/vaio/vsp-icon-maximize.gif"){$$("#instruction_left").setStyle("display","block");$("left_max_login").set("src","/css/imgs/vaio/vsp-icon-minimize.gif")}else{$$("#instruction_left").setStyle("display","none");$("left_max_login").set("src","/css/imgs/vaio/vsp-icon-maximize.gif")}})}if($("right_max_login")){$("right_logh3").addEvent("click",function(b){if($("right_max_login").get("src")=="/css/imgs/vaio/vsp-icon-maximize.gif"){$$("#instruction_right").setStyle("display","block");$("right_max_login").set("src","/css/imgs/vaio/vsp-icon-minimize.gif")}else{$$("#instruction_right").setStyle("display","none");$("right_max_login").set("src","/css/imgs/vaio/vsp-icon-maximize.gif")}})}if($("registerForm")){new FormCheck("registerForm")}vspInitTabNav();if($("applicshow")){$("applicshow").addEvent("mouseover",function(){show("applicmod")});$("applicshow").addEvent("mouseout",function(){show("applicmod")});$("countrieshow").addEvent("mouseover",function(){show("countries")});$("countrieshow").addEvent("mouseout",function(){show("countries")});$("telshow").addEvent("mouseover",function(){show("countries")});$("telshow").addEvent("mouseout",function(){show("countries")});$("telshow2").addEvent("mouseover",function(){show("tel")});$("telshow2").addEvent("mouseout",function(){show("tel")})}if($("ssdFilter_SearchKeyWord")){$("ssdFilter_SearchKeyWord").value=searchttext;$("ssdFilter_SearchKeyWord").addEvent("focus",function(){$("ssdFilter_SearchKeyWord").value=""});$("ssdFilter_SearchKeyWord").addEvent("click",function(){$("ssdFilter_SearchKeyWord").value=""})}if($("help_disp")){$("help_disp").addEvent("mouseover",function(){var b=new Element("img",{src:"/images/computing/vaio/display.jpg"});b.injectInside($("image_help"))});$("help_orig").addEvent("mouseover",function(){var b=new Element("img",{src:"/images/computing/vaio/modelcode.jpg"});b.injectInside($("image_help"))});$("help_sys").addEvent("mouseover",function(){var b=new Element("img",{src:"/images/computing/vaio/VCC.jpg"});b.injectInside($("image_help"))});$("help_disp").addEvent("mouseout",function(){$("image_help").getChildren().destroy()});$("help_orig").addEvent("mouseout",function(){$("image_help").getChildren().destroy()});$("help_sys").addEvent("mouseout",function(){$("image_help").getChildren().destroy()})}});function limitText(c,b,a){if(c.value.length>a){c.value=c.value.substring(0,a)}else{b.value=a-c.value.length}}function disappearow(a){theRow=$(a);if(document.all){theRow.style.display=((theRow.style.display=="block")?"none":"block")}else{theRow.style.display=((theRow.style.display=="table-row")?"none":"table-row")}}function pcCheck(b){var a=$("pc").value;if((a.substr(0,2)!="28"&&a.substr(0,2)!="27"&&a.substr(0,2)!="54")||a.length!=8){b.errors.push(formcheckLanguage.pcCheck);return false}}function pcLookUp(){var c=$("pc").value;var d;var b=getHttpRequest();if(b&&c.length==8){var a="/shared/code/supportwebservs.asmx/getModelName?theProductCode="+c;b.open("GET",a,true);b.onreadystatechange=function(){if(b.readyState==4){if(b.status==200){try{d=b.responseXML.getElementsByTagName("string")[0].childNodes[0].nodeValue;if(d!="0"){$("pc").setStyle("background-color","#69da66");$("pc").setStyle("color","#124c16")}else{$("pc").setStyle("background-color","#bb362d");$("pc").setStyle("color","#fff")}$("mn").value=d.replace("/","_")}catch(f){}}}};b.send(null)}else{$("pc").setStyle("background-color","#bb362d");$("pc").setStyle("color","#fff");$("mn").value="0"}}function pcFound(){var a=$("pc").value;if($("mn").value=="0"&&((a.substr(0,2)=="28"||a.substr(0,2)=="27"||a.substr(0,2)=="54")&&a.length==8)){alert(formcheckLanguage.pcNotFound);return false}else{if($("mn").value!="0"){if($("dftype").checked){Cookie.write("modelId",$("mn").value,{duration:365,path:"/"});Cookie.write("productCode",$("pc").value,{duration:365,path:"/"});Cookie.write("serialNumber",$("sn").value,{duration:365,path:"/"});writeSessionVariable("modelId",$("mn").value);writeSessionVariable("productCode",$("pc").value);writeSessionVariable("serialNumber",$("sn").value)}return true}}}function writeSessionVariable(d,c){var b=getHttpRequest();if(b){var a="/shared/code/supportwebservs.asmx/writeSessionVariable?variableName="+d+"&variableValue="+c;b.open("GET",a,true);b.onreadystatechange=function(){if(b.readyState==4){if(b.status==200){try{text=b.responseXML.getElementsByTagName("boolean")[0].childNodes[0].nodeValue}catch(f){}}}};b.send(null)}}function modelSelected(){if($("dfsel").checked){Cookie.write("modelId",$("select_model").value,{duration:365,path:"/"});Cookie.write("productCode","",{duration:365,path:"/"});Cookie.write("serialNumber","",{duration:365,path:"/"});writeSessionVariable("modelId",$("select_model").value);writeSessionVariable("productCode","");writeSessionVariable("serialNumber","")}$("dfsel").disabled="disabled";return true}function vspInitTabNav(){try{var c=0;var a=$$(".vsp-tab-nav-link span");a.each(function(e,d){a[d].setStyle("max-width","250px");if(a[d].offsetHeight>c){c=a[d].offsetHeight}if(Browser.Engine.trident){if(a[d].offsetWidth>150){a[d].setStyle("width",(680/a.length)-12+"px")}else{a[d].setStyle("width","150px")}a[d].setStyle("padding-right","2px");if(a[d].offsetHeight>c){c=a[d].offsetHeight}}});c=c-20;$$(".vsp-tab-nav-link span").each(function(d){$$(".vsp-tab-nav-link span").setStyle("height",c);if(Browser.Engine.trident){$$(".vsp-tab-nav-link span").setStyle("display","inline-block")}})}catch(b){return false}}function prefix_change(){prefix=$("prefix").value;phone_prefix=$("phone_prefix");if(prefix=="39"){return_prefix="0039"}else{if(prefix=="00"||prefix==""){return_prefix="00"}else{return_prefix="00"+prefix+"(0)"}}phone_prefix.value=return_prefix}function country_change(){prefix=$("country").value.substring(3);phone_prefix=$("phone_prefix");if(prefix=="39"){return_prefix="0039"}else{if(prefix=="00"||prefix==""){return_prefix="00"}else{return_prefix="00"+prefix+"(0)"}}phone_prefix.value=return_prefix}function country_other(){country=$("country").value;if(country=="00-00"){$("country").value="";$("country_message").removeClass("vsp-hidden");$("country_message").addClass("vsp-right")}else{$("country_message").removeClass("vsp-right");$("country_message").addClass("vsp-hidden")}if(country=="IE-353"){$("postalCode").value=" "}}function hidesections(){var a=$$(".questions");var b=$$(".answers");a.each(function(d,c){b[c].setStyle("display","none");d.onclick=function(){for(var e=0;e<b.length;e++){b[e].setStyle("display","none")}show(b[c]);return false}})}function show(a){theDiv=$(a);theDiv.style.display=="block"?theDiv.style.display="none":theDiv.style.display="block"}function TZ_prefix_change(){prefix=$("prefix").value;mobilephone_prefix=$("mobilephone_prefix");officephone_prefix=$("officephone_prefix");if(prefix=="00"||prefix==""){return_prefix="00"}else{if(prefix=="39"){return_prefix="00"+prefix}else{return_prefix="00"+prefix+"(0)"}}mobilephone_prefix.value=return_prefix;officephone_prefix.value=return_prefix}function TZ_btn_cancel_click(){if(window.confirm(cancel_confirm)){window.history.back()}}function TZ_nosurvey_check_click(){nosurvey_check=$("nosurvey_check");nosurvey=$("nosurvey");if(nosurvey_check.checked){nosurvey.value="true"}else{nosurvey.value="false"}}function TZ_notsendadverts_check_click(){notsendadverts_check=$("notsendadverts_check");notsendadverts=$("notsendadverts");if(notsendadverts_check.checked){notsendadverts.value="true"}else{notsendadverts.value="false"}};