
		function init_carousel(selector,bSelector,bClass,speed,autoSpeed) {
			 var selector = selector;
			 var slides   = jQuery(selector+" li").size();
			 var buttons  = new Array();
			
			for (var i=0;i<slides;i++) {
					var img = (i==0)?"dot-on.gif":"dot-off.gif";
					jQuery(bSelector+" ul").append("<li><a href='#' class='"+bClass+i+"'><img  class='"+bClass+"Img"+i+"'src='./images/"+img+"' /></a></li>");
					buttons[buttons.length]=bSelector+" ."+bClass+i;
			 }	
	
			jQuery(selector).jCarouselLite({
				speed:    speed,
				auto:     autoSpeed,
				visible: 2,
				afterEnd: function(a,b,c) {
				
				if (c==false) {
					if (b!=0) {
						jQuery("."+bClass+"Img"+(b-1)).attr("src","./images/dot-off.gif");
					}
					else {
						jQuery("."+bClass+"Img"+(slides-1)).attr("src","./images/dot-off.gif");
					}	
					jQuery("."+bClass+"Img"+b).attr("src","./images/dot-on.gif");
				} else {
					c=false;
				}
				//  alert("After animation ends:" + a);
			},
			btnGo:       buttons,
			intSize:     slides,
			buttonClass: "."+bClass+"Img"
			});
		}

		$(document).ready(
		
			function() {
				
				//carousel
				init_carousel("#lower-carousel","#lower-carousel-controls","lower-but",500,8000);
								
				//colors
				jQuery(".color-one").addClass("color-box-on");
				jQuery(".color-box").click(function(){
					var thisClass =  (jQuery(this).attr("class").indexOf("one") != -1) ? "one" : "two";
					jQuery(".color-box").each(function() {
						if(jQuery(this).attr("class").indexOf(thisClass) != -1){
							jQuery(this).addClass("color-box-on");
							
							// insert code for select button location here

						}else{
							jQuery(this).removeClass("color-box-on")
						}
					})
				})
				jQuery(document).pngFix();
			}
		);
