/*************************************************
	SC CLICK TO ENLARGE
*************************************************/

try {SC.addVersion("002\x39","\x33\x2e5.00\x30","\103\x6ci\x63k To \x45nlarg\x65"); }catch (o0){} ; function O0( ){var l0=window,i0=document,I0= true ,o1= false ,O1=this,l1="div",i1="a",I1="\x69\x6dg",o2="\x62\x6c\157\x63k",O2="no\x6ee",l2="\x73ho\x77",i2="hre\x66",I2,o3,O3; function scPreviewInsets( ){var l3=SC.$("scImg\x42ox-\x69nsetP\x72eview"),i3=SC.getByTag(I1,l3); if (arguments.length>0){for (var i=0; i<i3.length; i++){if (i==arguments[0])SC.showHide(i3[i],o2); else SC.showHide(i3[i],O2); }I3(l3,o2,0,0); }else {SC.showHide(l3,O2); }}function o4( ){SC.showHide(o3,O2); SC.showHide(I2,O2);SC.ie6selectFix(l2); } this.scImgEnlargeInit= function ( ){SC.scSetFuncs(O1); if (SC.$("scP\x61\x67e-ins\x65ts") || SC.$("\x73cM\x61inImage") || scMultiMain){O4( ); I2=SC.$("scI\x6dgBo\x78"); o3=SC.$("scWrapp\x65r"); O3=SC.$("scMain\x49mg\x49d"); }l0.onload= function ( ){var l4=SC.$("\x73\x63Page-\x69nsets");if (l4){var i4=l4.innerHTML.match(/(\x6f\x6e\x6d\x6f\x75\x73\x65\x6f\x76\x65\x72\x3d\x22\x73\x63\x43\x6c\x69\x63\x6b\x54\x6f\x45\x6e\x6c\x61\x72\x67\x65.\x73\x63\x53\x77\x61\x70\x49\x6d\x67\x28\x27)(.*?)(?=\x27\x2c)/g),I4=SC.getByTag(i1,l4); for (var i=0; i<I4.length; i++){try {if (i4 && i4.length>0){o5=i4[i].replace(/(\x6f\x6e\x6d\x6f\x75\x73\x65\x6f\x76\x65\x72\x3d\x22\x73\x63\x43\x6c\x69\x63\x6b\x54\x6f\x45\x6e\x6c\x61\x72\x67\x65.\x73\x63\x53\x77\x61\x70\x49\x6d\x67\x28\x27)/,""); SC.preLoadImg(o5); }SC.preLoadImg(I4[i].href); }catch (e){}}}};};function I3(O5,display,l5,i5,top,left){O5.style.top=(top)?top:O5.style.top; O5.style.left=(left)?left:O5.style.left; O5.style.height=(i5==0)?"\x61\x75to":i5; O5.style.width=(l5==0)?"\x61\x75to":l5; SC.showHide(O5,display); } this.scWinResize= function ( ){if (SC.$("scPa\x67e-i\x6esets") || SC.$("\x73\x63MainI\x6dage") || scMultiMain){if (I2.style.display==o2){var I5=SC.getByTag(I1,I2),o6=(SC.$("scImgT\x69tl\x65"))?SC.$("scIm\x67Tit\x6ce").firstChild.O6: "",l6=SC.createElement(i1,i2,I5[0].src,"\x74\x69tle",o6); scShowImg(l6,I5[0].height,I5[0].width);}}};function O4( ){var i6=SC.$("\x73\x63Page-i\x6esets"),I6=SC.$("scI\x6dgOv\x65rall"),o7=SC.genElem(l1, {id: "s\x63Img\x42\157\x78" } ),O7=SC.genElem(l1, {className: "\x72\x65lative\x50os" } ); SC.appElem([SC.genElem(i1, {innerTxt: "x",href: "\x6a\x61vascr\x69pt:vo\x69d(0);",className: "c\x6cos\x65",title: "c\x6cos\x65" } , {click:o4 } ),SC.genElem(l1, {id: "\x73\x63ImgBox-\x6dainIm\x67" } )],O7); SC.appElem(O7,o7); if (i6){var l7=SC.genElem(l1, {className: "a\x62\x73oluteP\x6fs" } ),i7=i6.cloneNode( true); for (var i=0; i<i7.childNodes.length; i++){if (i7.childNodes[i].nodeName!="A")i7.replaceChild(i0.createTextNode(""),i7.childNodes[i]); }SC.setAttr(i7, {id: "scIm\x67Box\x2dinsetP\x72eview" } ); SC.appElem(i7,l7); var I7=i7.cloneNode(I0); SC.setAttr(I7, {id: "\x73c\x49mgBox-i\x6esets" } ); I7.innerHTML=I7.innerHTML.replace(/\x73\x63\x53\x77\x61\x70\x49\x6d\x67/g,"\x73\x63ShowIm\x67"); var o8=SC.getByTag(i1,I7); for (var i=0; i<o8.length; i++){var O8=o8[i]; O8.onmouseover= function ( ){var l8=parseInt(this.firstChild.nodeValue); if (l8!=isNaN)scPreviewInsets(l8-1);} ; O8.onmouseout=scPreviewInsets; for (var j=0; j<O8.childNodes.length; j++)O8.replaceChild(i0.createTextNode(i+1),O8.childNodes[j]); }SC.appElem(SC.genElem(i1, {innerTxt: "\x43\x4cOSE",href: "ja\x76asc\x72ipt:vo\x69d(0);",className: "\x61b\x73\103\x6co\x73e",title: "c\x6cos\x65" } , {click:o4 } ),I7); SC.appElem(l7,O7); SC.appElem(I7,o7); }else {SC.appElem(SC.genElem(i1, {innerTxt: "\x43L\x4fSE",href: "javas\x63rip\x74:void\x280);",className: "\x61bsC\x6cose-no\x49nset",title: "c\x6cos\x65" } , {click:o4 } ),SC.appElem(SC.genElem(l1, {id: "\163\143\x49mgBox\x2dinset\x73" } ),o7)); }SC.addEvt(SC.injElem(l1,I6, {id: "scWrapp\x65r",title: "\x43l\x69ck To C\x6cose" } ),"c\x6cick",o4); SC.appElem(o7,I6); } this.scShowImg= function (O5,i5,l5){i8=(SC.Browser.name === 'ie'); var I8=SC.$("scImgBo\x78-m\x61inImg"); if (I8 && SC.scStCk){var o9=SC.$("\163cImgTit\x6ce"); if (o9)o9.parentNode.removeChild(o9); if (O5.title){var O9=SC.createElement(l1,"\x74xt",O5.title,"id","\x73c\x49mgTitle"); I8.parentNode.insertBefore(O9,I8); o9=SC.$("s\x63Im\x67Title"); o9.style.width=l5+"px"; }var l9=SC.createElement(I1); SC.setAttr(l9, {src:O5.href,width:l5,height:i5 } ); I8.className=""; l9.onload= function ( ){if (this.parentNode)this.parentNode.className="schide\x62g"; };var i9=SC.getByTag(I1,I8); if (i9.length>0){var I9=i9[0]; I8.replaceChild(l9,I9); }else SC.appElem(l9,I8);I3(I2,o2,0,0,"-\x31\x3000\x70x","-10\x30\x30\x70x"); SC.ie6selectFix("\150\x69de"); SC.centerObj(I2,5,o1); SC.showHide(I2,o2); SC.stretchObj(o3); SC.showHide(o3,o2); }else {l0.location.href=O5.href; }};this.scSwapImg= function (imgUrl,i5,oa){if (O3 && SC.scStCk){var Oa=SC.genElem(I1, {src:imgUrl,border: 0 } ),la=SC.$("\x73\x63MainIm\x61ge"); SC.addClass(la,"\163\x63\x49\155\x67Enl\x61rgeLo\x61d\x65r"); O3.src=Oa.src; SC.removeClass(la,"\x73\x63ImgEnla\x72geLoa\x64er"); }};}var scClickToEnlarge=new O0( );


/*************************************************
	SC TABBED DETAILS - NON-JQUERY
*************************************************/

function scTDinit() {
	var unableToTab = true;
	try {
		var tabList =  document.getElementById("sctab");
		var tabHeaders = tabList.getElementsByTagName("li");
		var tabContentsTemp = document.getElementById("sctabinfo").childNodes;
		var tabContents = new Array();
		for(var i=0, len = tabContentsTemp.length; i < len; i++){
			if(tabContentsTemp[i].nodeName == "DIV")
				tabContents.push(tabContentsTemp[i]);
		}
		var totalTabs = tabHeaders.length;
		var currentTab = 0;
		tabHeaders[0].className = "tabhover";
		tabHeaders[0].getElementsByTagName("a")[0].onclick = function () { shTab(0); return false; };
		tabContents[0].style.display = "block";
		for (i = 1; i < totalTabs; i++) {
			tabHeaders[i].className = "tabheader";
			tabHeaders[i].getElementsByTagName("a")[0].onclick = (function(index){ return (function(){ shTab(index); return false; });})(i);
			tabContents[i].style.display = "none";
		}
		unableToTab = false;
	} catch (err) {
		unableToTab = true;
	}
	
	function shTab(showTab){
		if (unableToTab || (showTab > totalTabs) || (showTab == currentTab)) return false;
		tabHeaders[currentTab].className = "tabheader";
		tabContents[currentTab].style.display = "none";
		currentTab = showTab;
		tabHeaders[currentTab].className = "tabhover";
		tabContents[currentTab].style.display = "block";
	}
	this.shTab = shTab;
	
	activateTab = function() {
	try { for (var i = 0, li; li = tabHeaders[i]; i++) if (/Reviews/i.test(li.innerText || li.textContent)) shTab(i); } catch (e) {}
	}
}


/*************************************************
	SC TABBED INFO - JQUERY
*************************************************/

(function($){
	$.fn.tabbedInfo = function(options){
		var defaults = {
			firetab: 0,
			tabbtns: ".tabbtns", // button container
			tabinfo: ".tabinfo", // info container
			tabactive: "tabactive", // active button class
			tabcontactive: "tabcontactive", // active info class
			remotebtns: ".remotetab" // remote button class
		};
		var settings = $.extend({},defaults,options);
		$(".tabbtns").css("display","block");
		/* load product reviews off screen and insert in temporary div */
		if($("#scProductReviews")){
			var newDiv = $(document.createElement("div")).addClass("tabsub").css({"visibility":"hidden", "position":"absolute", "left":"-10000"});
			newDiv.append($("#scProductReviews")).insertAfter(".tabinfomain");
		}
		// find buttons assign click
		$(settings.tabbtns+" a").each(function(i){
						$(this).click(function(e){ 
								processTabs(i); 
								e.preventDefault();
						});
					}
				);
		// product reviews remote
		$("#scReviewsPInfoAvgRating a").click(function(){
			$(settings.tabbtns+" a").each(function(i){
				var revtxt = $(this).text();
				var regex = /reviews/i;
				if(regex.test(revtxt)){  
					processTabs(i);
				}
			});
		});
		
		// setup remote tab access
		$(settings.remotebtns).click(function(e){ processTabs($(this).attr("name")-1); e.preventDefault();});
		$(".tabbtns").click(
							  function(e){
								  
								}
							);
		
		// process buttons & info when clicked
		function processTabs(tabnum){
			$(settings.tabinfo).css("display","none");
			$(settings.tabbtns+" a").removeClass(settings.tabactive).parent().removeClass(settings.tabcontactive);
			$(settings.tabbtns+" a").eq(tabnum).addClass(settings.tabactive).parent().addClass(settings.tabcontactive);
			$(settings.tabinfo).eq(tabnum).fadeIn(300);
			// bring product reviews into the info tab
			var revtxt = $(settings.tabbtns+" a").eq(tabnum).text();
			var regex = /reviews/i;
			if(regex.test(revtxt)){
				newDiv.css({"visibility":"visible", "position":"relative", "left":"0"});
				$(settings.tabinfo).eq(tabnum).append(newDiv);
				$(".scfeaturestatus").fadeOut(400);
			}
		}
		// fire first button
		processTabs(settings.firetab);
		$("#writereview").click(function() {processTabs(this.rel); return false;});
	}
})(jQuery);



/*************************************************
	SC SHIPPING DATE POP
*************************************************/

function scShippingDatePop(mypage,w,h) {
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable'
	window.open(mypage,'scShippingPop',settings);
}	


/*************************************************
	SC SEND TO FRIEND
*************************************************/

