





	<!--

		//Check Browser Type ****************************************

		var OLDNS = (document.layers) ? 1 : 0;

		var NEWGEN = (document.getelement) ? 1 : 0;

		

		//Preload Images ********************************************

		var imgi1 = new Image;

		imgi1.src = "/assets/images/curlyHairQuiz/i1061_1.jpg"

		var imgi2 = new Image;

		imgi2.src = "/assets/images/curlyHairQuiz/i1162_1.jpg"

		var imgi3 = new Image;

		imgi3.src = "/assets/images/curlyHairQuiz/i1264_1.jpg"

		var imgi4 = new Image;

		imgi4.src = "/assets/images/curlyHairQuiz/i1365_1.jpg"

		var imgi5 = new Image;

		imgi5.src = "/assets/images/curlyHairQuiz/i1466_1.jpg"

		var imgi6 = new Image;

		imgi6.src = "/assets/images/curlyHairQuiz/i1567_1.jpg"

		var imgi7 = new Image;

		imgi7.src = "/assets/images/curlyHairQuiz/i1668_1.jpg"

		var imgi8 = new Image;

		imgi8.src = "/assets/images/curlyHairQuiz/i111769_1.jpg"

		var imgi9 = new Image;

		imgi9.src = "/assets/images/curlyHairQuiz/i2001_1.jpg"

		var imgi10 = new Image;

		imgi10.src = "/assets/images/curlyHairQuiz/i2002_1.jpg"

		var imgi11 = new Image;

		imgi11.src = "/assets/images/curlyHairQuiz/i2003_1.jpg"

		var imgi12 = new Image;

		imgi12.src = "/assets/images/curlyHairQuiz/i2004_1.jpg"

		

		

		

		

		var imgd1 = new Image;

		imgd1.src = "/assets/images/curlyHairQuiz/d1061.jpg"

		var imgd2 = new Image;

		imgd2.src = "/assets/images/curlyHairQuiz/d1162.jpg"

		var imgd3 = new Image;

		imgd3.src = "/assets/images/curlyHairQuiz/d1264.jpg"

		var imgd4 = new Image;

		imgd4.src = "/assets/images/curlyHairQuiz/d1365.jpg"

		var imgd5 = new Image;

		imgd5.src = "/assets/images/curlyHairQuiz/d1466.jpg"

		var imgd6 = new Image;

		imgd6.src = "/assets/images/curlyHairQuiz/d1567.jpg"

		var imgd7 = new Image;

		imgd7.src = "/assets/images/curlyHairQuiz/d1668.jpg"

		var imgd8 = new Image;

		imgd8.src = "/assets/images/curlyHairQuiz/d111769.jpg" 

		

		var imgd9 = new Image;

		imgd9.src = "/assets/images/curlyHairQuiz/d2001.jpg"

		var imgd10 = new Image;

		imgd10.src = "/assets/images/curlyHairQuiz/d2002.jpg"

		var imgd11 = new Image;

		imgd11.src = "/assets/images/curlyHairQuiz/d2003.jpg"

		var imgd12 = new Image;

		imgd12.src = "/assets/images/curlyHairQuiz/d2004.jpg" 

		

		

		

		var prod123

		var prod4

		var prod5

		function ischecked(fld){ 

			for (i=0; i<document.cp[fld].length; i++) {

				if (document.cp[fld][i].checked) {

					return true;

				}

			}

			return false;

		}  



		function handleImages()

		{   			

			var astr; astr = "";

			var q1; q1 = "";

			var q2; q2 = "";

			var q3; q3 = "";

			

			prod123 = "";

			prod4 = "";

			prod5 = "";

			

			if(ischecked("q1")){

				for (i=0; i<document.cp.q1.length; i++) {

					if (document.cp.q1[i].checked)

						q1 = document.cp.q1[i].value;

				}

				//Q2 Cell Color Change

				if(ischecked("q2")){

					for (i=0; i<document.cp.q2.length; i++) {

						if (document.cp.q2[i].checked) {

							q2 = document.cp.q2[i].value;

						}

					}

													

					if(ischecked("q3")){

						for (i=0; i<document.cp.q3.length; i++) {

							if (document.cp.q3[i].checked) {

								q3 = document.cp.q3[i].value;

							}

						}

		

					}

				}

			}

			

			astr = q1.substr(0,1) + q2.substr(0,1) + q3;

			

			switch(astr) {

				case "AD": 

				case "ADM": 

				case "ADN":

				case "ADO":

				  prod123 = "1668|1162|2004|1466|1567";

				break

				case "AE": 

				case "AER": 

				  prod123 = "1769|1567|2004|1466|2002";

				break

				case "AF": 

				case "BP": 

				  prod123 = "1061|2004|1466|1567";

				break

				case "AG":

				case "AH":

				case "BGP": 

				case "AHP":

				case "BJP":

				  prod123 = "1668|1061|2004|1466|1567";

				break

				

				case "AK": 

				  prod123 = "2001";

				break;

				

				case "AJ": 

				  prod123 = "1668|2002|1567";

				break;

				

				case "ADP":

				  prod123 = "1668|1162|2004|1466|1567|1061";

				break;

				

				case "ADQ":

				  prod123 = "1668|1162|2004|1466|1567|2003|1264";

				break;

				

				case "ADR":

				  prod123 = "1668|1162|2004|1466|1567|1769";

				break;

				case "AEM":

				  prod123 = "1769|1567|2004|1466|2002|1668|1162";

				break;

				

				case "AEN":

				case "AEO":

				  prod123 = "1769|1567|2004|1466|2002|1162";

				break;

				

				case "AEP":

				  prod123 = "1769|1567|2004|1466|2002|1061|1162";

				break;

				

				case "AEQ":

				  prod123 = "1769|1567|2004|1466|2002|1264|2003";

				break;

				

				case "AFM":

				  prod123 = "1061|2004|1466|1567|1668|1162";

				break;

				

				case "AFN":

				case "AFO":

				case "AFP":

				  prod123 = "1061|2004|1466|1567|1162";

				break;

				

				case "AFQ":

				  prod123 = "1061|2004|1466|1567|1264|2003";

				break;

				case "AFR":

				  prod123 = "1061|2004|1466|1567|1769";

				break;

				case "AGM":

				case "AGN":

				case "AGO":

				case "AHM":

				case "AHN":

				case "AHO":

				

				  prod123 = "1668|1061|2004|1466|1567|1162";

				break;

				case "AGP":

				case "AHP":

				  prod123 = "1668|1061|2004|1466|1567|1162|1061";

				break;

				case "AGQ":

				case "AHQ":

				  prod123 = "1668|1061|2004|1466|1567|1264|2003";

				break;

				

				case "AGR":

				case "AHR":

				  prod123 = "1668|1061|2004|1466|1567|1769";

				break;



				case "AKM":

				  prod123 = "1668|1162|2004|1466|1567|2001";

				break;

				

				case "AKN":

				case "AKO":

				  prod123 = "1162|2004|1466|1567|2001";

				break;

				

				case "AKP":

				  prod123 = "1061|1162|2004|1466|1567|2001";

				break;

				

				case "AKQ":

				  prod123 = "1264|2003|2004|1466|1567|2001";

				break;

				

				case "AKR":

				  prod123 = "1769|2004|1466|1567|2001";

				break;

				

				case "AJM":

				case "AJN":

				case "AJO":

				  prod123 = "1668|1162|2004|1466|1567|2002";

				break;

				

				case "AJP":

				  prod123 = "1061|1668|1162|2004|1466|1567|2002";

				break;



				case "AJQ":

				  prod123 = "1264|2003|1668|1162|2004|1466|1567|2002";

				break;

				case "AJR":

				  prod123 = "1668|2002|1567|1769|2004|1466";

				break;



				

				//----------Second Combination

				

				

				case "BD": 

				case "BDR":

				  prod123 = "2004|1466|1567|1365|1668|1769|1264";

				break;

				case "BE":

				case "BER":

				  prod123 = "2004|1466|1567|1365|1769|2002";

				break;

				case "BF": 

				  prod123 = "2004|1466|1567|1365|1061";

				break;

				case "BG":

				case "BH": 

				  prod123 = "2004|1466|1567|1365|1668";

				break;

				case "BK": 

				  prod123 = "2004|1466|1567|1365|2001";

				break;

				case "BJ": 

				  prod123 = "2004|1466|1567|1365|1668|2002";

				break;

				

				case "BDM": 

				  prod123 = "2004|1466|1567|1365|1668|1769|1264|1365";

				break;

				case "BDN":

				case "BDO":

				case "BDP":

				  prod123 = "2004|1466|1567|1365|1668|1769|1264|1061|1162";

				break;

				

				case "BDQ": 

				 prod123 = "2004|1466|1567|1365|1668|1769|1264|2003";

				break;



				case "BEM": 

				  prod123 = "2004|1466|1567|1365|1769|2002|1061|1668";

				break;

				case "BEN":

				case "BEO":

				case "BEP":

				  prod123 = "2004|1466|1567|1365|1769|2002|1061|1162";

				break;

				

				case "BEQ": 

				  prod123 = "2004|1466|1567|1365|1769|2002|1264|2003";

				break;

				case "BFM": 

				  prod123 = "2004|1466|1567|1365|1061|1168";

				break;

				case "BFN":

				case "BFO":

				case "BFP":

				  prod123 = "2004|1466|1567|1365|1061|1162";

				break;

				case "BFQ": 

				  prod123 = "2004|1466|1567|1365|1061|1264|2003";

				break;

				case "BFR": 

				  prod123 = "2004|1466|1567|1365|1061|1769";

				break;

				

				case "BGM": 

				case "BHM": 

				  prod123 = "2004|1466|1567|1365|1668|1668";

				break;

				case "BGN": 

				case "BGO": 

				case "BGP": 

				case "BHN": 

				case "BHO": 

				case "BHP": 

				  prod123 = "2004|1466|1567|1365|1668|1162";

				break;

				case "BGQ": 

				case "BHQ": 

				  prod123 = "2004|1466|1567|1365|1668|1264|2003";

				break;

				case "BGR": 

				case "BHR": 

				  prod123 = "2004|1466|1567|1365|1668|1769";

				break;

				case "BKM": 

				  prod123 = "2004|1466|1567|1365|2001|1061|1668";

				break;

				case "BKN":

				case "BKO":

				case "BKP":

				  prod123 = "2004|1466|1567|1365|2001|1061|1162";

				break;

				

				case "BKQ": 

				  prod123 = "2004|1466|1567|1365|2001|1264|2003";

				break;

				case "BKR": 

				  prod123 = "2004|1466|1567|1365|2001|1769";

				break;

				

				case "BJM": 

				  prod123 = "2004|1466|1567|1365|1668|2002|1061";

				break;

				case "BJN":

				case "BJO":

				case "BJP":

				  prod123 = "2004|1466|1567|1365|1668|2002|1162";

				break;

				

				case "BJQ": 

				  prod123 = "2004|1466|1567|1365|1668|2002|1264|2003";

				break;

				case "BJR": 

				  prod123 = "2004|1466|1567|1365|1668|2002|1769";

				break;

				

				//Third Combination 

				

				case "CD": 

				case "CH":

				case "CE":

				case "CDU": 

				case "CHU":

				case "CEU":

				  prod123 = "1365|1466|2004";

				break;

				

				case "CF":

				case "CFU":

				  prod123 = "1365|1466|2004|1668";

				break;

				

				case "CK": 

				  prod123 = "2001|1466|2004";

				break;

				

				case "CDV":

				case "CEV":

				case "CHV":

				  prod123 = "1365|1466|2004|1061";

				break;

				case "CDQ": 

				case "CEQ": 

				case "CHQ": 

				  prod123 = "1365|1466|2004";

				break;

				

				case "CDR": 

				case "CER":

				case "CHR":

				  prod123 = "1365|1466|2004|1769";

				break;

				

				

				case "CFV":

				  prod123 = "1365|1466|2004|1668|1061";

				break;

				

				case "CFR":

				  prod123 = "1365|1466|2004|1668|1769";

				break;

				

				case "CKU":

				   prod123 = "2001|1466|2004|1365";

				break;

				

				case "CKU":

				   prod123 = "2001|1466|2004|1061|2004";

				break;

				

				case "CKR":

				   prod123 = "2001|1466|2004|1769|1365";

				break;

				

				case "CKQ":

				   prod123 = "1769|1466|2004|1365|2001";

				break;

				case "CKV":

				   prod123 = "2001|1466|2004|1061|1365";

				break;

				

				

				

				default:

				  //alert("Invalid Selection!");

				break

			}

			

			

			/*if(astr.indexOf('K')!=-1)

			{

				for(i=0;i<=7;i++)

				document.cp.q3[i].disabled=true;

			}*/

			

			

			//First turn off any product images ****************************//

			var imgSTR

			imgSTR = new String("1061|1162|1264|1365|1466|1567|1668|1769|2001|2002|2003|2004");

			

			var splitIMG

			splitIMG = imgSTR.split("|");

			

			for (i=0; i<splitIMG.length; i++) {

				

				document.images["i" + splitIMG[i]].src = "/assets/images/curlyHairQuiz/i" + splitIMG[i] + "_0.jpg";

			}

			

			//Now turn on the new set of product images ****************************//

			var prodSTR

			prodSTR = new String(prod123 + prod4 + prod5);

			

			if (prodSTR.length > 0){

				var splitPROD

				splitPROD = prodSTR.split("|");

			

				for (i=0; i<splitPROD.length; i++) {

					document.images["i" + splitPROD[i]].src = "/assets/images/curlyHairQuiz/i" + splitPROD[i] + "_1.jpg";

				}

			

				//Finally, sort the product array, join it and assign it to a hidden field

				splitPROD.sort( );

				prodSTR = splitPROD.join("|");

			}

			document.cp.cp_products.value = prodSTR;

		}

		

		function check_q(){

			return true;

			

			var astr; astr = "";

			var q1; q1 = "";

			var q2; q2 = "";

			var q3; q3 = "";

			

			prod123 = "";

			prod4 = "";

			prod5 = "";

			

			if(ischecked("q1")){

				for (i=0; i<document.cp.q1.length; i++) {

					if (document.cp.q1[i].checked) {

					q1 = document.cp.q1[i].value;

					}

				}

				//Enable Q2 Buttons

				for (i=0; i<document.cp.q2.length; i++) {

					document.cp.q2[i].disabled = false;

				}

				//Q2 Cell Color Change

				document.getElementById("TDQ2").style.backgroundColor = "#FFFFFF";

				for (i=1; i<=6; i++) {

					document.getElementById("Q2"+i).style.color = "#572700";

				}

				

				if(ischecked("q2")){

					for (i=0; i<document.cp.q2.length; i++) {

						if (document.cp.q2[i].checked) {

						q2 = document.cp.q2[i].value;

						}

					}

					//Enable Q3 Buttons

					for (i=0; i<document.cp.q3.length; i++) {

						document.cp.q3[i].disabled = false;

					}

										

					//Q3 Cell Color Change

					document.getElementById("TDQ3").style.backgroundColor = "#FFFFFF";

					for (i=0; i<=7; i++) {

						document.getElementById("Q3"+i).style.color = "#572700";

					}

			

					if(ischecked("q3")){

						for (i=0; i<document.cp.q3.length; i++) {

							if (document.cp.q3[i].checked) {

							q3 = document.cp.q3[i].value;

							}

						}

		

					}

				}

			}

			

			astr = q1.substr(0,1) + q2.substr(0,1) + q3;

			



			

			//First turn off any product images ****************************//

			var imgSTR

			imgSTR = new String("1061|1162|1264|1365|1466|1567|1668|1769|2001|2002|2003|2004");

			

			var splitIMG

			splitIMG = imgSTR.split("|");

			

			for (i=0; i<splitIMG.length; i++) {

				document.images["i" + splitIMG[i]].src = "/assets/images/curlyHairQuiz/i" + splitIMG[i] + "_0.jpg";

			}

			

			//Now turn on the new set of product images ****************************//

			var prodSTR

			prodSTR = new String(prod123 + prod4 + prod5);

			

			if (prodSTR.length > 0){

				var splitPROD

				splitPROD = prodSTR.split("|");

			

				for (i=0; i<splitPROD.length; i++) {

					document.images["i" + splitPROD[i]].src = "/assets/images/curlyHairQuiz/i" + splitPROD[i] + "_1.jpg";

				}

			

				//Finally, sort the product array, join it and assign it to a hidden field

				splitPROD.sort( );

				prodSTR = splitPROD.join("|");

			}

			document.cp.cp_products.value = prodSTR;

		}

		

		var passoutTimer = null;

		

		function passover(img,prod,lgswap){

			if(document.images){

				var tmp = document.images['i' + img].src;

				if(tmp.substr(tmp.length - 6,tmp.length) == "_1.jpg"){

					clearTimeout(passoutTimer);

					if(lgswap == 1){

						document.images.pd.src = "/assets/images/curlyHairQuiz/d" + img + ".jpg";

					}	else{

						document.images.pd.src = "/assets/images/curlyHairQuiz/d0000.jpg";

					}

					ShowProdInfo(prod);

				}

			}

		}

		function passout(img,prod,lgswap){

			if(document.images){

				var tmp = document.images['i' + img].src;

				if(tmp.substr(tmp.length - 6,tmp.length) == "_1.jpg"){

					passoutTimer = setTimeout("document.images.pd.src = '/assets/images/curlyHairQuiz/d0000.jpg';ShowProdInfo(0);",1000);

				}

			}

		}

		

		function ShowProdInfo(prod) {

			var pa = new Array();

			pa[0] = "Move your mouse over a highlighted image to view product details";

			pa[1] = "<span style='color:#572700;font-weight:bold;'>Curly Magic</span><br>Curl Stimulator<div class=rtxt10 style='color:#572700;margin-top:5px;'>Flex your supercurl muscle naturally with our aloe-based, firm hold curl enhancing gel. Curls become more defined and manageable with a nourished, brilliant shine. Curly Magic delivers superior results of taming frizz, elongating curls and adding moisture all in one powerful product.</div>";

			pa[2] = "<span style='color:#572700;font-weight:bold;'>Extra Butter</span><br>Brilliant Shine Creme<div class=rtxt10 style='color:#572700;margin-top:5px;'>Working at the carwash is the only reason for waxy buildup! Get residue-free stylability with our pro-shine moisturizer. This smooth, whipped butter fortifies curls with natural shea butter, coconut, and palm kernel oil and no petroleum! Elongates curls, detangles and deeply moisturizes to aid in combability.</div>";

			pa[3] = "<span style='color:#572700;font-weight:bold;'>Glossy</span><br>High-Gloss Shine Mist<div class=rtxt10 style='color:#572700;margin-top:5px;'>Unleash your supernatural power to combat dull, dry curls with our hydrating Finishing Shine Mist. Unmatched frizz fighter that provides a visible shine to kinky and curly textured hair. Light weight nourishing oils of safflower, jojoba and coconut strengthen and protect hair, leaving it soft and bouncy with a brilliant high-gloss finish.</div>";

			pa[4] = "<span style='color:#572700;font-weight:bold;'>Good Hair</span><br>Conditioning Styling Creme<div class=rtxt10 style='color:#572700;margin-top:5px;'>Good Hair Leave-in Conditioning Styling Creme is our soft-hold formula that will instantly detangle, provide moisture, defrizz and add shine to your hair. Your curls will have definition, softness, shine and texture that will last the entire day. Formulated to help you cherish what your creator created. Celebrate the good in your natural hair!</div>";

			pa[5] = "<span style='color:#572700;font-weight:bold;'>Rich &amp; Funky</span><br>Moisturizing Cleanser<div class=rtxt10 style='color:#572700;margin-top:5px;'>All pause when you walk into the room with supple curls cleansed by our Rich and Funky Moisturizing Cleanser. A 'truly' sulfate-free, foamy cleanser that delivers loads of moisture and detangling effects. Long-lasting, concentrated formula with a clean, fresh natural scent.</div>";

			pa[6] = "<span style='color:#572700;font-weight:bold;'>Richee Rich</span><br>Moisturizing Conditioner <div class=rtxt10 style='color:#572700;margin-top:5px;'>Mama nature says have it all and a dose of avocado oil with our creamy conditioner. This is the most luxurious conditioner on the market for textured hair and the price doesn't punch you in the pocketbook. Creamy, pliable formula spreads well and a little goes a long way.</div>";

			pa[7] = "<span style='color:#572700;font-weight:bold;'>Supercurl</span><br>Miracle Moisture Creme<div class=rtxt10 style='color:#572700;margin-top:5px;'>Dry curls have no fear, extra moisturizing Supercurl is here. This creamy hydrator has dual-power abilities to stretch out and detangle curls in very kinky, tight textures, yet define curls in medium to loose curly textures.</div>";

			pa[8] = "<span style='color:#572700;font-weight:bold;'>Thirsty Curls</span><br>Leave-in Curl Revitalizer<div class=rtxt10 style='color:#572700;margin-top:5px;'>Dry curls have no fear, extra moisturizing Supercurl is here. This creamy hydrator has dual-power abilities to stretch out and detangle curls in very kinky, tight textures, yet define curls in medium to loose curly textures.</div>";

			pa[9] = "<span style='color:#572700;font-weight:bold;'>Defunk </span><br>Hair Refresher Tonic<div class=rtxt10 style='color:#572700;margin-top:5px;'>Defunk herbal hair and scalp cleanser is loaded with plant extracts.  It cleanses and soothes itchy scalp, neutralizes odor and stimulates hair growth.</div>";

			pa[10] = "<span style='color:#572700;font-weight:bold;'>Midnite train</span><br>Leave-In Conditioner <div class=rtxt10 style='color:#572700;margin-top:5px;'>Your tresses will be \"leavin on the Midnite Train\" to gorgeous with our Hydrating Leave-in Conditioner.  Strengthens dry, brittle strands providing easier combout, softness and conditioning.</div>";

			

			pa[11] = "<span style='color:#572700;font-weight:bold;'>Shining Star </span><br>Hair and Scalp Elixir<div class=rtxt10 style='color:#572700;margin-top:5px;'>Satisfies your nostalgic desire to Grease your scalp, but it's so much better for your hair.  New school hair dressing with natural oils of Jojoba and Soybean gives hair real moisture and shine without greasy buildup.</div>";

			pa[12] = "<span style='color:#572700;font-weight:bold;'>Squeaky</span><br>Deep Cleansing Shampoo<div class=rtxt10 style='color:#572700;margin-top:5px;'>\"If it feels this good getting use, oh, you just keep on using me, until you use me up -- Bill Withers\".  Squeaky's infusion of stimulating Tea Tree and Menthol soothes dry, itchy scalp while Willow Bark and Kelp promote hair growth, deodorizes and combats dandruff.</div>";

			var thisprod = pa[prod];

			if (OLDNS) {

				with (document.prodinfo.document) {

				open();

				write(thisprod);

				close();

		    }

			} else {

				document.getElementById("prodinfo").innerHTML = thisprod;

			}

		}

		

		function ValidateForm(){ 

			var q1v = false;

			var q2v = false;

			var q3v = false;

			var errv = "Please answer the following questions:\r";

			

			for (i=0; i<document.cp.q1.length; i++) {

				if (document.cp.q1[i].checked) {

					q1v = true;

				}

			}

			for (i=0; i<document.cp.q2.length; i++) {

				if (document.cp.q2[i].checked) {

					q2v = true;

				}

			}

			for (i=0; i<document.cp.q3.length; i++) {

				if (document.cp.q3[i].checked) {

					q3v = true;

				}

			}

			if (!q1v){errv = errv + "- Question 1\r";}

			if (!q2v){errv = errv + "- Question 2\r";}

			if (!q3v){errv = errv + "- Question 3\r";}

			

			if (errv != "Please answer the following questions:\r"){alert(errv);return false}else{return true;}

		}

		 

		$(document).ready(function() {  

		var q1s = $("input[name='q1']");

		var q2s = $("input[name='q2']");

		var q3s = $("input[name='q3']");

		

		$(q1s).click(function(e) {

			var myindex = $(q1s).index(this);

			

			$('#TDQ3').css('background-color', '#e9e2dd'); 

			$('.q3').css('background-color', '#e9e2dd'); 

			$("input[name='q3']").attr('disabled', true).css('background-color', '#e9e2dd').parent().next().css('background-color', '#e9e2dd').css('color', '#8f6f55');

			$(q2s).attr('checked', false);

			$(q3s).attr('checked', false);

			

			

			if(myindex == 0 || myindex == 1)

			{

				$('#TDQ2').css('background-color', '#FFFFFF');

				$(q2s).attr('disabled', false).each(function() {

					$(this).parent().next().css('color', '#572700');

				});

			}

			else

			{

				$('#TDQ2').css('background-color', '#FFFFFF');

				$(q2s).each(function() {

					if($(q2s).index(this) < 4 || $(q2s).index(this)==6)

						$(this).attr('disabled', false).parent().next().css('color', '#572700');

					else 

						$(this).attr('disabled', true).parent().next().css('color', '#8f6f55');

				});

			}

			

			handleImages();

			return true;

		});

		

		$(q2s).click(function(e) { 

			$('#TDQ3').css('background-color', '#FFFFFF');

			$('.q3').css('background-color', '#FFFFFF'); 

			if($('#qq11').attr('checked') || $('#qq12').attr('checked'))

			{ 

				$(q3s).each(function() {

					if($(q3s).index(this) < 6) {

						$(this).attr('disabled', false)

						.parent().next().css('color', '#572700');

					}

				});

			}

			else

			{ 

				$(q3s).each(function() {

					if($(q3s).index(this) > 3) {

						$(this).attr('disabled', false)

						.parent().next().css('color', '#572700');

					}

				});

			}

			handleImages();

			return true;

		}); 



		$(q3s).click(function(e) {

			handleImages();

		});

});

		// -->


$(document).ready(
  function() {

$.ajax({
url:"/assets/testinfo.php",
type:"post",
success:function(msgs)
{
	$(".basket span").html(msgs+" item");
	//alert(msgs);
}
	   });
 });
