<!--

window.onload = onLoadEvents;

function onLoadEvents()	{
	
	if (document.getElementById("contactListDiv"))
	{
		var links = document.getElementsByTagName("a");
		var closePop = document.getElementById("closeBtn");
		
		for (var i = 0; i < links.length; i++)
		{
			if (links[i].className == "personPop")
			{
				links[i].onclick = nameTagPop;
			}					  
		}
		
		closePop.onclick = closeNameTag;
	}
	
	if (document.getElementById("uploadForm"))
	{
		var inputs = document.getElementsByTagName("input");
					
		for (var i = 0; i < inputs.length; i++)  // add the script to obscure the download page on submit. 
		{
			var inputType = inputs[i].getAttribute("type");
			
			if(inputType.toUpperCase() == "SUBMIT")
			{
				inputs[i].onclick = obscureMe;
			}
		}
	}
		
	if (document.getElementById("orderForm"))
	{
		var orderForm = document.getElementById("orderForm");
//		var allLinks = document.getElementsByTagName("a");
		
//		for (var i = 0; i < allLinks.length; i++)  // add the script to pop the info boxes. 
//		{
//
//			if (allLinks[i].className == "questionMark")
//			{
//				allLinks[i].onclick = showAnswer;
//				allLinks[i].setAttribute("tabIndex", "-1");
//			}							 
//		}
		
//		var pwPopUpLink = document.getElementById("pwPop");	// add the popup script to add passwords. 
		
//		pwPopUpLink.onclick = getPopUp;
		
		// add the dynamic nav styling to the quote and order tabs. 
		
		if(document.getElementById("formTabs"))
		{
			document.getElementById("placeOrderTab").onclick = placeOrderClicked;
			document.getElementById("requestQuoteTab").onclick = requestQuoteClicked;

		var inputs = document.getElementsByTagName("input");
					
		for (var i = 0; i < inputs.length; i++)  // add the script to obscure the download page on submit. 
		{
			var inputType = inputs[i].getAttribute("type");
			
			if(inputType.toUpperCase() == "SUBMIT")
			{
				inputs[i].onclick = orderTypePersist;
			}
		}

		// preload the images needed
			var middleImgOrderClicked = new Image();
			var middleImgQuoteClicked = new Image();
			var formBgOrder = new Image();
			var formBgQuote = new Image();
			var rightTabCornerOrder = new Image();
			var rightTabCornerQuote = new Image();
			var orderTypeCookie = getCookie("OorQ");
			middleImgOrderClicked.src = "tabsMiddleOrderSelected.gif";
			middleImgQuoteClicked.src = "tabsMiddleQuoteSelected.gif";
			formBgOrder.src = "topFadeBlue.jpg";
			formBgQuote.src = "topFadeTan.jpg";
			rightTabCornerOrder = "lgRightCorner.gif";
			rightTabCornerQuote = "smRightCorner.gif";
						
			if (orderTypeCookie == "quote")
			{
				requestQuoteClicked();
			}
		}	
		
		document.getElementById("orderTypeToggleInput").style.display = "none";  // ---------------   make the image type toggle radio buttons invisible
	}
	

	if (document.getElementById("recieptBlurb"))
	{
		setCookie("OorQ", "");
		
		document.getElementById("otherQuote").onclick = setQuoteCookie;
	}

}

function setQuoteCookie() 
{
	setCookie("OorQ", "quote");	
}


function closeNameTag()	
{
	var nameTag = document.getElementById("popUpInfoDiv");	
	nameTag.style.display = "none";
}

