// JavaScript Document
$(document).ready(function() {
	var loc = $()[0].location.href;
	var loc = $()[0].location.href;
	var c = loc.length-1; // String Count
	if (loc[c] == '/') { $('body').addClass('homepage'); }
	else {
		$('body').addClass('sub');
	}
	if (loc.match('default\.asp')) $('body').addClass('home');
	if (loc.match('-p/') || loc.match('ProductDetails\.asp')) $('body').addClass('product');
	if (loc.match('-s/')) $('body').addClass('category');
	if (loc.match('-s/')) $('.category #content_area table table table table td a img').addClass('imgresize');
	if (loc.match('-s/')) $('.category #content_area table table table table table td a img').removeClass('imgresize');
	if (loc.match('-s/')) $('.category #content_area table table table table td a.smalltext img').removeClass('imgresize');
	if (loc.match('-s/')) $('.category #content_area table table table table td div a img').removeClass('imgresize');
	if (loc.match('-s/')) $('.category #content_area table table table table td iframe').addClass('ytube');
	if (loc.match('-a/') || loc.match('article\.asp\?')) $(body).addClass('article');
	if (loc.match('shoppingcart\.asp')|| loc.match('one-page-checkout\.asp')) $('body').addClass('shoppingcart');
	if (loc.match('returns\.asp')) $('body').addClass('article return');
	if (loc.match('aboutus\.asp')) $('body').addClass('article aboutus');
});