try {SC.o0('\x30\x3120','\x32.\x30\056\x3000','Se\x6ed Pag\x65\x20to\x20a Frie\x6ed'); }catch (O0){} ; function scSendToFriend(l0){ this.i0=6; this.I0; this.testEmailer= false; this.o1; this.O1=0; this.l1= false; this.i1=0; this.I1; var o2=this,O2=null,l2=null,i2=null,I2=null,o3=(window.location.href.indexOf('edit.s\x74\x6f\162\x65.yaho\x6f')>-1),O3=SC.getById('scStfF\x6frm'),l3=null,i3=0,I3=null,o4=null,O4=null,l4,i4,I4,o5,O5,l5,i5,I5,o6,O6,l6='h\x74tp:/\x2f\x77w\x77\x2eso\x6cidcact\x75shosti\x6eg.com/\x73cap\x70s'; function i6(html){try {var I6=html.match(/\x3c\x21\x2d\x2d\x73\x74\x66[\s\x2b]\x73\x74\x61\x72\x74((?:.|\x0a|\x0d)*?)\x73\x74\x66[\s\x2b]\x65\x6e\x64\x2d\x2d\x3e/i),o7=window.location.href,O7=o7.substring(0,o7.lastIndexOf('\x2f')); i2=SC.injElem('\x64iv',null, {id: 'scStfA\x6aaxCon\x74ainer',className: 'scStfH\x69dden' } ); i2.innerHTML=I6[0]; SC.centerObj(i2,024); SC.removeClass(i2,'s\x63StfHi\x64\x64en'); SC.remElem(SC.getById('scStfPreL\x6fader')); SC.getById('\x73\x63\123\x74fItemNa\x6de').appendChild(SC.genElem(I4,'i\x73Txt')); SC.getById('scStfF\x6frm')['\x69temId'].value=i4; SC.getById('scStf\x46orm')['\x69t\x65\155\x4eame'].value=I4; SC.getById('s\x63StfFo\x72\x6d')['sto\x72eUrl'].value=O7; if (SC.typeOf(SC.Browser.version)!='un\x64efined' && SC.Browser.version==6){SC.swapClass(SC.getById('\x73c\x53\164\x66CloseX'),'\x73c\x53\x74fCl\x6fseX_Bg','s\x63StfC\x6c\x6fse\x58\137\x42gIeF\x69x'); }SC.ajax( {url: '\x73c-\x73\164\x66-email-\x74emplat\x65.html?\x64\075'+(new Date).getTime( ),cb:l7,fb:function ( ){alert('S\x6frry,\x20\x6fu\x72\040\x73end \x74o frie\x6ed feat\x75\162\x65 is\x20cur\x72ent\x6cy u\x6eava\x69labl\x65...\x20ple\x61se \x72ef\x72esh\x20thi\x73 pa\x67e o\x72 tr\x79 ag\x61in \x6cate\x72. (\x65rr \x63ode\x3a 5\x29'); }} ); var i7='\x73c\x53\x74fNo\x6ee',I7='\x31',o8='\x31'; if (this.testEmailer){i7=''; I7='\x3600'; o8='\x3800'; }SC.addElem('\x69f\x72\x61me',i2, {height:I7,width:o8,frameBorder: '0',className:i7,name: 'scStfIfr\x61me',id: '\x73cStfI\x66\x72am\x65' } ); I6=null; }catch (O0){alert('S\x6frry\x2c\040\x6fur s\x65\x6ed\x20\164\x6f\040\x66riend \x66eat\x75re i\x73 cu\x72ren\x74ly \x65xpe\x72ienc\x69ng \x74ech\x6eic\x61l d\x69ffi\x63ult\x69es.\x2e. p\x6ceas\x65 re\x66res\x68 t\x68is \x70age\x20or \x74ry \x61ga\x69n l\x61ter\x2e (\x65rr \x63od\x65: \x34)'); SC.remElem(SC.getById('\x73c\x53\x74fAj\x61xConta\x69\156\x65r')); SC.remElem(SC.getById('\x73\x63StfOverL\x61y')); SC.remElem(SC.getById('scS\x74fPreL\x6fader')); i2=null; O2=null; I2=null; }}function l7(html,t){try {var O8='\x3chtml\x3e\074\x68ea\x64\076\x3c/head\x3e',l8=html.match(/\x3c\x21\x2d\x2d\x73\x74\x66[\s\x2b]\x73\x74\x61\x72\x74((?:.|\x0a|\x0d)*?)\x73\x74\x66[\s\x2b]\x65\x6e\x64\x2d\x2d\x3e/i),i8='\074body>'+l8[0]+'\074/body>',I8=html.match(/\x3c\x21\x2d\x2d\x74\x65\x6d\x70\x6c\x61\x74\x65(?:.)(\d)/i),o9='\x3c\x2fhtml>',O9='',o7=window.location.href,url=o7.substring(0,o7.lastIndexOf('\x2f')),l9='',i9=0,I9='',oa=0,Oa='',la=html.match(/\x3c\x21\x2d\x2d(\s+)?\x63\x72\x6f\x73\x73(\s+)\x73\x65\x6c\x6c(\s+)\x73\x74\x61\x72\x74(\s+)?\x2d\x2d\x3e((?:.|\x0a|\x0d)*?)\x3c\x21\x2d\x2d(\s+)?\x63\x72\x6f\x73\x73(\s+)\x73\x65\x6c\x6c(\s+)\x65\x6e\x64(\s+)?\x2d\x2d\x3e/i),ia=0,Ia='',ob=0,Ob='',lb=0,ib='',Ib='',oc,Oc,lc='di\x73play:\x6e\x6fne\x3b'; if (o3){O9='h\x74tp://\x65\x64it\x2e\163\x74ore.\x79ahoo.n\x65t'; }oc=i8.match(/\x3c\x21\x2d\x2d\x61\x64\x64\x74\x69\x6f\x6e\x61\x6c[\s\x2b]\x74\x65\x78\x74((?:.|\x0a|\x0d)*?)\x61\x64\x64\x74\x69\x6f\x6e\x61\x6c[\s\x2b]\x74\x65\x78\x74[\s\x2b]\x65\x6e\x64\x2d\x2d\x3e/i); if (oc){i8=i8.replace(oc[0],'@\x41DDI\x54\x49O\x4eAL TEXT\x40'); oc=oc[0].replace(/\x3c(?!\x62\x72|\x2f?\x61|\x2f?\x75\x6c|\x2f?\x6f\x6c|\x2f?\x6c\x69|\x2f?\x64\x6c|\x2f?\x64\x64|\x2f?\x64\x74|\x2f?\x70|\x2f?\x62|\x2f?\x65\x6d|\x2f?\x73\x74\x72\x6f\x6e\x67)((?:.|\x0a|\x0d|\s)*?)\x3e/ig,'\x20'); i8=i8.replace('@ADD\x49TIONA\x4c TEXT@',oc); oc=null; }Oc=i8.match(/\x3c\x21\x2d\x2d\x61\x64\x64\x74\x69\x6f\x6e\x61\x6c[\s\x2b]\x74\x65\x78\x74[\s\x2b]\x66\x6f\x6f\x74\x65\x72((?:.|\x0a|\x0d)*?)\x61\x64\x64\x74\x69\x6f\x6e\x61\x6c[\s\x2b]\x74\x65\x78\x74[\s\x2b]\x66\x6f\x6f\x74\x65\x72[\s\x2b]\x65\x6e\x64\x2d\x2d\x3e/i); if (Oc){i8=i8.replace(Oc[0],'\x40\x41\x44DIT\x49\117\x4eAL TE\x58T FOOT\x45\122\x40'); Oc=Oc[0].replace(/\x3c(?!\x62\x72|\x2f?\x61|\x2f?\x75\x6c|\x2f?\x6f\x6c|\x2f?\x6c\x69|\x2f?\x64\x6c|\x2f?\x64\x64|\x2f?\x64\x74|\x2f?\x70|\x2f?\x62|\x2f?\x65\x6d|\x2f?\x73\x74\x72\x6f\x6e\x67)((?:.|\x0a|\x0d|\s)*?)\x3e/ig,' '); i8=i8.replace('\100\x41DDITI\x4fNAL TEX\x54 FOOT\x45R@',Oc); Oc=null; }if (i5){i9=i5.length; l9=SC.toPrice(i5[0]); if (i9>1){for (var ic=1; ic<i9; ic++){if (ic%2==0){l9+=SC.toPrice(i5[ic]); }else {l9+=', '+i5[ic]+'\x2f'; }}}}if (I5){oa=I5.length; I9=SC.toPrice(I5[0]); if (oa>1){for (var Ic=1; Ic<oa; Ic++){if (Ic%2==0){I9+=SC.toPrice(I5[Ic]); }else {I9+='\054 '+I5[Ic]+'\x2f'; }}}}if (o6 && la){i8=i8.replace(la[5],'\x40\x43\x52OSS\x2dSELL@'); ia=o6.length; if (ia>1){for (var od=0,Od=((ia>=3)?2: 1); od<=Od; od++){Oa=la[5]; Oa=Oa.replace(/\x22\x23\x22/g,'\x22'+url+'/'+o6[od].id+'\x2e\x68\x74ml\x22'); if (o6[od].image){Oa=Oa.replace(/\x40\x43\x52\x4f\x53\x53\x2d\x53\x45\x4c\x4c\x2d\x49\x4d\x41\x47\x45\x40/,'\074\x69m\x67\x20bo\x72der=\042\x30\x22\040\x73rc=\042'+O9+o6[od].image+'\042 />');}else {var ld=Oa.match(/(\x3c\x64\x69\x76(\s+)\x63\x6c\x61\x73\x73\x3d\x22\x73\x63\x53\x74\x66\x43\x72\x6f\x73\x73\x53\x65\x6c\x6c\x49\x6d\x61\x67\x65\x22(.*?)\x3c\x2f\x64\x69\x76\x3e)/); Oa=Oa.replace(ld[0],''); }Oa=Oa.replace(/\x40\x43\x52\x4f\x53\x53\x2d\x53\x45\x4c\x4c\x2d\x4e\x41\x4d\x45\x40/,o6[od].name); if (o6[od].price){ob=o6[od].price.length; Ob=SC.toPrice(o6[od].price[0]); if (ob>1){for (var Id=1; Id<ob; Id++){if (Id%2==0){Ob+=SC.toPrice(o6[od].price[Id]); }else {Ob+=',\x20'+o6[od].price[Id]+'/'; }}}Oa=Oa.replace(/\x40\x43\x52\x4f\x53\x53\x2d\x53\x45\x4c\x4c\x2d\x50\x52\x49\x43\x45\x40/,Ob);}else {var oe=Oa.match(/(\x3c\x64\x69\x76(\s+)\x63\x6c\x61\x73\x73\x3d\x22\x73\x63\x53\x74\x66\x43\x72\x6f\x73\x73\x53\x65\x6c\x6c\x50\x72\x69\x63\x65\x22(.*?)\x3c\x2f\x64\x69\x76\x3e)/); Oa=Oa.replace(oe[0],''); }if (o6[od].saleprice){lb=o6[od].saleprice.length; ib=SC.toPrice(o6[od].saleprice[0]); if (lb>1){for (var Oe=1; Oe<lb; Oe++){if (Oe%2==0){ib+=SC.toPrice(o6[od].saleprice[Oe]); }else {ib+=',\x20'+o6[od].saleprice[Oe]+'/'; }}}Oa=Oa.replace(/\x40\x43\x52\x4f\x53\x53\x2d\x53\x45\x4c\x4c\x2d\x53\x41\x4c\x45\x2d\x50\x52\x49\x43\x45\x40/,ib);}else {var le=Oa.match(/(\x3c\x64\x69\x76(\s+)\x63\x6c\x61\x73\x73\x3d\x22\x73\x63\x53\x74\x66\x43\x72\x6f\x73\x73\x53\x65\x6c\x6c\x53\x61\x6c\x65\x50\x72\x69\x63\x65\x22(.*?)\x3c\x2f\x64\x69\x76\x3e)/); Oa=Oa.replace(le[0],''); }Ia+=Oa;}}else {Oa=la[5]; Oa=Oa.replace(/\x22\x23\x22/g,'\042'+url+'\057'+o6[0].id+'.ht\x6dl\042'); if (o6[0].image){Oa=Oa.replace(/\x40\x43\x52\x4f\x53\x53\x2d\x53\x45\x4c\x4c\x2d\x49\x4d\x41\x47\x45\x40/,'\074img bord\x65r=\042\x30\042\x20s\x72c=\042'+O9+o6[0].image+'\042 />');}else {var ld=Oa.match(/(\x3c\x64\x69\x76(\s+)\x63\x6c\x61\x73\x73\x3d\x22\x73\x63\x53\x74\x66\x43\x72\x6f\x73\x73\x53\x65\x6c\x6c\x49\x6d\x61\x67\x65\x22(.*?)\x3c\x2f\x64\x69\x76\x3e)/); Oa=Oa.replace(ld[0],''); }Oa=Oa.replace(/\x40\x43\x52\x4f\x53\x53\x2d\x53\x45\x4c\x4c\x2d\x4e\x41\x4d\x45\x40/,o6[0].name); if (o6[0].price){ob=o6[0].price.length; Ob=SC.toPrice(o6[0].price[0]); if (ob>1){for (var Id=1; Id<ob; Id++){if (Id%2==0){Ob+=SC.toPrice(o6[0].price[Id]); }else {Ob+=', '+o6[0].price[Id]+'/'; }}}Oa=Oa.replace(/\x40\x43\x52\x4f\x53\x53\x2d\x53\x45\x4c\x4c\x2d\x50\x52\x49\x43\x45\x40/,Ob);}else {var oe=Oa.match(/(\x3c\x64\x69\x76(\s+)\x63\x6c\x61\x73\x73\x3d\x22\x73\x63\x53\x74\x66\x43\x72\x6f\x73\x73\x53\x65\x6c\x6c\x50\x72\x69\x63\x65\x22(.*?)\x3c\x2f\x64\x69\x76\x3e)/); Oa=Oa.replace(oe[0],''); }if (o6[0].saleprice){lb=o6[0].saleprice.length; ib=SC.toPrice(o6[0].saleprice[0]); if (lb>1){for (var Oe=1; Oe<lb; Oe++){if (Oe%2==0){ib+=SC.toPrice(o6[0].saleprice[Oe]); }else {ib+=', '+o6[0].saleprice[Oe]+'\x2f'; }}}Oa=Oa.replace(/\x40\x43\x52\x4f\x53\x53\x2d\x53\x45\x4c\x4c\x2d\x53\x41\x4c\x45\x2d\x50\x52\x49\x43\x45\x40/,ib);}else {var le=Oa.match(/(\x3c\x64\x69\x76(\s+)\x63\x6c\x61\x73\x73\x3d\x22\x73\x63\x53\x74\x66\x43\x72\x6f\x73\x73\x53\x65\x6c\x6c\x53\x61\x6c\x65\x50\x72\x69\x63\x65\x22(.*?)\x3c\x2f\x64\x69\x76\x3e)/); Oa=Oa.replace(le[0],''); }Ia+=Oa;}}if (l5=='' || o5=='' || i5=='' || I5=='' || !l4 || !o6){if (l5==''){var ie=i8.match(/(\x3c\x74\x72(\s+)\x63\x6c\x61\x73\x73\x3d\x22\x69\x74\x65\x6d\x41\x76\x61\x69\x6c\x61\x62\x69\x6c\x69\x74\x79\x22(.*?)\x3e(.*?)\x3c\x2f\x74\x72\x3e)/); i8=i8.replace(ie[0],''); }if (o5==''){var Ie=i8.match(/(\x3c\x74\x72(\s+)\x63\x6c\x61\x73\x73\x3d\x22\x69\x74\x65\x6d\x43\x6f\x64\x65\x22(.*?)\x3e(.*?)\x3c\x2f\x74\x72\x3e)/); i8=i8.replace(Ie[0],''); }if (i5==''){var of=i8.match(/(\x3c\x74\x72(\s+)\x63\x6c\x61\x73\x73\x3d\x22\x69\x74\x65\x6d\x50\x72\x69\x63\x65\x22(.*?)\x3e(.*?)\x3c\x2f\x74\x72\x3e)/); i8=i8.replace(of[0],''); }if (I5==''){var Of=i8.match(/(\x3c\x74\x72(\s+)\x63\x6c\x61\x73\x73\x3d\x22\x69\x74\x65\x6d\x53\x61\x6c\x65\x50\x72\x69\x63\x65\x22(.*?)\x3e(.*?)\x3c\x2f\x74\x72\x3e)/); i8=i8.replace(Of[0],''); }if (!l4){var If=i8.match(/(\x3c\x64\x69\x76(\s+)\x63\x6c\x61\x73\x73\x3d\x22\x73\x63\x53\x74\x66\x43\x61\x70\x74\x69\x6f\x6e\x22(.*?)\x3c\x2f\x64\x69\x76\x3e)/); i8=i8.replace(If[0],''); var og=i8.match(/(\x3c\x64\x69\x76(\s+)\x63\x6c\x61\x73\x73\x3d\x22\x73\x63\x53\x74\x66\x43\x61\x70\x74\x69\x6f\x6e\x48\x65\x61\x64\x65\x72\x22(.*?)\x3c\x2f\x64\x69\x76\x3e)/); i8=i8.replace(og[0],''); var Og=i8.match(/\x63\x6c\x61\x73\x73\x3d\x22\x73\x63\x53\x74\x66\x49\x6e\x74\x72\x6f\x54\x65\x78\x74\x22/); if (!Og){var lg=i8.match(/(\x3c\x64\x69\x76(\s+)\x63\x6c\x61\x73\x73\x3d\x22\x73\x63\x53\x74\x66\x43\x61\x70\x74\x69\x6f\x6e\x43\x6f\x6e\x74\x61\x69\x6e\x65\x72\x22(.*?)\x3c\x2f\x64\x69\x76\x3e)/); i8=i8.replace(lg[0],''); }l4=''; }if (!o6){var ig=i8.match(/(\x3c(\x64\x69\x76|\x74\x64)(\s+)\x63\x6c\x61\x73\x73\x3d\x22\x73\x63\x53\x74\x66\x43\x72\x6f\x73\x73\x53\x65\x6c\x6c\x22((?:.|\x0a|\x0d)*?)\x3c\x74\x61\x62\x6c\x65((?:.|\x0a|\x0d)*?)\x3c\x2f\x74\x61\x62\x6c\x65\x3e((?:.|\x0a|\x0d)*?)\x3c\x2f(\x64\x69\x76|\x74\x64)\x3e)/i); i8=i8.replace(ig[0],''); }}O6=O8+i8+o9; O6=O6.replace('@ITE\x4d-IM\x41\x47E\x40',((O5!='')?'\x3ca \x68\162\x65f=\042'+url+'\x2f'+i4+'\x2eht\x6d\x6c\042>\074\x69mg \x62orde\x72\075\x220\042\x20src=\x22'+O9+O5+'\042 />\074\x2fa\x3e': '')); O6=O6.replace('\x40IT\x45\x4d-NA\x4dE@','\x3ca hr\x65f= \042'+url+'/'+i4+'\x2e\x68\x74ml\x22>'+I4+'\x3c\x2fa>'); O6=O6.replace('\100\x50RICE@',l9); O6=O6.replace('@\x53ALEPR\x49\x43E@',I9); O6=O6.replace('\x40CODE\x40',o5); O6=O6.replace('@AVAI\x4cABILIT\x59@',l5); O6=O6.replace('\x40\x43\x41PTI\x4fN@',l4); O6=O6.replace('\x40CR\x4f\x53S-S\x45\114\x4c@',Ia); if (o3){O6=O6.replace(/\x73\x72\x63\x3d\x22\x2f\x49\x2f/g,'\x73\x72\143\x3d\042'+O9+'/I\x2f'); }if (t){O6=O6.replace('\x40ME\x53\x53AGE\x2dBODY@',''); var Ig=SC.injElem('d\x69v',null, {id: '\x73cStf\x45\x6dai\x6c\145\x72' } ); Ig.innerHTML=O6; }else {SC.getById('scStf\x46orm')['\x73t\x66\x54emp\x6cate'].value=O6; }O8=null; oh=null; i8=null; o9=null; Ib=null; }catch (O0){}} this.doFrame= function ( ){try {if (SC.scStCk){SC.ie6selectFix('\x68ide'); if (i2){SC.swapClass(i2,'\x73cStfN\x6f\x6ee','\x73cS\x74\x66Hi\x64\144\x65n'); SC.centerObj(i2,024); SC.removeClass(i2,'\x73c\x53\x74fHi\x64den'); SC.removeClass(SC.getById('scSt\x66Tabs'),'scStfHidd\x65n'); SC.removeClass(SC.getById('\163\x63\x53\x74\x66Form'),'scSt\x66None'); if (O6)SC.getById('s\x63StfFor\x6d')['\163\x74fTe\x6d\x70l\x61\164\x65'].value=O6; }else {var Oh=((document.body)?document.body.innerHTML:document.documentElement.innerHTML); o4=Oh.match(/\x3c\x21\x2d\x2d\x73\x63\x2d\x74\x61\x67\x2d\x73\x74\x61\x72\x74\x20((?:.|\x0a|\x0d)*?)\x20\x73\x63\x2d\x74\x61\x67\x2d\x65\x6e\x64\x2d\x2d\x3e/); l4=Oh.match(/\x3c\x21\x2d\x2d\x73\x63\x2d\x63\x61\x70\x74\x69\x6f\x6e\x2d\x73\x74\x61\x72\x74\x2d\x2d\x3e((?:.|\x0a|\x0d)*?)\x3c\x21\x2d\x2d\x73\x63\x2d\x63\x61\x70\x74\x69\x6f\x6e\x2d\x65\x6e\x64\x2d\x2d\x3e/); if (l4){l4=l4[1]; l4=l4.replace(/\x3c(?!\x62\x72|\x2f?\x75\x6c|\x2f?\x6f\x6c|\x2f?\x6c\x69|\x2f?\x64\x6c|\x2f?\x64\x64|\x2f?\x64\x74|\x2f?\x70|\x2f?\x62|\x2f?\x65\x6d|\x2f?\x73\x74\x72\x6f\x6e\x67)((?:.|\x0a|\x0d|\s)*?)\x3e/ig,'\x20'); }O4=eval('('+o4[1]+')'); i4=O4.id; I4=O4.name; I4=I4.replace(/\x3c(\x2f)?.*?\x3e/g,'\x20'); o5=((O4.code)?O4.code: ''); O5=((O4.images && O4.images[0].ssM)?O4.images[0].ssM: ''); l5=((O4.availability)?O4.availability: ''); i5=((O4.price)?O4.price: ''); I5=((O4.saleprice)?O4.saleprice: ''); o6=((O4.crossSell)?O4.crossSell:null); I2=SC.injElem('div',null, {id: 'sc\x53tf\x50\x72e\x4c\x6fad\x65r',innerTxt: 'One \x6doment \x70lease..\x2e' } ); SC.centerObj(I2,024); SC.ajax( {url: 'sc-stf\x2dform\x2ehtml?d='+(new Date).getTime( ),cb:i6,fb:function ( ){alert('\x53orry\x2c\x20ou\x72\040\x73end\x20to fri\x65\156\x64 featu\x72e \x69s cu\x72ren\x74ly \x75nav\x61ilab\x6ce..\x2e pl\x65ase\x20r\x65fre\x73h t\x68is \x70age\x20or \x74ry \x61gai\x6e l\x61ter\x2e (e\x72r c\x6fde:\x202)'); hideStfPop( ); }} ); o4=null; Oh=null; }SC.addEvt(window,'\x72\x65size',lh); SC.addEvt(document,'keydow\x6e',ih); if (SC.getById('s\x63StfOv\x65\x72L\x61\171')){SC.removeClass(O2,'s\x63StfNon\x65'); }else {O2=SC.injElem('\x64\x69\166',null, {id: 'scS\x74fOver\x4cay',title: 'Click to \x63lose\x20or pres\x73 the \047Esc\x27 key' } ); SC.addEvt(O2,'\x63l\x69\x63k',hideStfPop); }SC.stretchObj(O2); }}catch (O0){alert('\x53o\x72\x72y, \x6fur send\x20\164\x6f frie\x6ed feat\x75re is \x63ur\x72entl\x79 un\x61vai\x6cabl\x65... \x70lea\x73e r\x65fre\x73h \x74his\x20pag\x65 or\x20try\x20aga\x69n l\x61ter\x2e (e\x72r \x63ode\x3a 1)'); SC.remElem(SC.getById('\x73\x63\x53tfO\x76erLay')); O2=null; }};function lh(Ih){SC.stretchObj(O2); SC.centerObj(i2,024); }function hideStfPop(Ih){SC.ie6selectFix( ); SC.removeEvt(window,'\x72\x65size',lh); SC.removeEvt(document,'\x6be\x79\x64own',ih); SC.remElem(SC.getById('scStfOver\x4cay')); O2=null; SC.addClass(i2,'\163\x63StfN\x6fne'); if (SC.getById('scSt\x66PreLo\x61der')){SC.remElem(SC.getById('\x73\x63StfPreLo\x61der')); }if (SC.getById('\x73cSt\x66\x4dess\x61ge')){SC.remElem(SC.getById('s\x63StfMe\x73\163\x61ge')); }if (typeof Ih!='\x75\x6e\x64ef\x69\156\x65d'){SC.killDefault(Ih); }} this.hideStfPop=hideStfPop; function oi(Ih){SC.ie6selectFix( ); SC.removeEvt(parent.parent.window,'\x72esize',lh); SC.removeEvt(parent.parent.document,'k\x65ydown',Oi); SC.remElem(parent.parent.SC.getById('scS\x74fMess\x61ge')); SC.remElem(parent.parent.SC.getById('scStfOver\x4cay')); SC.addClass(parent.parent.SC.getById('\x73c\x53\x74fAj\x61xContai\x6e\145\x72'),'s\x63StfNon\x65'); clearTimeout(o2.I0); if (typeof Ih!='undefin\x65d'){SC.killDefault(Ih); }} this.ii= function ( ){if (!o3){document.location='index.htm\x6c'; }};function ih(Ih){var Ih=(Ih)?Ih: ((event)?event:null); if (Ih && Ih.keyCode==033){hideStfPop(Ih); }}function Oi(Ih){var Ih=(Ih)?Ih: ((event)?event:null); if (Ih && Ih.keyCode==033){oi(Ih); }}function Ii(oj){return (oj.match(/[\w\S]+\x40[\w\S]+\x2e([\w]+){2}/)); } this.Oj= function ( ){ this.o1=setTimeout( function ( ){o2.Oj( );} ,01750); this.O1=(this.O1+1); if (this.l1){clearTimeout(this.o1); clearTimeout(this.I1); SC.remElem(SC.getById('\x73cS\x74\146\x50rocess\x69ng')); this.l1= false; this.O1=0; }if (this.O1==017){clearTimeout(this.o1); clearTimeout(this.I1); SC.remElem(SC.getById('\x73c\x53\x74fPr\x6fcessing')); this.O1=0; var I3=SC.injElem('d\x69v',null, {id: 's\x63StfMe\x73\x73ag\x65' } ); SC.insElem(I3,SC.getById('\x73cS\x74\x66For\x6d')); var lj=SC.genElem('The\x72e was \x61n error\x20\x73e\x6eding y\x6f\165\x72 mail\x2c pl\x65ase\x20try\x20aga\x69n.','\x69\x73\x54xt'); I3.appendChild(lj);SC.centerObj(SC.getById('s\x63StfAj\x61\x78C\x6f\156\x74ainer'),024); SC.removeClass(SC.getById('\x73\x63StfTabs'),'scStfHid\x64en'); SC.getById('\x73c\x53\164\x66SubmitB\x75tton').disabled= false; SC.getById('scStfRese\x74Butt\x6fn').disabled= false; SC.removeClass(SC.getById('\163\x63StfR\x65setButt\x6f\x6e'),'disabledB\x75tton\x73'); SC.removeClass(SC.getById('\x73cSt\x66\x53ub\x6d\151\x74Butto\x6e'),'\x64\x69\x73abl\x65dButton\x73'); SC.getById('s\x63StfIf\x72\x61me').src=''; }};this.ij= function ( ){if (this.i1==0){SC.getById('\x73c\x53\x74fSp\x61nDots').innerHTML='';} this.i1=(this.i1+1); if (this.i1!=4){SC.getById('\163\x63StfS\x70anDots').innerHTML+='\x2e';}if (this.i1==4){ this.i1=0; } this.I1=setTimeout( function ( ){o2.ij( );} ,0310); };this.tellFriendFormReset= function (form){for (var i=0,Ij=form.elements.length; ok=form.elements[i],i<Ij; i++){if (ok.type=='tex\x74'){ok.value=ok.defaultValue; }}var message=form['\x6d\x65\x73sag\x65'];if (message){message.value=''; }};this.checkTellFriendForm= function (Ok){try {var name=Ok['\x73ende\x72\x4eam\x65'],email=Ok['send\x65rEmai\x6c'],c=0,b=0,lk=''; if (name.value==""){alert("Please ty\x70e yo\x75\162\x20name"); name.focus( ); return false; }if (!Ii(email.value)){alert("Please e\x6eter a\x20valid \x65\155\x61il ad\x64ress f\x6fr you\x72sel\x66"); email.focus( ); return false; }for (var x=0,c=Ok.elements.length; x<c; x++){var ik=Ok.elements[x]; if (ik.name.indexOf('\x66ri\x65\x6edsE\x6dail')>-1){if (!Ii(ik.value)){alert("You\x72 frie\x6eds e\x6d\141\x69ls se\x65\155\x73\040\x74o be \x69nva\x6cid"); ik.focus( ); return false; }}}var Ik=SC.getById('scStf\x53ubmitB\x75tton').parentNode,ll=SC.genElem('div', {id: '\x73\x63\x53tfP\x72ocessin\x67',className: '\x73\x63\x53tfP\x72ocessin\x67' } ),il=SC.genElem('\x50r\x6f\x63ess\x69ng','\x69\x73\x54xt'),Il=SC.genElem('span', {id: 'scStfS\x70anDot\x73' } ); ll.appendChild(il); SC.appElem(Il,ll); Ik.insertBefore(ll,SC.getById('scStfS\x75bmitB\x75tton').nextSibling); this.ij( );if (this.testEmailer){if (!SC.getQuery(Ok.action)){lk='?testi\x6e\x67=t';}else if (SC.getQuery(Ok.action) && !SC.getQuery(Ok.action).om){lk='\x26\x74\x65sti\x6eg=t';}}Ok.action=Ok.action+lk; if (SC.getById('\x73cSt\x66\x4des\x73age')){SC.remElem(SC.getById('\x73\x63\x53tfM\x65ssage')); }if (!this.testEmailer){SC.getById('scStfR\x65setBut\x74on').disabled= true; SC.getById('s\x63StfS\x75\x62mi\x74\102\x75tto\x6e').disabled= true; SC.addClass(SC.getById('\x73c\x53\164\x66Reset\x42utton'),'di\x73abledB\x75ttons'); SC.addClass(SC.getById('\x73cSt\x66\x53ub\x6d\151\x74Butto\x6e'),'\x64isabl\x65\x64B\x75\164\x74ons'); SC.addClass(parent.parent.SC.getById('\x73c\x53\164\x66Tabs'),'\163\x63STfHi\x64den'); this.Oj( ); }}catch (O0){}};this.addOne= function (Om){try {if (!l0){l0=5; }if (Im(Om)!=l0){var on=((Om)?parent.parent.SC.getById('scStfTel\x6cFri\x65ndRow'+Im(Om)).parentNode:SC.getById('\x73c\x53\x74fTe\x6clFriend\x52\157\x77'+Im( )).parentNode); On=((Om)?parent.parent.SC.genElem('div', {id: '\x73c\x53tfTellFr\x69endRow'+(Im(Om)+1)} ):SC.genElem('div', {id: '\x73\x63StfTellF\x72iendRow'+(Im( )+1)} )); on.insertBefore(On,((Om)?parent.parent.SC.getById('\x73\x63\123\x74fTellFr\x69\145\x6edRow'+Im(Om)).nextSibling:SC.getById('s\x63StfT\x65\x6clF\x72iendRow'+Im( )).nextSibling)); var In=((Om)?parent.parent.SC.genElem('\x64iv', {className: 'sc\x53tfRow\x20\x73cS\x74\146\x43olumn\x31' } ):SC.genElem('div', {className: '\x73cSt\x66\122\x6fw scSt\x66\103\x6flumn1' } )),oo=((Om)?parent.parent.SC.genElem('\144\x69v', {className: '\x73cSt\x66\x46ie\x6c\144\x54ext',innerTxt:Im(Om)+'\x29 \x46\x72ien\x64\047\x73 N\x61me' } ):SC.genElem('\x64\x69v', {className: '\x73\x63\123\x74fField\x54\145x\x74',innerTxt:Im( )+')\x20Frie\x6e\x64\047s Na\x6d\145' } )),Oo=((Om)?parent.parent.SC.genElem('\x64i\x76', {className: '\x73cSt\x66\x52ow\x49\156\x70Contai\x6eer' } ):SC.genElem('\x64iv', {className: '\x73\x63StfRowIn\x70Contain\x65r' } )),Io=((Om)?parent.parent.SC.genElem('input', {type: '\x74\x65xt',name: 'f\x72iendsN\x61\x6de'+Im(Om)} ):SC.genElem('input', {type: '\x74ext',name: '\146\x72iends\x4eame'+Im( )} )),op=((Om)?parent.parent.SC.genElem('div', {className: 'scStfRow\x20scSt\x66Column\x32' } ):SC.genElem('\x64iv', {className: '\x73cSt\x66\x52ow\x20\163\x63StfCo\x6c\165\x6dn2' } )),Op=((Om)?parent.parent.SC.genElem('di\x76', {className: '\x73cStfF\x69\x65l\x64\124\x65xt',innerTxt: '\x46\x72iend\047s Ema\x69\154' } ):SC.genElem('\x64iv', {className: '\x73\x63\x53tfF\x69eldText',innerTxt: 'Fr\x69end\047s Em\x61\151l' } )),lp=((Om)?parent.parent.SC.genElem('di\x76', {className: 's\x63StfRo\x77\x49np\x43\157\x6etaine\x72' } ):SC.genElem('\x64i\x76', {className: '\x73cStf\x52\157\x77InpCon\x74\141\x69\156\x65\162' } )),ip=((Om)?parent.parent.SC.genElem('\x69npu\x74', {type: '\x74e\x78\x74',name: '\x66ri\x65\x6edsE\x6dail'+Im(Om)} ):SC.genElem('input', {type: '\x74\x65\x78t',name: 'friendsE\x6dail'+Im( )} )),Ip=((Om)?parent.parent.SC.genElem('div', {className: 'sc\x53tfCle\x61\x72Bo\x74\150' } ):SC.genElem('\x64i\x76', {className: '\x73cStf\x43\x6cea\x72\102\x6fth' } )); SC.appElem(oo,In); SC.appElem(In,On); SC.appElem(Io,Oo); SC.appElem(Oo,In); SC.appElem(Op,op); SC.appElem(op,On); SC.appElem(ip,lp); SC.appElem(lp,op); SC.appElem(Ip,On); }if (Im(Om)==l0){SC.swapClass(((Om)?parent.parent.SC.getById('\x73c\x53\x74fAd\x64Frien\x64\124\x61b'):SC.getById('\163\x63StfAd\x64FriendT\x61\142')),'scSt\x66AddFri\x65ndTabOn','s\x63StfAdd\x46\x72ie\x6e\144\x54abOff'); }if (Im(Om)>=1){SC.swapClass(((Om)?parent.parent.SC.getById('\x73\x63StfRemov\x65Friend\x54\141\x62'):SC.getById('scS\x74fRemo\x76eFriend\x54\141\x62')),'\x73cStfR\x65\x6do\x76\x65Fr\x69endTab\x4f\146\x66','\x73\x63\123\x74fRemov\x65FriendT\x61bOn'); }SC.stretchObj(O2); }catch (O0){alert('\x57e\x20\141\x72e curr\x65\156t\x6cy exp\x65\162i\x65ncing\x20dif\x66icu\x6cties\x20sen\x64in\x67 an \x65mai\x6c to\x20mu\x6ctip\x6ce \x66rie\x6eds.\x2e. \x70lea\x73e t\x72y a\x67ain\x20la\x74er.\x20(er\x72 co\x64e:\x203)'+O0); }};this.delOne= function ( ){try {if (Im( )>1){O3.removeChild(SC.getById('\x73\x63\123\x74fTellF\x72iendRo\x77'+Im( ))); if (Im( )<=(l0-1)){SC.swapClass(SC.getById('s\x63StfA\x64\x64F\x72\151\x65ndTab'),'s\x63StfAd\x64\x46r\x69\x65nd\x54abOff','\x73cStfAd\x64\x46r\x69\145\x6edTabOn'); }if (Im( )==1){SC.swapClass(SC.getById('scStfRem\x6f\x76eFrien\x64Tab'),'\x73c\x53\x74fRe\x6doveFrie\x6edTab\x4f\156','scStf\x52emoveF\x72iendTab\x4f\146\x66'); }}}catch (O0){alert('\x57\x65\x20are\x20curren\x74\154\x79 exp\x65\162i\x65ncing\x20dif\x66icul\x74ies\x20sen\x64ing\x20an \x65mail\x20to \x6dul\x74ip\x6ce f\x72ien\x64s..\x2e pl\x65ase\x20try\x20aga\x69n l\x61te\x72.'); }};function oq( ){try {var l0=Im( true); if (l0>1){for (var i=l0; i>1; i--){parent.parent.SC.getById('\x73cSt\x66\x46or\x6d').removeChild(parent.parent.SC.getById('\x73cS\x74\x66Te\x6clFriend\x52\157\x77'+i)); }SC.swapClass(parent.parent.SC.getById('\x73c\x53\x74fAd\x64FriendT\x61b'),'scStfAd\x64Frien\x64TabOff','scStfAd\x64Frien\x64\124\x61bOn'); SC.swapClass(parent.parent.SC.getById('scS\x74fRemov\x65FriendT\x61\142'),'scStfRem\x6fveFri\x65ndTabOn','\x73cStf\x52\x65m\x6f\x76eF\x72\151\x65ndTab\x4fff'); }}catch (O0){}}function Im(Om){O3=((Om)?parent.parent.SC.getById('\x73cStf\x46\x6fr\x6d'):SC.getById('scSt\x66Form')); l3=SC.getByTag('div',O3); i3=l3.length; var c=0; for (var x=0; x<i3; x++){if (l3[x].id.indexOf('\x73cSt\x66\x54el\x6c\106\x72iendRo\x77')>-1){c++; }}return c; } this.Oq= function ( ){ this.i0=(this.i0-1); this.I0=setTimeout( function ( ){o2.Oq( );} ,01750); parent.parent.SC.getById('\x73cStf\x43\x6cos\x65Seconds').innerHTML=this.i0; if (this.i0==0){oi( ); }};this.confirmMail= function ( ){try {if (parent.parent.frames['scStfIfra\x6de']){var I3=((!parent.parent.SC.getById('s\x63StfMe\x73\x73ag\x65'))?parent.parent.SC.injElem('div',null, {id: '\x73\x63\123\x74fMessa\x67\145' } ):parent.parent.SC.getById('s\x63StfMes\x73\x61ge')),lq=SC.getQuery(window.location.href); parent.parent.scSendToFriendInit.l1= true; if (lq.m=='t'){SC.addClass(I3,'scS\x74fMess\x61\147\x65Float'); SC.addClass(I3,'scStfHid\x64en'); SC.addClass(parent.parent.SC.getById('\x73cS\x74\x66Aja\x78Contain\x65r'),'s\x63StfHi\x64\x64en'); var iq=parent.parent.SC.genElem('Your m\x61il has\x20been se\x6e\164\x2e..','isTxt'); I3.appendChild(iq); this.tellFriendFormReset(parent.parent.SC.getById('s\x63StfFor\x6d')); parent.parent.SC.centerObj(I3,024); var Oq=parent.parent.SC.genElem('\x64iv', {className: 'scStfClos\x65Conf\x69rmation' } ),Iq=parent.parent.SC.genElem('\x54his\x20\x77il\x6c\x20cl\x6f\163\x65 in ','is\x54xt'),or=parent.parent.SC.genElem('\x20se\x63\x6fnds','isTx\x74'),Or=parent.parent.SC.genElem('\x73p\x61\x6e', {id: '\x73\x63\x53tfC\x6coseSecon\x64s' } ); Oq.appendChild(Iq); SC.appElem(Or,Oq); Oq.appendChild(or); SC.appElem(Oq,I3); var lr=parent.parent.SC.genElem('di\x76', {className: '\x73\x63\123\x74fCloseC\x6fnfirma\x74ionOr' } ),ir=parent.parent.SC.genElem('-\x2d OR \x2d\x2d','i\x73Txt'); SC.appElem(ir,lr); SC.appElem(lr,I3); var Ir=parent.parent.SC.genElem('\x64\x69v', {className: 's\x63StfCl\x6f\x73e\x43\157\x6efirm\x61\164\x69\157\x6e\114\x69nk' } ),os=parent.parent.SC.genElem('a', {href: '#',innerTxt: '\x43lic\x6b\x20he\x72\145' } ); SC.addEvt(os,'click',oi); var Os=parent.parent.SC.genElem('s\x70an', {className: 'scS\x74fClose\x43onfirma\x74\151\x6fnESCK\x65y',innerTxt: '\x20or pre\x73\x73 \x74he \042ESC\042\040\x6bey to \x63lose.' } ); SC.appElem(os,Ir); SC.appElem(Os,Ir); SC.appElem(Ir,I3); SC.removeClass(I3,'\x73\x63StfHidde\x6e'); SC.addEvt(parent.parent.SC.getById('\x73cSt\x66\x4fve\x72\114\x61y'),'click',oi); SC.addEvt(parent.parent.document,'keydown',Oi); oq( ); this.Oq( ); }if (lq.m=='\146'){I3.innerHTML=''; SC.insElem(I3,parent.parent.SC.getById('scStfF\x6frm')); var lj=parent.parent.SC.genElem('There wa\x73 an e\x72ror sen\x64ing yo\x75\162\x20mail,\x20pleas\x65 tr\x79 ag\x61in.','i\x73Txt'); I3.appendChild(lj);if (lq.e){var ls=eval(lq.e),is=ls.length,ul=parent.parent.SC.genElem('\x75\x6c', {className: '\x73cStf\x46\x61i\x6c\145\x64Email\x73\125\x6c' } ),c=0; I3.appendChild(parent.parent.SC.genElem('br')); I3.appendChild(parent.parent.SC.genElem('\x53\x6f\x6de e\x6dails w\x65re no\x74 sent.\x2e\056','isTxt')); oq( ); ls.forEach( function (Is){var li=parent.parent.SC.genElem('\x6ci'),ot=parent.parent.SC.getById('s\x63St\x66\x46o\x72m')['frien\x64sEmail'+(c+1)],Ot=parent.parent.SC.getById('scStfFo\x72m')['\x66riend\x73\x4eam\x65'+(c+1)]; li.appendChild(parent.parent.SC.genElem(Is.email,'\x69\x73\124\x78t')); ul.appendChild(li); if (c!=(is-1)){o2.addOne( true); }if (ot){ot.value=Is.email; }if (Ot){Ot.value=Is.name; }c++; } ); I3.appendChild(ul); }parent.parent.SC.centerObj(parent.parent.SC.getById('\x73c\x53\164\x66AjaxCo\x6e\x74a\x69ner'),024); SC.removeClass(parent.parent.SC.getById('sc\x53tfTa\x62\163'),'scStfH\x69dden'); }parent.parent.SC.getById('\x73c\x53\x74fSu\x62mitButt\x6f\156').disabled= false; parent.parent.SC.getById('scStfR\x65setBut\x74on').disabled= false; SC.removeClass(parent.parent.SC.getById('\x73cStfR\x65\x73et\x42utton'),'di\x73abled\x42\x75tt\x6f\156\x73'); SC.removeClass(parent.parent.SC.getById('\x73\x63StfSubmi\x74Button'),'disab\x6cedBut\x74ons'); }else {if (!o3){document.location='\x69ndex.h\x74\x6dl'; }}}catch (O0){}};this.clickTracks= function ( ){if (SC.getQuery(window.location.href) && (SC.getQuery(window.location.href).stfk || SC.getQuery(window.location.href).stfe)){SC.injElem('\x73cri\x70\x74',SC.getByTag('h\x65ad')[0], {type: '\164\x65xt/j\x61vascript',src:l6+'/sendtof\x72iend/\x63lickTra\x63ks.php'+window.location.search+'\x26stf\x70\x3d'+SC.getPageId( )} ); }};function lt(html){o4=html.match(/\x3c\x21\x2d\x2d\x73\x63\x2d\x74\x61\x67\x2d\x73\x74\x61\x72\x74\x20((?:.|\x0a|\x0d)*?)\x20\x73\x63\x2d\x74\x61\x67\x2d\x65\x6e\x64\x2d\x2d\x3e/); O4=eval('\x28'+o4[1]+'\051'); i4=O4.id; I4=O4.name; o5=((O4.code)?O4.code: ''); O5=((O4.images[0].ssM)?O4.images[0].ssM: ''); l5=((O4.availability)?O4.availability: ''); i5=((O4.price)?O4.price: ''); I5=((O4.saleprice)?O4.saleprice: ''); o6=((O4.crossSell)?O4.crossSell:null); l4=html.match(/\x3c\x21\x2d\x2d\x73\x63\x2d\x63\x61\x70\x74\x69\x6f\x6e\x2d\x73\x74\x61\x72\x74\x2d\x2d\x3e((?:.|\x0a|\x0d)*?)\x3c\x21\x2d\x2d\x73\x63\x2d\x63\x61\x70\x74\x69\x6f\x6e\x2d\x65\x6e\x64\x2d\x2d\x3e/); if (l4){l4=l4[1]; l4=l4.replace(/\x3c(?!\x62\x72|\x2f?\x75\x6c|\x2f?\x6f\x6c|\x2f?\x6c\x69|\x2f?\x64\x6c|\x2f?\x64\x64|\x2f?\x64\x74|\x2f?\x70|\x2f?\x62|\x2f?\x65\x6d|\x2f?\x73\x74\x72\x6f\x6e\x67)((?:.|\x0a|\x0d|\s)*?)\x3e/ig,'\040'); }} this.emailerWeb= function ( ){try {if (SC.getQuery(window.location.href) && SC.getQuery(window.location.href).id){SC.ajax( {url:SC.getQuery(window.location.href).id+'\x2eht\x6d\x6c?d\x3d'+(new Date).getTime( ),cb:lt,fb:function ( ){alert('\x53or\x72\171\x2c our se\x6e\144\x20to fr\x69\145\x6ed feat\x75re \x69s c\x75rren\x74ly \x75nav\x61ila\x62le.\x2e. pl\x65as\x65 r\x65fre\x73h t\x68is \x70age\x20or \x74ry \x61gai\x6e la\x74er.'); }} );window.onload= function ( ){SC.ajax( {url: 'sc\x2dstf-e\x6d\x61i\x6c\055\x74empl\x61te.htm\x6c\077\x64='+(new Date).getTime( ),cb:function (html){l7(html, true);} ,fb:function ( ){alert('Sorr\x79, ou\x72 send t\x6f\040\x66rie\x6e\144\x20\146\x65\141\x74ure\x20is \x63urre\x6etly\x20una\x76ail\x61ble\x2e.. \x70lea\x73e \x72efr\x65sh \x74his\x20pag\x65 or\x20try\x20aga\x69n \x6cate\x72.'); }} );};}else {document.location='\x69n\x64ex.html'; }}catch (e){}};}var scSendToFriendInit=new scSendToFriend( ); SC.scSetFuncs(scSendToFriendInit);


