

function setGradient(gradientHeaderFrom,gradientHeaderTo) {
				
				$('#header div.gradient').remove();
				$('#footer div.gradient').remove();
				
				// SET HEADER COLORS
				$('#header').gradient({
					from:     gradientHeaderFrom,
					to:       gradientHeaderTo,
					direction: 'horizontal'
				});
		
				// MENU HOVER EFFECT
				$('#leftMenu li a').each( function() {
						$(this).mouseover(function(){
										$(this).css("background-color","#" + gradientHeaderFrom );
										$(this).css("color","#" + 'fff' );
												   }),
						$(this).mouseout(function(){
										$(this).css("background-color","#"  + 'fff' );	   
										$(this).css("color","#" + '666' );
										})
				});
				

				$('.buttons').each( function() {
					$(this).mouseover(function(){
											$(this).css("background-color","#" + gradientHeaderFrom );
											$(this).css("border-color","#" + '333');
													   }),
					$(this).mouseout(function(){
											$(this).css("background-color","#"  + gradientHeaderTo );	   
											$(this).css("border-color","#" + gradientHeaderFrom);
											})
					});
}

function setTextColor(color)
{
			$('.buttons').each( function() {
					$(this).mouseout(function(){
									$(this).css("color","#" + color);
												})
					});

}
// When document is loaded				
$(function() {	

		// PNG TRANSPARENCY FOR IE
		// Needed for first load
		$(document).pngFix();
		var current = $('#leftMenu').find("a.navlink").filter(function() { return this.href == location.href; });
		if (current.length)
		    current.addClass('current');
		else
		    $('#homeLink a').addClass('current');
		    
});


