$(document).ready(function(){

	
	var font = {
			regular:"Replica-Regular",
			light:"Replica-Light"
	};
	
	var groups = {};	
    	
	groups["global"] = [
	
	{id:"h1.ageVerification-title", fontFamily:font.regular},                         
	{id:"h2.top-border", 			fontFamily:font.regular},                         
	{id:"h3.cufon-title", 			fontFamily:font.regular},                         
	{id:"p.aFeature-copy", 			fontFamily:font.light},                         
	{id:"p.aFeature-news-copy", 	fontFamily:font.light}                                                
	];
	
	groups["homepage"] = [
	{id:"h1.aFeature-title", 		fontFamily:font.light},                         
	{id:"h1.aFeature-news-title", 	fontFamily:font.light},                         
	{id:"h2.aFeature-news-title", 	fontFamily:font.light},                         
	{id:"h3.cFeature-title", 		fontFamily:font.regular},                         
	{id:"h2.slideshow-title-dark", 	fontFamily:font.light},                         
	{id:"h2.slideshow-title-light", fontFamily:font.light},                         
	{id:"p.slideshow-copy-dark", 	fontFamily:font.light},                         
	{id:"p.slideshow-copy-light", 	fontFamily:font.light},                         
	{id:"p.slideshow-copy-dark-noBorder", fontFamily:font.light}                                            
	];
	
	groups["productpage"] = [
	{id:"h1.ourWhiskiesTitle", 		fontFamily:font.light},                       
	{id:"h1.product-title", 		fontFamily:font.light},                       
	{id:"h3.title", 				fontFamily:font.regular},                       
	{id:"h3.title-underline", 		fontFamily:font.regular},                       
	{id:"h4.review-name", 			fontFamily:font.regular},                       
	{id:"p.quote", 					fontFamily:font.light}                       
	];
	
	groups["ourstories"] = [
	{id:"p.quote", 					fontFamily:font.light},                          
	{id:"h2.pim-subtitle", 			fontFamily:font.regular},                          
	{id:"p.description", 			fontFamily:font.light}                          
	];
	
	groups["latestNews"] = [
	{id:".aFeature-grid-2 h1.aFeature-title", fontFamily:font.light}                      
	];
	
	groups["experiencePerfection"] = [
	{id:"h1.tasting-masterclass-aFeature-title", fontFamily:font.light},                                   
	{id:"p.tasting-masterclass", fontFamily:font.light},                                   
	{id:"#audte-anythingFader_leftPanel h2", fontFamily:font.light},                                   
	{id:"#audtee-object-video-player-holder #object-overview h2", fontFamily:font.light},                                   
	{id:"#audte-anythingFader_leftPanel p", fontFamily:font.regular},                                   
	{id:"#audtee-object-video-player-holder #object-overview p", fontFamily:font.regular},                                   
	{id:"h2.body-caption-title", fontFamily:font.regular},                                   
	{id:"#audtec-anythingFader_leftPanel h2.slideshow-title", fontFamily:font.light},                                
	{id:"#audtec-anythingFader_leftPanel #object-copy p", fontFamily:font.light}                                   
	];
    
    // Only activate cufon if it's not IE
    if (navigator.appName != 'Microsoft Internet Explorer')
    {
        for(var key in groups){
            var group = groups[key];
            for(var id in group){
                Cufon.replace( group[id].id, {
                    fontFamily: group[id].fontFamily
                } );
            }
        }
    }
	
});