/*************************************************
	SC ADVANCED PAGING
*************************************************/

/*Copyright Solid Cactus 2004*/
try{SC.addVersion("0049","2.0.000","Dynamic Paging");}catch(err){};
// encrypt.js
var cryptTable=new String(" ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\t!@#$%^&*()`'-=[];,./?_+{}|:<>~");var cryptLength=new Number(cryptTable.length-1);var escapeChar=cryptTable.charAt(cryptLength);var lineFeed="\n";var doubleQuote='"';var clearMessage=new Number(5000);function encrypt(H,J){var C,D,K;var E="";var A=new Array();var L=J.length;var B=H.length;var I=Math.round(B/10);var G=0;for(var F=0;F<L;F++){A[F]=cryptTable.indexOf(J.charAt(F))}for(var M=0,F=0;M<B;M++,F++){if(F==L){F=0}C=H.charAt(M);D=cryptTable.indexOf(C);if(D!=-1){K=A[F]^D;if(K>=cryptLength){K=escapeChar+cryptTable.charAt(K-cryptLength)}else{K=cryptTable.charAt(K)}}else{if(C=="\r"){K=escapeChar+escapeChar;if(H.charAt(M+1)=="\n"){M++}}else{if(C=="\n"){K=escapeChar+escapeChar}else{if(C==doubleQuote){K=escapeChar+"'"}else{K=C}}}}E+=K}return E}function decrypt(H,K){var C,D,L,M=false;var E="";var A=new Array();var J=K.length;var B=H.length;var I=Math.round(B/10);var G=0;for(var F=0;F<J;F++){A[F]=cryptTable.indexOf(K.charAt(F))}for(var N=0,F=0;N<B;N++,F++){if(F>=J){F=0}C=H.charAt(N);D=cryptTable.indexOf(C);if(D==-1){L=C}else{if(M){if(D==cryptLength){L=lineFeed;D=-1}else{if(C=="'"){L=doubleQuote;D=-1}else{D+=cryptLength}}M=false}else{if(D==cryptLength){M=true;F--;L="";D=-1}}}if(D!=-1){L=cryptTable.charAt(A[F]^D)}E+=L}return E}