function nameTagPop()	{
	var nameTag = document.getElementById("popUpInfoDiv");	
	var linkPosArray = getPositions(this.id);
	var nameTagWidth = nameTag.width;
	var headImg = document.getElementById("popHeadShot");
	var staffName = document.getElementById("staffName");
	var staffList = document.getElementById("staff");
	var staffPara = document.getElementById("staffP")
	var staffBlurbs = new Array();
	
	staffBlurbs[0] = "Cory is the owner of ArtworkSource.  He has been involved in his family business his whole life and  enjoys being a marketing and enterprise entrepreneur.  When he is not busy keeping his company running smoothly, he playing amatuer soccer.  Cory used to be one of the leading professional soccer referees in the country and continues to be involved in offciating locally at semiprofessional and division one college matches.";
	
	staffBlurbs[1] = "My name’s Lili. Loud and proud, I like to be silly. I’m your vector girl, so I’m gonna curtsey and twirl. I’m a bit of a joker, I like to play poker. I go to the gym and try to get slim. I heart food, never mean to be rude. Having fun’s my game, and Lili’s my name. Dang, should I become a rapper?";
	
	staffBlurbs[2] = "Hi, I am Sue. I have an extensive background and education in design. In addition to that,I have 11 years of hands on experience running an art department for a large embroidery and screenprint business. When I am not helping you with your digitizing orders, I love to kick box, scuba dive and travel.";
	
	staffBlurbs[3] = "Alan works on the website and does marketing for Artworksource along with doing customer service. When he's not at work he's usually reading, working on bizarre interactive artworks of some kind, sampling some of the pacific northwest's amazing beers or riding his bicycle.";

	var staffNames = new Array();
	
	staffNames[0] = "coryHead.gif";
	staffNames[1] = "liliHead.gif";
	staffNames[2] = "sueHead.gif";
	staffNames[3] = "alanHead.gif";

	for (i = 0; i < staffList.childNodes.length; i++)
	{
		if (staffList.childNodes[i].nodeType == "1")	
		{
			var currentNode = staffList.childNodes[i];		
						
			for (j = 0; j < currentNode.childNodes.length; j++)
			{
				if (currentNode.childNodes[j].tagName == "a")
				{
					var aTag = currentNode.childNodes[j];
				} 
			}
			if (aTag.id == this.id)
			{
				var correctImageArray = currentNode.getElementsByTagName("img");
				var correctImg = correctImageArray[0].src;
				var whichStaff = i;
				headImg.src = correctImg;
				staffName.src = staffNames[i];
				staffPara.innerHTML = staffBlurbs[i];
			}
		}
	}

	nameTag.style.display = "block";
	nameTag.style.left = linkPosArray[1] - 400 + "px"
	nameTag.style.top = linkPosArray[0] - 200 + "px";	
}



function getPopUp()
{
	var theLink = this.href;
	showImagePage(theLink);
	return false;
}

function orderTypePersist() {
		
	var radios = document.getElementById("orderForm").orderType;
			
	if(radios[0].checked == true)
	{
		setCookie("OorQ", "order");	
	} else if (radios[1].checked == true) {
		setCookie("OorQ", "quote");	
	} else {
		setCookie("OorQ", "order");	
	}
	
	var orderTypeCookie = getCookie("OorQ");
}

function placeOrderClicked()	{
	var placeOrderLnk = document.getElementById("placeOrderTab");
	var placeOrderLI = placeOrderLnk.parentNode;
	var requestQuoteLnk = document.getElementById("requestQuoteTab");
	var requestQuoteLI = requestQuoteLnk.parentNode;
	var betweenTabLI = document.getElementById("tabCorner");
	var betweenTabImg = betweenTabLI.firstChild;
	var rightSideTabLI = document.getElementById("rightTabEdgeLG");
	var rightSideTabImg = rightSideTabLI.firstChild;
	
	while (rightSideTabImg.nodeType != 1)
	{
		rightSideTabImg = rightSideTabImg.nextSibling;
	}
	
	var orderForm = document.getElementById("orderForm");
	
	document.getElementById("orderPriceSection").style.display = "block";     // ---------------   make the price section visible
	
	document.orderForm.orderType[0].checked = true;    // change the toggle to order. 
	requestQuoteLI.setAttribute("id", "notSelectedTabQ");   // flip the links
	placeOrderLI.setAttribute("id", "selectedTabO");
	betweenTabImg.src = "../tabsMiddleOrderSelected.gif"; // flip the images
	rightSideTabImg.src = "../smRightCorner.gif";
	rightSideTabLI.setAttribute("id", "rightTabEdgeSM");
	orderForm.style.backgroundImage = "url(../topFadeBlue.jpg)";
}

