﻿Cufon.slideContentSelectors = ['span.gradient,h1.gradient', '#hdp-ucl-front span.ucl-top-line', '#hdp-ucl-front span.gradient', 'div.hdp-header-div h1', 'ul.ucl-touts a, ul.hdp-touts a, div.hdp-touts a', 'p:not(#hdp-disclaimer-content *)', 'a:not(#hdp-primary-menu a,#hdp-breadcrumbs a,#hdp-disclaimer-content *, .ucl-touts a, .hdp-touts a,#a2apage_dropdown a,div.ucl-star-final-link a,div.ucl-star-final-link a,div.ucl-highlights-link a),h2,h3,h4,h5,.cufonise', 'span.ucl-header-gradient', 'span.ucl-green-header,span.ucl-bottom-line-green', 'div.ucl-star-final-link a,div.ucl-highlights-link a', '#hdp-heineken-story .first, #hdp-heineken-story .second', '#hdp-heineken-story .third', '#hdp-heineken-story .button span'];
// objects used in cufon.replace calls elsewhere
// (anywhere that ajax content may be loaded )
Cufon.defaultTextCufon = { fontFamily: 'Futura Condensed Medium', hover: true, fontStretch: 'semi-condensed' };
Cufon.linkTextCufon = { fontFamily: 'Futura Condensed Medium', hover: true };
Cufon.smlHeaderTextCufon = { fontFamily: 'Futura Condensed Medium', separate: 'none' };
Cufon.headerNoGradientCufon = { fontFamily: 'Futura LT Pro Medium Cond', fontStretch: 'normal', separate: 'none' };

// To exclude certain elements from being Cufonised on the disclaimer page, add this "not" selector:
// :not(#hdp-disclaimer-content *)
Cufon.replace('a:not(#hdp-primary-menu a,#hdp-breadcrumbs a,#hdp-disclaimer-content *, .ucl-touts a, .hdp-touts a,#a2apage_dropdown a,div.ucl-star-final-link a,div.ucl-highlights-link a, #hdp-heineken-story a),h2,h3,h4,h5,.cufonise', Cufon.linkTextCufon);
Cufon.replace('p:not(#hdp-disclaimer-content *)', Cufon.defaultTextCufon);
Cufon.replace('#hdp-footer span.ucl-no-link', {
	fontFamily: 'Futura Condensed Medium',
    hover: true,
    hoverables: { span: true }
});
Cufon.replace('ul.ucl-touts a, ul.hdp-touts a, div.hdp-touts a', Cufon.linkTextCufon);
// Override the condensing for the 'Our beer' text so it correctly matches the PSD
// NOTE ALTOUGH THE 'STYLE' AND META DATA SAYS LT PRO MEDIUM COND this is actually LTPro-BoldCond

Cufon.replace('#hdp-primary-menu a, h1:not("#hdp-heineken-story h1")', {
	fontFamily: 'Futura LT Pro Medium Cond',
	fontStretch: 'condensed'
});

Cufon.replace('#hdp-breadcrumbs a', Cufon.defaultTextCufon);
Cufon.replace('div.hdp-header-div h1', Cufon.headerNoGradientCufon);
Cufon.replace('span.gradient,h1.gradient', {
	color: '-linear-gradient(0=#bbb, 0.18=#fff, #fff, 0.82=#bbb)'
});

Cufon.replace('#hdp-ucl-front span.ucl-top-line', Cufon.headerNoGradientCufon);

Cufon.replace('#hdp-ucl-front span.gradient', {
	fontFamily: 'Futura LT Pro Medium Cond',
	color: '-linear-gradient(0=#bbb, 0.18=#fff, #fff, 0.82=#bbb)'
});

// The Heineken Story landing page fonts (for non-Flash users only)

Cufon.replace('#hdp-heineken-story .first, #hdp-heineken-story .second',  {
	fontFamily: 'Futura LT Pro Medium Cond',
	color: '-linear-gradient(#d5d5d5, 0.40=#f2f2f2, 0.5=#ffffff, 0.60=#f2f2f2, #d5d5d5)'
});

Cufon.replace('#hdp-heineken-story .third',  {
	fontFamily: 'Futura LT Pro Medium Cond'
});

Cufon.replace('#hdp-heineken-story .button span',  {
	fontFamily: 'Futura LT Pro Medium Cond',
    textShadow: '#380b0c 1px 1px'  

});

// Label is used for error message on UCL sign-up box...
Cufon.replace('label.error', {
    fontFamily: 'Futura Condensed Medium'
});

/* Star final ucl styles */
/* headers with gradient */
Cufon.replace(Cufon.slideContentSelectors[7], {
	fontFamily: 'Futura LT Pro Medium Cond',
	fontStretch: 'normal',
	color: '-linear-gradient(0=#bbb, 0.18=#fff, #fff, 0.82=#bbb)',
	separate: 'none'
});
/* green headers */
Cufon.replace(Cufon.slideContentSelectors[8], {
	fontFamily: 'Futura LT Pro Medium Cond',
	fontStretch: 'normal',
	color: '-linear-gradient(0=#90bd56, 0.18=#afe669, #afe669, 0.82=#90bd56)'
});
/* star final link */
Cufon.replace(Cufon.slideContentSelectors[9], {
	fontFamily: 'Futura LT Pro Medium Cond',
	fontStretch: 'semi-condensed',
	hover: true
});


