jQuery.noConflict();
jQuery(document).ready(function() {
			
			var containerslider = jQuery(".window .sliderbox");
			if (containerslider.length > 0) {
				jQuery(".window .sliderbox").carouFredSel({
					height: "auto",
					circular: false,
					items: 4,
					scroll: 4,
					auto: false,
					prev: ".window  > a.prev",
					next: ".window  > a.next"
				});
			}
			
			var containerslider2 = jQuery(".ecardleft #ecardslider");
			if (containerslider2.length > 0) {
				jQuery(".ecardleft #ecardslider").carouFredSel({
					height: "auto",
					circular: true,
					items: 1,
					scroll: {
						items: 1,
						fx: "uncover",
						easing: "linear",
						duration: 1500,                        
						pauseOnHover: true
					},
					auto: false,
					next: ".list_carousel > a.next"
				});
			}
			//$(".csc-frame-frame1")
			jQuery('.top .csc-frame-frame1').wrapAll('<div id="scalebox" />');
			jQuery('#scalebox').css('background-image','url(/fileadmin/shoptemplate/images/topImage950-479-2.png)').scale9Grid({top:0,bottom:140,left:36,right:39});
			//$('.top').scale9Grid({top:10,bottom:10,left:10,right:10});170, 110
			jQuery('#scalebox').append('<div class="edge"></div>');
			
			jQuery('.top .s9gwrapper .csc-frame-frame1').wrapAll('<div class="frame-inner-wrapper" />');
			
			jQuery("#teaserColumn:has(div)").addClass('asidefull'); 
			
			//$(".imageswup a").find("img:last").hide();
			jQuery(".productlistview .imageswup a img.lastimg").hide();
			jQuery('.productlistview .imageswup a').live("mouseover", function(){ jQuery(this).find("img").hide();jQuery(this).find(".lastimg").show(); } );
			jQuery('.productlistview .imageswup a').live("mouseout", function(){ jQuery(this).find("img").show();jQuery(this).find(".lastimg").hide(); } );
			
			equalHeight(jQuery("#content .productlistview ul li"));
			
			jQuery('.accordion .accWrap').hide();
			jQuery('.accordion .accWrap:first').show();
			jQuery('.accordion h3.toggle:first').addClass('open');
			jQuery('.accordion h3.toggle a').live('click', function() { 
				jQuery(this).parent().next('.accWrap').slideToggle('slow');
				var trig = jQuery(this).parent('h3');
				if ( trig.hasClass('open') ) {
					trig.removeClass('open');
				} else {
					trig.addClass('open');
				}
				
				return false;  
			});
			
			
			//$('.single-image a.singleimgSelect').wrapAll('<div id="thumbs" />').append();
			jQuery('#thumbnaildiv').append(jQuery('.single-image a.imgSelect'));
			jQuery('#thumbnaildiv a.imgSelect').each(function(index) {
				//alert(index + ': ' + $(this).text());
				jQuery(this).attr("rel", index);
			 });
			
			
			
			jQuery("a.jqfancybox").fancybox({
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});
			
			jQuery("ul.slideshow li a").fancybox({
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});

			var ecardslider = jQuery(".slideContainer ul.slideshow");
			if (ecardslider.length > 0) {
				jQuery(".slideContainer ul.slideshow").carouFredSel({
					height: "auto",
					circular: false,
					items: 2,
					scroll: 2,
					auto: false,
					prev: ".t2cSlideshow .box > a.prev",
					next: ".t2cSlideshow .box > a.next"
				});
			}
			
			
});
		
		function equalHeight(group) {
			tallest = 0;
			group.each(function() {
			thisHeight = jQuery(this).height();
			if(thisHeight > tallest) {
			 tallest = thisHeight + 15;
			}
		});
		//group.height(tallest);
		group.css({'min-height': tallest});
		} 
		
		