function requestQuoteClicked()	{
	var placeOrderLnk = document.getElementById("placeOrderTab");
	var placeOrderLI = placeOrderLnk.parentNode;
	var requestQuoteLnk = document.getElementById("requestQuoteTab");
	var requestQuoteLI = requestQuoteLnk.parentNode;
	var betweenTabLI = document.getElementById("tabCorner");
	var betweenTabImg = betweenTabLI.firstChild;
	var rightSideTabLI = document.getElementById("rightTabEdgeSM");
	var rightSideTabImg = rightSideTabLI.firstChild;
	
	while (rightSideTabImg.nodeType != 1)
	{
		rightSideTabImg = rightSideTabImg.nextSibling;
	}
	
	var orderForm = document.getElementById("orderForm");

	document.getElementById("orderPriceSection").style.display = "none";     // ---------------   make the price section invisible
	
	document.orderForm.orderType[1].checked = true;   // -------------------  change the toggle quote
	requestQuoteLI.setAttribute("id", "selectedTabQ");   // flip the links
	placeOrderLI.setAttribute("id", "notSelectedTabO");
	betweenTabImg.src = "../tabsMiddleQuoteSelected.gif"; // flip the images
	rightSideTabImg.src = "../lgRightCorner.gif";
	rightSideTabLI.setAttribute("id", "rightTabEdgeLG");
	orderForm.style.backgroundImage = "url(../topFadeTan.jpg)";	
}

function get_rand()
{
	var random_number = Math.floor(Math.random()*16);
	return random_number;
}

