if (document.location.href=='http://www.nu-era.com/index.htm' ) { document.location.href = 'http://www.nu-era.com/'; }



(function($) {
        $.fn.equalHeight = function() {
                var minimum = arguments[0] || 0;
                this.each(function() {
                        if($(this).height() > minimum) {
                                minimum = $(this).height();
                        }
                });
                
                $(this).css("min-height",minimum+'px');
                if($.browser.msie){
                        $(this).height(minimum).css('overflow','hidden');
                }
        }
})(jQuery);

/*!
 * (v) Compact labels plugin
 * Takes one option: labelOpacity [default: true] set to false to disable label opacity change on empty input focus
 */
(function($){$.fn.compactize=function(options){var defaults={labelOpacity:true};options=$.extend(defaults,options);return this.each(function(){var label=$(this),input=$('#'+label.attr('for'));input.focus(function(){if(options.labelOpacity){if(input.val()===''){label.css('opacity','0.5');}} else{label.hide();}});if(options.labelOpacity){input.keydown(function(){label.hide();label.css('opacity',1);});} input.blur(function(){if(input.val()===''){label.show();} if(options.labelOpacity){label.css('opacity',1);}});window.setTimeout(function(){if(input.val()!==''){label.hide();}},50);});};})(jQuery);


/*!
 * (v) hrefID jQuery extention
 * returns a valid #hash string from link href attribute in Internet Explorer
 */
(function($){$.fn.extend({hrefId:function(){return $(this).attr('href').substr($(this).attr('href').indexOf('#'));}});})(jQuery);

