$(document).ready(function() {
	$('#boxen_scert').boxen('https://www.volusion.com/ssl.asp?url=www.sdlearn.com', {
		width: 451,
		height: 541
    });
    
    $('#boxen_ship').boxen('/v/vspfiles/templates/Novo/freeship.html', {
		width: 250,
		height: 220
    });

	var loc = document.location.href;
	var c = loc.length-1; // String Count
	if (loc[c] == '/') { 
			$('body').addClass('homepage');
			    
			$('#testimonials').innerfade({
				speed: 'slow',
				timeout: '6000',
				type: 'sequence',
				animationtype: 'slide',
				containerheight: '40px'
			});
			
			$('#heroes').innerfade({
				speed: 'fast',
				timeout: '8000',
				type: 'sequence',
				containerheight: '300px'
			});

	 }
	else {
		if (loc.toLowerCase().match('default\.asp')) {
			$('body').addClass('home');
			
			$('#testimonials').innerfade({
				speed: 'slow',
				timeout: '6000',
				type: 'sequence',
				animationtype: 'slide',
				containerheight: '40px'
			});
			
			$('#heroes').innerfade({
				speed: 'fast',
				timeout: '8000',
				type: 'sequence',
				containerheight: '300px'
			});
			    
	}
			   
	else if (loc.toLowerCase().match('.com/?')) {
				$('body').addClass('home');
				
			$('#testimonials').innerfade({
				speed: 'slow',
				timeout: '6000',
				type: 'sequence',
				animationtype: 'slide',
				containerheight: '40px'
			});
			
			$('#heroes').innerfade({
				speed: 'fast',
				timeout: '8000',
				type: 'sequence',
				containerheight: '300px'
			});
	}
	else if (loc.match('_p/') || loc.match('ProductDetails\.asp')) $('body').addClass('product')
	else if (loc.toLowerCase().match('_s/')) $('body').addClass('category')
	else if (loc.toLowerCase().match('_a/') || loc.match('article\.asp\?')) $(body).addClass('article')
	else if (loc.toLowerCase().match('shoppingcart\.asp')|| loc.match('one-page-checkout\.asp')) $('body').addClass('shoppingcart')
	else if (loc.toLowerCase().match('returns\.asp')) $('body').addClass('article return')
	else if (loc.toLowerCase().match('aboutus\.asp')) $('body').addClass('article aboutus')
	else if (loc.toLowerCase().match('login\.asp')) $('body').addClass('login')
	else if (loc.toLowerCase().match('cindex\.asp')) $('body').addClass('categoryindex')
	else if (loc.toLowerCase().match('pindex\.asp')) $('body').addClass('productindex')
		}
});