function pull_testimonial()
{

	var whichTesti=get_rand();	

	var testi_array = new Array();
	  
	testi_array[0] = "You guys are absolutely amazing!  Your work is impressive and your service is wonderful.  Thank you, you're a life saver...<br /><br />Many thanks,<br /><br />Charles";
	  
	testi_array[1] = "I had to share what an awesome job Cory Dean with Artwork Source.com did for me! Not only did he stay AFTER hours to fix some artwork for me...he went back into the office on the 4th of July (when the office was CLOSED) and got the artwork back to me ready to print! I have a job of 585 t-shirts (three color front/two color back) to have ready by tomorrow, and THANKS to Cory Dean....I will MAKE the deadline!<br /><br />Juanita Moore<br /><br />Moore Custom Printing";
	testi_array[2] = "Thank you for the outstanding Service your company provides to the Awards industry. I am new to the Laser Engraving Business, and learning all of the ins and outs take time. Your company has been a great asset. The Art work that you have done for my company, AmericanLife Engraving is superb. The turnaround time is unbelieavable. I'm glad that your company is in the business of supporting the Laser Engraving, and Graphics business.<br /><br />Thanks Again,<br /><br />John @ AmericanLife Engraving";
	  
	testi_array[3] = "I have been very impressed with your service and quality. The last job using your new website went very smoothly and was simple to use. Keep up the good work. I look forward to doing more business with you in the near future.<br /><br />Sincerely,<br /><br />Ross L. McCray<br /><br />Desert Sun Engraving";
	  
	testi_array[4] = "Thanks for the great service and quick turn around. The quality has been superb.<br /><br />Thank you,<br /><br />Jake Hill<br /><br />Tustin Awards, Inc";
	  
	testi_array[5] = "You did a terrific job for us. You did it really fast, accurate and at a very fair price.<br /><br />It was great to work with you.<br /><br />F and K Concepts Inc.";
	  
	testi_array[6] = "I LOVE Artworksource.com. If anything is going to go wrong with my orders, it is usually due to bad art! I can get art in the right format -- fast, reliable and inexpensive! I pass the cost onto my customers or offer it as a bonus. Most people have NO idea what makes good art and they just don't want to deal with it!! Artwork source makes me and my business look GREAT!<br /><br />Lesley Sattin<br /><br />Monkey Joe Speak<br /><br />PROMOTIONAL IDEAS, ADVERTISING SPECIALTIES & IMPRINTED APPAREL";
	  
	testi_array[7] = "I just want to thank you and your wonderful company for the excellent service I have received with my digitizing needs. Your service is always friendly and quick. The design I throw at you are always complete in 24 hours, no matter the time of year, and are tested for runability which is excellent. I have not had thread breaks because of your work ever.</br /></br />Thank you again for your great customer service and excellent workmanship. I look forward to working with you on many projects.<br /><br />Jina Saleh<br /><br />Jina's Sew Simple Embroidery";
	  
	testi_array[8] = "I'm no computer dummy but I still shake my head and wonder how you do it.<br /><br />Simply Amazing. Thanks!<br /><br />Adam";
	  
	testi_array[9] = "This Eileen of Port of Prints, Inc. and I must say you guys are the bomb. Lili called me within 2 hours of my email and helped me with my problem. She was instrumental in getting our artwork in on time so that I could screen print my clients shirts order to have them ready for Saturday, July 1st. Lili is fabulous, she is a keeper. I will forever sing your praises to all at Press a Print and anyone else who may need your expertise.<br /><br />Eileen Caravello";
	testi_array[10] = "I love you guys!<br /><br />You have allowed me totally get rid of all my local so called artists who may or may not do something, right at that, and have no concept of a deadline.  Although I am a great artists, just have no time.<br /><br />I am trying the digitizing end of things more and more and hope to cut loose my digitzers too.  I’m good at that too.  Guess that&#39;s why I can really appreciate what your folks do.<br /><br />Thanks for the great work!<br /><br />Terry Truett<br /><br />Xpressions imprinted sportswear";

	testi_array[11] = "This is a brief note to let you know that you employ some of the most customer focused staff I have ever dealt with.  Every time I have had a problem or question I was treated with the utmost courtesy and professionalism.  This is something that keeps me referring your business to all my business associates when the need for getting artwork either vectored or digitized arises.  There is NEVER a moments hesitation in referring to you, as I know that the quality of your work and your employees is unparalleled.  Thank you for providing these services and making my job that much easier!!<br /><br />Cathy Lim<br /><br />SEE US 4 PROMOTIONS";

	testi_array[12] = "I love the working relationship we have with you and your people and the quality of work you produce.  Most of all the turnaround!  This has saved us a lot of time and stress.  Will continue to send work your way and recommend you as I network with other distributors in the ad specialty industry.<br /><br />Thanks so much!<br /><br />Sandy McGrew<br /><br />Monarch Advertising Specialties";

	testi_array[13] = "I know it sounds like a broken record and I realize that we have only been using you for a short period of time, however we have been very pleased with the quality and promptness of your service.<br /><br />Highly Recommended<br /><br />Thanks<br /><br />Casey Howard<br /><br />Classic Embroidery & Embossing";
	  
	testi_array[14] = "Can I just tell you that you guys are awesome there.  I can't believe what a great job you do.  You can take the most primitive drawing and make it look like a masterpiece.  Thank you for all you do!!<br /><br />Dolores Settle<br /><br />Owner<br /><br />Can Do Specialty Printing";
	  
	testi_array[15] = "I WOULD LIKE TO THANK YOU FOR  YOUR PROMPT SERVICE AND RELIABILITY TO COME THRU WITH ALL THE VECTORIZING AND  DIGITIZING THAT  YOU  HAVE DONE SO FAR.  YOUR COMPANY OWNER AND YOUR EMPLOYEES SHOULD BE COMMENDED FOR  DOING  SUCH  AN OUTSTANDING JOB EACH AND EVERY TIME I NEED SOMETHING DONE. ONCE AGAIN, THANK VERY MUCH.<br /><br />HERIBERTO LOPEZ, OWNER<br /><br />HDL ENTEPRISES";
	  
	testi_array[16] = "Artwork Source is one of the best kept secrets under the sun. You guys and gals are fabulous. Your work is phenomenal. You normally get the artwork exactly as I had envisioned it. In the rare instance that it is slightly off what I was looking for, you bend over backwards to get the artwork just as we need it. Thanks. I tell everyone I know, that may need your services about Artwork Source. Maybe I need to purchase stock in your company so I can retire early!!!<br />You have my business permanently.<br /><br />Dale Groves Just About Ink Promotional Products, LLC.";

	var theTestimonial = testi_array[whichTesti];

	return theTestimonial;
}

