var X1VCs=new Array(2300,2302,2291,2535,2670,2699);var X2VCs=new Array(2303,2305,2292,2536,2671,2700);var X3VCs=new Array(2672,2701);var XFX1=new Array(2939,2302,2442,2667,2301,2947);var XFX2=new Array(2305,2444,2668,2304,2949);var VC_XFX1_arr=new Array();VC_XFX1_arr.push(-1);var VC_XFX2_arr=new Array();VC_XFX2_arr.push(-1);var compatiableProblem=new Array();function RemoveProblem(a){if(compatiableProblem.length>0){var b=-1;for(var i=0,j=compatiableProblem.length;i<j;i++){if(compatiableProblem[i].optionid==a){b=i;break}}if(b!=-1){$('#wicon_'+compatiableProblem[i].optionid+',#wicon_'+compatiableProblem[i].linked).remove();compatiableProblem.splice(b,1)}}}var RushService=new Array(326,327,328,329);var OSNonePreformattedHardDrive=335;var AdditionalSoftware=new Array(336,338,340);function OpenHelpMeChooseWindow(a){var b=window.open(a,'HelpMeChoose',"width=1000, height=400, location=no, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=yes");if(parseInt(navigator.appVersion)>=4){b.window.focus()}}function OpenRebateCenter(){var a=window.open("../Rebate/RebateCenter.aspx","","menubar=1,resizable=1,width=1200,scrollbars=1,height=600");if(parseInt(navigator.appVersion)>=4&&a!=null){a.window.focus()}}function OpenAllCasesWindow(){var a=window.open("",'Gameing Cases',"width=600, height=400, location=no, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=yes");if(parseInt(navigator.appVersion)>=4&&a!=null){a.window.focus()}}function OpenFlash(a){var b=window.open(a,'360View',"width= 500, height=600 left=500, top=60, location=no, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=no");if(parseInt(navigator.appVersion)>=4&&b!=null){b.window.focus()}}function FlexInstance(a){if(navigator.appName.indexOf("Microsoft")!=-1){return window.document.getElementById(a)}else{return document.getElementById(a)}}function Optionchange(){setPageHeight()}function showDetails(){var a=$get("details");var b=$get("float-title2");if(a.style.display=="none"){a.style.display="";b.className="showDetail"}else{a.style.display="none";b.className="hideDetail"}}function ShowHideflashbarPanel(){var a=$get("flashbarPanel");var b=$get("flashbarImg");var c=$get("HFflashbarPanel");var d=swfobject.getObjectById("wideCaseModels");var e=$("#CaseGalleryOut")[0];if(a!=null){if(c.value=="1"){d.className="hiddenflash";b.className="hideCaseImg";e.style.height='0px';c.value="0"}else{d.className="showflash";b.className="showCaseImg";e.style.height='440px';c.value="1"}}setPageHeight()}function ShowHideOption(t){var a=t.id.substring(0,(t.id.lastIndexOf("_")+1));var b=$get(a+"Imagemenuarrow");var p=t.parentNode.parentNode.nextSibling;if(p.nodeName!="TR"){p=p.nextSibling}if(p.style.display=="none"){p.style.display="";b.src="configurator_img/corner_-.gif"}else{p.style.display="none";b.src="configurator_img/corner_plus.gif"}setPageHeight()}function showHideOptionMouseOver(a){var b=$get(a);if(b.alt=="Collapse"){b.src="../Images/menuarrow-2.gif"}else{b.src="../Images/menuarrow-b-2.gif"}}function showHideOptionMouseOut(a){var b=$get(a);if(b.alt=="Collapse"){b.src="../Images/menuarrow-1.gif"}else{b.src="../Images/menuarrow-b-1.gif"}}function exreturn(){}function exerror(){window.location.href="../Unavailable.aspx"}function smallcaseIMG(){var a=1;var b=$get("Imgstitle");var c=$get("float_image");if(c.style.display=="none"){c.style.display="";c.style.height="100px";b.src="configurator_img/minus.gif";a=1}else{c.style.display="none";b.src="configurator_img/plus.gif";c.style.height=0;a=0}}function getpdhoffset(){return 800}function SwitchCase(a,b){FlexInstance(a).SwitchCase(b);callalready=true}function moreitemMouseOver(a){a.originalstyle=a.style.cursor;a.style.cursor='pointer';a.parentNode.originalstyle=a.parentNode.style.backgroundColor;a.parentNode.style.backgroundColor="#ffc7c7"}function moreitemMouseOut(a){a.style.cursor=a.originalstyle;a.parentNode.style.backgroundColor=""}function itemMouseOver(a){a.originalstyle=a.style.cursor;a.style.cursor='pointer';a.parentNode.parentNode.parentNode.parentNode.originalstyle=a.parentNode.parentNode.parentNode.parentNode.style.backgroundColor;a.parentNode.parentNode.parentNode.parentNode.style.backgroundColor='#ffc7c7'}function itemMouseOut(a){a.style.cursor=a.originalstyle;a.parentNode.parentNode.parentNode.parentNode.style.backgroundColor=a.parentNode.parentNode.parentNode.parentNode.originalstyle}function changeAnchor(a){window.location.href=a}function sendConfigurator(){var a=$get("UpdatePanelDetail");var b=$get("TextBox_Mail");var c=$get("TextBox_Name");var d=$get("HiddenFieldViewModel");if(b.value!=""){PageMethods.mailConfigurator(a.innerHTML,b.value,c.value,d.value,retsendConfigurator,exerror)}else{alert("Enter Email Address!");return false}}function showAlertDetail(e){var a=$get("ImageButtonalert");var j=Sys.UI.DomElement.getLocation(a);var b=$get("showexdetail1");b.style.zIndex="9";b.style.display='';var c=(j.x-400);Sys.UI.DomElement.setLocation(b,c,j.y)}function hideAlertDetail(){var a=$get("showexdetail1");a.style.display="none"}function showExpansionDetail(){var a=$get("showexdetail");a.style.display="inline";a.style.zIndex="9";var b=$get("showexdetail1");b.style.display="inline"}function closeExpansionDetail(){var a=$get("showexdetail");a.style.display="none";var b=$get("showexdetail1");b.style.display="none"}function showpartsDetail(a,b,c){var d=$get("HelpMeChoose");var e=b.parentNode.parentNode.cells[0].getElementsByTagName("span")[0];var f=e.attributes["Description"].value;var g=e.attributes["UnitName"].value;var h=$get("helpmetitle");var i=g;if(g.length>95){i=g.substr(0,94)+"..."}h.innerHTML=i;var j=Sys.UI.DomElement.getLocation(b);var k;if(navigator.appVersion.indexOf("Chrome")==-1){k=document.all?iebody.scrollTop:pageYOffset}else{k=document.body.scrollTop}var l=getPS("fullpage");var m=window.screen.availWidth;var n=window.screen.availHeight;var o=m/2;var x=o;if(o>495){x=o-495}var p=n/2;var q=k+p;if(q>450){q=q-450}PageMethods.showDetail33(c,onretshowhelpme,onerror);return false}function GetCenter(){var a;var b;if(typeof(window.innerWidth)=='number'){a=window.innerHeight;b=window.innerWidth}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){a=document.documentElement.clientHeight;b=document.documentElement.clientWidth}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){a=document.body.clientHeight;b=document.body.clientWidth}var c=new Array(a,b);return c}function onretshowhelpme(a){if(a==null||a.length!=2){hidepartsDetail()}else{var b=$get("HelpMeChoose");var c=getPS("fullpage");var d=$find('HelpMeChooseAcc_AccordionExtender');d.set_SelectedIndex(0);$get('HmcSpecHeader').style.backgroundImage="url(configurator_img/up.gif)";$get("HmcMainImg").src=a[0];$get("HmcMainSpec").innerHTML=a[1];var e=GetCenter();var f=640;var g=540;var h=(e[1]/2)-(f/2);var i=(e[0]/2)-(g/2);b.style.zIndex="999";b.style.top=i+"px";b.style.left=h+"px";b.style.display="block"}}function hidepartsDetail(){$get("HelpMeChoose").style.display="none"}function CaseValidate(){var a=getPartsbyOptionid(OptionList._Case.ID);var b=GetRuleObject(1,a);VerifyCaseLight(b);VerifyCoolers(b)}function NewWarningIcon(a){return"<img style='position: relative; top: -120px; z-index: 9999999' src='configurator_img/warning_a.png' id='wicon_"+a+"' option='"+a+"'/>"}function CreateTooltipOption(){return{effect:'fade',tip:'#Warningtip',offset:[0,-20],position:"center right",onShow:function(){TooltipShow(this)}}}function TooltipShow(a){a.getTrigger().fadeTo("slow",0.8);var b=a.getTrigger().attr("option");var c="";for(var i=0,j=compatiableProblem.length;i<j;i++){if(b==compatiableProblem[i].optionid||b==compatiableProblem[i].linked){c+=compatiableProblem[i].msg+"<br>"}}if(c!=""){a.getTip().html(c)}}function VerifyCoolers(a){if(a!=null){if(a.Coolers!=null&&a.Coolers.length>0){var b=a.Coolers;var c=findOptionIsExist(8);if(c==null){return}var d=c.id.substring(0,(c.id.lastIndexOf("_")+1));var e=$get(d+"GridViewList");var f=true;for(var x=0;x<e.rows.length;x++){var g=e.rows[x];var r=g.cells[0].getElementsByTagName("input")[0];var s=g.cells[0].getElementsByTagName("span")[0];var h=s.attributes["SkuID"].value;var j=g.cells[1].getElementsByTagName("table")[0];RowStatus(j.rows[0],r,true);for(var i=0;i<b.length;i++){if(h==b[i]){if(r.checked){f=false;compatiableProblem.push({optionid:OptionList._ProcessorCooling.ID,linked:OptionList._Case.ID,msg:'Case and cooler!!'});var k=e.parentNode.parentNode.parentNode.parentNode.parentNode;var l=k.rows[1].getElementsByTagName("img")[0];var m=NewWarningIcon(OptionList._ProcessorCooling.ID);$(l.parentNode).append(m);l.parentNode.style.height='120px';$('#wicon_'+OptionList._ProcessorCooling.ID).tooltip(CreateTooltipOption());var n=findOptionIsExist(1);var o=n.id.substring(0,(n.id.lastIndexOf("_")+1));var p=$get(o+"GridViewList").parentNode.parentNode.parentNode.parentNode.parentNode.rows[1].getElementsByTagName("img")[0];var q=NewWarningIcon(OptionList._Case.ID);$(p.parentNode).append(q);p.parentNode.style.height='120px';var t='#wicon_'+OptionList._Case.ID;$(t).tooltip(CreateTooltipOption());var u=$(t).tooltip();u.show();setTimeout(function(){u.hide()},2000)}RowStatus(j.rows[0],r,false)}else{if(r.disabled){continue}RowStatus(j.rows[0],r,true)}}}if(compatiableProblem.length>0&&f){RemoveProblem(8)}}else{EnableOptionSkus(8);RemoveProblem(8)}}else{EnableOptionSkus(8);RemoveProblem(8)}}function EnableOptionSkus(a){var b=findOptionIsExist(a);if(b==null){return}var c=b.id.substring(0,(b.id.lastIndexOf("_")+1));var d=$get(c+"GridViewList");for(var x=0;x<d.rows.length;x++){var e=d.rows[x];var r=e.cells[0].getElementsByTagName("input")[0];var s=e.cells[0].getElementsByTagName("span")[0];var f=s.attributes["SkuID"].value;var g=e.cells[1].getElementsByTagName("table")[0];RowStatus(g.rows[0],r,true)}}function VerifyCaseLight(a){if(a!=null){if(a.support){var b=a.Caselighting;if(b!=null&&b.length>0){var c=findOptionIsExist(6);if(c==null){return}var d=c.id.substring(0,(c.id.lastIndexOf("_")+1));var e=$get(d+"GridViewList");for(var x=0;x<e.rows.length;x++){var f=e.rows[x];var r=f.cells[0].getElementsByTagName("input")[0];var s=f.cells[0].getElementsByTagName("span")[0];var g=s.attributes["SkuID"].value;var h=f.cells[1].getElementsByTagName("table")[0];RowStatus(h.rows[0],r,true);for(var i=0;i<b.length;i++){if(g==b[i]){if(r.checked){}RowStatus(h.rows[0],r,false)}else{if(r.disabled){continue}RowStatus(h.rows[0],r,true)}}}}else{EnableOptionSkus(6)}}}else{EnableOptionSkus(6)}}function ModelType(a,b){this.Name=a;this.Type=b}function LogoImage(a,b){this.Name=a;this.Url=b}function CaseImage(a,b,c,d){this.FlashUrl=a;this.ImageUrl=b;this.ImageUrlBig=c;this.SkuID=d}function CaseGalleryConst(a,b,c,d,e,f,g,h,i,j,k,l){this.Windows=a;this.Office=b;this.Amd=c;this.Intel=d;this.InstantOf=e;this.Logo360=f;this.UnLogo360=g;this.SpecialWords=h;this.SpecialLogo=i;this.WhyLogo=j;this.AwardsLogo=k;this.RebateLogo=l}function GalleryItem(a,b,c,d,e,f,g,h){this.FlashUrl=a;this.SpecialWords=b;this.SpecialLogo=c;this.WhyLogo=d;this.AwardsLogo=e;this.RebateLogo=f;this.LogoImages=g;this.CaseImages=h}function getFlexInstance(a){var b=(window.document.getElementById(a)||document.getElementById(a));return b}function GetCaseImages(a){var b=new Array();for(var i=0;i<caseImages.length;i++){if(caseImages[i].SkuID==a){b.push(caseImages[i])}}return b}function InitCaseGallery(a,b){var c=GetLogos(a);var d=GetCaseImages(b);if(d.length>0){var e="../";var f=new GalleryItem(e+"Flash/"+d[0].FlashUrl,GalleryConst.SpecialWords,e+GalleryConst.SpecialLogo,e+GalleryConst.WhyLogo,e+GalleryConst.AwardsLogo,e+GalleryConst.RebateLogo,c,d);var g=getFlexInstance('wideCaseModels');if(typeof g.SendCaseObject=="function"){g.SendCaseObject(f)}}}function GetLogos(a){var b=new Array();var c="../Images/Logos/";for(var i=0;i<logos.length;i++){if(logos[i].Name=="M_"+a){b.push(c+logos[i].Url)}}if(b.length==0){b.push(c+GalleryConst.Windows);b.push(c+GalleryConst.Office);for(var j=0;j<models.length;j++){if(models[j].Name=="M_"+a){if(models[j].Type=="I"){b.push(c+GalleryConst.Intel)}else{b.push(c+GalleryConst.Amd)}break}}}b.push(c+GalleryConst.InstantOf);b.push(c+GalleryConst.Logo360);b.push(c+GalleryConst.UnLogo360);return b}function ChangeCase(a){var b=GetCaseImages(a);if(b.length>0){var c=getFlexInstance('wideCaseModels');if(typeof c.SendSSCaseObject=="function"){c.SendSSCaseObject(b)}}}