﻿// Functions specific to a site.


	Cufon.replace("h1", { fontFamily: 'DIN-Medium' });


// Place document manipulation code here
		/*var bgImageSource, bgImageFinal;
		$('#subnav li').each(function() {
			bgImageSource = $(this).css('background-image');
			if(bgImageSource != 'none')
				bgImageFinal = bgImageSource.replace(/"/g,"").replace(/url\(|\)$/ig, ""); 
			else
				bgImageFinal = '/images/sub-nav_hover.png';
			$(this).css({'background-image':'none'});
			$(this).prepend('<img class="bg-stretch" src="' + bgImageFinal +  '" style="height: ' + $(this).height() + 'px; width: 100%; position: absolute; z-index: 1;" />');*/

			if(!$(this).hasClass('active'))
				$(this).find('img').hide();
				
			$(this).find('a').each(function() {
				$(this).css({'z-index':'5', 'position':'relative'});
			});
		

		$('#subnav li:not([class~=active])').hover(function() {
			$(this).find('img').show();
		},
		function() {
			$(this).find('img').hide();
		});

	
		