/**
 * SimpleFlame Content rotator
 * Version 0.2 (28.04.2009)
 * Possible effects to use :
 *  - if UI effects have been added: 'blind', 'bounce', 'clip', 'drop', 'explode', 'fold', 'highlight', 'puff', 'pulsate', 'scale', 'shake', 'size', 'slide', 'transfer'
 *  - basic effects from jQuery: fadeIn, fadeOut, show, hide, slideUp, slideDown
 */
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(5(){6 9=5(R,h){2.3={\'d\':\'z\',\'c\':\'M\',\'S\':1e,\'l\':p,\'t\':\'1r\',\'17\':{},\'C\':\'19\',\'m\':\'1k\',\'Q\':{},\'H\':\'19\'};7.1m(2.3,h);2.$g=7(R);2.12()};9.j.12=5(){2.$g.o(\'w-b\');2.$x=7(\'<1l Z="w-1j" />\');2.$g.1n(2.$x);2.$x.I(2.$g);2.$s=7(\'<1o Z="w-s" />\');2.$x.I(2.$s);2.$b=2.$g.1q(2.3.d);2.$e=2.$b.v(2.$b.1p(\'.\'+2.3.c));8(2.$e<0){2.$e=0}6 4=2;2.$b.o(\'w-d\').X(5(v,d){6 q=7(\'<z><a 1s="#">\'+1c(v+1,10)+\'</a></z>\');4.$s.I(q);q.U(\'a\').G(\'d\',d).1h(\'1g\',{4:4},4.q)});2.y(2.$e,p);8(2.3.l){2.l()}};9.j.q=5(D){D.1d();6 4=D.G.4;4.P();4.$O=p;6 k=4.$b.v(7(2).G(\'d\'));4.y(k)};9.j.y=5(k){6 11=1I[1]||14;6 c=2.3.c;6 i=2.$b.L(2.$e);6 f=2.$b.L(k);6 E=5(){i.N(c)};6 A=5(){f.o(c).Y(\'16\',10)};6 J=[\'1H\',\'1G\',\'1K\',\'1N\',\'1M\',\'1t\',\'1L\',\'1J\',\'1E\',\'1F\',\'1w\',\'1v\',\'1u\',\'1y\'];8(11===p){i.N(c).F();f.o(c).B()}n{8(7.1a(2.3.m,J)>-1){i.F(2.3.m,2.3.Q,2.3.H,E)}n 8(7.13(i[2.3.m])){i[2.3.m](2.3.H,E)}n{15"1b F 18"}f.Y(\'16\',1C);8(7.1a(2.3.t,J)>-1){f.B(2.3.t,2.3.17,2.3.C,A)}n 8(7.13(f[2.3.t])){f[2.3.t](2.3.C,A)}n{15"1b B 18"}}2.$s.U(\'a\').N(\'M\').L(k).o(\'M\');2.$e=k};9.j.l=5(){2.$O=14;6 4=2;2.$g.1A(5(){4.P()});2.$g.1B(5(){4.K()});2.K()};9.j.K=5(){8(2.$O===p){V}6 4=2;2.$T=W.1D(5(){6 u=4.$e+1;8(u===4.$b.1z){u=0}4.y(u)},2.3.S)};9.j.P=5(){8(2.3.l){W.1x(2.$T)}};7.1f.9=5(h){h=h||{};V 2.X(5(){6 r=1i 9(2,h)})}})();',62,112,'||this|settings|self|function|var|jQuery|if|sfRotator||items|activeClass|item|current|newItem|container|options|oldItem|prototype|position|autorotate|effectOut|else|addClass|true|trigger||controls|effectIn|next|index|sf|wrapper|activate|li|onShow|show|speedIn|event|onHide|hide|data|speedOut|append|effects|startAutorotate|eq|active|removeClass|rotationTerminated|stopAutorotate|optionsOut|el|duration|rotationInterval|find|return|window|each|css|class||instant|build|isFunction|false|throw|zIndex|optionsIn|transition|normal|inArray|Unsupported|parseInt|preventDefault|5000|fn|click|bind|new|rotator|fadeOut|div|extend|before|ul|filter|children|fadeIn|href|fold|slide|size|shake|clearInterval|transfer|length|mouseenter|mouseleave|100|setInterval|pulsate|scale|bounce|blind|arguments|puff|clip|highlight|explode|drop'.split('|'),0,{}));


/**
 * sfTestimonial
 *
 * @version: 1.1
 * @author SimpleFlame http://www.simpleflame.com/
 *
 * Settings
 *  nextClass   - optional class for the next link
 *  item        - selector matching single testimonial
 *  nextLabel   - text of the next link
 *  duration    - autorotate interval
 *  autorotate  - autorotate on/off switch
 *  activeClass - which testimonial should be displayed as the first active one
 */
(function($){var sfTestimonial=function(el,options){var defaults={nextClass:null,prevClass:null,item:'div.item',nextLabel:'Next',prevLabel:'Prev',duration:5000,autorotate:true,activeClass:'active'};this.options=$.extend(defaults,options);this.wrapper=$(el);this.items=this.wrapper.find(this.options.item);this.current=this.items.index('.'+this.options.activeClass);if(this.current<0){this.current=0;} this.items.hide().eq(this.current).show();this.buildNavigation();if(this.options.autorotate){this.autorotate();}};sfTestimonial.prototype.buildNavigation=function(){var buildNavItem=$.proxy(function(label,offset,className){var el=$('<a>',{'href':'#','text':label,click:$.proxy(function(e){e.preventDefault();this.cycle(offset);},this)});if(className){el.addClass(className);} return $('<li />').append(el);},this);var next=buildNavItem(this.options.nextLabel,1,this.options.nextClass),prev=buildNavItem(this.options.prevLabel,-1,this.options.prevClass);var ul=$('<ul class="nav" />').append(next,prev);this.wrapper.append(ul);};sfTestimonial.prototype.cycle=function(){var offset=arguments[0]||1;this.items.stop().eq(this.current).hide();this.current=this.current+offset;if(this.current===this.items.length){this.current=0;} else if(this.current===-1){this.current=this.items.length-1;} this.items.stop().eq(this.current).fadeIn();if(this.options.autorotate){this.autorotate();}};sfTestimonial.prototype.autorotate=function(){window.clearTimeout(this.timeout);this.timeout=window.setTimeout($.proxy(function(){this.cycle();},this),this.options.duration);};$.fn.sfTestimonial=function(){var options=arguments[0]||{};return this.each(function(){return new sfTestimonial(this,options);});};})(jQuery);

/**
 * sfSlider
 *
 * @version: 1.4
 * @author SimpleFlame http://www.simpleflame.com/
 *
 * Required settings:
 *  display   - provide number of items displayed at once
 *
 * Other settings:
 *  time      - transition time
 *  easing    - easing for the transition
 *  width     - width of the scrolled area (by default visible area + right margin on the last visible item)
 *  previous  - previous link text
 *  next      - next link text
 *  wrap      - wrap container selector
 *  slider    - items container selector
 *  items     - items selector
 *  paging    - set it to true if you want to display paging numbers
 *  auto      - set to true to enable autosliding
 *  autoTime  - duration between auto sliding
 *  transition - transition effect to be used - slide (default) or fade
 *  wrapSlides - should first slide be displayed after the last slide
 */
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(8($){$.1g.19=8(15){4 13={d:0,B:6,D:1a,U:\'1f\',L:\'16\',s:\'17\',q:\'1b.q\',x:\'g.5\',5:\'g.5 r\',c:b,H:b,X:1j,A:\'14\',j:b};4 2=$.1c({},13,15);v t.1d(8(){4 m,$f,$h=$(t),$q=$h.l(2.q),$x=$h.l(2.x),$5=$h.l(2.5),Q=$5.S(),k=1h.1e(Q/2.B);$5.z(\':R\').p(\'R\');$5.z(\':W\').p(\'W\');3($5.S()<=2.B){v b}4 d=2.d;3(2.d===0){d=$q.d()+P($5.18(\'1i-1o\'),10)}4 9=0;4 $y=$(\'<a J="#L">\'+2.L+\'</a>\').G(8(e){e.F();m(9-1)});3(2.j===b){$y.p(\'C\')}4 $I=$(\'<a J="#s">\'+2.s+\'</a>\').G(8(e){e.F();m(9+1)});4 $u=$(\'<g w="1x"><r w="V"/><r w="s"/></g>\');$u.l(\'.V\').o($y);$u.l(\'.s\').o($I);$h.o($u);3(2.c===n){4 $c=$(\'<g w="c"></g>\');1w(4 i=0;i<k;i++){$c.o(\'<r><a J="#">\'+(i+1)+\'</a></r>\')}$f=$c.l(\'a\');$f.M(0).p(\'K\');$f.G(8(e){e.F();m(P($(t).1k(),10)-1)});$h.o($c)}4 E=1y;4 O=8(){E=Y.1u(8(){m(9+1)},2.X+2.D)};3(2.H===n){O()}3(2.A===\'T\'){$5.z(\':1v(0)\').11()}m=8(7){3(7===9){v b}3(2.j===b&&(7<0||7>=k)){v b}N 3(2.j===n&&7<0){7=k-1}N 3(2.j===n&&7>=k){7=0}9=7;3(2.j===b){$y.12(\'C\',9===0);$I.12(\'C\',9+1===k)}3(2.c===n){$f.1l(\'K\');$f.M(9).p(\'K\')}3(2.A===\'14\'){4 Z=-7*d;$x.1q().1t({\'1s\':Z+\'1r\'},2.D,2.U)}N 3(2.A===\'T\'){$5.z(\':1z\').1p(8(){$(t).11()});$5.M(7).1m()}3(2.H===n){Y.1A(E);O()}}})}})(1n);',62,99,'||settings|if|var|items||position|function|current||false|paging|width||pagingTriggers|ul|root||wrapSlides|pages|find|move|true|append|addClass|wrap|li|next|this|controls|return|class|slider|previousTrigger|filter|transition|display|off|time|timeout|preventDefault|click|auto|nextTrigger|href|active|previous|eq|else|restartTimer|parseInt|all|last|size|fade|easing|prev|first|autoTime|window|offset||hide|toggleClass|defaults|slide|options|Previous|Next|css|sfSlider|500|div|extend|each|ceil|swing|fn|Math|margin|3000|text|removeClass|fadeIn|jQuery|right|fadeOut|stop|px|marginLeft|animate|setTimeout|gt|for|index|null|visible|clearTimeout'.split('|'),0,{}));


/**
 * (v) Equal Height plugin v. 1.11
 */

(function($){$.fn.equalHeights=function(){$(window).resize($.proxy(function(){var tallest=0;$(this).css('min-height',0);$(this).each(function(){if($(this).outerHeight()>tallest){tallest=$(this).outerHeight();}});$(this).each(function(){var padding=$(this).outerHeight()-$(this).height();var height=tallest-padding;$(this).css({'min-height':height});if($.browser.msie&&parseInt($.browser.version,10)==6)$(this).height(height);});},this)).triggerHandler('resize');return this;};})(jQuery);


/*
 * jQuery UI Accordion 1.6
 * 
 * Copyright (c) 2007 Jörn Zaefferer
 *
 * http://docs.jquery.com/UI/Accordion
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 *
 * Revision: $Id: jquery.accordion.js 4876 2008-03-08 11:49:04Z joern.zaefferer $
 *
 */
 
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(5($){$.7=$.7||{};$.1F.L({4:5(2,e){b 18=1O.1z.1P.G(1j,1);f 3.B(5(){6(1v 2=="1Q"){b 4=$.e(3,"7-4");4[2].1m(4,18)}s 6(!$(3).X(".7-4"))$.e(3,"7-4",1R $.7.4(3,2))})},V:5(w){f 3.4("V",w)}});$.7.4=5(q,2){3.2=2=$.L({},$.7.4.1B,2);3.I=q;$(q).J("7-4");6(2.1M){b i=$(q).1x("a").x(2.1r);6(i.13){6(i.x(2.r).13){2.c=i}s{2.c=i.o().o().1G();i.J("i")}}}2.d=$(q).1x(2.r);2.c=11(2.d,2.c);6(2.1c){b p=$(q).o().g();2.d.B(5(){p-=$(3).1u()});b P=0;2.d.n().B(5(){P=12.1o(P,$(3).1J()-$(3).g())}).g(p-P)}s 6(2.l){b p=0;2.d.n().B(5(){p=12.1o(p,$(3).1u())}).g(p)}2.d.W(2.c||"").n().14();2.c.o().H().J(2.A);6(2.u)$(q).1L((2.u)+".7-4",T)};$.7.4.1z={V:5(w){T.G(3.I,{10:11(3.2.d,w)[0]})},1H:5(){3.2.Z=y},1I:5(){3.2.Z=F},1N:5(){3.2.d.n().C("1S","");6(3.2.1c||3.2.l){3.2.d.n().C("g","")}$.1D(3.I,"7-4");$(3.I).1E("7-4").1K(".7-4")}};5 19(1l,1t){f 5(){f 1l.1m(1t,1j)}}5 1a(1w){6(!$.e(3,"7-4"))f;b K=$.e(3,"7-4");b 2=K.2;2.v=1w?0:--2.v;6(2.v)f;6(2.25){2.9.2b(2.8).C({g:"",1n:""})}$(3).2a("1d.7-4",[2.e],2.1d)}5 M(9,8,e,m,j){b 2=$.e(3,"7-4").2;2.9=9;2.8=8;2.e=e;b k=19(1a,3);2.v=8.Q()==0?9.Q():8.Q();6(2.O){6(!2.z&&m){$.7.4.Y[2.O]({9:N([]),8:8,k:k,j:j,l:2.l})}s{$.7.4.Y[2.O]({9:9,8:8,k:k,j:j,l:2.l})}}s{6(!2.z&&m){9.M()}s{8.14();9.S()}k(F)}}5 T(u){b 2=$.e(3,"7-4").2;6(2.Z)f y;6(!u.10&&!2.z){2.c.o().H().1b(2.A);b 8=2.c.n(),e={K:3,2:2,1h:N([]),1g:2.c,1f:N([]),1i:8},9=2.c=$([]);M.G(3,9,8,e);f y}b h=$(u.10);6(h.29(2.r).13)27(!h.X(2.r))h=h.o();b m=h[0]==2.c[0];6(2.v||(2.z&&m))f y;6(!h.X(2.r))f;2.c.o().H().1b(2.A);6(!m){h.o().H().J(2.A)}b 9=h.n(),8=2.c.n(),e={K:3,2:2,1h:h,1g:2.c,1f:9,1i:8},j=2.d.w(2.c[0])>2.d.w(h[0]);2.c=m?$([]):h;M.G(3,9,8,e,m,j);f y};5 11(d,t){f t!=1T?1v t=="2d"?d.x(":1y("+t+")"):d.W(d.W(t)):t===y?$([]):d.x(":1y(0)")}$.L($.7.4,{1B:{A:"2g",z:F,O:\'R\',u:"2e",r:"a",l:F,v:0,1r:5(){f 3.1C.1q()==2f.1C.1q()}},Y:{R:5(2,16){2=$.L({D:"17",E:26},2,16);6(!2.8.Q()){2.9.1A({g:"S"},2);f}b U=2.8.g(),1p=2.9.g(),1e=1p/U;2.9.C({g:0,1n:\'1k\'}).S();2.8.x(":1k").B(2.k).1Y().x(":1X").1A({g:"14"},{1W:5(1s){b i=(U-1s)*1e;6($.15.1U||$.15.1V){i=12.1Z(i)}2.9.g(i)},E:2.E,D:2.D,k:5(){6(!2.l){2.9.C("g","23")}2.k()}})},22:5(2){3.R(2,{D:2.j?"21":"17",E:2.j?2c:24})},20:5(2){3.R(2,{D:"2h",E:28})}}})})(N);',62,142,'||options|this|accordion|function|if|ui|toHide|toShow||var|active|headers|data|return|height|clicked|current|down|complete|autoheight|clickedActive|next|parent|maxHeight|container|header|else|selector|event|running|index|filter|false|alwaysOpen|selectedClass|each|css|easing|duration|true|call|andSelf|element|addClass|instance|extend|toggle|jQuery|animated|maxPadding|size|slide|show|clickHandler|hideHeight|activate|not|is|animations|disabled|target|findActive|Math|length|hide|browser|additions|swing|args|scopeCallback|completed|toggleClass|fillSpace|change|difference|newContent|oldHeader|newHeader|oldContent|arguments|hidden|callback|apply|overflow|max|showHeight|toLowerCase|navigationFilter|now|scope|outerHeight|typeof|cancel|find|eq|prototype|animate|defaults|href|removeData|removeClass|fn|prev|enable|disable|innerHeight|unbind|bind|navigation|destroy|Array|slice|string|new|display|undefined|msie|opera|step|visible|end|ceil|easeslide|bounceout|bounceslide|auto|200|clearStyle|300|while|700|parents|triggerHandler|add|1000|number|click|location|selected|easeinout'.split('|'),0,{}));

/*!
 * Scripts
 *
 */
jQuery(function($) {
 
	var Engine = {
		utils : {
			links : function(){
				$('a[rel*=external]').click(function(e){
					e.preventDefault();
					window.open($(this).attr('href'));						  
				});
			},
			mails : function(){
				$('a[href^=mailto:]').each(function(){
					var mail = $(this).attr('href').replace('mailto:','');
					var replaced = mail.replace('/at/','@');
					$(this).attr('href','mailto:'+replaced);
					if($(this).text() == mail) {
						$(this).text(replaced);
					}
				});
			}
		},
		
		enhancements : {
			accordion: function() {
				var accordion = $('#content .accordion-a');
				
				accordion.accordion({
					autoHeight: true,
					header: '.header-a'
				});
			},
			equalHeights : function() {
				$('#content .triple-a > div').equalHeights();
			},
			labels : function() {
				$('form.a label').compactize();
			},
			rotators : function() {
				$('#content .rotator ul').sfRotator();
			},
			sliders : function() {
				$('.slider-a').sfSlider({
					width     : 900,
					display   : 4,
					time      : 500,
					wrap      : 'div.slider',
					slider    : 'div.wrapper',
					items     : 'div.item'
				});
			},
			testimonials : function() {
				var testimonials = $('#content .testimonials-a');
				
				$('ul', testimonials).sfTestimonial({
					item: 'li',
					autorotate: false
				});
				
				$('.nav', testimonials)
					.appendTo(testimonials.prev('.header-a'))
					.addClass('testimonials-nav-a')
					.find('li:contains(Next)')
						.addClass('next')
						.end()
					.find('li:contains(Prev)')
						.addClass('prev');
			}
		},
		
		fixes : {
			hover : function() {
				if(!$.browser.msie || $.browser.version !== '6.0') {
					return; 
				}
				
				$('#content .breadcrumbs li:not(:last-child), #primary-nav li').hover(
					function(){
						$(this).addClass('hover');
					},
					function(){
						$(this).removeClass('hover');						
					}
				);
			},
			
			firstChild : function() {
				if(!$.browser.msie) {
					return; 
				}
				
				$('#content .triple-a .col-a:first').addClass('col-a-first');
				
				if(!$.browser.msie || $.browser.version !== '6.0') {
					return; 
				}
				
				$('.nav-b ul li:first-child, #content .callouts-a p:first, #content .product-gallery-a .thumbs ul li:first-child').addClass('first');
				$('#content .holder-a p.field-a:first-child').addClass('field-first');
			},
			
			lastChild : function() {
				if(!$.browser.msie) {
					return; 
				}
				
				$('table.shopping-cart-a tbody tr:last-child').addClass('last');
			},
			nthChild : function() {
				$('.products-a ul li:nth-child(4n)').addClass('nth-4n');
			},
			
			addBtn : function(){
				jQuery("div.btnViewDetails a").each(function(){
				
					 // IE was finding matches in weird places, so add another check
					if (jQuery(this).closest("div").attr('id') == "btnViewDetails")
						jQuery(this).addClass("button button-b");
				});
				
				jQuery("div.catalogOutput span.caption-a a, div.productOutput span.caption-a a").each(function(){
					jQuery(this).addClass("button-d");
				});
				
			},// addBtn
			
			breadCrumbs : function(){
				
				if(typeof(productDetailRewrite) === 'undefined') {

    			 // perform code
   				 jQuery("div.breadcrumbs li:last").html(jQuery("div.breadcrumbs li:last").text());
				 jQuery("div.breadcrumbs li:last").addClass("selected");	
				}
				
				if(typeof(productDetailRewrite) !== 'undefined') {
					//jQuery("div.breadcrumbs li:last").html(jQuery("div.breadcrumbs li:last").text());
					jQuery("div.breadcrumbs ol").append("<li>"+$("div#content h1:first").text()+"</li>");
					jQuery("div.breadcrumbs li:last").addClass("selected");	
				}
				
			},
			
			killLi : function(){
				jQuery("ul.catalogueList li:even, ul.productList li:even").hide();	
			}, // killLi
			
			products : function(){
				
				// if no sub cats hide 
				if(jQuery("li.catalogueItemNotFound").text() == "This catalog has no sub-catalogs."){
					jQuery("div.catalogOutput").hide();
				}
				
				// if no products in a cat
				if(jQuery("li.productItemNotFound").text() == "This catalog has no products."){
					jQuery("div.productOutput").hide();
				}
				
				
				if(typeof(productDetailRewrite) !== 'undefined') { // product detail
					jQuery("div.products-a ul li").css("float","none");
				}
				
				
				if ($('#catCartSummary .cartSummaryItem').html() != 'Shopping cart is empty.') {
                var summary = $('#catCartSummary .cartSummaryItem').text().split(" ");
                // url = $('#user-options .cart a').attr('href');
                        
				$("div.toolbar-a p.cart").html("shopping cart <a href='/OrderRetrievev2.aspx'>("+summary[0]+") Items</a>");
						   
                }else{
						  
				$("div.toolbar-a p.cart").html("shopping cart <a href='/OrderRetrievev2.aspx'>(0) Items</a>");
						  
				} 

			},// products
			
			searchResults : function(){
					jQuery("div.prodWrap").each(function(){
					jQuery(this).wrap("<li class='productItem'></li>");
				});	
			},// search results
			
			
			checkout : function(){
                   // same as shipping - 
				$("#f-shipping-same").bind("change", function(e){
					
					var n = $("#f-shipping-same:checked").length
						if(n == 0){
							//$("#ShippingAttention").val('');
							//$("#CAT_Custom_116466").val('');
							//$("#CAT_Custom_117102").val('');
							$("#BillingAddress").val('');
							$("#BillingCity").val('');
							$("#BillingState").val('');
							$("#BillingZip").val('');
							$("#BillingPhone").val('');
						}else{
							
							//$("#ShippingAttention").val($("#FirstName").val() + " " + $("#LastName").val());
							//$("#CAT_Custom_116466").val($("#CAT_Custom_117102").val());
							$("#BillingAddress").val($("#ShippingAddress").val());
							$("#BillingCity").val($("#ShippingCity").val());
							$("#BillingState").val($("#ShippingState").val());
							$("#BillingZip").val($("#ShippingZip").val());
							$("#BillingPhone").val($("#ShippingPhone").val());
						}
				
				});

					
			},
			
			loginPeep : function(){
			
				$("#btnLostPass").click(function(){
					$("#lostPass").slideToggle();
					return false;
				});
			
				/*
				$("#btnRegister").click(function(){
					$("#registerForm").slideToggle();
					return false;
				});
				*/
			
			
			},// loginPeep

			
			popletGallery : function(){
				
				/* poplets gallery */
				jQuery("td.productPopletsItem a").each(function(){
				
					jQuery(this).attr("rel","");
					jQuery(this).attr("onclick","");
				  
					var link = jQuery(this).attr("href");
				
					jQuery(this).click(function(){
						jQuery("div.product-gallery-a p.photo img").attr("src",link);
						return false;
						
					});
				});
				
			},// popletGallery
			
			equalize : function(){
						
						/*
					
						jQuery("ul.productSmall li.productItem img").each(function(){
							
							var height = jQuery(this).height();
								if(height > 199){
									jQuery(this).height(199);
								}
							
						
							var width = jQuery(this).width();
								if(width > 213){
									jQuery(this).width(213);
								}
						
						
						});
						
						*/		
						
						jQuery("li.catalogueItem a:first img, ul.productSmall li.productItem img").each(function(){
							
							var height = jQuery(this).height();
								if(height > 214){
									jQuery(this).height(214);
								}
							
						
							var width = jQuery(this).width();
								if(width > 231){
									jQuery(this).width(231);
								}
						
						
						});
											
						$('ul.productList li.productItem').equalHeight();
						$('ul.catalogueList li').equalHeight();
						
						$("div.slider div.item p a").each(function(){
							$(this).css("display","block");
						});
						
						$("div.slider div.item p a").equalHeight();
						
						$("span.caption-a").equalHeight();
											
           },
						
			largeProductImage : function(){
				var width = jQuery("p.photo img").attr("width");
				if(width <= 312){
				jQuery("p.photo img").attr("width","313");
				}
			}

		}
	};

	Engine.utils.links();
	Engine.utils.mails();
	Engine.enhancements.accordion();
	Engine.enhancements.equalHeights();
	Engine.enhancements.labels();
	Engine.enhancements.rotators();
	Engine.enhancements.sliders();
	Engine.enhancements.testimonials();
	Engine.fixes.hover();
	Engine.fixes.firstChild();
	Engine.fixes.lastChild();
	Engine.fixes.nthChild();
	Engine.fixes.addBtn();
	Engine.fixes.breadCrumbs();
	// Engine.fixes.killLi();
	Engine.fixes.products();
	Engine.fixes.searchResults();
	Engine.fixes.checkout();
	Engine.fixes.loginPeep();
	// Engine.fixes.popletGallery();
	Engine.fixes.equalize();
	//Engine.fixes.largeProductImage();
});



