$.noConflict();
	jQuery(document).ready(function($) {
	
var msg = jQuery('td.cartSummaryItem').html();
		if(msg == "Shopping cart is empty." ) {
			jQuery('td.cartSummaryItem').replaceWith('Shopping Bag: 0 Items');
		}
                jQuery('a.cartSummaryLink').replaceWith('<a href="/OrderRetrievev2.aspx?CatalogueID=39735" class="cartSummaryLink">View Bag</a>');
				jQuery(function($){
					
					$.supersized({
					
						// Functionality
						slide_interval          :   5000,		// Length between transitions
						transition              :   1, 
						transition_speed		:	700,		// Speed of transition
																   
						// Components							
						slide_links				:	'blank',	// Individual links for each slide (Options: false, 'number', 'name', 'blank')
						slides 					:  	[			// Slideshow Images
															{image : '/images/index_bg.jpg'},
															{image : '/images/index_bg2.jpg'},  
															{image : '/images/index_bg3.jpg'}
													]
					});			
				});
					//Video section
					$('.close_video').click( function(e){
						e.preventDefault();
						$('.cont_box_video').fadeOut(700);
					});
					//Bottom section
					$('.btn_close2').click( function(e){
						e.preventDefault();
						if($('.index_entry').hasClass('closed')){							
							$('.index_entry').animate({bottom: 25},{duration: 600,easing: 'easeInQuad'});
							$('.btn_close2').css("background-position","top left");
							$('.index_entry').removeClass('closed');
						} else { 
							$('.index_entry').stop(true,true).animate({bottom: -145}, 600,"linear",function(){ $('.index_entry').addClass('closed'); });			
							$('.btn_close2').css("background-position","bottom left");
		
						}
					});
				
					//on Hover state
					$('.index_entry').hover(
					  function () {
						if($(this).hasClass('closed')){							
							$(this).stop(true).animate({bottom: -110},{duration: 300,easing: 'linear'});
						}
					  }, 
					  function () {
						if($(this).hasClass('closed')){							
							$(this).stop(true).animate({bottom: -145},{duration: 300,easing: 'linear'});
						}
					  }
					);
					
					//Body height Hack
					/*resizebody();						 
											 
					function resizebody() {						 
						var windowheight = $(document).height();
						var bodyheight = $('body').height();
						if ( windowheight > bodyheight ) { $("#index_content").css({height: windowheight-121}); }
					}
					
					$(window).resize(resizebo*/				
				});
