$(document).ready(function(){
	// add parent class to submenu wrappers
	$('#header-menu>li').each(function(){
		var children = $(this).children('ul');
		if( children.length == 1 )
		{
			$(this).addClass('parent');			
			//$(this).children('ul').css({minWidth: $(this).width()-13 +'px'});
		}
	});
	
	/*
	$('#header-menu > li > a').each(function(){
		$(this).parent().css({'width' : $(this).outerWidth()-15 + 'px', height: '40px' });
		if( $(this).parent().children('ul').width() < $(this).outerWidth()  )
		{
			$(this).parent().children('ul').css({'width' : $(this).outerWidth() + 'px' });
		}
	});
	*/
	
	$('.menu-products').html( $('.menu-products').find('li>ul').html() );
	
	Cufon.replace('#header-menu>li:not(.parent)>a',{
		textShadow: '1px 1px rgba(0,0,0,0.2)',
		fontSize: '12.5px',
		hover: true
	});
	
	Cufon.replace('#header-menu>li.parent>a',{
		textShadow: '1px 1px rgba(0,0,0,0.2)',
		fontSize: '12.5px',
		hover: false
	});
	
	Cufon.replace('.sidebar h1, .sidebar h2', {
		color: '-linear-gradient(0=#FFFFFF, 0.7=#dcdfe2, 1=#FFFFFF)',
		textShadow: '1px 1px rgba(0,0,0,0.5)'
	});
	
	Cufon.replace('#footer .column > strong > span', {
		color: '-linear-gradient(0=#FFFFFF, 0.7=#f3f3f3, 1=#FFFFFF)',
		textShadow: '1px 1px rgba(0,0,0,0.3)'
	});
	
	/*
	$('#header-menu>li').mouseenter(function(){
		$(this).addClass('hover');

	}).mouseleave(function(){
		$(this).removeClass('hover');
		Cufon($(this).children('a'),{
			textShadow: '1px 1px rgba(0,0,0,0.2)',
			fontSize: '13.5px',
			color: '#e3003d'
		});
	});
	*/
});
