function newPopUp(B,D){var C;if(D!=null){C=D+", resizable = no, scrollbars=yes, left=10, top=10"}else{C="width=500,height=500, resizable = no, scrollbars=yes, left=10, top=10"}var A=window.open(B,null,C);A.focus()}function MM_findObj(E,D){var C,B,A;if(!D){D=document}if((C=E.indexOf("?"))>0&&parent.frames.length){D=parent.frames[E.substring(C+1)].document;E=E.substring(0,C)}if(!(A=D[E])&&D.all){A=D.all[E]}for(B=0;!A&&B<D.forms.length;B++){A=D.forms[B][E]}for(B=0;!A&&D.layers&&B<D.layers.length;B++){A=MM_findObj(E,D.layers[B].document)}if(!A&&D.getElementById){A=D.getElementById(E)}return A}function MM_preloadImages(){var D=document;if(D.images){if(!D.MM_p){D.MM_p=new Array()}var C,B=D.MM_p.length,A=MM_preloadImages.arguments;for(C=0;C<A.length;C++){if(A[C].indexOf("#")!=0){D.MM_p[B]=new Image;D.MM_p[B++].src=A[C]}}}}function AddToCart(A){document.getElementById(A).value="1"}function AddToWishList(A){document.getElementById(A).value="1"}function StorePageNumber(A,E,B){var D=document.getElementById(A);var C=document.getElementById(E);C.value=D.options[D.selectedIndex].value;document.getElementById(B).value="1"}function StoreTotalPages(D,E,C){var B=document.getElementById(E);var A=document.getElementById(C);if(D=="prev"){B.value="1"}if(D=="next"){A.value="1"}}function StoreVariant(A,B,D){var E=document.getElementById(A);var C=document.getElementById(B);C.value=E.options[E.selectedIndex].value;document.getElementById(D).value="1"}var cX=0;var cY=0;function UpdateCursorPosition(A){cX=A.pageX;cY=A.pageY}function UpdateCursorPositionDocAll(A){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;if(A){return document.body}else{return(!window.opera&&document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}}var cursorInDiv=false;var cursorInImg=false;var previewHtmlBegin="<table width='100%' align='center' cellpadding='0' cellspacing='0' class='previewBorder'>";var previewHtmlImg1="<tr><td align='center' style='padding:5px;'>";var previewHtmlImg2="</td></tr><tr><td align='center' class='previewBoxBtm'><b>Vendor: </b>";var previewHtmlImg3="<br><a href='link'>Click for details</a>";var previewHtmlEnd="</td></tr></table>";var 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>';var previewDivFont='<tr><td class="previewBoxTop"><div 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(F,D,N,M,O,B,C,G,J){var E=MM_findObj(F);var A=MM_findObj(D);var I="";if(M==null){M="Other"}if(O==null){O="stockdesign"}if(C==null){C="false"}if(G==null){G="false"}if(J==null){J="false"}var H="none";if(A!=null&&N!=null&&E.innerHTML==""){I=previewHtmlBegin;if(C.toLowerCase()=="true"||G.toLowerCase()=="true"){I=I+'<tr><td class="previewBoxTop" align="center">This is ';if(C.toLowerCase()=="true"&&G.toLowerCase()=="true"){I=I+" a <b>CROSS-STITCH</b> and an <b>APPLIQUE</b>"}else{if(C.toLowerCase()=="true"){I=I+" an <b>APPLIQUE</b>"}else{if(G.toLowerCase()=="true"){I=I+" a <b>CROSS-STITCH</b>"}}}I=I+" pattern.</td></tr>"}if(O.toLowerCase()=="font"){if(J.toLowerCase()=="pulse fonts"){var K="Pulse Version 12 or higher";if(M!=null&&M.toLowerCase()=="grand slam designs"){K="Pulse Version 9.1Q or higher"}I=I+previewDivEFP.replace("Embroidery Fonts Plus",J.replace("Pulse Fonts",K))}else{if(J.toLowerCase()=="wilcom fonts"){I=I+previewDivEFP.replace("Embroidery Fonts Plus",J.replace("Wilcom Fonts","Wilcom 2006 or higher"))}}}var L="<a href='"+A+"'>";L=L+"<img src='"+N+"' title='"+B.replace('"',"&quot;");if(O.toLowerCase()=="font"){L=L+" embroidery font"}else{L=L+" embroidery design"}L=L+"' border='0' onmousedown='return false;' oncontextmenu=\"alert('Images are copyright-protected!');return false;\" onselectstart='return false;'></a>";I=I+previewHtmlImg1+L+previewHtmlImg2+M+previewHtmlImg3.replace("link",A)+previewHtmlEnd;E.innerHTML=I}if(cursorInImg){AssignPosition(E);E.style.visibility="visible"}if(cursorInDiv&&E.style.visibility!="visible"){E.style.visibility="visible"}}function AssignPosition(F,E,C){var D=0;var G=0;var A=290;var B=265;var H=document.all?truebody().scrollLeft+truebody().clientWidth:pageXOffset+window.innerWidth-15;var I=document.all?Math.min(truebody().scrollHeight,truebody().clientHeight):Math.min(window.innerHeight);if(typeof window.event!="undefined"){if(H-event.clientX<B){D=event.clientX+truebody().scrollLeft-D-B}else{D+=truebody().scrollLeft+event.clientX}if(I-event.clientY<(A)){G+=event.clientY+truebody().scrollTop-Math.max(0,(A+event.clientY-I))}else{G+=truebody().scrollTop+event.clientY}}else{if(H-cX<B){D=cX-D-B}else{D+=cX}if(I-cY<A){G+=cY-Math.max(0,(A+cY-I-truebody().scrollTop))}else{G+=cY}}F.style.left=D+"px";F.style.top=G+"px"}function closeDiv(A){if(!cursorInDiv&&!cursorInImg){var B=MM_findObj(A);B.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=new Array();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(D){for(var C=0;C<this.keyValuePairs.length;C++){if(this.keyValuePairs[C].split("=")[0]==D){return this.keyValuePairs[C].split("=")[1]}}return false};this.getParameters=function(){var C=new Array(this.getLength());for(var D=0;D<this.keyValuePairs.length;D++){C[D]=this.keyValuePairs[D].split("=")[0]}return C};this.getLength=function(){return this.keyValuePairs.length}}function queryString(A){var B=new PageQuery(window.location.search);return unescape(B.getValue(A))}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 C=6;var B=0;var D=0;flashrow=MM_findObj("divFlash");adrow=MM_findObj("divAdR");var A=DetectFlashVer(C,B,D);flashrow.innerHTML="";if(A){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"}};