// TooPixel pre-launch
// Project Custom Javascript
// Framework: jQuery 1.5.1
// Author & Copyright: 2011 Too Pixel - http://toopixel.ch

var base_url = window.location.host;

$(document).ready(function($) {
	
	// Open all external links and PDF in new window
	$("a[href^='http:']:not([href*='" + base_url + "']), a[href$='.pdf']:not([href*='" + base_url + "']), a[href$='.pdf']").live('click', function() {
		$(this).attr('target','_blank');
	});
	
	// Cufon font replacements
	var HNLTLtEx = "ul.clock li";
	var HNLTLtCn = ".design-credits";
	var HNLTLtCn_white = "#timer-message h2, #timer-clock ul li span";
	
	Cufon.replace(HNLTLtEx, {
		fontFamily: 'HNLTcom53LtEx',
		hover: false
	});
	
	Cufon.replace(HNLTLtCn, { //dark text shadow
		fontFamily: 'HNLTcom47LtCn',
		hover: { textShadow: '#6db8db 1px 1px'}
	});
	
	Cufon.replace(HNLTLtCn_white, { //white text shadow, same font as above
		fontFamily: 'HNLTcom47LtCn',
		textShadow: '#6db8db 1px 1px'
	});
	
});

/* End of file custom.js */  

