function newPopUp(c,b){var a;if(b!=null)a=b+", resizable = no, scrollbars=yes, left=10, top=10";else a="width=500,height=500, resizable = no, scrollbars=yes, left=10, top=10";var d=window.open(c,null,a);d.focus()}function fixURL(a){if(a.indexOf("http://")==-1&&a.indexOf("https://")==-1&&a.indexOf("../")==-1&&a.charAt(0)!="/")a="/"+a;return a}function newin(c,b,a){var d=window.open(fixURL(c),b,a);d.focus()}function MM_findObj(b,a){var e,d,c;if(!a)a=document;if((e=b.indexOf("?"))>0&&parent.frames.length){a=parent.frames[b.substring(e+1)].document;b=b.substring(0,e)}if(!(c=a[b])&&a.all)c=a.all[b];for(d=0;!c&&d<a.forms.length;d++)c=a.forms[d][b];for(d=0;!c&&a.layers&&d<a.layers.length;d++)c=MM_findObj(b,a.layers[d].document);if(!c&&a.getElementById)c=a.getElementById(b);return c}function MM_preloadImages(){var a=document;if(a.images){if(!a.MM_p)a.MM_p=[];for(var d=a.MM_p.length,c=MM_preloadImages.arguments,b=0;b<c.length;b++)if(c[b].indexOf("#")!=0){a.MM_p[d]=new Image;a.MM_p[d++].src=c[b]}}}function AddToCart(a){document.getElementById(a).value="1"}function AddToWishList(a){document.getElementById(a).value="1"}function StorePageNumber(e,c,b){var a=document.getElementById(e),d=document.getElementById(c);d.value=a.options[a.selectedIndex].value;document.getElementById(b).value="1"}function StoreTotalPages(a,c,b){var e=document.getElementById(c),d=document.getElementById(b);if(a=="prev")e.value="1";if(a=="next")d.value="1"}function StoreVariant(e,c,b){var a=document.getElementById(e),d=document.getElementById(c);d.value=a.options[a.selectedIndex].value;document.getElementById(b).value="1"}var cX=0,cY=0;function UpdateCursorPosition(a){cX=a.pageX;cY=a.pageY}function UpdateCursorPositionDocAll(){cX=event.clientX+document.body.scrollLeft;cY=event.clientY+document.body.scrollTop}if(document.all)document.onmousemove=UpdateCursorPositionDocAll;else document.onmousemove=UpdateCursorPosition;function truebody(){var a=navigator.userAgent.toLowerCase().indexOf("chrome")>-1;return a?document.body:!window.opera&&document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body}var cursorInDiv=false,cursorInImg=false,previewHtmlBegin="<table width='100%' align='center' cellpadding='0' cellspacing='0' class='previewBorder'>",previewHtmlImg1="<tr><td align='center' style='padding:5px;'>",previewHtmlImg2="</td></tr><tr><td align='center' class='previewBoxBtm'><b>Vendor: </b>",previewHtmlImg3="<br><a href='link'>Click for details</a>",previewHtmlEnd="</td></tr></table>",previewDivEFP='<tr><td class="previewBoxTop"><div style="padding:5px 5px 0 5px;border-bottom:0;" align="center"><font class=\'defaultText12\'>This is a <strong>keyboard font</strong> - requires <strong>Embroidery Fonts Plus</strong> software.</font></div></td></tr>',previewDivFont='<tr><td class="previewBoxTop"><div class="previewBorder" style="padding:5px 5px 0 5px;border-bottom:0;" align="center"><font class=\'defaultText12\'>This is an <strong>alphabet</strong>. Each letter, number, or symbol is an <strong>individual stitch file</strong>.</font></div></td></tr>';function toggleDiv(n,l,k,h,d,m,g,f,b){var e=MM_findObj(n),i=MM_findObj(l),a="";if(h==null)h="Other";if(d==null)d="stockdesign";if(g==null)g="false";if(f==null)f="false";if(b==null||b=="")b="none";if(i!=null&&k!=null&&e.innerHTML==""){a=previewHtmlBegin;if(g.toLowerCase()=="true"||f.toLowerCase()=="true"){a=a+'<tr><td class="previewBoxTop" align="center">';if(g.toLowerCase()=="true"&&f.toLowerCase()=="true")a=a+"This is a <b>CROSS-STITCH</b> and an <b>APPLIQUE</b>";else if(g.toLowerCase()=="true")a=a+"This is an <b>APPLIQUE</b>";else if(f.toLowerCase()=="true")a=a+"This is a <b>CROSS-STITCH</b>";a=a+" pattern.</td></tr>"}if(d.toLowerCase()=="font"){if(b.toLowerCase()=="pulse fonts"){var j="Pulse Version 12 or higher";if(h!=null&&h.toLowerCase()=="grand slam designs")j="Pulse Version 9.1Q or higher";a=a+previewDivEFP.replace("Embroidery Fonts Plus",b.replace("Pulse Fonts",j))}else if(b.toLowerCase()=="wilcom fonts")a=a+previewDivEFP.replace("Embroidery Fonts Plus",b.replace("Wilcom Fonts","Wilcom 2006 or higher"))}else if(b!="none"&&d.toLowerCase()=="printart"){a=a+'<tr><td class="previewBoxTop" align="center">';a=a+"This is <b>"+b+"</b> design";a=a+" </td></tr>"}else if(b!="none"&&d.toLowerCase()=="collection"){a=a+'<tr><td class="previewBoxTop" align="center">';a=a+"This collection has <b>"+b+"</b>.";a=a+" </td></tr>"}else if(b!="none"&&d.toLowerCase()=="cdpackage"){a=a+'<tr><td class="previewBoxTop" align="center">';a=a+"This CD-Package has <b>"+b+"</b>.";a=a+" </td></tr>"}else if(b!="none"){a=a+'<tr><td class="previewBoxTop" align="center">';a=a+"This design is by <b>"+b+"</b>";a=a+" </td></tr>"}var c="<a href='"+i+"'>";c=c+"<img src='"+k+"' title='"+m.replace('"',"&quot;");if(d.toLowerCase()=="font")c=c+" embroidery font";else if(d.toLowerCase()=="printart")c=c+" print art/heat press";else if(d.toLowerCase()=="licenseddesign")c=c+" licensed embroidery design";else c=c+" embroidery design";c=c+"' border='0' onmousedown='return false;' oncontextmenu=\"alert('Images are copyright-protected!');return false;\" onselectstart='return false;'></a>";a=a+previewHtmlImg1+c+previewHtmlImg2+h+previewHtmlImg3.replace("link",i)+previewHtmlEnd;e.innerHTML=a}if(cursorInImg){AssignPosition(e);e.style.visibility="visible"}if(cursorInDiv&&e.style.visibility!="visible")e.style.visibility="visible"}function AssignPosition(g){var a=0,b=0,c=290,d=265,f=document.all?truebody().scrollLeft+truebody().clientWidth:pageXOffset+window.innerWidth-15,e=document.all?Math.min(truebody().scrollHeight,truebody().clientHeight):Math.min(window.innerHeight);if(typeof window.event!="undefined"){if(f-event.clientX<d)a=event.clientX+truebody().scrollLeft-a-d;else a+=truebody().scrollLeft+event.clientX;if(e-event.clientY<c)b+=event.clientY+truebody().scrollTop-Math.max(0,c+event.clientY-e);else b+=truebody().scrollTop+event.clientY}else{if(f-cX<d)a=cX-a-d;else a+=cX;if(e-cY<c)b+=cY-Math.max(0,c+cY-e-truebody().scrollTop);else b+=cY}g.style.left=a+"px";g.style.top=b+"px"}function closeDiv(b){if(!cursorInDiv&&!cursorInImg){var a=MM_findObj(b);a.style.visibility="hidden";cursorInDiv=false;cursorInImg=false}}function PageQuery(b){if(b.length>1)this.q=b.substring(1,b.length);else this.q=null;this.keyValuePairs=[];if(b)for(var a=0;a<this.q.split("&").length;a++)this.keyValuePairs[a]=this.q.split("&")[a];this.getKeyValuePairs=function(){return this.keyValuePairs};this.getValue=function(b){for(var a=0;a<this.keyValuePairs.length;a++)if(this.keyValuePairs[a].split("=")[0]==b)return this.keyValuePairs[a].split("=")[1];return false};this.getParameters=function(){for(var b=new Array(this.getLength()),a=0;a<this.keyValuePairs.length;a++)b[a]=this.keyValuePairs[a].split("=")[0];return b};this.getLength=function(){return this.keyValuePairs.length}}function queryString(b){var a=new PageQuery(window.location.search);return unescape(a.getValue(b))}var cabURL,pluginURL,isSecureConnection;if(isSecureConnection){cabURL="https://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab";pluginURL="https://www.adobe.com/go/getflashplayer"}else{cabURL="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab";pluginURL="http://www.adobe.com/go/getflashplayer"}if(window.document.location.protocol=="http:")isSecureConnection=false;else isSecureConnection=true;function CheckFlash(){var a=6,b=0,d=0;flashrow=MM_findObj("divFlash");adrow=MM_findObj("divAdR");var c=DetectFlashVer(a,b,d);flashrow.innerHTML="";if(c){flashrow.style.display="block";adrow.style.display="none";flashrow.innerHTML=AC_FL_RunContent("src","images/loader?dv=1234","width","400","height","220","id","edAds","quality","high","bgcolor","#FFFFFF","base",".","name","detectionExample","allowScriptAccess","sameDomain","type","application/x-shockwave-flash","codebase",cabURL,"pluginspage",pluginURL,"wmode","transparent")}else{flashrow.style.display="none";adrow.style.display="block"}}function SetTabView(d){var a=d.split(","),c=document.getElementById("div_"+a[0]+"Text"),e=document.getElementById("td_div_"+a[0]),b=document.getElementById("div_"+a[0]);if(c!=null)c.style.display="block";if(b!=null)b.className="ActiveTab"}function newDisplayDiv(e,k){var j=MM_findObj("details_hdnCurrentTab");if(j!=null)j.value=e;var b=k.split(","),d,f,c,a;if(k!="all")for(a=0;a<b.length;a++){d=document.getElementById("div_"+b[a]+"Text");if(d!=null)d.style.display="none";c=document.getElementById("td_div_"+b[a]);if(c!=null){c.style.backgroundColor="#dadada";c.style.cursor="pointer"}var f=document.getElementById("div_"+b[a]);if(f!=null)f.className="Tab"}else{b="overview,specs,details,help,reviews,palette,samples,freedesigns,freefonts,related,contact".split(",");var g,l=MM_findObj("details_hdnRelatedTab");if(l!=null&&l.value=="true")g=true;else g=false;for(a=0;a<b.length;a++){d=document.getElementById("div_"+b[a]+"Text");if(d!=null)d.style.display="none";c=document.getElementById("td_div_"+b[a]);if(c!=null){c.style.backgroundColor="#dadada";c.style.cursor="pointer"}if(b[a]=="related"&g)c.style.display="none";var f=document.getElementById("div_"+b[a]);if(f!=null)f.className="Tab"}self.scrollTo(0,800)}var i=document.getElementById("div_"+e+"Text"),h=document.getElementById("div_"+e),m=document.getElementById("td_div_"+e);if(i!=null)i.style.display="block";if(h!=null)h.className="ActiveTab"}function ResizeModalPopUp(e,d,a){var c,b;if(typeof window.innerWidth!="undefined"){c=window.innerWidth;b=window.innerHeight}else if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){c=document.documentElement.clientWidth;b=document.documentElement.clientHeight}if(a==="undefined"||a===null||a>100||a<0)a=.7;else a=a/100;c=c*a;b=b*a;if(jQuery("#"+e)!==null){jQuery("#"+e).width(c);jQuery("#"+e).height(b)}if(d!=null&&jQuery("#"+d)!==null){jQuery("#"+d).width(c);jQuery("#"+d).height(b)}}function populateRating(d,e){for(var a=1;a<=e;a++){var b=d.concat("star");b=b.concat(a);var c=MM_findObj(b);c.src=c.src.replace("off.gif","on.gif")}}function populateRatingStars(d){for(var a=1;a<=d;a++){var c=a+"star",b=document.getElementById(c);b.src=b.src.replace("off.gif","on.gif")}}function ShowVideo(f){var e=MM_findObj("TrVideo").cells,b=7,c=0,d=0,g=DetectFlashVer(b,c,d);if(DetectFlashVer(b,c,d)==true){e[0].innerHTML=MM_findObj(f).value;$find("bhvEmbroiderablesVideo").show()}else{var a="Sorry, You dont have the flash player installed.<BR>";a+="This content requires the Adobe Flash Player. ";a+="<a target=_blank href=http://www.adobe.com/go/getflash/>Get Flash</a>";e[0].innerHTML=a}return false}function SlideUpMaster(b,c,a){if(a==null||a==undefined)a=1e3;jQuery("#"+b).slideUp(a,function(){jQuery("#"+c).slideDown(a)})}function SlideDownMaster(b,c,a){if(a==null||a==undefined)a=1e3;jQuery("#"+c).slideUp(a,function(){jQuery("#"+b).slideDown(a);return false})}function ResizeModalPopUp(e,d,a){var c,b;if(typeof window.innerWidth!="undefined"){c=window.innerWidth;b=window.innerHeight}else if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){c=document.documentElement.clientWidth;b=document.documentElement.clientHeight}if(a==="undefined"||a===null||a>100||a<0)a=.7;else a=a/100;c=c*a;b=b*a;if(jQuery("#"+e)!==null){jQuery("#"+e).width(c);jQuery("#"+e).height(b)}if(d!=null&&jQuery("#"+d)!==null){jQuery("#"+d).width(c);jQuery("#"+d).height(b)}}jQuery(document).ready(function(){var a=Sys.WebForms.PageRequestManager.getInstance();a.add_endRequest(c);a.add_beginRequest(b);function b(){$find("bhvIDProcessing").show()}function c(){$find("bhvIDProcessing").hide()}});
