function tab_switch(n,t){$("#pc_images").find("img").each(function(){$(this).hide()});$("#"+n).show();$("#pcthumb").find("img").each(function(){this.style.borderColor="rgb(255,255,255)"});idsel=n;document.getElementById(t).style.borderColor="rgb(128,128,128)"}function tab_show(n,t){$("#pc_images").find("img").each(function(){$(this).hide()});t=="mouseover"?$("#"+n).show():(t="mouseout")&&$("#"+idsel).show()}function addtocart(){var n=new FormData;n.append("target","order_frset_update");n.append("orderid","");n.append("frsetid",$("#frsetid").val());n.append("frsetid_user","new");n.append("customized",$("#customized").val());$.ajax({url:"/a_fileuploadhandler.ashx",type:"POST",data:n,dataType:"text",processData:!1,contentType:!1,success:function(n){$("#msgbox").css("left","50%");$("#msgbox").css("top","50%");$("#msgbox").toast("show");const t=n.split("|");t[0]=="suc"?($("#frsetid_user").val(t[1]),$("#msgbox_icon").attr("src","pic/suc.png"),$("#msgbox_text").html("Successfully saved to your disigns/cart"),$("#msgbox_closebutton").html("
OK<\/h6>"),$("#msgbox_toolbutton1").show(),$("#msgbox_toolbutton1").html("
Go to Cart<\/h6>"),$("#msgbox_toolbutton1").click(function(){window.onbeforeunload=null;window.location.replace("/cart")}),refresh_cart()):($("#msgbox_icon").attr("src","pic/alert.png"),$("#msgbox_text").html("Fail to add to cart"),$("#msgbox_closebutton").html("
OK<\/h5>"))}})}function framesetedit(){window.location.href="frameset_edit?editway=edit&frsetid="+$("#frsetid").val()}function showSizeguid(){$("#modal_fr").modal("show");document.getElementById("frphotos").src="wallart_sizeguid.aspx?frsetid="+$("#frsetid").val()}function showBigimg(n){$("#modal_fr").modal("show");document.getElementById("frphotos").src=n}var idsel="p"+$("#frsetid").val()+"_0";$("#prd_carousel").on("slide.bs.carousel",function(n){$("#mbthumb").find("img").each(function(){this.style.borderColor="rgb(128,129,129)"});document.getElementById("mt"+n.to.toString()).style.borderColor="rgb(255,0,0)"});$("#modal_fr").on("hidden.bs.modal",function(){reload_photolist("private")})