var imageWindow;

function showImagePage(imgPageUrl)

{
	imageWindow = window.open(imgPageUrl, "imagePage", "width=500,height=500,resizable=no,status=yes,menubar=no,location=no,scrollbars=no");
	imageWindow.focus();
	return false;
}

// create a div that will obscure the upload pages after the submit btn's been pushed. 

function obscureMe()	{
	if (!document.createElement) return false;
	if (!document.getElementById) return false;
	
	var obscuringDiv = document.createElement("div");
	var theBody = document.getElementsByTagName('body')[0];
	var docHeight = document.body.offsetHeight;
	
	var arrowAd = document.getElementById("arrowLink").cloneNode(false);
	var arrowAdImg = document.getElementById("arrowAd").cloneNode(false);
	arrowAd.removeAttribute("id");	
	arrowAd.setAttribute("id", "obscuringAd");

	obscuringDiv.setAttribute("id", "submitObscuringDiv");
	obscuringDiv.style.height = docHeight;
		
	insertAfter(theBody, obscuringDiv, theBody.childNodes[0]);
			
	var pleaseWaitMessageDiv = document.createElement("div");
	var pleaseWaitMessageHead = document.createElement("h1");
	var pleaseWaitMessageP = document.createElement("p");
	var pleaseWaitMessageP2 = document.createElement("p");

	var pleaseWaitMessageHeadText = "PLEASE STAND BY...YOUR ORDER IS BEING SENT.";
	var pleaseWaitMessagePText = "DO NOT CLOSE this page or click the BACK button until you are taken to the Order Confirmation page where you will receive an order number. Please call us if you do not receive an order number for this order.";
	var pleaseWaitMessagePText2 = "While you're waiting check out our partner Arrow Emblems. The fastest source on the planet for Pins, Medals, Patches, Silicone Bracelets, and Lanyards. Click on the image below. It will open in a new window and not affect your upload.";
	var messageHeadingNode = document.createTextNode(pleaseWaitMessageHeadText);
	var messageTextNode = document.createTextNode(pleaseWaitMessagePText);
	var messageTextNode2 = document.createTextNode(pleaseWaitMessagePText2);	
	var leftMarginWidth = document.body.offsetWidth/2 - 300;
	

	pleaseWaitMessageHead.appendChild(messageHeadingNode);
	pleaseWaitMessageP.appendChild(messageTextNode);
	pleaseWaitMessageP2.appendChild(messageTextNode2);	
	pleaseWaitMessageDiv.appendChild(pleaseWaitMessageHead);
	pleaseWaitMessageDiv.appendChild(pleaseWaitMessageP);
	pleaseWaitMessageDiv.appendChild(pleaseWaitMessageP2);
	pleaseWaitMessageDiv.appendChild(arrowAd);
	arrowAd.appendChild(arrowAdImg);
	pleaseWaitMessageDiv.setAttribute("id", "pleaseWaitBlurb");
	pleaseWaitMessageDiv.style.marginLeft = leftMarginWidth + "px";
	
	insertAfter(theBody, pleaseWaitMessageDiv, document.getElementById("submitObscuringDiv"));
		
	arrowAd.style.marginLeft = (600 - 427)/2 + "px";
}

function insertAfter(parent, node, referenceNode) {
	
	parent.insertBefore(node, referenceNode.nextSibling);		
}

