Cufon.replace('#menu li', { fontFamily: 'Trade Gothic LT Std', hover: true, fontSize: '15px' });
Cufon.replace('#footer_menu li', { fontFamily: 'Trade Gothic LT Std', hover: true, fontSize: '12px' });
Cufon.replace('.column_title', { fontFamily: 'Trade Gothic LT Std', hover: true, fontSize: '26px' });
Cufon.replace('#content_left h2', { fontFamily: 'Trade Gothic LT Std', hover: true, fontSize: '30px' });
Cufon.replace('ul.products li.products_title a', { fontFamily: 'Trade Gothic LT Std', hover: true, fontSize: '24px' });
Cufon.replace('#orange_banner_text', { fontFamily: 'Trade Gothic LT Std', fontSize: '28px' });
Cufon.replace('ul.product li.product_title a', { fontFamily: 'Trade Gothic LT Std', fontSize: '30px' });
Cufon.replace('.previousPost a', { fontFamily: 'Trade Gothic LT Std', hover: true, fontSize: '24px' });
Cufon.replace('.nextPost a', { fontFamily: 'Trade Gothic LT Std', hover: true, fontSize: '24px' });
Cufon.replace('ul#product_upsell li', { fontFamily: 'Trade Gothic LT Std', fontSize: '30px' });
Cufon.replace('ul#address', { fontFamily: 'Trade Gothic LT Std', hover: true, fontSize: '24px' });
Cufon.replace('.contact_form_row strong', { fontFamily: 'Trade Gothic LT Std', hover: true, fontSize: '24px' });
Cufon.replace('.product_contact_row a', { fontFamily: 'Trade Gothic LT Std', hover: true, fontSize: '24px' });
Cufon.replace('.price', { fontFamily: 'Trade Gothic LT Std', hover: true, fontSize: '22px' });
Cufon.replace('li.service_title', { fontFamily: 'Trade Gothic LT Std', hover: true, fontSize: '22px' });

jQuery.extend({
  getUrlVars: function(){
    var vars = [], hash;
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
    for(var i = 0; i < hashes.length; i++)
    {
      hash = hashes[i].split('=');
      vars.push(hash[0]);
      vars[hash[0]] = hash[1];
    }
    return vars;
  },
  getUrlVar: function(name){
    return jQuery.getUrlVars()[name];
  }
});

var fancyBoxSettings = {
	'transitionIn'		:	'elastic',
	'transitionOut'		:	'elastic',
	'speedIn'			:	300, 
	'speedOut'			:	300, 
	'margin'			:	0,
	'padding'			:	10,
	'titleShow'			:	false,
	'titlePosition'		:	'over',
	'autoScale'			:	true,
	'overlayOpacity'	:	0.8,
	'overlayColor'		:	'#000',
	'scrolling'			:	'no',
	'hideOnOverlayClick':	false,
	'autodimensions'	:	true,
	'showCloseButton'	:	true,
	'centerOnScroll'	:	true,
	'cyclic'			:	true
};

/* External Links */
jQuery(document).ready(function(){
	jQuery("a[href^=http]").each(function() {
		if(this.href.indexOf(location.hostname) == -1) {
			jQuery(this).click(function(){window.open(this.href);return false;});
		}
	});
}); 

jQuery(document).ready(function(){		
	
	/* Start Gallery */
	jQuery(".sportsCreativeGalleryImage").fancybox( fancyBoxSettings );
	
	jQuery("#pdf_brochure_link").attr({target: "_blank", title: "Opens in a new window"});
	
	/* Auto Fill Form */
	if ( jQuery('input[name=your-products]').length > 0 ) {
		var product = jQuery.getUrlVar('product');
		if ( product ) {
			product = product.replace( "%20" , " " );
			product = product.replace( "#contact" , "" );
			jQuery('input[name=your-products]').val( product );
		}
		
	}

});