// cookies.js
var expDays=30;var exp=new Date();exp.setTime(exp.getTime()+(expDays*24*60*60*1000));function getCookieVal(B){var A=document.cookie.indexOf(";",B);if(A==-1){A=document.cookie.length}return unescape(document.cookie.substring(B,A))}function GetCookie(D){var B=D+"=";var F=B.length;var A=document.cookie.length;var E=0;while(E<A){var C=E+F;if(document.cookie.substring(E,C)==B){return getCookieVal(C)}E=document.cookie.indexOf(" ",E)+1;if(E==0){break}}return null}function SetCookie(C,E){var A=SetCookie.arguments;var H=SetCookie.arguments.length;var B=(H>2)?A[2]:null;var G=(H>3)?A[3]:null;var D=(H>4)?A[4]:null;var F=(H>5)?A[5]:false;document.cookie=C+"="+escape(E)+((B==null)?"":("; expires="+B.toGMTString()))+((G==null)?"":("; path="+G))+((D==null)?"":("; domain="+D))+((F==true)?"; secure":"")}function DeleteCookie(A){var C=new Date();C.setTime(C.getTime()-1);var B=GetCookie(A);document.cookie=A+"="+B+"; expires="+C.toGMTString()}

// paging.js
var defaultSort, defaultContentsFormat, contentsFormat, tableWidth, numColumns, numPerPage, numPages, contentsElements, showDefaultSort,
    detailedSortInfo, showPagingModes, viewAll, sortBy, sortHighLow, pageLinkPrefix, rowpad, columnpad, storename, columnSeparatorColor,
    rowSeparatorColor, listModeBG1, listModeBG2, sortLinkSeparator, sortLinkPrefix, modeLinkSeparator, pageLinkSeparator, globalPageNum, globalViewallthistime,
    currentItem, currentItemImage, numArrowDivs, showListMode, addToCartImage, showBrandSort, strikePrice, showWrapMode, showQuantity, listModeShowImages;
var pageItems = new Array();
var oldSortBy = "";

var holdingArray = new Array();
var valArray = new Array();

var currentViewAll = false;

try{window.scDp2DrawCallback=new SC.Callback();}catch(err){}

function pagingItem(id, code, name, label, img, listimg, keyicon, price, saleprice, options, abstr, orderable, brand, mappricing, linktype, link) {
	if (!window.items) window.items = new Array();
	this.id=id.toLowerCase();
	this.code=code;
	this.name=name;
	this.label=label;
	this.img=img;
	this.listimg=listimg;
	this.keyicon=keyicon;
	this.price=round_decimals(price,2);
	this.saleprice=round_decimals(saleprice,2);
	if(saleprice) this.useprice=round_decimals(saleprice,2); else this.useprice=round_decimals(price,2);
	this.options=options;
	this.abstr=abstr;
	this.orderable=orderable;
	this.brand=brand;
	this.mappricing=mappricing;
	this.linktype=linktype;
	this.link=link;
	this.sortby="name";
	this.defaultsort=window.items.length;
	holdingArray[window.items.length] = this;
	window.items[window.items.length] = this;
}

/* round_decimals, pad_with_zeros, FIND, pagingSegment, sortArray */
var pagingUtilities = decrypt("	G0wcIG2nwEbBv`1BwPM04E_EeIO7 FJ~IBA3zB ~Epv 09KnLC+n`~~LZ0ynwydEHwdc~DyCB7I9DnL~d2G5vrFt}nP2cH~e0Ar~GEe~he1BwPM04E?~~LZ0ynwydEHwec~Dym0wJ] ZEFA~CwydEHwd?~~LZ0ynwydEHwPc~DyFwxG6BDp~fekFBQ~aD1Y_ZF~dtA2 OTwHx~D~~Se0 vD0rYwv`Y9BQ~hZ DzA~dFwxG6BK~dtA2 OTwHx~D~~~W~~~~Nv  BPCFeBFx~IaMwJ(XrFGx~CwEbBv 1(bnLA ~bcxr2M3y6~bYL0B2v~Hy~f~~fXF yZ04GB~bdDB7 7r~gpB1G0xrz~duy6Cr~a 16y PBO{~D~~SCwBe1BwPM04~f6Etw 7A0r~gpdDNxy~IG yK0M~DIFA2uiS~E~'=~'?~~LINe~CCytIIDN(JZ20wKzDy~J~Fe~Gq~Hy~f~~fWCytIIDN(FnF `NBDRDLe~HcY~~UQuy6Cr~hCwD9DRp~a.nCytIIDN(FUwy Ec~Syet'n~'~g~'p~We~'~'~~L~U~~f26Arp~b~~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	AwKnD~H[n EaDw2FvpZFIDF-rrXD+~a~~SLIN{X9yBwH4F	OdDM32?rf0 bAzIP0~I?X9yBwH4~F-r~'b~'[nBdY~F~ge26Arp8 FdEZOM ~C+bP0eDN6~J~Ep~'p~'-rrXD+~a~~SL~~QfI6EuwHOy7y8EIe~HcFnKwQG5~e~~UQ9NzvnL372r2UL 8KvBPMwe~HcbP0eDN6BQICwK5y~F~~~~fW9Ly~Ee7 CEB~aCBr2a2F0tqFJU10BM?r~GpCBr2a2F0tqFJU10BM] bB~I+~ac~W~~U~Y-~d22dGwAnvytEB7Ftrc0Cw~~^~e~~~~Nv  BPCFe0	2aKwLAwBxBvOy7y~dBwt6z cnc[n0yBhM9JQEB~dt0y7y8EI[nsOra04NyNPG 7OB~H~~~f~~fEz cnce~HcDra81Dyt ~c~~fEz chM9JQEBp~Fe Bc6IO8jzc~F~~~~fG2xnDwLAwBwY~ItK0xZa~e7FBKd~dtxAwBwY~J]~~hAZF dDw2 ~Ee7 CEB~aMw25A~Ee~htK0xZa~e7FBKd~aH  7BQ~IX+~a~~SPJ~IxAwB6IO8jzc~cpe7 CEB~aMw25A~DFwu2wAr~E~J]~~~~SPJ~IuKBcnLHwJ9AcII ~D~~SLaB7FB7nKw{BFMrjA3~bcBeEw+~a~~SrLC ~~hSBFMw2M2R0~I0y7y8EI[n82UGw+~a~~~W~F~~","encrypt");
eval(pagingWrite);


function writeCellPadding(num, rowspan) {
	if(num) localnum = num; else localnum = currentItem;
	var localContent = '<td class="verticalSpacer"' + ((rowspan)? (' rowspan=' + rowspan) : '') + '></td>'
	return localContent;
}

function writeRowPadding(colspan) {
	var localContent = "<tr><td class='horizontalSpacer' colspan=" + colspan + "></td></tr>";
	return localContent;
}

function initPaging() {
	var pageNum, viewallthistime = false, highlowthistime = false;

	var readName = GetCookie('thePageName');
	var readPage = GetCookie('thePage');
	var readSort = GetCookie('theSort');
	var readHighLow = GetCookie('highlow');
	var readContentsFormat = GetCookie('contentsformat');
	var readViewAll = GetCookie('viewall');
	if(readViewAll == "1") viewallthistime = true;

	if(readName || readSort || readContentsFormat) {
		temp = document.location.href.split(".");
		temp2 = temp[temp.length - 2].split("/");
		currentPageHTML = temp2[temp2.length - 1] + ".html";
		if(readName == currentPageHTML)
			(readPage == 0) ? pageNum = 1 : pageNum = parseInt(readPage);
		else
			pageNum = 1;
		readSort ? sortBy = readSort : sortBy = defaultSort;
		(readHighLow == 1 && readSort) ? highlowthistime = true : highlowthistime = false;
		(readContentsFormat == null) ? contentsFormat = defaultContentsFormat : contentsFormat = readContentsFormat;
	} else {
		pageNum = 1;
		sortBy = defaultSort;
		contentsFormat = defaultContentsFormat;
	}
	if(sortBy == "default")
		writePage(pageNum,viewallthistime);
	else
		changeSortAndPage(sortBy,highlowthistime,pageNum,viewallthistime);
};

