function getUrlParameterByName(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+n+"=([^&#]*)"),t=i.exec(location.search);return t===null?"":decodeURIComponent(t[1].replace(/\+/g," "))}function fb(n){var t=$(n).serialize();$.post("/Shirts/SaveShareShirt/",t,function(n){fbshareurl(n)})}function fbshareurl(n){var t=$("#server").val(),i=t+"/dress-shirts-style/fbshare.aspx?shareid="+n;return window.open("http://beta.facebook.com/sharer.php?u="+encodeURIComponent(i)+"&t="+encodeURIComponent("Check Out My Awesome Blank Label Shirt"),"sharer","toolbar=0,status=0,width=626,height=436"),!1}function AJAXPost(n){for(var i=document.getElementById(n).elements,f=document.getElementById(n).action,r="",u,t=0;t<i.length;t++)u=i[t].tagName=="SELECT"?i[t].options[i[t].selectedIndex].value:i[t].value,r+=i[t].name+"="+encodeURIComponent(u)+"&";return xmlhttp=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),xmlhttp.open("POST",f,!1),xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"),xmlhttp.send(r),xmlhttp.responseText}$("#page-cart .checkbox input#address").on("change",function(){$(this).is(":checked")?$("#page-cart .order-info-form .shipping-address ul").slideUp():$("#page-cart .order-info-form .shipping-address ul").slideDown()})