function showAnswer() {

	var orderForm = document.getElementById("orderForm");


/*	if (navigator.userAgent.indexOf("Opera") != -1)
	{
		var answerWindow = window.open(this.href, "answerPage", "width=500,height=500,resizable=no,status=yes,menubar=no,location=no,scrollbars=no");
		answerWindow.onclick = window.close;
		return false;
	}	*/
		
	if (document.getElementById("answerBox"))
	{
		removeAnswer()
	}							
	
	var it = this.id;

	var theAnswer = answerList(it);
	
	var answerContainer = document.createElement("div");
	var answerP = document.createElement("p");
	var answerCloseP = document.createElement("p");
	var answerImg = document.createElement("img");
	var answerString = document.createTextNode(theAnswer); 
	var closeTxt = "click to close";
	var closeTxtString = document.createTextNode(closeTxt);
		
	answerP.appendChild(answerString);
	answerContainer.appendChild(answerP);
	answerCloseP.appendChild(closeTxtString);
	answerContainer.appendChild(answerCloseP);
	answerContainer.appendChild(answerImg);
	
	answerImg.setAttribute("src", "answerCorner.gif"); 
	answerImg.setAttribute("id", "answerPoint"); 
	answerP.setAttribute("id", "answerP");
	answerContainer.setAttribute("id", "answerBox");
	
	orderForm.insertBefore(answerContainer, orderForm.firstChild);
	
	var positions = getPositions(this.id);
		
	var referrerWidth = this.offsetWidth;
	var referrerHeight = this.offsetHeight;
		
	var answerWidth = answerContainer.offsetWidth;
	var answerHeight = answerContainer.offsetHeight;
	
	if (navigator.userAgent.indexOf("Gecko") != -1)
	{	
		var answerTop = positions[0] - answerHeight - referrerHeight - 20;
	} else {
		var answerTop = positions[0] - answerHeight;
	}
	
	var answerLeft = positions[1] - 300 + 20 + (referrerWidth/2);

	if (answerTop < 0) {
		var answerImgTop = document.createElement("img");
		
		answerTop = positions[0] + referrerHeight;
		answerImgTop.setAttribute("src", "answerCornerTop.gif");
		
		answerContainer.removeChild(answerImg);
				
		answerContainer.insertBefore(answerImgTop, answerP);
	}
		
	if (answerLeft < 0) {answerLeft = 0;}
	
	answerContainer.style.top = answerTop + "px";
	
	answerContainer.style.left = answerLeft + "px";
			
	answerContainer.onclick = removeAnswer;
									
	return false;
}