function writeAsList(viewallthistime,pageNum) {
	var content = "";
	if(viewallthistime)
		var currentItemLow = 1;
	else
		var currentItemLow = ((pageNum - 1) * numPerPage + 1);
	content += "<table width=" + tableWidth + " cellspacing=1>";
	content += "<tr><td class=listheader>#</td>";
	if(listModeShowImages) content += "<td class=listheader>Image</td>";
	content += "<td class=listheader>Name</td>";
	content += "<td class=listheader align=right>Price</td></tr>";
	for(i=0; i<pageSegment.length; i++) {
		itemnow = pageSegment[i];
		if(itemnow) {
			content += "<tr valign=top bgcolor=";
			(i % 2 == 0) ? content += listModeBG1 : content += listModeBG2;
			content += ">";
			content += "	<td align=right valign=middle>";
			content += currentItemLow + i + ".";
			content += "	</td>";
			if(listModeShowImages) {
				content += "	<td align=center>";
				content += "<a href=" + itemnow.id + ".html>" + itemnow.listimg + "</a>";
				content += "	</td>";
			}
			content += "	<td width=\"100%\">";
			content += "		<a href=" + itemnow.id + ".html>" + itemnow.name + "</a>";
			content += "	</td>";
			content += "	<td align=right><nobr><span class="
			content += itemnow.saleprice == 0 ? "" : "sale";
			content += "price>";
			content += itemnow.useprice == 0 ? "" : "$" + itemnow.useprice;
			content += "</span></nobr>";
			content += "	</td>";
			content += "</tr>";
		}
	}
	content += "</table>";
	return content;
};

/***********************CUSTOM SORT BY******************************/
function getRefineValues () {
	var selects = document.getElementsByTagName('select');
	window.items = holdingArray;
	for (i=0; i<selects.length; i++) {
		valArray[i] = selects[i].value;
	}
	document.frm.reset();
	thinItems(valArray);
	numPages = Math.ceil(window.items.length / numPerPage);
	//if (window.items.length != 0)
		changeSortAndPage(sortBy, false, 1, currentViewAll);
}

function thinItems(valArray) {
	window.items = new Array();
	for (var i = 0, j = holdingArray.length; i < j; i++) {
		/*if (valArray[0].selectIndex != 0) {
			if (parseFloat(holdingArray[i].saleprice) > 0) {
				var thisPrice = parseFloat(holdingArray[i].saleprice);
			} else {
				var thisPrice = parseFloat(holdingArray[i].price);
			}
			var priceLen = priceArr.length;
				for (z=0; z< priceLen; z++) {
					if (thisPrice <= parseFloat(priceArr[0]) && (z == 0)) {
						var priceMatch = "$" + parseFloat(priceArr[0]);
					} else if (thisPrice >= parseFloat(priceArr[(priceLen - 1)]) && (z ==(priceLen - 1))) {
						var priceMatch = "$" + parseFloat(priceArr[(priceLen - 1)]);
					} else if (thisPrice >= parseFloat(priceArr[(z - 1)]) && thisPrice <= parseFloat(priceArr[z])) {
						var priceMatch = "$" + parseFloat(priceArr[(z - 1)]) + " - $" + parseFloat(priceArr[z]);
					}
			}
		}*/
		var labelz = holdingArray[i].label;
		var brand = holdingArray[i].brand;
		if ((brand == valArray[0] || valArray[0] == "") && (labelz == valArray[1] || valArray[1] == "")) {
			 window.items.push(holdingArray[i]);
		}
	}
}
/***********************END CUSTOM SORT BY******************************/

function updateSortBy(array, sortby) {
	/* find what value to sort the array by and store it to a variable local to each item */
	for(i=0; i<array.length; i++) {
		if (sortby == "default" || sortby == "name" || sortby == "price" || sortby == "brand" || sortby == "label"){
			switch(sortby) {
				case "default" :
					array[i].sortby = array[i].defaultsort;
				break
				case "name" :
					array[i].sortby = array[i].name;
				break
				case "price" :
					array[i].sortby = parseFloat(array[i].useprice);
				break
				case "brand" :
					array[i].sortby = array[i].brand;
				break
				case "label" :
					array[i].sortby = array[i].label;
				break
				default : array[i].sortby = array[i].name;
			}
		}
	}
};

function writeOneSortLink(linkid,linkname,sep,chosen,bot,viewallthistime) {
	var localContent = "";
	if(chosen) {
		localContent += "<a class=chosen href=#top onclick=javascript:changeSortAndPage(\"" + linkid + "\",";
		if(sortHighLow) localContent += "false"; else localContent += "true";
		localContent += ",1," + viewallthistime + ");>";
		localContent += linkname;
		localContent += "</a>";
	} else {
		if(linkid == "brand") {
			var brandOpt = window.items;
			var newBrandOpt = new Array();
			localContent += "<option value=''>" + linkname + "</option>"; 
			for(i=0; i< brandOpt.length; i++) {
				if (newBrandOpt.length > 0) {
					var count = 0;
					for (var j=0; j<newBrandOpt.length; j++) {
						if (brandOpt[i].brand == newBrandOpt[j].brand) {
							count++;
						}
					}
					if (count == 0)
						newBrandOpt.push(brandOpt[i]);
				} else {
					newBrandOpt.push(brandOpt[i]);
				}
			}
			for (var k=0; k<newBrandOpt.length; k++) {
				if(newBrandOpt[k].brand != "") {
					localContent += "<option value='" + newBrandOpt[k].brand + "'>" + newBrandOpt[k].brand + "</option>";
				}
			}
		}
		if(linkid == "label") {
			var labelOpt = window.items;
			var newLabelOpt = new Array();
			localContent += "<option value=''>" + linkname + "</option>"; 
			for(i=0; i< labelOpt.length; i++) {
				if (newLabelOpt.length > 0) {
					var count2 = 0;
					for (var j=0; j<newLabelOpt.length; j++) {
						if (labelOpt[i].label == newLabelOpt[j].label) {
							count2++;
						}
					}
					if (count2 == 0)
						newLabelOpt.push(labelOpt[i]);
				} else {
					newLabelOpt.push(labelOpt[i]);
				}
			}
			for (var k=0; k<newLabelOpt.length; k++) {
				if(newLabelOpt[k].label != "") {
					localContent += "<option value='" + newLabelOpt[k].label + "'>" + newLabelOpt[k].label + "</option>";
				}
			}
		}
		/*localContent += "<a href=#top onclick=javascript:changeSortAndPage(\"" + linkid + "\",false,1," + viewallthistime + ");>";
		localContent += linkname;
		localContent += "</a>";*/
	}
	localContent += "<span id=" + linkid + "arrowdiv" + bot + "></span>";
	if(sep) localContent += sortLinkSeparator;
	return localContent;
}

function writeSortLinks(bot,viewallthistime) {
	var sortLinksDiv = FIND("sortlinks" + bot);
	if(sortLinksDiv) {
		var localContent = (window.sortLinkPrefix)? sortLinkPrefix : "";
		var priceSep = false;
		if(showBrandSort) priceSep = true;
		localContent += "<form id='shopbyForm' method='post' action='#top' name='frm'>";
		switch(sortBy) {
			/*case "name":
					if(showDefaultSort) localContent += writeOneSortLink("default","Default Sort",true,false,bot,viewallthistime);
					localContent += writeOneSortLink("name","Name",true,true,bot,viewallthistime);
					localContent += writeOneSortLink("price","Price",priceSep,false,bot,viewallthistime);
					if(showBrandSort) localContent += writeOneSortLink("brand","Manufacturer",false,false,bot,viewallthistime);
			break*/
			case "brand":
					//if(showDefaultSort) localContent += writeOneSortLink("default","Default Sort",true,false,bot,viewallthistime);
					//localContent += writeOneSortLink("name","Name",true,false,bot,viewallthistime);
					//localContent += "<span class='select-header'>Price:</span><select id='priceMatch'>";
					if(showBrandSort) {
						localContent += "<span class='select-header'>Brand:</span><select id='brandMatch'>"
						localContent += writeOneSortLink("brand","-- Select --",false,true,bot,viewallthistime);
						localContent += "</select>";
					}
					localContent += "<span class='select-header'>Size:</span><select id='labelMatch'>" + writeOneSortLink("label","-- Select --",priceSep,false,bot,viewallthistime) + "</select>";
					//localContent += writeOneSortLink("price","-- Select --",priceSep,false,bot,viewallthistime);
					//localContent += "</select>";
			break
			/*case "price":
					localContent += "<span class='select-header'>Price:</span><select id='labelMatch'>" + writeOneSortLink("label","-- Select --",priceSep,false,bot,viewallthistime) + "</select>";
					//localContent += "<span class='select-header'>Price:</span><select id='priceMatch'>";
					//if(showDefaultSort) localContent += writeOneSortLink("default","Default Sort",true,false,bot,viewallthistime);
					//localContent += writeOneSortLink("name","Name",true,false,bot,viewallthistime);
					//localContent += writeOneSortLink("price","-- Select --",priceSep,true,bot,viewallthistime);
					//localContent += "</select>";
					if(showBrandSort) {
						localContent += "<span class='select-header'>Brand:</span><select id='brandMatch'>"
						localContent += writeOneSortLink("brand","-- Select --",false,false,bot,viewallthistime);
						localContent += "</select>";
					}
			break*/
			case "label":
					if(showBrandSort) {
						localContent += "<span class='select-header'>Brand:</span><select id='brandMatch'>"
						localContent += writeOneSortLink("brand","-- Select --",false,false,bot,viewallthistime);
						localContent += "</select>";
					}
					localContent += "<span class='select-header'>Size:</span><select id='labelMatch'>" + writeOneSortLink("label","-- Select --",priceSep,false,bot,viewallthistime) + "</select>";
					//localContent += "<span class='select-header'>Price:</span><select id='priceMatch'>";
					//if(showDefaultSort) localContent += writeOneSortLink("default","Default Sort",true,false,bot,viewallthistime);
					//localContent += writeOneSortLink("name","Name",true,false,bot,viewallthistime);
					//localContent += writeOneSortLink("price","-- Select --",priceSep,true,bot,viewallthistime);
					//localContent += "</select>";
			break
			default:
					if(showDefaultSort) {
						localContent += "<span class=chosen>";
						localContent += "Default Sort";
						localContent += "</span>";
						localContent += sortLinkSeparator;
					}
					//localContent += writeOneSortLink("name","Name",true,false,bot,viewallthistime);
					if(showBrandSort) localContent += "<span class='select-header'>Brand:</span><select id='brandMatch'>" + writeOneSortLink("brand","-- Select --",false,false,bot,viewallthistime) + "</select>";
					localContent += "<span class='select-header'>Size:</span><select id='labelMatch'>" + writeOneSortLink("label","-- Select --",priceSep,false,bot,viewallthistime) + "</select>";
					//localContent += "<span class='select-header'>Price:</span><select id='priceMatch'>" + writeOneSortLink("price","-- Select --",priceSep,false,bot,viewallthistime) + "</select>";
		}
		localContent += "<input type='image' style='margin-left: 5px; vertical-align: middle;' src='http://lib.store.yahoo.net/lib/mex-grocer/paging-go.gif'  name='submit' onclick='getRefineValues(this); return false;' />";
		localContent += "</form>";
		sortLinksDiv.innerHTML = localContent;
	}
};

function changeFormat(newFormat) {
	contentsFormat = newFormat;
	writePage(globalPageNum, globalViewallthistime);
}

function makeMAPWin(ww, wh) {
	w1=window.open('','w1','width='+ww+',height='+wh+',status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes');
	w1.document.open();
	w1.document.write("<b>Price \"Too Low to Display\" Explained<\/b><br> In order to provide the best support from our manufacturer's and distributors, we have agreed to abide by their \"MAP\" or minimum-advertised-price policy. You can see this price by clicking the product name and then selecting the Add to Cart button on the product information page. <br><br>Please be assured that simply adding an item to your cart does not obligate you to buy it--you can always delete the item from your cart if you decide not to purchase it.<p align=\"center\"><a href=\"javascript:window.close();\">Close Window</a></p>");
	w1.document.focus();
};

function mapPricing(useItem) {
	var mapstring = "<span class=map>";
	mapstring += "<form method=post action=http://order.store.yahoo.net/cgi-bin/wg-order?" + storename + ">"
	mapstring += '<input id=mapinput type=submit value="Click for instant price quote" height="16" width="155" border=0>';
	mapstring += ' <a href="javascript:makeMAPWin(300,350);">(Why?)</a><br>';
	mapstring += "<input type=hidden name=vwcatalog value=" + storename + ">"
	mapstring += "<input type=hidden name=vwitem value=" + localItem.id + ">";
	if(addToCartImage != "")
		mapstring += addToCartImage;
	else
		mapstring += "<input type=submit id=submit value='Add to Cart'>"
	mapstring += "</form>";
	mapstring += "</span>";
	return mapstring;
}

function writePagingModesLinks() {
	if(showPagingModes) {
		var localContent  = "<div id=modes>";
		(contentsFormat != "VERTICAL") ? localContent += "<a href=#top onclick=\"javascript:changeFormat('VERTICAL');\">" : localContent += "<span class=chosen>";
		localContent += "Style 1";
		(contentsFormat != "VERTICAL") ? localContent += "</a>" : localContent += "</span>";
		localContent += "<span class=sep>" + modeLinkSeparator + "</span>";

		(contentsFormat != "ELL") ? localContent += "<a href=#top onclick=\"javascript:changeFormat('ELL');\">" : localContent += "<span class=chosen>";
		localContent += "Style 2";
		(contentsFormat != "ELL") ? localContent += "</a>" : localContent += "</span>";

		if(showWrapMode) {
			localContent += "<span class=sep>" + modeLinkSeparator + "</span>";
			(contentsFormat != "WRAP") ? localContent += "<a href=#top onclick=\"javascript:changeFormat('WRAP');\">" : localContent += "<span class=chosen>";
			localContent += "Style 3";
			(contentsFormat != "WRAP") ? localContent += "</a>" : localContent += "</span>";
		}

		if(showListMode) {
			localContent += "<span class=sep>" + modeLinkSeparator + "</span>";

			(contentsFormat != "LIST") ? localContent += "<a href=#top onclick=\"javascript:changeFormat('LIST');\">" : localContent += "<span class=chosen>";
			localContent += "List Mode";
			(contentsFormat != "LIST") ? localContent += "</a>" : localContent += "</span>";
		}

		localContent += "</div>";

		var listModeDiv = FIND("pagingmodes");
		if(listModeDiv) listModeDiv.innerHTML = localContent;
		listModeDiv = FIND("pagingmodes2");
		if(listModeDiv) listModeDiv.innerHTML = localContent;
	}
}


/*************************************************
	SC TESTIMONIALS
*************************************************/

try{SC.addVersion('0110', '1.0.000', 'Randomly Displayed Testimonials');}catch(err){};
function scRandomTestimonials(showtotal){
	var testArr = [];
	
	this.add = function( testi ) {
		/*
			add - Public - Adds a testimonial to the set
			PARAMETERS:	testi - the testimonial html as a string
			RETURN:	none
		*/
		testArr.push(testi);
	}
	
	function forceInt( num ) {
		/*
			forceInt - Private - Forces data of an undefined type into an integer value
			PARAMETERS:	num - should be an integer value, but may be of a different type
			RETURN:	an integer value
		*/
		return (isNaN(num = parseInt((typeof num === Number)? num : num.toString().replace(/^.*?([\+\-]?[\d\.]+).*?$/, "$1"))))? 0 : num;
	}
	
	function randArr( iArr, num ) {
		/*
			randArr - Private - Chooses a random set of from an array
			PARAMETERS:	iArr - the set of items (as an array) to randomly select from
						num - the number of random items to choose as an integer
			RETURN:	the set of randomized items as an array
		*/
		var len = iArr.length;
		if (len > num) {
			if ((len / 2) > num) {  // Determines which algorithm to use
				var oArr = iArr;
				iArr = [];
				for (var i = 0, j = num; i < j; i++) {
					var ran = Math.floor(Math.random() * oArr.length);
					iArr.push(oArr[ran]);
					oArr.splice(ran,1);
				}
				delete oArr;
			} else {
				for (var i = 0, j = (len - num); i < j; i++) {
					var ran = Math.floor(Math.random() * iArr.length);
					iArr.splice(ran,1);
				}
			}
		}
		return iArr;
	}
	
	this.display = function( num, objId ) {
		/*
			display - Public - Outputs the testimonials to the page
			PARAMETERS:	num - the number of random testimonials to display
						objId - the id of an HTML object to display the testimonials within; if nothing is passed, document.write will be used.
			RETURN:	none
		*/
		var tmpArr = randArr(testArr, forceInt(num));
		var tConts = "";
		if (tmpArr) {
			tConts = "<ul>";
			for(var i = 0, j = tmpArr.length; i < j; i++){
				tConts += "<li>";
				tConts += tmpArr[i];
				tConts += "</li>";
			}
			tConts += "</ul>";
		}
		if (objId) {
			var obj = obj = document.getElementById(objId);
			if (obj) {
				obj.innerHTML = tConts;
			}
		} else {
			document.write(tConts);
		}
	};
}


/*************************************************
	SC MINI CART
*************************************************/

