/**
 * Theme Selector
 * Use the URL to select the correct theme via CSS specificity
 * @author Aubrey.alexander
 *  */

function strpos(haystack, needle, offset) {
    var i = (haystack+'').indexOf(needle, (offset ? offset : 0));
    return i === -1 ? false : i;
}

function startupSamsonite() {
	// Check Domain and Apply Correct Theme
	
	var sURL=window.location.href;
	if (strpos(sURL, "shop.americantourister.com") > 0) {
		jQuery('body').removeClass('theme_s').addClass('theme_at').removeClass('theme_bl');
	} else if ( strpos(sURL, "/SBL-Collections-")>0 ) {
		jQuery('body').removeClass('theme_s').removeClass('theme_at').addClass('theme_bl');
	} else {
		jQuery('body').addClass('theme_s').removeClass('theme_at').removeClass('theme_bl');
	}
	
}

jQuery(document).ready(function(){
	startupSamsonite();
});

