	function slidey(){
		$('.tweet').easySlider({
			auto: true,
			autoAfterClick: true,
			pause: 10000,
			continuous: true,
			numeric: true,
			bullets: true,
			controlId: 'content_hero_slider_controls',
			controlsBefore:		'<div id="content_hero_slider_controls_container">',
			controlsAfter:		'</div>'
		});
	}
	
	function theRotator() {
		//Set the opacity of all images to 0
		$('div#rotator ul li').css({opacity: 0.0});
		
		//Get the first image and display it (gets set to full opacity)
		$('div#rotator ul li:first').css({opacity: 1.0});
			
		//Call the rotator function to run the slideshow, 6000 = change to next image after 6 seconds
		setInterval('rotate()',10000);
		
	}
	
	function rotate() {	
		//Get the first image
		var current = ($('div#rotator ul li.show')?  $('div#rotator ul li.show') : $('div#rotator ul li:first'));
	
		//Get next image, when it reaches the end, rotate it back to the first image
		var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('div#rotator ul li:first') :current.next()) : $('div#rotator ul li:first'));	
		
		//Set the fade in effect for the next image, the show class has higher z-index
		next.css({opacity: 0.0})
		.addClass('show')
		.animate({opacity: 1.0}, 1000);
	
		//Hide the current image
		current.animate({opacity: 0.0}, 1000)
		.removeClass('show');
		
	};

	$(document).ready(function(){
		
		//Append home sidebar to a unique container
		$('#div_articleid_72').appendTo('.aside');

		$(function(){
			$(".tweet").tweet({
				join_text: "auto",
				username: "smartdreamzzz",
				count: 3,
				auto_join_text_default: "", 
				//template: "{text} {time}",
				loading_text: "loadin' up..."
			});
		});
		
		setTimeout(slidey, 1000);
		
		//Append slider nav arrows to a unique container
		$('#content_hero_slider_controls_container').appendTo('.controlContainer');
	
		//Load the slideshow
		theRotator();
				
		$('.twitterContainer').animate({
			//opacity: 1,
			//bottom: '-3'
			}, 5000, function() {
			// Animation complete.
		});
		
		
		$("td").each(function() {
			var image = $(this).children("img");
			image.remove();
			//$("#photoholder").append(image);
		});	
		
		$('div').removeAttr('align');
		$('td').removeAttr('align');
		$('td').removeAttr('style');
		$('td').removeAttr('onclick');
		$('td').removeAttr('onmouseout');
		$('td').removeAttr('onmouseover');
		$('td').removeAttr('background');
		$('table').removeAttr('cellspacing');
		$('table').removeAttr('cellpadding');
		$('table').removeAttr('border');
		$('font').removeAttr('size');
		$('font').removeAttr('face');
		$('td').removeAttr('width');
		$('img').removeAttr('style');
		$('font').removeAttr('style');
		
		
		
		//Oh... the nav
		$('table.nav tbody tr td.subnav').appendTo('ul.subnav');
		$('table.nav tbody tr td.nav').appendTo('ul.main');
		
		$('ul.main td.nav.nav_hover.nav_selected').each(function(i){
			$(this).replaceWith('<li class="nav active">' + $(this).html() + "<\/li>");
		});		

		$('ul.main td.nav').each(function(i){
			$(this).replaceWith('<li>' + $(this).html() + "<\/li>");
		});		

	
		$('ul.subnav td.subnav.subnav_hover.subnav_selected').each(function(i){
			$(this).replaceWith('<li class="active">' + $(this).html() + "<\/li>");
		});		

		$('ul.subnav td.subnav').each(function(i){
			$(this).replaceWith('<li>' + $(this).html() + "<\/li>");
		});		

		$('b').each(function(i){
			$(this).replaceWith($(this).html());
		});		

		$('center').each(function(i){
			$(this).replaceWith($(this).html());
		});		

		$("#display_menu_4").remove();
	
		$("a.subcategory_link").parent().remove();
		$("#jmenuhide, .results_per_page_select, .PageText_L244n, #product_photo_zoom_url2").remove();
		
		
		
		

		$("ul li:last-child").addClass("last");
		$(".sideModule:last-child").addClass("last");
		$(".footerModule:last-child").addClass("last");
		
		$("#jquery_jplayer_1").jPlayer({
			ready: function () {
				$(this).jPlayer("setMedia", {
					mp3: "audio/audio.mp3"
				})
			},
			ended: function (event) {
			},
			swfPath: "js",
			solution: "flash, html",
			supplied: "mp3"
		});
		
		var A = ( location.pathname == "/SearchResults.asp" || location.pathname.indexOf("-s/") != -1 || location.pathname.indexOf("_s/") != -1 );
		var B = $("#content_area").size();
		
		if( A && B ) {
			//alert('ooh');
			$('#content_area').addClass('productList');
			$('#MainForm td[valign="top"]').addClass("productListItem");
		}
		$("td.productListItem:last-child").addClass("last");
		$('.text.colors_text').truncate({
			width: 1000,
			token: '&hellip;',
			center: false
		});
		













	});