function answerList(answerItem) {	
	
	var answerListArray = new Array();
	
	answerListArray[0] = new Array("userId", "To send art to us for vector and digitizing you need a User ID and a password. If you do not have one yet click on the NEW USER link on the left of the page and set up an account. If you have forgotten your User ID or password click the link next to the password field and you will be taken to a place where you can have them emailed to the email address we have on file for you. If you have trouble with this please call 1-253-284-0733 and we will assist you.");
	
	answerListArray[1] = new Array("pw", "To send art to us for vector and digitizing you need a User ID and a password. If you do not have one yet click on the NEW USER link on the left of the page and set up an account. If you have forgotten your User ID or password click the link next to the password field and you will be taken to a place where you can have them emailed to the email address we have on file for you. If you have trouble with this please call 1-253-284-0733 and we will assist you.");
	
	answerListArray[2] = new Array("po", "We recommend you put a purchase order number or reference of some kind into your order so you can easily identify it on your monthly statement. It can be anything you want from a set of numbers to fit an internal billing system to the name of your customer to a word or phrase that easily identifies the art. This field is not mandatory.");
	
	answerListArray[3] = new Array("fileTypeV", "When ordering art make sure you select the proper file type. If you are sending it to a manufacturer be sure to find out what filetype and version you need. Older programs do not open files created in newer versions. When in doubt choose EPS. This is the most common format. ");
	
	answerListArray[4] = new Array("colorScheme", "Black and White is a 1 color image. Black and White with halftones is a grey scale 1 color image. The greys can be translated into dots called halftones that the printer can use to create gradients or lighter shades using only the one color. Spot colors are colors where each color will print separately and be on its own screen. Most screenprinting is done with spot colors. Spot Colors with Halftones is where lighter tints of a color can be made on the same screen as the original. Also spot colors can be combined this way. For instance, if you want to make a 3 color logo with red, yellow, and orange you can create it as 2 colors with halftones creating the orange. The red and the yellow screen will be combined to make the halftones. CMYK is when any color is created by mixing 4 colors. Cyan (blue-green), Magenta, Yellow, and Black. This is used for digital printing, direct to garment printers and 4 color process screenprinting.");
	
	answerListArray[5] = new Array("cleaning", "Minimum Cleaning: if your job has elements that you think we may change (lines that you need to stay crooked, a 'hand drawn look,' etc...) but shouldn't, choose this option. Medium Cleaning: Most jobs require medium cleaning. We will make your art look clean and good. Maximum Cleaning: If you want to give us a great deal of artistic liberty when cleaning your art choose this. If the art is really bad or hand drawn and you want us to use our judgement and make your art look better/more professional, for instance typeset handdrawn fonts and straighten all the pencil lines, chose this option.");
	
	answerListArray[6] = new Array("use", "Different processes need slightly different types of vector art. Chose the process you will be using the art for. If 'other' please tell us what you're going to use it for in the notes field below. If you are using it for more than one thing chose the process that has the most strict guidelines. For example, if you're using the art for silkscreen printing and vinyl cutting choose vinyl cutting because art that is made for vinyl cutting can be use for silk screen printing as well but not vice versa.");
	
	answerListArray[7] = new Array("price", "Most of our jobs are $15 for up to 2 hours worth of work. If you need a layout change we ask that you choose $20. If your job is incredibly complicated or has more than one logo we will email you with a quote before proceeding. If you want to make sure of the price before you submit the art feel free to email us with a quote request. Please do not send quote requests through the website. ");
	
	answerListArray[8] = new Array("notes", "Use this space to enter information you think would help us process your job. Please be clear and concise.");
	
	answerListArray[9] = new Array("rush", "Our normal turn around time is 24 hours. Usually much less. If you need it quicker than our normal turn around time click this button. There is no charge for this service but use it sparingly. The more jobs that are marked rush, the longer it will take for you to get your art that one time when you need it really fast. ");
	
	answerListArray[10] = new Array("seps", "We can separate your art for silkscreen printing if you need. Most silk screen printers do not need this service, they would rather separate it themselves. Some, however want their art to come already separated. If this is the case check this box.");
	
	answerListArray[11] = new Array("coupon", "If you were given a coupon code enter it in this box. We give them out occasionally at promotions and shows. Limit one per customer.");
	
	answerListArray[12] = new Array("fileTypeD", "Digitizing file types are specific to the company that makes the embroidery machine or digitizing program the file will be used with. Most of the digitizing file types can't be easily edited or resized. If you or your embroiderer have the Wilcom program you can chose an EMB file that can be edited. If you have Pulse you can request PXF files which are also editable. The extent to which the file can be edited depends on the level of the program. Some only allow resizing or color changing and some allow major tweaking of the design. If you or your embroiderer don't have either of these programs you will need to request the file type that corresponds with the embroidery machine that's being used. Tajimas dst works for most shops.");
	
	answerListArray[13] = new Array("fabType", "Files have to be created differently for the different types of fabric they'll be sewn on. For example a file that was made to sew on a twill dress shirt would have to be a lot thicker and have much more underlay if it were to be sewn on a fleece vest instead. We offer an assortment of fabric types for you to choose from. If the type of fabric you're going to sew your logo onto is not on the list please choose the closest fabric. We limit the list because we create a sew out for you on the fabric you select. Also, if you want to use the file on more than one fabric type you may need to have it re-digitized if the fabric types are very different from one another.");
	
	answerListArray[14] = new Array("garType", "Hats have to be sewn somewhat differently from flat items in order for there to be good registration (for the different lines and shapes to line up with one another). They have to be sewn from the center out and shapes that are closer together are generally sewn together. Choosing Flats and Caps will give you a file that's usable for both. If your file is larger than 2.5 inches tall and you need it for a cap choose 'Flats and Caps' instead of just 'Caps.' Do to the high number of revisions requested we will shrink down taller sizes for Cap requests to 2.5 inches, which is about the maximum size allowed on 95% of the hats that are embroidered on. ");
	
	answerListArray[15] = new Array("detailLvl", "There is always a balance between detail and stitchcount. With maximum detail we will focus much more on getting as much detail as is possible regardless of the stitchcount. Low detail is the opposite, we will try to keep the stitchcount down as low as possible while still providing a good looking design. Normal detail is in between. We will get a good amount of detail but work to keep the stitchcount down to a reasonable amount. If you have a specific stitchcount you need to keep the job under please put it in the Maximum Stitchcount section in the advanced fields. ");

	answerListArray[16] = new Array("dimension", "Unlike vector art, digitizing files cannot be resized more than about 10 or so percent before it needs to be substantially reworked or even redone from scratch. We ask that you give us either the height or the width of the image (take care to choose the right one) and we will size the other dimension proportionally. Note that this will be the size of the whole layout unless you specify otherwise. So if you upload a logo to us and request that we typeset text with it also this size will be the size of the logo and the text, not just the logo.");

	answerListArray[17] = new Array("priceDg", "Most logos fall into our $30 price range. This price is good up to 20k stitches. Our full back price, 40k +, is $99. Anything outside these two ranges will be quoted before we proceed. If you want to make sure of the price before you submit the art feel free to email us with a quote request. Please do not send quote requests through the website. ");

	answerListArray[18] = new Array("maxStitch", "If you have a maximum number of stitches you are trying to keep your job under put that number in this field. If we cannot do the job at this number of stitches or below and make it look good we will contact you and discuss the situation.");

	answerListArray[19] = new Array("connectors", "Connectors are the small threads that go between the different shapes in your design. By default we cut all connectors that are longer than 3mm. If you or your embroiderer wants to hand trim your embroidery choose Don't cut any connecting threads. If you want all connecting threads cut and don't mind that this will slow the sewing, choose Cut all connecting threads. ");

	
	for (i = 0; i < answerListArray.length; i++)
	{
		if (answerListArray[i][0] == answerItem)
		{
			return answerListArray[i][1];
		}
	}
}