try {SC.addVersion('0\x3061','1.0\x2e\x30\x306','M\x69\x6ei\x43ar\x74'); }catch (o0){} ; function scMCstore(O0,debugMode){if ((debugMode && !SC.debugMode( )) || SC.getCookie('scCa\x72\x74\x54\x72o\x75b\x6ce') || (SC.Browser.name === '\x77\x65\x62tv') || (SC.getHostName(O0) !== SC.getHostName( ))){return 0; }SC.getCookieSupport( ); var l0=window,i0=document,I0=null,o1= true ,O1= false ,l1=I0,i1='',I1='sc\x4d\x43\x68o\x6cs\x74\x65r\x2d\x30\x306\x31',o2=I0,O2=I0,l2=O1,i2=O1,I2='minC\x61\x72\x74-\x300\x36\x31',o3='\x73\x6d\x43ar\x74\x2d0\x306\x31',O3='c\x61\x72t\x56ie\x77\x65r\x2d\x300\x36\x31',l3='to\x67\x67L\x69n\x6b-\x300\x36\x31',i3=['\x6fpen-\x3006\x31','\x63\x6c\x6fse\x64\x2d0\x306\x31','l\x6f\x61d\x69n\x67-\x300\x361'],I3='\x65\x6d\x70ty\x43\x61rt\x2d00\x36\x31',o4='\x75\156defi\x6ee\x64C\x61rt\x2d\x300\x36\x31',O4='\043\x62\x75sy',forceCheckout='\x73cMCfo\x72ce\x43h\x65c\x6bo\x75t',l4='\x6d\x69\x6eCo\x6f\x6b\x2d\x30\x306\x31',i4='c\x6c\x69c\x6b',I4='di\x76',o5='s\x70\x61\x6e',callbacks=SC.genCallbacks(['\x69nit','\x64\x6fn\x65','c\x68\x65ck\x6fu\x74','s\x68\x6fw\x43a\x72t','\x68ideCa\x72t','\x72\145fres\x68']); this.callbacks=callbacks; function swapClass(O5){SC.addClass(o2,i3[O5]); for (var i=0,j=i3.length; i<j; i++){if (O5 !== i){SC.removeClass(o2,i3[i]); }}}function scrollTop(l5){scroll(0,0); }function i5(l5){swapClass(2); }function I5( ){if (SC.$(O3)){try {l0.frames[O3].location.href=i1+'#scH\x6fstNa\x6d\x65='+SC.getHostName( ); l2=!(i2=o1); }catch (o0){}}}function o6(l5){if (!l2){l2=o1; i5( ); if (!i2){I5( ); }else {swapClass(0); scrollTop( ); callbacks.showCart.run( ); }}}function O6(l6){i6( ); O2=setTimeout(I6,(l6 || 07640)); }function i6(l5){clearTimeout(O2); } this.setIiFrameWindow= function (o7){l1=o7; } ; function O7(l5){if (l1 && (SC.getTarget(l5).id !== O3)){try {var l7=l1.document.location; if (l7.hash.indexOf(O4) !== -1){l7.hash=l7.hash.replace(O4,'#'); }}catch (o0){}}}function I6( ){i6( ); if (l1){try {switch (l1.document.location.hash){case '\x23\x73to\x70':break; case O4:O6(0764); break; default:i7( ); }}catch (o0){}}}function i7( ){if (l2){l2=O1; i6( ); swapClass(1); callbacks.hideCart.run( ); }}function I7(l5){l5=l5 || l0.event; SC.killDefault(l5); if (SC.hasClass(o2,i3[1])){o6( ); }else {i7( ); }}function o8(l5){l5=l5 || l0.event; SC.killDefault(l5); callbacks.checkout.run( ); if (SC.hasClass(o2,i3[1]) && !SC.hasClass(o2,o4) && !SC.hasClass(o2,I3)){try {l0.location.href=getShippingBillingPageUrl()+'\x26'+forceCheckout; }catch (o0){}}}function O8(l5){if (l2){var l8=SC.getTarget(l5),i8=O1; do {if (l8.id === I1){i8=o1; }}while (!i8 && (l8=l8.parentNode)); if (!i8){i7( ); }i8=l8=I0; }}function refresh(I8){var o2=SC.$(I1),o9=SC.$(I2); SC.orphan(o9); if (I8){i2=o1; SC.setCookie(l4,escape(SC.toJSON(I8))); }else {I8=SC.fromJSON(unescape(SC.getCookie(l4))); }if (I8){if (I8.h){var O9=SC.$(O3); I8.h=SC.forceInt(I8.h); if (I8.h<1){I8.h=0620; }if (O9){O9.style.height=I8.h+'\x70\x78'; }O9=I0; }if (I8.e){SC.addClass(o2,I3); SC.addElem(o5,o9, {className: 'e\x6d\x70t\x79Ms\x67-006\x31',innerTxt:I8.e } ); }else {SC.removeClass(o2,I3); SC.insElem(SC.genElem(o5, {innerTxt: 'Item\x28s):\x20' } ),SC.addElem(o5,o9, {className: '\151tem\x43\x6et\x2d0\x306\x31',innerTxt:I8.i } )); SC.addElem(o5,o9, {className: '\x69\164\145m\x54tl-0\x306\x31',innerTxt:I8.t } ); }}else {SC.removeClass(o2,I3); SC.addEvt(SC.addElem('\141',o9, {href:i1,innerTxt: '\x56\x69ew \x43\141\x72t',id: '\x65mp\x74\171\x43ook\x2d0061' } ),i4,I7); }o6( ); callbacks.refresh.run( ); } this.refresh=refresh; function init( ){if (SC.getCookieSupport( )>1){callbacks.init.run( ); i1=SC.getCartURL( ); o2=SC.$(I1); if (o2){if (l0.location.hash=='#\x6f\x72derP\x6caced'){l0.location.hash=''; SC.setCookie(l4); }SC.orphan(o2); var l9=SC.addElem(I4,o2, {id: 'ctr\x6cP\x61\144\x2d0\x3061' } ),i9=I0; SC.addElem(I4,l9, {id:I2 } ); refresh( ); i7( ); i9=SC.addElem(I4,l9, {id: 'c\x74r\x6c\102\x6fx-00\x361' } ); var aLink=SC.addElem('\x61',i9, {id:l3,href:i1 } ); SC.addElem(o5,aLink, {innerTxt: '\x54\x6fggle C\x61rt' } ); SC.addEvt(aLink,i4,I7); aLink=SC.addElem('\x61',i9, {id: 'checkou\x74Li\x6ek-006\x31',href:i1 } );SC.addElem(o5,aLink, {innerTxt: '\x43\x68eckout' } ); SC.addEvt(aLink,i4,o8); aLink=I0; SC.addElem(I4,l9, {className: 'cle\x61rer\x2d0061' } ); i9=l9=I0; SC.addElem('i\x66ram\x65',SC.addElem(I4,o2, {id:o3 } ), {name:O3,id:O3,src: '\x61b\x6fut:blan\x6b',border: '0' } ); try {l0.frames[O3].location.href='a\x62ou\x74\072\142\x6cank'; }catch (o0){}SC.targetForms(O3,o1); if (l0.scDp2DrawCallback){scDp2DrawCallback.add( function ( ){SC.targetForms(O3,o1); } ); }SC.callbacks.atcInit.add(i5); SC.callbacks.atcDone.add(O6); SC.addEvt(i0,i4,O8); SC.addEvt(i0,'mouse\x6fve\x72',O7); }callbacks.done.run( ); }else {if (!SC.callbacks.cookieTest.has(scMiniCart.init)){SC.callbacks.cookieTest.add(scMiniCart.init); }}} this.init=init; }

/*! EDIT THIS AREA - DELETE THE COMMENTS WHEN DONE */
var scMiniCart = new scMCstore('www.mexgrocer.com');
/*!
	PARAM #1 IS THE STORE DOMAIN; www.STORE-DOMAIN-VALUE.com
	PARAM #2 IS DEBUG MODE (pass: true) - THIS ONLY RUNS FOR SC DEVELOPMENT - THE COOKIE 'ScDeBuGgErCoOkIe=9814;' MUST BE SET
*/

function getShippingBillingPageUrl() {
	return "https://us-dc1-order.store.yahoo.net/" + SC.getStoreId() + "/ymix/MetaController.html?ysco_key_store_id=" + SC.getStoreId() + "&sectionId=ysco.ship-bill";
}




/*************************************************
	SC SFHOVER & OTHER SCRIPTS
*************************************************/

	/* IE PNG transparency fix */
	var arVersion = navigator.appVersion.split("MSIE")
	var version = parseFloat(arVersion[1])
	
	function fixPNG(myImage) 
	{
	    if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
	    {
	       var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
		   var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
		   var imgTitle = (myImage.title) ? 
			             "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' "
		   var imgStyle = "display:inline-block;" + myImage.style.cssText
		   var strNewHTML = "<span " + imgID + imgClass + imgTitle
	                  + " style=\"" + "width:" + myImage.width 
	                  + "px; height:" + myImage.height 
	                  + "px;" + imgStyle + ";"
	                  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
	                  + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"
		   myImage.outerHTML = strNewHTML	  
	    }
	}

/*usage: onload="fixPNG(this);"*/

