$(document).ready(function() {
	$('#preloader').css("display","block");
	$('#rightcolumn ul#mainnav li').hover(function() { //mouse in
		$(this).animate({ paddingLeft: '20px' }, 400);
	}, function() { //mouse out
		$(this).animate({ paddingLeft: 0 }, 400);
	});
	$('#rightcolumn ul.standard li a').hover(function() { //mouse in
		$(this).animate({ paddingLeft: '55px' }, 400);
	}, function() { //mouse out
		$(this).animate({ paddingLeft: '35px' }, 400);
	});
	$('.highitem').hover(function() { //mouse in
		$(this).animate({ opacity: 0.6 }, 400);
	}, function() { //mouse out
		$(this).animate({ opacity: 0 }, 400);
	});
	 $('#submitform').ajaxForm({
			target: '#error',
			success: function() {
			$('#error').animate({ opacity: 1 }, 400);
			}
		});
	 $('#options ul li a').click(function() {
		 $(this).css('outline','none'); 								  
		$('#options ul li.active').removeClass('active');
		$(this).parent().addClass('active');
		
		var filterVal = $(this).text().toLowerCase().replace(' ','-');
				
		if(filterVal == 'all') {
			$('.col.hidden').fadeIn('slow').removeClass('hidden');
		} else {
			$('.col').each(function() {
				if(!$(this).hasClass(filterVal)) {
					$(this).fadeOut('slow').addClass('hidden');
				} else {
					$(this).fadeIn('slow').removeClass('hidden');
				}
			});
		}
		
		return false;
	});
});
        function preloader(){
                document.getElementById("preloader").style.display = "none";
        }//preloader
        window.onload = preloader;
		
			Cufon.replace('h2',{
						  textShadow: '#fff 1px 1px'
});
		Cufon.replace('h3',{
					    textShadow: '#fff 1px 1px'
});
				Cufon.replace('.greenbutton a',{
							  textShadow: '#3b7f07 1px 1px'
});
				Cufon.replace('.bluebutton a',{
							  textShadow: '#0e509a 1px 1px'
});
							Cufon.replace('h4',{
										   textShadow: '#fff 1px 1px'
});
			Cufon.replace('#nav li.grey',{
		textShadow: '#191919 1px 1px'
});
						Cufon.replace('#nav li.lgrey',{
		textShadow: '#3f3f3f 1px 1px'
});
					Cufon.replace('#nav li.orange',{
		textShadow: '#bc6100 1px 1px'
});
						Cufon.replace('#nav li.red',{
		textShadow: '#a02005 1px 1px'
});
							Cufon.replace('#nav li.blue',{
		textShadow: '#003579 1px 1px'
});
									Cufon.replace('#nav li.green',{
		textShadow: '#204e00 1px 1px'
});
									
								