function removeAnswer() {
	var theAnswerBox = document.getElementById("answerBox");
	var answerParent = theAnswerBox.parentNode;
	answerParent.removeChild(theAnswerBox);	
}

function getPositions(objID) {
	var obj = document.getElementById(objID);
	
	var topValue = obj.offsetTop;
	var leftValue = obj.offsetLeft;
	var currentLocation = obj;
		
	while (currentLocation = currentLocation.offsetParent)
	{
		topValue += currentLocation.offsetTop;
		leftValue += currentLocation.offsetLeft;
	}
	
	var topAndLeft = new Array(topValue, leftValue);
	
	return topAndLeft;
}

function getCookie( name ) {
	var start = document.cookie.indexOf( name + "=" );
	var len = start + name.length + 1;
	if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) {
		return null;
	}
	if ( start == -1 ) return null;
	var end = document.cookie.indexOf( ';', len );
	if ( end == -1 ) end = document.cookie.length;
	return unescape( document.cookie.substring( len, end ) );
}

function setCookie( name, value, expires, path, domain, secure ) {
	var today = new Date();
	today.setTime( today.getTime() );
	if ( expires ) {
		expires = expires * 1000 * 60 * 60 * 24;
	}
	var expires_date = new Date( today.getTime() + (expires) );
	document.cookie = name+'='+escape( value ) +
		( ( expires ) ? ';expires='+expires_date.toGMTString() : '' ) + //expires.toGMTString()
		( ( path ) ? ';path=' + path : '' ) +
		( ( domain ) ? ';domain=' + domain : '' ) +
		( ( secure ) ? ';secure' : '' );
}

function deleteCookie( name, path, domain ) {
	if ( getCookie( name ) ) document.cookie = name + '=' +
			( ( path ) ? ';path=' + path : '') +
			( ( domain ) ? ';domain=' + domain : '' ) +
			';expires=Thu, 01-Jan-1970 00:00:01 GMT';
}
-->