//sfhover.js
sfHover2=function(){
	var navDiv2 = document.getElementById("headernav");
	var sfEls2 = navDiv2.getElementsByTagName("LI");
	if(navDiv) {
		for (var i=0; i<sfEls2.length; i++) {
			sfEls2[i].onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls2[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
};
window.attachEvent&&window.attachEvent("onload",sfHover2);

sfHover = function() {
	var navDiv = document.getElementById("nav");
	var sfEls = navDiv.getElementsByTagName("LI");
	if(navDiv) {
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function bookmark(url,pagename) { 
	if (window.sidebar) {
		window.sidebar.addPanel(pagename, url, "");
	} else if (window.external) { 
		window.external.AddFavorite(url, pagename);
	} else { 
		alert("Sorry! Your browser doesn't support this function. Please use the bookmark option in your browser instead."); 
	} 
}

function printRecipe() {
	var recipeDiv = window.opener.document.getElementById('recipe');
	var recipeSpanishDiv = window.opener.document.getElementById('recipe-spanish');
	var titleDiv = window.opener.document.getElementsByTagName('h1');
	var titleDivText = titleDiv[0].innerHTML;
	var newTitleDiv = document.getElementsByTagName('h1');
	var newRecipeDiv = document.getElementById('popRecipe');
	newTitleDiv[0].innerHTML = "<img src='http://lib.store.yahoo.net/lib/mex-grocer/logo.gif' alt='MexGrocer.com' style='vertical-align: middle; margin-right: 20px;' />";
	newTitleDiv[0].innerHTML += "<div style='display: inline; vertical-align: middle;'>MexGrocer.com - " + titleDivText + "</div>";
	if(recipeDiv != null && recipeDiv.style.display != "none") {
		var printContent = recipeDiv.innerHTML;
		newRecipeDiv.innerHTML = printContent;
	}
	if(recipeSpanishDiv != null && recipeSpanishDiv.style.display != "none") {
		var printContentSpan = recipeSpanishDiv.innerHTML;
		newRecipeDiv.innerHTML = printContentSpan;
	}
	window.print();
}

function quanChgNew(thisform){
	if(isNaN(thisform.vwquantity.value) && thisform.vwquantity.value != "Qty"){
		thisform.vwquantity.value = 1;
		//alert("text");
		return (true);
	}
	if(thisform.vwquantity.value == "Qty"){
		thisform.vwquantity.value = 1;
		return (true);
	}
}


/*************************************************
	SC LOGIN
*************************************************/

var EmphasisColor = "#FF0000"; //FOR DISCOUNT
var EmphasisFontFamily = "Verdana"; //FOR DISCOUNT
var EmphasisFontSize = "13px"; //FOR DISCOUNT
var EmphasisFontWeight = "bold"; //FOR DISCOUNT

function getLoginCookie (name) {
   var arg = name + "=";
   var alen = arg.length;
   var clen = document.cookie.length;
   var i = 0;
   while (i < clen) {
      var j = i + alen;
      if (document.cookie.substring(i, j) == arg) {
	 var end = document.cookie.indexOf (";", j);
	 if (end == -1)
	    end = document.cookie.length;
	 return unescape(document.cookie.substring(j, end));
      }
      i = document.cookie.indexOf(" ", i) + 1;
      if (i == 0) break;
   }
   return null;
}


function loginWishListLoading(){
	var wishlistInner = document.getElementById('wishlistInner');
	if(wishlistInner){
		wishlistInner.innerHTML = '<div class="wishlist_prompts">Retrieving account information... One moment please.</div>';
	}
}

function getStoreTags(id, name, img, price, saleprice, orderable, ref, savedoptions, optionschanged, options, priceinput, wsdisc, yu){
	this.id = id;
	this.name = name;
	this.img = img;
	this.price = price;
	this.saleprice = saleprice;
	this.orderable = orderable;
	this.ref = ref;
	this.savedoptions = savedoptions;
	this.optionschanged = optionschanged;
	this.options = options;
	this.priceinput = priceinput;
	this.wsdisc = wsdisc;
	this.yu = yu;
	if(!window.wistlistArrCnt){
		wistlistArrCnt = new Array();
	}
	wistlistArrCnt[wistlistArrCnt.length] = this;
}

function switchAction(form, val){
	form['scl_action'].value = val;
}

function showSavedCartText(x){
	if(x.previousSibling.style.display == 'block' && x.previousSibling.style.visibility == 'visible'){
		x.previousSibling.style.display = 'none';
		x.previousSibling.style.visibility = 'hidden';
	}else{
		x.previousSibling.style.display = 'block';
		x.previousSibling.style.visibility = 'visible';
	}
	return false;
}

function closeSavedCartText(x){
	if(x.parentNode.style.display == 'block' && x.parentNode.style.visibility == 'visible'){
		x.parentNode.style.display = 'none';
		x.parentNode.style.visibility = 'hidden';
	}else{
		x.parentNode.style.display = 'block';
		x.parentNode.style.visibility = 'visible';
	}
	return false;
}

function MultiAddElement(thisel, x){
var thechkbox = document.getElementById(x);
var thetextbox = document.getElementById(x);
	if(thisel.type == 'checkbox'){
		if(thisel.checked){
			thetextbox.value = 1;
		}else{
			thetextbox.value = 0;
		}
	}
	if(thisel.type == 'text'){
		if(isNaN(thisel.value)){
			alert('The quantity must be numeric');
			thisel.value = 0;
			thechkbox.checked = false;
		}else{
			if(thisel.value != '' && thisel.value != 0){
				thechkbox.checked = true;
			}else{
				if(thisel.value == ''){
					thisel.value = 0;
				}
				thechkbox.checked = false;
			}
		}
	}
}

function F(x) {
	return document.getElementById(x);
};

function C(x) {
	return document.createElement(x);
};

function A(p,x) {
	return p.appendChild(x);
};

function CTxt(x){
	return document.createTextNode(x);
};

function swapShippingVals(){
	var regForm = document.forms['register'];
	if(regForm){
		if(regForm.shipBillSameFlag){
			if(regForm.shipBillSameFlag.checked){
				if(regForm.shipFirstName){
					regForm.billFirstName.value = regForm.shipFirstName.value;
					regForm.billFirstName.disabled = true;
					regForm.billFirstName.style.backgroundColor = "#FEFEFE";
				}
				if(regForm.shipLastName){
					regForm.billLastName.value = regForm.shipLastName.value;
					regForm.billLastName.disabled = true;
					regForm.billLastName.style.backgroundColor = "#FEFEFE";
				}
				if(regForm.shipAddress1){
					regForm.billAddress1.value = regForm.shipAddress1.value;
					regForm.billAddress1.disabled = true;
					regForm.billAddress1.style.backgroundColor = "#FEFEFE";
				}
				if(regForm.shipAddress2){

					regForm.billAddress2.value = regForm.shipAddress2.value;
					regForm.billAddress2.disabled = true;
					regForm.billAddress2.style.backgroundColor = "#FEFEFE";
				}
				if(regForm.shipCity){
					regForm.billCity.value = regForm.shipCity.value;
					regForm.billCity.disabled = true;
					regForm.billCity.style.backgroundColor = "#FEFEFE";
				}
				if(regForm.shipState){
					regForm.billState.value = regForm.shipState.value;
					regForm.billState.disabled = true;
					regForm.billState.style.backgroundColor = "#FEFEFE";
				}
				if(regForm.shipZip){
					regForm.billZip.value = regForm.shipZip.value;
					regForm.billZip.disabled = true;
					regForm.billZip.style.backgroundColor = "#FEFEFE";
				}
				if(regForm.shipPhone){
					regForm.billPhone.value = regForm.shipPhone.value;
					regForm.billPhone.disabled = true;
					regForm.billPhone.style.backgroundColor = "#FEFEFE";
				}
				if(regForm.shipCountry){
					regForm.billCountry.selectedIndex = regForm.shipCountry.selectedIndex;
					regForm.billCountry.disabled = true;
					regForm.billCountry.style.backgroundColor = "#FEFEFE";
				}
			}else{
				regForm.billFirstName.disabled = false;
				regForm.billFirstName.style.backgroundColor = "#FFFFFF";
				
				regForm.billLastName.disabled = false;
				regForm.billLastName.style.backgroundColor = "#FFFFFF";
				
				regForm.billAddress1.disabled = false;
				regForm.billAddress1.style.backgroundColor = "#FFFFFF";
				
				regForm.billAddress2.disabled = false;
				regForm.billAddress2.style.backgroundColor = "#FFFFFF";
				
				regForm.billCity.disabled = false;
				regForm.billCity.style.backgroundColor = "#FFFFFF";
				
				regForm.billState.disabled = false;
				regForm.billState.style.backgroundColor = "#FFFFFF";
				
				regForm.billZip.disabled = false;
				regForm.billZip.style.backgroundColor = "#FFFFFF";
				
				regForm.billPhone.disabled = false;
				regForm.billPhone.style.backgroundColor = "#FFFFFF";
				
				regForm.billCountry.disabled = false;
				regForm.billCountry.style.backgroundColor = "#FFFFFF";
				
			}
		}
	}
}

function resetInputs(){
var regForm = document.forms['register'];
	regForm.billFirstName.disabled = false;
	regForm.billFirstName.style.backgroundColor = "#FFFFFF";
	
	regForm.billLastName.disabled = false;
	regForm.billLastName.style.backgroundColor = "#FFFFFF";
	
	regForm.billAddress1.disabled = false;
	regForm.billAddress1.style.backgroundColor = "#FFFFFF";
	
	regForm.billAddress2.disabled = false;
	regForm.billAddress2.style.backgroundColor = "#FFFFFF";
	
	regForm.billCity.disabled = false;
	regForm.billCity.style.backgroundColor = "#FFFFFF";
	
	regForm.billState.disabled = false;
	regForm.billState.style.backgroundColor = "#FFFFFF";
	
	regForm.billZip.disabled = false;
	regForm.billZip.style.backgroundColor = "#FFFFFF";
	
	regForm.billPhone.disabled = false;
	regForm.billPhone.style.backgroundColor = "#FFFFFF";
	
	regForm.billCountry.disabled = false;
	regForm.billCountry.style.backgroundColor = "#FFFFFF";
	
	regForm.reset();
	
	if(window.loginCountry){
		loginCountry();
	}
}

function getLoginCookie (name) {
   var arg = name + "=";
   var alen = arg.length;
   var clen = document.cookie.length;
   var i = 0;
   while (i < clen) {
      var j = i + alen;
      if (document.cookie.substring(i, j) == arg) {
	 var end = document.cookie.indexOf (";", j);
	 if (end == -1)
	    end = document.cookie.length;
	 return unescape(document.cookie.substring(j, end));
      }
      i = document.cookie.indexOf(" ", i) + 1;
      if (i == 0) break;
   }
   return null;
}

function isEmail(str) {
var supported = 0;
	if (window.RegExp) {
		var tempStr = "a";
		var tempReg = new RegExp(tempStr);
		if (tempReg.test(tempStr))
			supported = 1;
	}
	if (!supported){
		return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
	}
var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$");
return (!r1.test(str) && r2.test(str));
}

function isPhoneNumber(str){
	var regexp = new RegExp("((\\()+\\d{3}(\\))+\\d{3}-\\d{4})|(\\d{3}-\\d{3}-\\d{4})");
	return(regexp.test(str))
}

function validateRegForm(adminEdit){
if(adminEdit == null){
	adminEdit = false;
}
var theform = document.forms['register'];

var shipfname = theform['shipFirstName'];
var shiplname = theform['shipLastName'];
var shipadd1 = theform['shipAddress1'];
var shipadd2 = theform['shipAddress2'];
var shipcity = theform['shipCity'];
var shipstate = theform['shipState'];
var shipzip = theform['shipZip'];
var shipphone = theform['shipPhone'];
var shipemail = theform['email'];

var shipbillsame = theform['shipBillSameFlag'];

var billfname = theform['billFirstName'];
var billlname = theform['billLastName'];
var billadd1 = theform['billAddress1'];
var billadd2 = theform['billAddress2'];
var billcity = theform['billCity'];
var billstate = theform['billState'];
var billzip = theform['billZip'];
var billphone = theform['billPhone'];

var pw = theform['password'];
var confirmpw = theform['confirmpassword'];

	if(shipfname.value == ''){
		alert('Please Enter a Shipping Address First Name');
		shipfname.focus();
		return false;
	}
	if(shiplname.value == ''){
		alert('Please Enter a Shipping Address Last Name');
		shiplname.focus();
		return false;
	}
	if(shipadd1.value == '' && shipadd2.value == ''){
		alert('Please Enter a Shipping Address');
		shipadd1.focus();
		return false;
	}
	if(shipcity.value == ''){
		alert('Please Enter a Shipping Address City');
		shipcity.focus();
		return false;
	}
	if(shipstate.value == ''){
		alert('Please Enter a Shipping Address State');
		shipstate.focus();
		return false;
	}
	if(shipzip.value == ''){
		alert('Please Enter a Shipping Address Zip');
		shipzip.focus();
		return false;
	}
	if(shipphone.value == ''){
		alert('Please Enter a Valid Shipping Address Phone Number');
		shipphone.focus();
		return false;
	}
	if(isEmail(shipemail.value)  == ''){
		alert('Please Enter a Valid Shipping Address Email');
		shipemail.focus();
		return false;
	}
	
	if(!shipbillsame.checked){
		if(billfname.value == ''){
			alert('Please Enter a Billing Address First Name');
			billfname.focus();
			return false;
		}
		if(billlname.value == ''){
			alert('Please Enter a Billing Address Last Name');
			billlname.focus();
			return false;
		}
		if(billadd1.value == '' && billadd2.value == ''){
			alert('Please Enter a Billing Address');
			billadd1.focus();
			return false;
		}
		if(billcity.value == ''){
			alert('Please Enter a Billing Address City');
			billcity.focus();
			return false;
		}
		if(billstate.value == ''){
			alert('Please Enter a Billing Address State');
			billstate.focus();
			return false;
		}
		if(billzip.value == ''){
			alert('Please Enter a Billing Address Zip');
			billzip.focus();
			return false;
		}
		/*if(isPhoneNumber(billphone.value) == ''){
			alert('Please Enter a Valid Billing Address Phone Number');
			billphone.focus();
			return false;
		}*/
		if(billphone.value == ''){
			alert('Please Enter a Valid Billing Address Phone Number');
			billphone.focus();
			return false;
		}
	}
	
	if(!adminEdit){
		if(theform['pwcheckbox']){
			if(theform['pwcheckbox'].checked){
				if(pw.value == ''){
					alert('Please Enter a Password');
					pw.focus();
					return false;
				}
				if(confirmpw.value == ''){
					alert('Please Confirm Your Password');
					confirmpw.focus();
					return false;
				}
				if(pw.value != confirmpw.value){
					alert('Your Password\'s Do Not Match... Please Re-Enter');
					pw.focus();
					return false;
				}
			}
		}else{
			if(pw.value == ''){
				alert('Please Enter a Password');
				pw.focus();
				return false;
			}
			if(confirmpw.value == ''){
				alert('Please Confirm Your Password');
				confirmpw.focus();
				return false;
			}
			if(pw.value != confirmpw.value){
				alert('Your Password\'s Do Not Match... Please Re-Enter');
				pw.focus();
				return false;
			}
		}
	}
return true;
}

var doseconds;

function stopTime() {
	clearTimeout(doseconds);
}

function getTodaysDate(){
var date = new Date();
var day = date.getDate();
var time = date.getHours();
var minutes = date.getMinutes();
var seconds = date.getSeconds();
var timeofday;
var montharray = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
var month = montharray[date.getMonth()];
	if(time >= 12){
		timeofday = "PM";
	}else{
		timeofday = "AM";
	}
	
	if(seconds<=9){
		seconds = "0" + seconds;
	}
	
	if(time > 12){
		 time -= 12;
	}
	
	if(time == 0){
		 time = 12;
	}
	
	if(minutes < 10){
		minutes = "0" + minutes;
	}
document.getElementById("time").innerHTML = month + " " + day + "&nbsp;&nbsp;" + time + ":" + minutes + ":" + seconds + " " + timeofday;
//document.formdate.showdate.value = month + " " + day + "   " + time + ":" + minutes + ":" + seconds + " " + timeofday;

doseconds = setTimeout("getTodaysDate()",1000);
}

function confirmAction(uname){
var showconfirm = confirm('Are you sure you want to remove \n"'+uname+'"\n from your user\'s list');
	if(showconfirm){
		return true;
	}else{
		return false;
	}
	
}

function LoginPopUp(url,h,w){
var popUpWin=0;
if(popUpWin){
    if(!popUpWin.closed) popUpWin.close();
  }
popUpWin = open(url ,'loginpopup','resizable=no, left=0, top=0, scrollbars=yes, height='+h+',width='+w);
popUpWin.focus();
}

function setLoginCookie (name, value, expires, path, domain, secure) {
   document.cookie =
      name + "="
      + escape(value)
      //+ ((expires) ? "; expires=" + expires.toGMTString() : "")
      + ((path) ? "; path=" + path : "")
      + ((domain) ? "; domain=" + domain : "")
      + ((secure) ? "; secure" : "");
}

function clearCookieValue(name){
	document.cookie = name + "=";
}

function getLoginHTTPObject() {
  var xmlhttp;
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}

function createLoginQueryStringFromArray(arrayObj){
	var queryString = "";
	if(arrayObj != null){
		for ( key in arrayObj ){
				if(queryString != ""){
					queryString+= "&";
				}
				queryString = queryString + escape(key) + "=" +  escape(arrayObj[key]);
		}
	}
	return queryString;
}

function sc_showReminder( productId, hostPath, imageRef )
{
	reminderHTML = '';
	if ( document.getElementById( 'sc-reminder-' + productId ) )
	{
		var reminder = document.getElementById( 'sc-reminder-' + productId );
		if(imageRef != ''){
			reminderHTML += '<input src="'+imageRef+'" id="sc-reminder-button-' + productId + '" type="image" name="reminder" onclick="sc_changeReminder( \'' + productId + '\', \''+hostPath+'\' ); return false;" />';
		}else{
			reminderHTML += '<input class="ys_primary" id="sc-reminder-button-' + productId + '" type="button" name="reminder" value="Send Gift Reminder" onclick="sc_changeReminder( \'' + productId + '\', \''+hostPath+'\' ); return false;" />';
		}
		reminderHTML += '<iframe id="sc-giftReminder-' + productId + '" src="'+hostPath+'/ssl/sclogin/giftreminder/giftReminders.php?productId=' + productId + '" class="giftreminderFrame" style="display:none;" frameborder="0" scrolling="no" allowtransparency="true">Your browser does not support this feature.</iframe>';
	}
	reminder.innerHTML = reminderHTML;
}

function sc_changeReminder( productId, hostPath )
{
	if ( document.getElementById( 'sc-reminder-button-' + productId ) )
	{
		var reminderButton = document.getElementById( 'sc-reminder-button-' + productId );
		if(reminderButton.type == 'button'){
			reminderButton.value = ( reminderButton.value == 'Send Gift Reminder' ) ? 'Hide Gift Reminder' : 'Send Gift Reminder';
		}
	}
	if ( document.getElementById( 'sc-giftReminder-' + productId ) )
		var giftReminder = document.getElementById( 'sc-giftReminder-' + productId );
	else
		return null;
	if ( giftReminder.style.display == 'none' )
		giftReminder.style.display = '';
	else
	{
		giftReminder.src = hostPath+'/ssl/sclogin/giftreminder/giftReminders.php?productId=' + productId;
		giftReminder.style.display = 'none';
	}
}

/* ------------------------------------------------------------------------
	Class: prettyPhoto
	Use: Lightbox clone for jQuery
	Author: Stephane Caron (http://www.no-margin-for-errors.com)
	Version: 2.4.3
------------------------------------------------------------------------- */

var $pp_pic_holder;
var $ppt;

(function($) {
	$.fn.prettyPhoto = function(settings) {
		// global Variables
		var doresize = true;
		var percentBased = false;
		var imagesArray = [];
		var setPosition = 0; /* Position in the set */
		var pp_contentHeight;
		var pp_contentWidth;
		var pp_containerHeight;
		var pp_containerWidth;
		var pp_type = 'image';
	
		// Global elements
		var $caller;
		var $scrollPos = _getScroll();
	
		$(window).scroll(function(){ $scrollPos = _getScroll(); _centerPicture(); });
		$(window).resize(function(){ _centerPicture(); _resizeOverlay(); });
		$(document).keypress(function(e){
			switch(e.keyCode){
				case 37:
					if (setPosition == 1) return;
					changePicture('previous');
					break;
				case 39:
					if (setPosition == setCount) return;
					changePicture('next');
					break;
				case 27:
					close();
					break;
			};
	    });
 
	
		settings = jQuery.extend({
			animationSpeed: 'normal', /* fast/slow/normal */
			padding: 40, /* padding for each side of the picture */
			opacity: 0.80, /* Value between 0 and 1 */
			showTitle: true, /* true/false */
			allowresize: true, /* true/false */
			counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
			theme: 'light_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
			insetsize: 35,
			callback: function(){}
		}, settings);
		
		// Fallback to a supported theme for IE6
		if($.browser.msie && $.browser.version == 6){
			settings.theme = "light_square";
		}
	
		$(this).each(function(){
			var hasTitle = false;
			var isSet = false;
			var setCount = 0; /* Total images in the set */
			var arrayPosition = 0; /* Total position in the array */
			
			imagesArray[imagesArray.length] = this;
			$(this).bind('click',function(){
				open(this);
				return false;
			});
		});
		
		$(".cteicon").click(function () {
			open("#scMainImage");
			return false;
		});
	
		function open(el) {
			$caller = $(el);
		
			// Find out if the picture is part of a set
			theRel = $caller.attr('rel');
			galleryRegExp = /\[(?:.*)\]/;
			theGallery = galleryRegExp.exec(theRel);
		
			// Calculate the number of items in the set, and the position of the clicked picture.
			isSet = false;
			setCount = 0;
			
			_getFileType();
			
			for (i = 0; i < imagesArray.length; i++){
				if($(imagesArray[i]).attr('rel').indexOf(theGallery) != -1){
					setCount++;
					if(setCount > 1) isSet = true;

					if($(imagesArray[i]).attr('href') == $caller.attr('href')){
						setPosition = setCount;
						arrayPosition = i;
					};
				};
			};
			
		
			_buildOverlay();

			// Display the current position
			$pp_pic_holder.find('p.currentTextHolder').text(setPosition + settings.counter_separator_label + setCount);

			// Position the picture in the center of the viewing area
			_centerPicture();
		
			$('#pp_full_res').hide();
			$pp_pic_holder.find('.pp_loaderIcon').show();
		};
	
		showimage = function(width,height,containerWidth,containerHeight,contentHeight,contentWidth,resized){
			$('.pp_loaderIcon').hide();

			if($.browser.opera) {
				windowHeight = window.innerHeight;
				windowWidth = window.innerWidth;
			}else{
				windowHeight = $(window).height();
				windowWidth = $(window).width();
			};

			$pp_pic_holder.find('.pp_content').animate({'height':contentHeight},settings.animationSpeed);

			projectedTop = $scrollPos['scrollTop'] + ((windowHeight/2) - (containerHeight/2));
			if(projectedTop < 0) projectedTop = 0 + $pp_pic_holder.find('.ppt').height();

			// Resize the holder
			$pp_pic_holder.animate({
				'top': projectedTop,
				'left': ((windowWidth/2) - (containerWidth/2)),
				'width': containerWidth
			},settings.animationSpeed,function(){
				$pp_pic_holder.width(containerWidth);
				$pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(height).width(width);

				// Fade the new image
				$pp_pic_holder.find('#pp_full_res').fadeIn(settings.animationSpeed,function(){
					$(this).find('object,embed').css('visibility','visible');
				});

				// Show the nav elements
				_showContent();
			
				// Fade the resizing link if the image is resized
				if(resized) $('a.pp_expand,a.pp_contract').fadeIn(settings.animationSpeed);
			});
		};
		
		function _showContent(){
			// Show the nav
			if(isSet && pp_type=="image") { $pp_pic_holder.find('.pp_hoverContainer').fadeIn(settings.animationSpeed); }else{ $pp_pic_holder.find('.pp_hoverContainer').hide(); }
			
			$pp_pic_holder.find('.pp_details,.scinsets').fadeIn(settings.animationSpeed);
			// Show the title
			if(settings.showTitle && hasTitle){
				$ppt.css({
					'top' : $pp_pic_holder.offset().top - 22,
					'left' : $pp_pic_holder.offset().left + (settings.padding/2),
					'display' : 'none'
				});
			
				$ppt.fadeIn(settings.animationSpeed);
			};
		}
		
		function _hideContent(){
			// Fade out the current picture
			$pp_pic_holder.find('.pp_hoverContainer,.pp_details,.scinsets').fadeOut(settings.animationSpeed);
			$pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden');
			$pp_pic_holder.find('#pp_full_res').fadeOut(settings.animationSpeed,function(){
				$('.pp_loaderIcon').show();
			
				// Preload the image
				_preload();
			});
			
			// Hide the title
			$ppt.fadeOut(settings.animationSpeed);
		}
	
		function changePicture(direction,newnum){
			if(direction == 'previous') {
				arrayPosition--;
				setPosition--;
			}else if(direction == 'next'){
				arrayPosition++;
				setPosition++;
				//alert(setPosition + " " + arrayPosition)
			} else {
				//alert(newnum);
				arrayPosition = Number(newnum);
				setPosition = Number(newnum) + 1;
			};

			// Allow the resizing of the images
			if(!doresize) doresize = true;

			_hideContent();
			$('a.pp_expand,a.pp_contract').fadeOut(settings.animationSpeed,function(){
				$(this).removeClass('pp_contract').addClass('pp_expand');
			});
		};
	
		function close(){
			$pp_pic_holder.find('object,embed').css('visibility','hidden');
			
			$('div.pp_pic_holder,div.ppt').fadeOut(settings.animationSpeed);
			
			$('div.pp_overlay').fadeOut(settings.animationSpeed, function(){
				$('div.pp_overlay,div.pp_pic_holder,div.ppt').remove();
			
				// To fix the bug with IE select boxes
				if($.browser.msie && $.browser.version == 6){
					$('select').css('visibility','visible');
				};
				
				settings.callback();
			});
			
			doresize = true;
		};
	
		function _checkPosition(){
			// If at the end, hide the next link
			if(setPosition == setCount) {
				$pp_pic_holder.find('a.pp_next').css('visibility','hidden');
				$pp_pic_holder.find('a.pp_arrow_next').addClass('disabled').unbind('click');
			}else{ 
				$pp_pic_holder.find('a.pp_next').css('visibility','visible');
				$pp_pic_holder.find('a.pp_arrow_next.disabled').removeClass('disabled').bind('click',function(){
					changePicture('next');
					return false;
				});
			};
		
			// If at the beginning, hide the previous link
			if(setPosition == 1) {
				$pp_pic_holder.find('a.pp_previous').css('visibility','hidden');
				$pp_pic_holder.find('a.pp_arrow_previous').addClass('disabled').unbind('click');
			}else{
				$pp_pic_holder.find('a.pp_previous').css('visibility','visible');
				$pp_pic_holder.find('a.pp_arrow_previous.disabled').removeClass('disabled').bind('click',function(){
					changePicture('previous');
					return false;
				});
			};
		
			// Change the current picture text
			$pp_pic_holder.find('p.currentTextHolder').text(setPosition + settings.counter_separator_label + setCount);
		
			$caller = (isSet) ? $(imagesArray[arrayPosition]) : $caller;
			_getFileType();

			if($caller.attr('title')){
				$pp_pic_holder.find('.pp_description').show().html(unescape($caller.attr('title')));
			}else{
				$pp_pic_holder.find('.pp_description').hide().text('');
			};
		
			if($caller.find('img').attr('alt') && settings.showTitle){
				hasTitle = true;
				$ppt.html(unescape($caller.find('img').attr('alt')));
			}else{
				hasTitle = false;
			};
		};
	
		function _fitToViewport(width,height){
			hasBeenResized = false;
		
			_getDimensions(width,height);
			
			// Define them in case there's no resize needed
			imageWidth = width;
			imageHeight = height;

			windowHeight = $(window).height();
			windowWidth = $(window).width();
		
			if( ((pp_containerWidth > windowWidth) || (pp_containerHeight > windowHeight)) && doresize && settings.allowresize && !percentBased) {
				hasBeenResized = true;
				notFitting = true;
			
				while (notFitting){
					if((pp_containerWidth > windowWidth)){
						imageWidth = (windowWidth - 200);
						imageHeight = (height/width) * imageWidth;
					}else if((pp_containerHeight > windowHeight)){
						imageHeight = (windowHeight - 200);
						imageWidth = (width/height) * imageHeight;
						notFitting = false;
					}else{
						notFitting = false;
					};

					pp_containerHeight = imageHeight;
					pp_containerWidth = imageWidth;
				};
			
				_getDimensions(imageWidth,imageHeight);
				
			};

			return {
				width:imageWidth,
				height:imageHeight,
				containerHeight:pp_containerHeight,
				containerWidth:pp_containerWidth,
				contentHeight:pp_contentHeight,
				contentWidth:pp_contentWidth,
				resized:hasBeenResized
			};
		};
		
		function _getDimensions(width,height){

			$pp_pic_holder.find('.pp_details').width(width).find('.pp_description').width(width - parseFloat($pp_pic_holder.find('a.pp_close').css('width'))); /* To have the correct height */
			// Get the container size, to resize the holder to the right dimensions
			pp_contentHeight = height + $pp_pic_holder.find('.pp_details').height() + parseFloat($pp_pic_holder.find('.scinsets').css('marginTop')) + parseFloat($pp_pic_holder.find('.scinsets').css('marginBottom')) 
			    + parseFloat($pp_pic_holder.find('.pp_details').css('marginTop')) 
			    + parseFloat($pp_pic_holder.find('.pp_details').css('marginBottom')) 
			    + settings.insetsize
			    + parseFloat($pp_pic_holder.find('.scinsets').css('marginTop'))
			    + parseFloat($pp_pic_holder.find('.scinsets').css('marginBottom'));
			    //+ $pp_pic_holder.find('.scinsets').height();
			pp_contentWidth = width;
			pp_containerHeight = pp_contentHeight + $pp_pic_holder.find('.ppt').height() + $pp_pic_holder.find('.pp_top').height() + $pp_pic_holder.find('.pp_bottom').height();
			pp_containerWidth = width + settings.padding;
		}
	
		function _getFileType(){
			if ($caller.attr('href').match(/youtube\.com\/watch/i)) {
				pp_type = 'youtube';
			}else if($caller.attr('href').indexOf('.mov') != -1){ 
				pp_type = 'quicktime';
			}else if($caller.attr('href').indexOf('.swf') != -1){
				pp_type = 'flash';
			}else if($caller.attr('href').indexOf('iframe') != -1){
				pp_type = 'iframe'
			}else if($caller.attr('href').indexOf('text') != -1){
				pp_type = 'text';
			}else{
				pp_type = 'image';
			}
		}
	
		function _centerPicture(){
			if ($pp_pic_holder){ if($pp_pic_holder.size() == 0){ return; }}else{ return; }; //Make sure the gallery is open

			if($.browser.opera) {
				windowHeight = window.innerHeight;
				windowWidth = window.innerWidth;
			}else{
				windowHeight = $(window).height();
				windowWidth = $(window).width();
			};
		
			if(doresize) {
				$pHeight = $pp_pic_holder.height();
				$pWidth = $pp_pic_holder.width();
				$tHeight = $ppt.height();
				
				projectedTop = (windowHeight/2) + $scrollPos['scrollTop'] - ($pHeight/2);
				if(projectedTop < 0) projectedTop = 0 + $tHeight;
				
				$pp_pic_holder.css({
					'top': projectedTop,
					'left': (windowWidth/2) + $scrollPos['scrollLeft'] - ($pWidth/2)
				});
		
				$ppt.css({
					'top' : projectedTop - $tHeight,
					'left' : (windowWidth/2) + $scrollPos['scrollLeft'] - ($pWidth/2) + (settings.padding/2)
				});
			};
		};
	
		function _preload(){
			// Hide the next/previous links if on first or last images.
			_checkPosition();
		
			if(pp_type == 'image'){
				// Set the new image
				imgPreloader = new Image();
		
				// Preload the neighbour images
				nextImage = new Image();
				if(isSet && setPosition > setCount) nextImage.src = $(imagesArray[arrayPosition + 1]).attr('href');
				prevImage = new Image();
				if(isSet && imagesArray[arrayPosition - 1]) prevImage.src = $(imagesArray[arrayPosition - 1]).attr('href');

				pp_typeMarkup = '<img id="fullResImage" src="" />';				
				$pp_pic_holder.find('#pp_full_res')[0].innerHTML = pp_typeMarkup;

				$pp_pic_holder.find('.pp_content').css('overflow','hidden');
				$pp_pic_holder.find('#fullResImage').attr('src',$caller.attr('href'));

				imgPreloader.onload = function(){
					var correctSizes = _fitToViewport(imgPreloader.width,imgPreloader.height);
					imgPreloader.width = correctSizes['width'];
					imgPreloader.height = correctSizes['height'];
					showimage(imgPreloader.width,imgPreloader.height,correctSizes["containerWidth"],correctSizes["containerHeight"],correctSizes["contentHeight"],correctSizes["contentWidth"],correctSizes["resized"]);
				};
		
				imgPreloader.src = $caller.attr('href');
			}else{
				// Get the dimensions
				movie_width = ( parseFloat(grab_param('width',$caller.attr('href'))) ) ? grab_param('width',$caller.attr('href')) : "425";
				movie_height = ( parseFloat(grab_param('height',$caller.attr('href'))) ) ? grab_param('height',$caller.attr('href')) : "344";

				// If the size is % based
				if(movie_width.indexOf('%') != -1 || movie_height.indexOf('%') != -1){
					movie_height = ($(window).height() * parseFloat(movie_height) / 100) - 100;
					movie_width = ($(window).width() * parseFloat(movie_width) / 100) - 100;
					parsentBased = true;
				}else{
					movie_height = parseFloat(movie_height);
					movie_width = parseFloat(movie_width);
				}
				
				if(pp_type == 'quicktime'){ movie_height+=13; }
				
				// Fit them to viewport
				correctSizes = _fitToViewport(movie_width,movie_height);
				
				if(pp_type == 'youtube'){
					pp_typeMarkup = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+correctSizes['width']+'" height="'+correctSizes['height']+'"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.youtube.com/v/'+grab_param('v',$caller.attr('href'))+'" /><embed src="http://www.youtube.com/v/'+grab_param('v',$caller.attr('href'))+'" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="'+correctSizes['width']+'" height="'+correctSizes['height']+'"></embed></object>';
				}else if(pp_type == 'quicktime'){
					pp_typeMarkup = '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="'+correctSizes['height']+'" width="'+correctSizes['width']+'"><param name="src" value="'+$caller.attr('href')+'"><param name="autoplay" value="true"><param name="type" value="video/quicktime"><embed src="'+$caller.attr('href')+'" height="'+correctSizes['height']+'" width="'+correctSizes['width']+'" autoplay="true" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>';
				}else if(pp_type == 'flash'){
					flash_vars = $caller.attr('href');
					flash_vars = flash_vars.substring($caller.attr('href').indexOf('flashvars') + 10,$caller.attr('href').length);

					filename = $caller.attr('href');
					filename = filename.substring(0,filename.indexOf('?'));

					pp_typeMarkup = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+correctSizes['width']+'" height="'+correctSizes['height']+'"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="'+filename+'?'+flash_vars+'" /><embed src="'+filename+'?'+flash_vars+'" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="'+correctSizes['width']+'" height="'+correctSizes['height']+'"></embed></object>';
				}else if(pp_type == 'iframe'){
					movie_url = $caller.attr('href');
					//movie_url = movie_url.substr(0,movie_url.indexOf('iframe')-1);

					pp_typeMarkup = '<iframe src ="'+movie_url+'" width="'+(correctSizes['width']-10)+'" height="'+(correctSizes['height']-10)+'" frameborder="no"></iframe>';
				}else if(pp_type == 'text'){
					text_url = $caller.attr('name');
					pp_typeMarkup = '<div style="width:'+correctSizes['width']+'; height:'+correctSizes['height']+';">'+$(text_url).html()+'</div>';
				}
				// Append HTML
				$pp_pic_holder.find('#pp_full_res')[0].innerHTML = pp_typeMarkup;
				
				// Show content
				showimage(correctSizes['width'],correctSizes['height'],correctSizes["containerWidth"],correctSizes["containerHeight"],correctSizes["contentHeight"],correctSizes["contentWidth"],correctSizes["resized"]);
			}
		};
	
		function _getScroll(){
			if (self.pageYOffset) {
				scrollTop = self.pageYOffset;
				scrollLeft = self.pageXOffset;
			} else if (document.documentElement && document.documentElement.scrollTop) {	 // Explorer 6 Strict
				scrollTop = document.documentElement.scrollTop;
				scrollLeft = document.documentElement.scrollLeft;
			} else if (document.body) {// all other Explorers
				scrollTop = document.body.scrollTop;
				scrollLeft = document.body.scrollLeft;	
			}
			
			return {scrollTop:scrollTop,scrollLeft:scrollLeft};
		};
	
		function _resizeOverlay() {
			$('div.pp_overlay').css({
				'height':$(document).height(),
				'width':$(window).width()
			});
		};
	
		function _buildOverlay(){
			toInject = "";
			
			// Build the background overlay div
			toInject += "<div class='pp_overlay'></div>";
			
			// Define the markup to append, depending on the content type.
			if(pp_type == 'image'){
				pp_typeMarkup = '<img id="fullResImage" src="" />';
			}else{
				pp_typeMarkup = '';
			}	
			
			// Basic HTML for the picture holder
			toInject += '<div class="pp_pic_holder"><div class="pp_top"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div><div class="pp_content"><a href="#" class="pp_expand" title="Expand the image">Expand</a><div class="pp_loaderIcon"></div><div class="pp_hoverContainer"><a class="pp_next" href="#">next</a><a class="pp_previous" href="#">previous</a></div><div id="pp_full_res">'+ pp_typeMarkup +'</div><div class="pp_details clearfix"><a class="pp_close" href="#">Close</a><p class="pp_description"></p><div class="pp_nav"><a href="#" class="pp_arrow_previous">Previous</a><p class="currentTextHolder">0'+settings.counter_separator_label+'0</p><a href="#" class="pp_arrow_next">Next</a></div></div><div class="scinsets" style="display:none;"></div></div><div class="pp_bottom"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div></div>';
			
			// Basic html for the title holder
			toInject += '<div class="ppt"></div>';
			
			//alert(imagesArray.length);
	
			$('body').append(toInject);
			
			if($("#scPage-insets") && $caller.attr('rel') == "prettyPhoto[gallery]"){
			  grabinsets = $("#scPage-insets").clone().find("a");
			  $(".scinsets").html(grabinsets);
			  $(".scinsets").find("img").attr("height",settings.insetsize);
			  $(".scinsets").find("a").attr("href","");
			  $(".scinsets").find("a").attr("onmouseover","");
			  $(".scinsets").find("a").attr("onmouseout","");
			  mycount = 0;
			  $(".scinsets").find('a').each(function() {
				  var $thisa = $(this)
				  $thisa.attr("rel",mycount);
				  $thisa.bind('click',function(){
					changePicture('num',$thisa.attr("rel"));
					return false;
				  });
				  mycount++;
			  });
			}
			
			// Set my global selectors
			$pp_pic_holder = $('.pp_pic_holder');
			$ppt = $('.ppt');
			
			$('div.pp_overlay').css('height',$(document).height()).bind('click',function(){
				close();
			});

			$pp_pic_holder.css({'opacity': 0}).addClass(settings.theme);

			$('a.pp_close').bind('click',function(){ close(); return false; });

			$('a.pp_expand').bind('click',function(){				
				$this = $(this);
				
				// Expand the image
				if($this.hasClass('pp_expand')){
					$this.removeClass('pp_expand').addClass('pp_contract');
					doresize = false;
				}else{
					$this.removeClass('pp_contract').addClass('pp_expand');
					doresize = true;
				};
			
				_hideContent();
				

				
				$pp_pic_holder.find('.pp_hoverContainer, #pp_full_res, .pp_details, .scinsets').fadeOut(settings.animationSpeed,function(){
					_preload();
				});
		
				return false;	
			});
		
			$pp_pic_holder.find('.pp_previous, .pp_arrow_previous').bind('click',function(){
				changePicture('previous');
				return false;
			});
		
			$pp_pic_holder.find('.pp_next, .pp_arrow_next').bind('click',function(){
				changePicture('next');
				return false;
			});

			$pp_pic_holder.find('.pp_hoverContainer').css({
				'margin-left': settings.padding/2
			});
		
			// If it's not a set, hide the links
			if(!isSet) {
				$pp_pic_holder.find('.pp_hoverContainer,.pp_nav').hide();
			};


			// To fix the bug with IE select boxes
			if($.browser.msie && $.browser.version == 6){
				$('body').addClass('ie6');
				$('select').css('visibility','hidden');
			};

			// Then fade it in
			$('div.pp_overlay').css('opacity',0).fadeTo(settings.animationSpeed,settings.opacity, function(){
				$pp_pic_holder.css('opacity',0).fadeIn(settings.animationSpeed,function(){
					$pp_pic_holder.attr('style','left:'+$pp_pic_holder.css('left')+';top:'+$pp_pic_holder.css('top')+';');
					_preload();
				});
			});
		};
	};
	
	function grab_param(name,url){
	  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
	  var regexS = "[\\?&]"+name+"=([^&#]*)";
	  var regex = new RegExp( regexS );
	  var results = regex.exec( url );
	  if( results == null )
	    return "";
	  else
	    return results[1];
	}
	
})(jQuery);

/**
 * Cookie plugin
 *
 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */

/**
 * Create a cookie with the given name and value and other optional parameters.
 *
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Set the value of a cookie.
 * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
 * @desc Create a cookie with all available options.
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Create a session cookie.
 * @example $.cookie('the_cookie', null);
 * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
 *       used when the cookie was set.
 *
 * @param String name The name of the cookie.
 * @param String value The value of the cookie.
 * @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
 * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
 *                             If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
 *                             If set to null or omitted, the cookie will be a session cookie and will not be retained
 *                             when the the browser exits.
 * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
 * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
 * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
 *                        require a secure protocol (like HTTPS).
 * @type undefined
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */

/**
 * Get the value of a cookie with the given name.
 *
 * @example $.cookie('the_cookie');
 * @desc Get the value of a cookie.
 *
 * @param String name The name of the cookie.
 * @return The value of the cookie.
 * @type String
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */
jQuery.cookie = function(name, value, options) {
    if (typeof value != 'undefined') { // name and value given, set cookie
        options = options || {};
        if (value === null) {
            value = '';
            options.expires = -1;
        }
        var expires = '';
        if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
            var date;
            if (typeof options.expires == 'number') {
                date = new Date();
                date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
            } else {
                date = options.expires;
            }
            expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
        }
        // CAUTION: Needed to parenthesize options.path and options.domain
        // in the following expressions, otherwise they evaluate to undefined
        // in the packed version for some reason...
        var path = options.path ? '; path=' + (options.path) : '';
        var domain = options.domain ? '; domain=' + (options.domain) : '';
        var secure = options.secure ? '; secure' : '';
        document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
    } else { // only name given, get cookie
        var cookieValue = null;
        if (document.cookie && document.cookie != '') {
            var cookies = document.cookie.split(';');
            for (var i = 0; i < cookies.length; i++) {
                var cookie = jQuery.trim(cookies[i]);
                // Does this cookie string begin with the name we want?
                if (cookie.substring(0, name.length + 1) == (name + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                    break;
                }
            }
        }
        return cookieValue;
    }
};


/* Insets Swap Function */
	function swapInsets(insetpath){
		$("#scMainImgId").attr("src",insetpath);
	}

/*Mailing List Popup*/
$(document).ready(function() {
	$("body").append('<a href="http://www.mexgrocer.com/mailinglist-pop.html?iframe=true&width=360&height=220" rel="prettyPhoto[iframes]" style="display: none;" onclick="return false;"></a>');
	//$("a[rel^='prettyPopin']").prettyPopin({width: globalwid,followScroll:false});
	var winPop = function() {
		if($.cookie('winOpen') != 1) {
			$.cookie('winOpen', '1');
			$("a[rel^='prettyPhoto']").prettyPhoto({animationSpeed: 'normal',padding: 0,opacity: 0.7,showTitle: false,allowresize: true,theme: 'light_square',position: 'left',callback: function(){}});
			//$("a[rel^='prettyPopin']").prettyPopin({width: globalwid,followScroll:false});
			$("a[rel^='prettyPhoto']").click();
		}
	}
	var tInfin;
	if(switchMail) {
		tInfin = setTimeout(winPop, (waitTime * 1000));
		$("body").mousemove( function() {
			clearTimeout(tInfin);
			tInfin = setTimeout(winPop, (waitTime * 1000));
		});
	}
});
